/**
 * Travel Search Form Widget — search-form.css
 *
 * BEM block prefix: tsf  (Travel Search Form)
 * Shortcode: [travel_search_form]
 *
 * Breakpoints:
 *   Desktop:  ≥ 1024 px  — single-row form
 *   Tablet:   768–1023 px — two-row form
 *   Mobile:   < 768 px   — stacked, collapsible when sticky
 */

/* =============================================================================
   0. Design Tokens
   ============================================================================= */

:root {
  --tsf-navy:            #0a2d6e;
  --tsf-navy-hover:      #0e3580;
  --tsf-orange:          #f5810e;
  --tsf-orange-dark:     #d96c00;
  --tsf-chip-selected:   #009bc2;
  --tsf-white:           #ffffff;
  --tsf-border:          #dde3ec;
  --tsf-label-color:     #62748E;
  --tsf-text:            #374151;
  --tsf-placeholder:     #9aa5b4;
  --tsf-field-hover:     #f5f7fa;
  --tsf-radius:          8px;
  --tsf-radius-lg:       12px;
  --tsf-shadow:          0 4px 24px rgba(10, 45, 110, 0.22);
  --tsf-z-sticky:        200;
  --tsf-transition:      0.18s ease;
}

/* =============================================================================
   1. Wrapper — handles sticky positioning
   ============================================================================= */
.tsf-wrapper {
  width: 100%;
  position: relative;
}
.tsf-wrapper--sticky-top{
  max-width: 1300px;
  margin: 0 auto 40px auto;
}

/* =============================================================================
   2. Container — dark navy card
   ============================================================================= */

.tsf-container {
  background: var(--tsf-navy);
  border-radius: var(--tsf-radius-lg);
  padding: 12px 16px 14px;
  box-shadow: var(--tsf-shadow);
}


/* =============================================================================
   3. Tabs
   ============================================================================= */

.tsf-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  align-items: center;
}

/* Collapse toggle — only shown when sticky is active */
.tsf-collapse-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: background var(--tsf-transition), color var(--tsf-transition);
}
.tsf-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.tsf-collapse-btn svg {
  display: block;
  transition: transform 0.2s ease;
}

/* Show collapse btn only when stuck */
.tsf-wrapper--sticky-top.is-stuck .tsf-collapse-btn {
  display: flex;
}

/* Sticky search button — visible only when stuck */
.tsf-sticky-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  background: var(--tsf-orange);
  
  border: none;
  cursor: pointer;
  color: var(--tsf-white);
  transition: background var(--tsf-transition);
  flex-shrink: 0;
  min-height: 36px;
}
.tsf-sticky-search-btn[type='button']{
  border-radius: 10px;
}
.tsf-sticky-search-btn img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}
.tsf-sticky-search-btn:hover,
.tsf-sticky-search-btn:focus-visible {
  background: var(--tsf-orange-dark);
  outline: none;
}
.tsf-wrapper--sticky-top.is-stuck .tsf-sticky-search-btn {
  display: flex;
}

/* Collapsed: chevron flips down, panels hidden, no bottom margin on tabs */
.tsf-wrapper--sticky-top.is-collapsed .tsf-collapse-btn svg {
  transform: rotate(180deg);
}
.tsf-wrapper--sticky-top.is-collapsed .tsf-tabs {
  margin-bottom: 0;
}
.tsf-wrapper--sticky-top.is-collapsed .tsf-panel {
  display: none !important;
}

.tsf-wrapper .tsf-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
  transition: background var(--tsf-transition), color var(--tsf-transition);
  font-family: inherit;
  margin: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-wrapper .tsf-tab:hover:not(.tsf-tab--active) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--tsf-white);
}

.tsf-wrapper .tsf-tab--active {
  background: var(--tsf-chip-selected);
  color: var(--tsf-white);
}

.tsf-tab__icon {
  flex-shrink: 0;
}

/* =============================================================================
   4. Panel
   ============================================================================= */

.tsf-panel {
  display: none;
}

.tsf-panel--active {
  display: block;
}

.tsf-coming-soon {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding: 16px 0 4px;
  margin: 0;
}

/* =============================================================================
   5. Form Row
   ============================================================================= */

.tsf-form-row {
  display: flex;
  align-items: stretch;
  background: var(--tsf-white);
  border-radius: var(--tsf-radius);
  overflow: hidden;
}

/* =============================================================================
   6. Individual fields
   ============================================================================= */

.tsf-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  flex: 1 1 0;
  min-width: 0;
  cursor: pointer;
  transition: background var(--tsf-transition);
  background: transparent;
}

.tsf-field:focus-within,
.tsf-field:hover {
  background: var(--tsf-field-hover);
}

.tsf-field__inner {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.tsf-field__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.065em;
  color: var(--tsf-label-color);
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 2px;
  pointer-events: none;
}

.tsf-field__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  color: var(--tsf-navy);
  pointer-events: none;
}

.tsf-field__icon img {
  width: 14px;
  height: 14px;
  display: block;
}

/* Text input (destination) */
.tsf-wrapper .tsf-field__input {
  background: transparent;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--tsf-text);
  font-family: inherit;
  width: 100%;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-wrapper .tsf-field__input::placeholder {
  color: var(--tsf-placeholder);
}

/* Button-style field value (airport / dates / travelers) */
.tsf-wrapper .tsf-field__value {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: var(--tsf-text);
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-width: 0;
  line-height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.tsf-travelers__rooms {
  font-size: 14px;
  color: var(--tsf-label-color);
}
.tsf-airport-display {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Date range: range text + duration badge inline */
.tsf-dates__value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tsf-dates__range {
  white-space: nowrap;
}

.tsf-dates__nights {
  font-size: 0.75rem;
  color: var(--tsf-label-color);
  white-space: nowrap;
}

/* Travelers: adults · rooms */
.tsf-travelers__sep {
  color: var(--tsf-label-color);
}

/* =============================================================================
   7. Vertical dividers between fields
   ============================================================================= */

.tsf-field-divider {
  width: 1px;
  background: var(--tsf-border);
  margin: 8px 0;
  flex-shrink: 0;
  align-self: stretch;
}

/* =============================================================================
   8. Search CTA button
   ============================================================================= */

.tsf-wrapper .tsf-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px 24px;
  background: var(--tsf-orange);
  color: var(--tsf-white);
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--tsf-transition);
  flex-shrink: 0;
  font-family: inherit;
  min-height: 52px;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-wrapper .tsf-search-btn:hover,
.tsf-wrapper .tsf-search-btn:focus-visible {
  background: var(--tsf-orange-dark);
  outline: none;
}

/* =============================================================================
   9. Duration chips
   ============================================================================= */

.tsf-duration-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tsf-duration-label {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 2px;
}

.tsf-wrapper .tsf-chip {
  padding: 5px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tsf-transition), border-color var(--tsf-transition), color var(--tsf-transition);
  font-family: inherit;
  line-height: 1.4;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-wrapper .tsf-chip:hover:not(.tsf-chip--active) {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--tsf-white);
}

.tsf-wrapper .tsf-chip--active {
  background: var(--tsf-chip-selected);
  border-color: var(--tsf-chip-selected);
  color: var(--tsf-white);
}

.tsf-wrapper .tsf-chip:disabled,
.tsf-wrapper .tsf-chip[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* =============================================================================
   10. Mobile summary bar (sticky collapsed state)
   ============================================================================= */

.tsf-mobile-summary {
  display: none; /* shown via JS when sticky + mobile */
  align-items: center;
  gap: 10px;
  background: var(--tsf-navy);
  padding: 10px 16px;
  border-radius: 0 0 var(--tsf-radius) var(--tsf-radius);
  cursor: pointer;
}

.tsf-mobile-summary__icon {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.tsf-mobile-summary__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tsf-wrapper .tsf-mobile-summary__expand-btn {
  background: var(--tsf-orange);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--tsf-white);
  transition: background var(--tsf-transition), transform var(--tsf-transition);
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-wrapper .tsf-mobile-summary__expand-btn:hover {
  background: var(--tsf-orange-dark);
}

/* Arrow rotates when form is expanded */
.tsf-wrapper--expanded .tsf-mobile-summary__expand-btn {
  transform: rotate(180deg);
}

/* =============================================================================
   11. Responsive — tablet (768–1023 px)
   ============================================================================= */

@media (max-width: 1023px) {
  .tsf-form-row {
    flex-wrap: wrap;
  }

  /* Destination: full width */
  .tsf-field--destination {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--tsf-border);
  }

  /* Airport + dates share row */
  .tsf-field--airport,
  .tsf-field--dates {
    flex: 1 1 calc(50% - 1px);
    border-bottom: 1px solid var(--tsf-border);
  }

  /* Travelers: full width */
  .tsf-field--travelers {
    flex: 1 1 100%;
  }

  /* Hide the vertical dividers — borders replace them */
  .tsf-field-divider {
    display: none;
  }

  /* CTA: full width row */
  .tsf-wrapper .tsf-search-btn {
    flex: 1 1 100%;
    min-height: 48px;
    font-size: 0.9375rem;
    border-radius: 0 0 var(--tsf-radius) var(--tsf-radius);
  }
}

/* =============================================================================
   12. Responsive — mobile (< 768 px)
   ============================================================================= */

@media (max-width: 767px) {
  .tsf-container {
    padding: 8px 12px 12px;
  }

  .tsf-form-row {
    flex-direction: column;
  }

  .tsf-field {
    padding: 11px 12px;
    flex: 1 1 auto;
  }

  /* Horizontal dividers between stacked fields */
  .tsf-field-divider {
    display: block;
    width: auto;
    height: 1px;
    margin: 0 12px;
  }

  /* Border overrides from tablet rule: reset */
  .tsf-field--destination,
  .tsf-field--airport,
  .tsf-field--dates,
  .tsf-field--travelers {
    flex: 1 1 auto;
    border-bottom: none;
  }

.tsf-duration-row {
    gap: 4px;
  }
  .tsf-wrapper .tsf-chip{
    padding: 5px 10px;
  }
}

/* =============================================================================
   13. Force-mobile modifier — applies mobile layout at any viewport width.
       Used via [travel_search_form force_mobile="1"] or the Gutenberg toggle.
   ============================================================================= */

.tsf-wrapper--force-mobile .tsf-container {
  padding: 8px 12px 12px;
}

.tsf-wrapper--force-mobile .tsf-form-row {
  flex-direction: column;
  flex-wrap: nowrap;
}

.tsf-wrapper--force-mobile .tsf-field {
  padding: 11px 12px;
  flex: 1 1 auto;
}

/* Override tablet rule that hides dividers */
.tsf-wrapper--force-mobile .tsf-field-divider {
  display: block;
  width: auto;
  height: 1px;
  margin: 0 12px;
}

/* Override tablet rule that adds border-bottom to some fields */
.tsf-wrapper--force-mobile .tsf-field--destination,
.tsf-wrapper--force-mobile .tsf-field--airport,
.tsf-wrapper--force-mobile .tsf-field--dates,
.tsf-wrapper--force-mobile .tsf-field--travelers {
  flex: 1 1 auto;
  border-bottom: none;
}

.tsf-wrapper.tsf-wrapper--force-mobile .tsf-search-btn {
  flex: 1 1 100%;
  min-height: 48px;
  font-size: 0.9375rem;
  border-radius: 0 0 var(--tsf-radius) var(--tsf-radius);
}

.tsf-wrapper--force-mobile .tsf-duration-row {
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════
   14. Airport Picker Modal
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Overlay + dialog shell ────────────────────────────────────────── */

.tsf-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsf-modal[hidden] {
  display: none;
}

.tsf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba( 0, 0, 0, .45 );
}

.tsf-modal__dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: min( 520px, 94vw );
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba( 0, 0, 0, .24 );
  overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────────── */

.tsf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #e8ecf2;
  flex-shrink: 0;
}

.tsf-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var( --tsf-navy, #0a2d6e );
}

.tsf-modal .tsf-modal__close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-modal__close-btn:hover {
  background: #f0f2f5;
  color: var( --tsf-navy, #0a2d6e );
}

/* ── Search bar ────────────────────────────────────────────────────── */

.tsf-modal__search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid #e8ecf2;
  flex-shrink: 0;
  color: #9ca3af;
}

.tsf-modal .tsf-modal__search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #111827;
  background: transparent;
  padding: 2px 0;
  margin: 0;
  height: auto;
  line-height: normal;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-modal__search-input::placeholder {
  color: #9ca3af;
}

/* ── Scrollable tree body ──────────────────────────────────────────── */

.tsf-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  overscroll-behavior: contain;
}

.tsf-apk__empty {
  padding: 24px 20px;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.tsf-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #e8ecf2;
  flex-shrink: 0;
}

.tsf-modal .tsf-modal__reset-btn {
  background: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;
  padding: 6px 0;
  margin: 0;
  text-decoration: underline;
  transition: color .15s;
  line-height: inherit;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-modal__reset-btn:hover {
  color: var( --tsf-navy, #0a2d6e );
}

.tsf-modal .tsf-modal__apply-btn {
  background: var( --tsf-orange, #f5810e );
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  line-height: 1;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-modal__apply-btn:hover {
  background: #d96f0c;
}

/* ═══════════════════════════════════════════════════════════════════════
   14. Airport Picker Tree ( .tsf-apk__ )
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Group wrapper ─────────────────────────────────────────────────── */

.tsf-apk__group {
  padding: 0;
}

/* ── Generic row ───────────────────────────────────────────────────── */

.tsf-apk__row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  user-select: none;
  min-height: 42px;
}

.tsf-apk__row--parent {
  background: #f8fafc;
}

.tsf-apk__row--region {
  background: #f0f4f8;
  padding-left: 36px;
}

.tsf-apk__row--leaf {
  padding-left: 52px;
}

/* ── Accordion toggle ──────────────────────────────────────────────── */

.tsf-modal .tsf-apk__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  border-radius: 4px;
  transition: background .15s;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-apk__toggle:hover {
  background: #e5e7eb;
}

.tsf-apk__chevron-icon {
  transition: transform .2s;
}

.tsf-modal .tsf-apk__toggle[aria-expanded="true"] .tsf-apk__chevron-icon {
  transform: rotate( 180deg );
}

/* ── Body (collapsible children) ───────────────────────────────────── */

.tsf-apk__body[hidden] {
  display: none;
}

/* ── Custom checkbox ───────────────────────────────────────────────── */

.tsf-apk__cb {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.tsf-apk__cb-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tsf-apk__cb-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  transition: border-color .15s, background .15s;
  flex-shrink: 0;
}

/* Checked state */
.tsf-apk__cb--checked .tsf-apk__cb-box {
  background: var( --tsf-orange, #f5810e );
  border-color: var( --tsf-orange, #f5810e );
}

.tsf-apk__cb--checked .tsf-apk__cb-box::after {
  content: '';
  display: block;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate( 45deg ) translate( -1px, -1px );
}

/* Indeterminate state */
.tsf-apk__cb--indeterminate .tsf-apk__cb-box {
  background: var( --tsf-orange, #f5810e );
  border-color: var( --tsf-orange, #f5810e );
}

.tsf-apk__cb--indeterminate .tsf-apk__cb-box::after {
  content: '';
  display: block;
  width: 10px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* Hover on unchecked */
.tsf-apk__cb:hover .tsf-apk__cb-box {
  border-color: var( --tsf-orange, #f5810e );
}

/* ── Labels ────────────────────────────────────────────────────────── */

.tsf-apk__row-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
  line-height: 1.3;
}

.tsf-apk__row-name--bold {
  font-weight: 700;
  color: var( --tsf-navy, #0a2d6e );
  font-size: 15px;
}

.tsf-apk__row-tag {
  font-size: 12px;
  color: #9ca3af;
  flex-shrink: 0;
}

/* ── Mobile: bottom sheet ──────────────────────────────────────────── */

@media ( max-width: 600px ) {
  .tsf-modal {
    align-items: flex-end;
  }

  .tsf-modal__dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .tsf-modal__overlay {
    backdrop-filter: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   15. Travelers Modal ( .tsf-trv__ )
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Room block ────────────────────────────────────────────────────── */

.tsf-trv__room {
  padding: 0 20px;
}

.tsf-trv__room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 6px;
}

.tsf-trv__room-title {
  font-size: 15px;
  font-weight: 700;
  color: var( --tsf-navy, #0a2d6e );
}

.tsf-modal .tsf-trv__remove-room {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px 6px;
  margin: 0;
  border-radius: 4px;
  transition: background .15s, color .15s;
  line-height: 1;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-trv__remove-room:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.tsf-trv__room-divider {
  height: 1px;
  background: #e8ecf2;
  margin: 14px 0 0;
}

.tsf-trv__notice {
  font-size: 12px;
  color: var(--tsf-text);
  height: min-content;
  padding: 8px 16px;
  border-width: 1px 1px 1px 8px;
  border-style: solid;
  border-radius: 5px;
  cursor: default;
  border-color: rgb(246, 173, 44);
  margin: 8px 0;
}

/* ── Stepper row ───────────────────────────────────────────────────── */

.tsf-trv__stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.tsf-trv__stepper-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tsf-trv__stepper-label {
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}

.tsf-trv__stepper-sublabel {
  font-size: 12px;
  color: #9ca3af;
}

.tsf-trv__stepper {
  display: flex;
  align-items: center;
  gap: 0;
}

.tsf-modal .tsf-trv__step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  line-height: 1;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-trv__step-btn:hover:not( :disabled ) {
  border-color: var( --tsf-orange, #f5810e );
  color: var( --tsf-orange, #f5810e );
}

.tsf-modal .tsf-trv__step-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.tsf-trv__step-val {
  min-width: 36px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* ── Child ages ────────────────────────────────────────────────────── */

.tsf-trv__ages-wrap {
  padding: 10px 14px 12px;
  margin-bottom: 4px;
  border-width: 1px 1px 1px 1px;
  border-style: solid;
  border-radius: 5px;
  cursor: default;
  border-color: var(--tsf-navy);
}

.tsf-trv__ages-header {
  display: block;
  font-size: 16px;
  color: var(--tsf-text);
  margin-bottom: 8px;
}

.tsf-trv__age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}

.tsf-trv__age-label {
  font-size: 13px;
  color: #374151;
  flex: 1;
}

.tsf-modal .tsf-trv__age-select {
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 8px;
  padding-right: 8px;
  margin: 0;
  height: auto;
  font-size: 13px;
  color: #111827;
  background-color: #fff;
  background-image: none;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
  min-width: 110px;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-trv__age-select:focus {
  border-color: var( --tsf-orange, #f5810e );
}

/* ── Add room row ──────────────────────────────────────────────────── */

.tsf-trv__add-room-row {
  padding: 12px 20px;
  border-top: 1px solid #e8ecf2;
}

.tsf-modal .tsf-trv__add-room {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  color: var( --tsf-navy, #0a2d6e );
  cursor: pointer;
  padding: 6px 0;
  margin: 0;
  transition: color .15s;
  line-height: inherit;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-modal .tsf-trv__add-room:hover:not( :disabled ) {
  color: var( --tsf-orange, #f5810e );
}

.tsf-modal .tsf-trv__add-room:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════════
   16. Destination Popup ( .tsf-dp__ )
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Overlay + panel ───────────────────────────────────────────────── */

.tsf-dp {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tsf-dp[hidden] {
  display: none;
}

.tsf-dp__overlay {
  position: absolute;
  inset: 0;
  background: rgba( 0, 0, 0, .45 );
}

.tsf-dp__panel {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  width: min( 520px, 94vw );
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba( 0, 0, 0, .24 );
  overflow: hidden;
}

/* ── Mobile header ─────────────────────────────────────────────────── */

.tsf-dp__mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f8f8f8;
  border-bottom: 1px solid #e8ecf2;
}

@media ( max-width: 600px ) {
  .tsf-dp__mobile-header {
    flex-shrink: 0;
  }

  .tsf-dp__mobile-title {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.375rem;
    color: #111827;
  }

  .tsf-dp .tsf-dp__mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #374151;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: background .15s;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
  }

  .tsf-dp .tsf-dp__mobile-close:hover {
    background: #e5e7eb;
  }
}

/* ── Search bar ────────────────────────────────────────────────────── */

.tsf-dp__search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8ecf2;
  flex-shrink: 0;
}

.tsf-dp .tsf-dp__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #111827;
  background: transparent;
  padding: 0;
  margin: 0;
  height: auto;
  line-height: normal;
  box-shadow: none;
  font-family: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-dp .tsf-dp__input::placeholder {
  color: #9ca3af;
}

.tsf-dp .tsf-dp__clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: color .15s, background .15s;
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-dp .tsf-dp__clear-btn:hover {
  color: #374151;
  background: #f0f2f5;
}

.tsf-dp .tsf-dp__clear-btn[hidden] {
  display: none;
}

/* ── Scrollable results ────────────────────────────────────────────── */

.tsf-dp__results {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 0;
}

/* ── Group label ───────────────────────────────────────────────────── */

.tsf-dp__group-label {
  display: block;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var( --tsf-label-color, #62748e );
}

/* ── Result item ───────────────────────────────────────────────────── */

.tsf-dp .tsf-dp__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 16px;
  margin: 0;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: left;
  transition: background .12s;
  font-family: inherit;
  line-height: inherit;
  color: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.tsf-dp .tsf-dp__item:hover,
.tsf-dp .tsf-dp__item--focused {
  background: #f5f7fa;
}

.tsf-dp__item-icon {
  flex-shrink: 0;
  color: var( --tsf-label-color, #62748e );
  display: flex;
  align-items: center;
}

.tsf-dp__item-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tsf-dp__item-name {
  font-size: 14px;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsf-dp__item-name mark {
  background: none;
  color: inherit;
  font-weight: 700;
}

.tsf-dp__item-sub {
  font-size: 12px;
  color: var( --tsf-label-color, #62748e );
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsf-dp__item--hotel .tsf-dp__item-text {
  padding-left: 28px; /* align text with icon items */
}

.tsf-dp__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 5px;
  color: var( --tsf-orange, #f5810e );
  vertical-align: middle;
}

/* ── No-results alert ──────────────────────────────────────────────── */

.tsf-dp__no-results {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin: 8px 12px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.tsf-dp__no-results[hidden] {
  display: none;
}

.tsf-dp__no-results-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.tsf-dp__no-results-text {
  font-size: 14px;
  line-height: 1.45;
}

/* ── Mobile: bottom sheet ──────────────────────────────────────────── */

@media ( max-width: 600px ) {
  .tsf-dp__panel {
    width: 94vw;
    max-height: 75vh;
  }
}

/* =============================================================================
   12. Date Picker Calendar  (.tsf-cal)
   ============================================================================= */

/* Dialog (reuses tsf-modal overlay pattern) */
.tsf-cal__dialog {
  width: min(780px, 96vw);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Body */
.tsf-cal__body {
  padding: 20px 20px 4px;
  overflow-y: auto;
}

/* Two months side by side */
.tsf-cal__months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Single month column */
.tsf-cal__month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 2px;
}

.tsf-cal__month-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tsf-navy);
  text-align: center;
  flex: 1;
}

/* Nav arrows */
.tsf-modal .tsf-cal__nav {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  color: var(--tsf-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--tsf-transition);
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.tsf-modal .tsf-cal__nav:hover:not(:disabled) { background: var(--tsf-field-hover); }
.tsf-modal .tsf-cal__nav:disabled { color: var(--tsf-border); cursor: default; }
.tsf-cal__nav-ph { width: 24px; display: inline-block; flex-shrink: 0; }

/* Weekday row */
.tsf-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.tsf-cal__wd {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--tsf-label-color);
  padding: 4px 0;
}

/* Day grid */
.tsf-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 42px);
  gap: 10px 0;
}

/* Individual day button */
.tsf-cal__day {
  position: relative;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--tsf-text);
  padding: 0;
  height: 42px;
  text-align: center;
  line-height: 38px;
  border-radius: 0;
  transition: background var(--tsf-transition), color var(--tsf-transition), border-color var(--tsf-transition);
  z-index: 0;
}
.tsf-modal .tsf-cal__nav{
  border-radius: 50%;
  padding: 8px;
  border: 1px solid rgb(200, 200, 200);
}
.tsf-cal__day:hover:not(:disabled) {
  border-radius: 5px;
  border: 2px solid var(--tsf-chip-selected);
  z-index: 1;
}
.tsf-cal__day:disabled {
  color: var(--tsf-border);
  cursor: default;
}
.tsf-cal__day--weekend {
  color: var(--tsf-label-color);
}
.tsf-cal__day--today {
  font-weight: 700;
}

/* Range highlight — full strip, no rounding */
.tsf-cal__day--in-range {
  background: rgba(0, 155, 194, 0.14);
  border-radius: 0;
}

/* Start / end: transparent bg, circle via ::after, half-strip via ::before */
.tsf-cal__day--start,
.tsf-cal__day--end {
  background: transparent;
  border-radius: 0;
  color: #fff;
  z-index: 0;
}

/* Right-half strip from start into range */
.tsf-cal__day--start::before {
  content: '';
  position: absolute;
  inset: -2px -2px -2px 50%;
  background: rgba(0, 155, 194, 0.14);
  z-index: -1;
}
/* Left-half strip from range into end */
.tsf-cal__day--end::before {
  content: '';
  position: absolute;
  inset: -2px 50% -2px -2px;
  background: rgba(0, 155, 194, 0.14);
  z-index: -1;
}
/* Single-day selection: no strip */
.tsf-cal__day--start.tsf-cal__day--end::before {
  display: none;
}

/* Blue circle behind the day number */
.tsf-cal__day--start::after,
.tsf-cal__day--end::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--tsf-chip-selected);
  border-radius: 5px;
  z-index: -1;
}

/* Footer */
.tsf-cal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--tsf-border);
  gap: 12px;
}

.tsf-cal__selection {
  font-size: 13px;
  color: var(--tsf-label-color);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Mobile: single column ─────────────────────────────────────────── */

@media ( max-width: 600px ) {
  .tsf-cal__dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .tsf-cal__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 14px 4px;
  }

  .tsf-cal__months {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tsf-cal__footer {
    padding: 10px 14px 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .tsf-cal__selection {
    text-align: center;
    white-space: normal;
  }
}

/* =============================================================================
   15. Sticky wrapper variants
   Activated by adding tsf-shortcode-wrapper--sticky-{variant} to the wrapper.

   Variant: top
     Sticks the form to the top of the viewport.
     Offsets for the WordPress admin bar (32px desktop / 46px mobile ≤ 782px)
     are applied automatically via body.admin-bar selectors.
   ============================================================================= */

/* JS sets .is-stuck when the element scrolls past the viewport top.
   top is written inline by JS to account for the WP admin bar. */
.tsf-wrapper--sticky-top.is-stuck {
  max-width: unset;
  
  position: fixed;
  left: 0;
  right: 0;
  z-index: var(--tsf-z-sticky);
  margin: 0;
}
.tsf-wrapper--sticky-top.is-stuck .tsf-container{
  border-radius: unset;
}

