/* Klook-style hero search */

.hero-search-wrap {
  position: relative;
  z-index: 6;
  width: min(740px, 100%);
  margin-top: 24px;
  margin-bottom: 0;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 64px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.2s ease;
}

.hero-search:focus-within {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.hero-search__section {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.hero-search__section--where {
  flex: 1 1 0%;
  padding-right: 16px;
}

.hero-search__section--when {
  flex: 1 1 0%;
  padding: 0 16px;
}

.hero-search__icon {
  font-size: 20px;
  color: var(--brand-teal, #00afa9);
  flex-shrink: 0;
}

.hero-search__field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  margin: 0;
  cursor: text;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-search__label {
  color: #0f1720;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.hero-search__field:focus-within .hero-search__label {
  color: var(--brand-teal, #00afa9);
}

.hero-search__input,
.hero-search input[type="text"] {
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  color: #243b53;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  caret-color: var(--brand-teal, #00afa9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-search__input:focus,
.hero-search__input:focus-visible,
.hero-search__input:active,
.hero-search input[type="text"]:focus,
.hero-search input[type="text"]:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.hero-search__input::placeholder,
.hero-search input[type="text"]::placeholder {
  color: #9aa5b1;
  opacity: 1;
  font-weight: 500;
}

.hero-search__divider {
  width: 1px;
  align-self: stretch;
  margin: 10px 0;
  background: #e4e7eb;
  flex-shrink: 0;
}

.hero-search__clear {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border: 0;
  border-radius: 50%;
  background: #eceff3;
  color: #1f2933;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-search__clear[hidden] {
  display: none !important;
}

.hero-search__clear:hover {
  background: #d9e2ec;
}

.hero-search__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--brand-navy, #001b44);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 27, 68, 0.2);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search__submit-btn:hover {
  background: #002d70;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 27, 68, 0.3);
}

.hero-footer .all-user .happy-user-count {
  background: var(--brand-yellow, #f5f50a) !important;
}

.hero-footer .all-user .happy-user-count .user-count {
  color: #0f1720 !important;
  font-weight: 800;
}

.hero-search__placeholder-short {
  display: none;
}

.hero-search__placeholder-full {
  display: inline;
}

/* Tablet / mobile: stacked card — no text clipping */
@media (max-width: 767.98px) {
  .hero-search-wrap {
    width: 100%;
    margin-top: 18px;
  }

  .hero-search {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .hero-search__section {
    padding: 0;
    border-bottom: 1px solid #eceff3;
    padding-bottom: 10px;
    width: 100% !important;
  }

  .hero-search__section--when {
    border-bottom: none;
    padding-bottom: 0;
  }

  .hero-search__divider,
  .hero-search__clear {
    display: none !important;
  }

  .hero-search__submit-btn {
    width: 100%;
    height: 46px;
    margin-top: 4px;
  }

  .hero-search__label {
    font-size: 13px;
  }

  .hero-search__input,
  .hero-search input[type="text"] {
    font-size: 14px;
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .hero-search {
    padding: 12px;
  }
}

/* Custom Flatpickr Teal Styling overrides */
.flatpickr-calendar {
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 27, 68, 0.12) !important;
  border: 1px solid rgba(15, 23, 32, 0.08) !important;
  font-family: inherit !important;
  padding: 8px !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.prevMonthDay.selected, 
.flatpickr-day.nextMonthDay.selected, 
.flatpickr-day.prevMonthDay.startRange, 
.flatpickr-day.nextMonthDay.startRange, 
.flatpickr-day.prevMonthDay.endRange, 
.flatpickr-day.nextMonthDay.endRange {
  background: var(--brand-teal, #00afa9) !important;
  border-color: var(--brand-teal, #00afa9) !important;
  color: #fff !important;
}

.flatpickr-day.inRange {
  background: rgba(0, 175, 169, 0.08) !important;
  box-shadow: -5px 0 0 rgba(0, 175, 169, 0.08), 5px 0 0 rgba(0, 175, 169, 0.08) !important;
}

.flatpickr-day.today {
  border-color: var(--brand-teal, #00afa9) !important;
}

.flatpickr-day.today:hover {
  background: var(--brand-teal, #00afa9) !important;
  color: #fff !important;
}

.flatpickr-day:hover {
  background: rgba(0, 175, 169, 0.12) !important;
  border-color: transparent !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg, 
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--brand-teal, #00afa9) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: var(--brand-teal, #00afa9) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: var(--brand-teal, #00afa9) !important;
}

/* Center Align Hero Banner Contents */
.hero-with-search .hero-caption-three {
  max-width: 720px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.hero-with-search .hero-footer {
  justify-content: center !important;
  margin-top: 16px !important;
  margin-bottom: 24px !important;
}

.hero-with-search .hero-search-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}
