/* ============================== */
/* Home Page Kross Booking Search Widget */
/* ============================== */

/* ============================== */
/* Globals */
/* ============================== */

.property-search input,
.property-search select {
  font-size: 28px !important;
  font-weight:300 !important;
  color: var(--black) !important;
}

.property-search__fields {
  display: grid;
  grid-template-columns: 22% 25% 25% 25%;
}

/* ============================== */
/* Property Search Widget */
/* ============================== */

.property-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 18px;
  border: 1px solid #000;
  box-shadow: 8px 8px 1px rgba(0, 0, 0, 0.36);
  gap: 0; /* dividers control spacing */
}

/* ============================== */
/* Field Wrapper */
/* ============================== */

.property-search .field {
  position: relative;
  flex: 1;
  padding: 0 16px;
  display: flex;
  align-items: center;
}

/* Make Check-in & Check-out slightly wider */
.property-search .field--checkin,
.property-search .field--checkout {
  flex: 1.3;
}

/* ============================== */
/* Slanted Dividers */
/* ============================== */

.property-search .field:not(:last-of-type)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) skewX(-40deg);
  width: 4px;
  height: 42px;
  background: #000;
}

/* ============================== */
/* Inputs & Select (Base) */
/* ============================== */

.property-search input,
.property-search select {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
}


/* ============================== */
/* Inputs & Select (Menu) */
/* ============================== */

/* Dropdown list background */
.property-search select option {
  background-color: var(--yellow);
  color: var(--white);
}

/* Hover (works in Chrome / Edge, not Safari) */
.property-search select option:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* Selected option */
.property-search select option:checked {
  background-color: #FFB100;
  color: #000;
}


/* ============================== */
/* Per-field Text Alignment */
/* ============================== */

/* Check-in: left aligned */
.property-search .field--checkin input {
  text-align: left;
}

/* Check-out: centered */
.property-search .field--checkout input {
  text-align: center;
}

/* Guests: centered */
.property-search .field--guests input {
  text-align: center;
}

/* Destination:
   - selected value centered
   - dropdown options left aligned */
.property-search .field--destination select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-align-last: center; /* selected value */
}

.property-search .field--destination select option {
  text-align: left; /* dropdown list */
}

/* ============================== */
/* Placeholder Styling */
/* ============================== */

/* Check-in placeholder */
.property-search .field--checkin input::placeholder {
  color: #222;
  opacity: 1;
  text-align: left;
}

/* Check-out + Guests placeholders */
.property-search .field--checkout input::placeholder,
.property-search .field--guests input::placeholder {
  color: #222;
  opacity: 1;
  text-align: center;
}

/* Cross-browser placeholder support */
.property-search input::-webkit-input-placeholder {
  color: #222;
  opacity: 1;
}

.property-search input::-moz-placeholder {
  color: #222;
  opacity: 1;
}

.property-search input:-ms-input-placeholder {
  color: #222;
  opacity: 1;
}

/* ============================== */
/* Select Placeholder Color */
/* ============================== */

/* Placeholder look (requires disabled first option + required attr) */
.property-search .field--destination select {
  color: #777;
}

.property-search .field--destination select:valid {
  color: #222;
}

/* ============================== */
/* Search Button */
/* ============================== */

.property-search button {
  margin-left: 12px;
  padding: 10px 20px;
  border: none;
  background: #FFB100;
  box-shadow: 4px 4px 1px rgba(0, 0, 0, 0.36);
  font-size: 28px !important;
  font-weight:400 !important;	
  color: var(--white);
  cursor: pointer;
  white-space: nowrap;
}

/* ============================== */
/* Flatpickr Fixes */
/* ============================== */

/* Keep month + year in one line */
.flatpickr-current-month {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap !important;
}

/* Prevent month dropdown wrapping */
.flatpickr-monthDropdown-months,
.flatpickr-current-month .numInputWrapper {
  white-space: nowrap;
}
