/* Non-city page CSS extracted from styles.css in v1634. Loaded only on non-city pages. */
/* Top destinations tabs (homepage) */
.topdest-tabs{ display:flex; gap:10px; flex-wrap:wrap; margin: 10px 0 2px; }
.chip{
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.03);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 650;
  cursor: pointer;
}
.chip.is-active{
  border-color: color-mix(in oklab, var(--accent) 55%, var(--border));
  background: color-mix(in oklab, var(--accent) 18%, rgba(0,0,0,0.03));
}
html[data-theme="dark"] .chip{ background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.10); }
html[data-theme="dark"] .chip.is-active{ background: color-mix(in oklab, var(--accent) 22%, rgba(255,255,255,0.06)); }
/* Reuse header-search styling for compact in-page search (e.g., USA country page) */
.header-search--inline{ display:flex; min-width: 220px; max-width: 360px; }
.usa-search{ width: 100%; }
.usa-search__clear{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  background: color-mix(in oklab, var(--card) 60%, transparent);
  color: var(--text);
  line-height: 1;
}
.usa-search__clear:hover{ background: color-mix(in oklab, var(--card) 80%, transparent); }
.usa-search__clear:active{ transform: translateY(1px); }
.usa-search__status{ font-size: 13px; }

/* Compact results dropdown for USA search */
.usa-search__results{
  max-height: 360px;
  overflow: auto;
  padding: 10px;
}
@media (min-width: 720px){
  .usa-search__results{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* USA inline search should blend with pills (less white, more "glass") */
.header-search--inline .header-search__input{
  background: color-mix(in oklab, var(--card) 65%, transparent);
}
html[data-theme="dark"] .header-search--inline .header-search__input{
  background: rgba(255,255,255,0.06);
}
/* homepage Build Your Itinerary CTA wider + centered */
.hero .picker, .hero .picker-card, .build-cta, .itinerary-box{
  /*max-width: 760px;*/
  margin-left: auto;
  margin-right: auto;
}
/* Countries hub: tag chips should be centered and comfortably spaced */
[data-country-filters].chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 10px;
}
/* Country planner controls */
.country-planner{
  display:grid;
  gap: 12px;
  margin-top: 10px;
}
.section-box--planner-compact{
  padding: 16px 18px;
}
.section-head--planner-compact{
  margin-bottom: 8px;
}
.country-planner--compact{
  gap: 10px;
}
.country-planner__control{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(12px);
}
html[data-theme="light"] .country-planner__control{
  background: rgba(0,0,0,.02);
}
.country-planner__control--inline{
  display:grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  align-items:center;
  gap: 14px;
}
.country-planner__labelwrap{
  min-width: 0;
}
.country-planner__eyebrow{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .68;
  margin-bottom: 4px;
}
.country-planner__label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}
.country-planner__status{
  margin-top: 2px;
}
.country-planner__actions{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px){
  .country-planner__control--inline{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .country-planner__label{
    margin-bottom: 0;
  }
  .country-planner__actions{ grid-template-columns: 1fr; }
}

.country-sticky-planner{
  position: fixed;
  top: calc(var(--header-h, 64px) + 10px + env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .18s ease, transform .18s ease;
}
.country-sticky-planner.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.country-sticky-planner__inner{
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev, var(--card)) 88%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  backdrop-filter: blur(14px);
}
html[data-theme="light"] .country-sticky-planner__inner{
  background: rgba(255,255,255,.92);
}
.country-sticky-planner__titlewrap{ min-width: 0; }
.country-sticky-planner__eyebrow{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .68;
  margin-bottom: 3px;
}
.country-sticky-planner__title{
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.country-sticky-planner__controls{
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.country-sticky-planner__metric{
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 72px;
  white-space: nowrap;
}
.country-sticky-planner__metric strong{
  font-size: 18px;
  line-height: 1;
}
.country-sticky-planner__metric span{
  font-size: 12px;
  opacity: .72;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.country-sticky-planner__range{ width: 100%; }
@media (max-width: 900px){
  .country-sticky-planner__inner{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px){
  .country-sticky-planner{
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
  }
  .country-sticky-planner__inner{
    padding: 12px;
    border-radius: 16px;
  }
  .country-sticky-planner__title{
    white-space: normal;
  }
  .country-sticky-planner__controls{
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .country-sticky-planner__metric{
    min-width: 0;
  }
  .country-sticky-planner__controls .btn{
    width: 100%;
  }
}
.topdest-tabs .chip.is-active{
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}


/* Home picker: day stepper + numeric input */
.range-stepper--home{
  display:flex;
  align-items:center;
  gap:10px;
}
.range-stepper--home .range{
  flex:1;
}
/* Tighten vertical whitespace between USA hero actions and Top cities */
.usa-hero-actions{ margin-top: 8px !important; }
.hero--country + .section.section--tight{ padding-top: 10px !important; }
.section.section--tight{ padding-top: 14px; padding-bottom: 14px; }

/* USA inline search: wider + blends in */
.usa-search.header-search--inline{ max-width: 560px; flex: 1 1 420px; }
.usa-search.header-search--inline .header-search__input{ width: 100%; }

/* === v0818.1 Hotfix: USA spacing + states typography + 4-col desktop grid === */
/* Kill any lingering 5-col rules by forcing 4 columns at desktop. */
@media (min-width: 900px){
  .grid.grid--states{ grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (min-width: 1200px){
  .grid.grid--states{ grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* State names as h2: remove default margins and boost size. */
.grid--states .card.card--state .state-name{
  margin: 0 !important;
  font-size: 2.8rem !important;
  line-height: 1.02 !important;
}
@media (max-width: 899px){
  .grid--states .card.card--state .state-name{ font-size: 2.2rem !important; }
}
@media (max-width: 720px){
  .grid--states .card.card--state .state-name{ font-size: 1.8rem !important; }
}

/* USA Top cities section: remove the extra gap from hero -> section. */
.usa-top-cities{ padding-top: 0 !important; margin-top: 0 !important; }
.usa-top-cities > .container{ padding-top: 0 !important; margin-top: 0 !important; }
.hero--country{ padding-bottom: 0 !important; }
.usa-hero-actions{ margin-bottom: 8px !important; }

/* === v0817 overrides (last-wins) ===
   User feedback: state tiles still appear 5-per-row + 1:1.
   Force desktop to 4-per-row and kill any square sizing, regardless of earlier rules.
*/
@media (min-width: 900px){
  .grid.grid--states{ grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
.grid.grid--states .card--state,
.grid.grid--states .card.card--state{ aspect-ratio: auto !important; }

/* Tighten gap between hero actions and the next section */
.hero--country{ padding-bottom: 6px !important; }
.hero--country + .section.section--tight{ padding-top: 0px !important; }
.country-itin-daylist{display:grid;gap:10px;margin-top:6px}
.country-itin-day{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid var(--line,#e5e7eb);border-radius:14px;text-decoration:none;color:inherit;background:var(--card,#fff)}
.country-itin-day:hover{transform:translateY(-1px)}
.country-itin-day__label{font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#6b7280)}
.country-itin-day__main{font-size:1rem;font-weight:700}
.country-itin-day__meta{font-size:.92rem;color:var(--muted,#6b7280)}


.section-box--planner-compact-mini{
  padding: 12px 14px;
}
.section-head--planner-compact-mini{
  margin-bottom: 6px;
}
.country-planner--compact-mini{
  gap: 8px;
}
.country-planner__control--inline-mini{
  grid-template-columns: minmax(130px, 170px) minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
}
.country-planner--compact-mini .country-planner__eyebrow{
  margin-bottom: 2px;
}
.country-planner--compact-mini .country-planner__label{
  font-size: 14px;
}
.country-planner--compact-mini .country-planner__status{
  margin-top: 0;
}
.country-planner--compact-mini [data-country-plan-output]{
  margin-top: 2px;
}
@media (max-width: 720px){
  .country-planner__control--inline-mini{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .country-planner__control--inline-mini .btn{
    width: 100%;
  }
}
@media (max-width: 640px){
  .country-sticky-planner{
    bottom: calc(86px + env(safe-area-inset-bottom));
    z-index: 155;
  }
  .country-sticky-planner__inner{
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
}


.country-planner__eyebrow--inline{
  display:block;
  margin-bottom:2px;
}
.country-planner__label--large{
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 800;
  line-height: 1.1;
}
.country-sticky-planner__metric{
  display:flex;
  align-items:baseline;
  gap:6px;
  flex-wrap:wrap;
}
.country-sticky-planner__metric-label{
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .72rem;
  color: var(--muted);
}
.country-sticky-planner__metric strong{
  font-size: 1rem;
  line-height: 1;
}

/* v1241 tighten country hero spacing */
.hero--country{ padding-bottom: 0 !important; margin-bottom: 0 !important; }
.hero--country .container{ padding-bottom: 0 !important; }
.hero--country .chips{ margin-bottom: 0 !important; }
.hero--country .chips:last-child,
.hero--country .pillrow:last-child,
.hero--country .container > *:last-child{ margin-bottom: 0 !important; }
.hero--country + .section,
.hero--country + .section.section--tight,
.hero--country + .section.section--flush-top,
.hero--country + .section.section--tight.section--flush-top{ padding-top: 0 !important; margin-top: 0 !important; }


/* v1242 country planner polish */
.country-plan-accordion .accordion-body{
  padding-top:18px;
}

.country-plan-accordion .accordion-body > *:first-child{
  margin-top:8px;
}

/* improve spacing between planner cards and accordion */
.country-plan-cards{
  margin-bottom:18px;
}

/* align generate button with slider */
.country-planner-row{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

/* strengthen trip length label hierarchy */
.country-trip-length{
  font-weight:700;
  letter-spacing:.02em;
}

.country-trip-length strong{
  font-size:1.2rem;
}


/* v1243 country accordion spacing + auto-open support */
.country-plan-accordion[open] .day__content,
.country-plan-accordion .accordion-body{
  padding-top: 22px !important;
}

.country-plan-accordion[open] .day__content > *:first-child,
.country-plan-accordion .accordion-body > *:first-child{
  margin-top: 6px;
}

.country-plan-cards{
  margin-top: 6px;
  margin-bottom: 20px;
}


/* Homepage render-path optimization: keep below-the-fold sections from painting early. */
body.home #top-destinations,
body.home #countries,
body.home #cities,
body.home .free-checklist,
body.home .tti-faq-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 820px;
}
