/* ==========================================================================
   Travel Insight - 2026 redesign layer
   Ink navy + cool off-white, burnt-orange highlight, teal links.
   Bricolage Grotesque headings, Manrope body. Loaded after every other
   stylesheet so it can restyle shared components without touching them.
   ========================================================================== */

:root {
  --highlight: #c2551f;
  --highlight-text: #9a3f12;
  --highlight-subtle: #fdf1ea;
}

[data-theme="dark"] {
  --highlight: #e8743b;
  --highlight-text: #f4a27a;
  --highlight-subtle: rgba(232, 116, 59, 0.14);
}

h1, h2, h3 {
  letter-spacing: -0.025em;
}

/* ---------- Buttons: solid fills, pill shape, no gradients ---------- */
.btn {
  border-radius: var(--radius-full);
  font-weight: 700;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-primary-hover);
  box-shadow: none;
}

.btn-secondary {
  background-color: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--bg-tertiary);
  border-color: var(--text-muted);
}

.btn-sm,
.btn-xs {
  border-radius: var(--radius-full) !important;
}

/* ---------- Header ---------- */
.top-header {
  background-color: var(--bg-glass);
}

.brand-logo {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-logo svg {
  color: var(--text-primary);
  filter: none;
}

.header-nav-tabs {
  background: transparent;
  border: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-tab {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  color: var(--text-secondary);
}

.nav-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  text-decoration: none;
}

[data-theme="dark"] .nav-tab:hover {
  background: var(--bg-tertiary);
}

.nav-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: none;
  font-weight: 700;
}

.nav-icon {
  flex-shrink: 0;
}

.icon-btn {
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
}

.unit-switcher {
  border-radius: var(--radius-full) !important;
}

.unit-switcher .unit-btn {
  border-radius: var(--radius-full) !important;
}

@media (max-width: 768px) {
  .header-nav-tabs {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    padding: 4px;
  }
}

/* ---------- Homepage hero ---------- */
.input-page-view {
  min-height: 0;
  display: block;
  padding: 4.5rem 0 2.5rem;
}

.hero-glow-backdrop {
  display: none;
}

.input-hero-content {
  max-width: none;
  text-align: left;
}

.hero-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.5rem 3rem;
}

.hero-intro-title {
  flex: 1 1 520px;
  min-width: 0;
}

.hero-tagline-badge {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.hero-main-title {
  font-size: clamp(2.75rem, 6.4vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
}

.gradient-text,
.hero-main-title span.gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--highlight);
}

.hero-sub-description {
  flex: 1 1 320px;
  max-width: 440px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Search card: the form fields sit in one white bar; quick ideas, recent
   searches and the planner band flow below it on the page background */
.search-card-container {
  margin-top: 3rem;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.search-card-container .search-form-layout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--shadow-glow);
}

.search-form-layout {
  gap: 0.5rem;
}

.search-row-destination-country,
.search-row-secondary {
  gap: 0.5rem;
}

.search-row-destination-country .form-group,
.search-row-secondary .date-window-form-group {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin: 0;
}

.search-card-container .form-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.search-card-container .form-input,
.search-card-container .country-select {
  background-color: var(--bg-secondary);
}

.search-btn-explore {
  height: 100%;
  min-height: 64px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
}

.search-button-wrapper {
  align-items: stretch;
}

/* Quick ideas */
.quick-start-section {
  margin-top: 1.25rem;
  gap: 0.5rem;
}

.quick-chip {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.quick-chip:hover {
  transform: none;
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.quick-chip.inspire-btn {
  background: var(--highlight-subtle);
  border: 1px dashed var(--highlight);
  color: var(--highlight-text);
}

.quick-chip.inspire-btn:hover {
  background: var(--highlight-subtle);
  border-style: solid;
  color: var(--highlight-text);
}

.chip-icon {
  flex-shrink: 0;
}

/* Feature cards ("One search, four answers") */
.home-section {
  margin-top: 4.5rem;
}

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.home-section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  margin: 0;
}

.home-section-sub {
  margin: 0;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon--sun { background: var(--highlight-subtle); color: var(--highlight-text); }
.feature-icon--news { background: var(--accent-teal-subtle); color: var(--accent-text); }
.feature-icon--pin { background: rgba(44, 74, 122, 0.1); color: #2c4a7a; }
.feature-icon--alt { background: rgba(91, 58, 130, 0.1); color: #5b3a82; }

[data-theme="dark"] .feature-icon--pin { background: rgba(143, 176, 230, 0.14); color: #a9c1ea; }
[data-theme="dark"] .feature-icon--alt { background: rgba(190, 160, 230, 0.14); color: #cdb6ec; }

/* Planner promo: dark band */
.planner-shortcut-card {
  margin-top: 4.5rem;
  padding: 3rem;
  background: #0e1a2b;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: none;
  flex-wrap: wrap;
  gap: 2rem;
}

[data-theme="dark"] .planner-shortcut-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.planner-shortcut-card:hover {
  transform: none;
  box-shadow: none;
}

.planner-shortcut-content {
  flex: 1 1 420px;
  gap: 0.75rem;
}

.planner-shortcut-badge {
  background: none;
  padding: 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #f4a27a;
}

.planner-shortcut-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: #ffffff;
}

.planner-shortcut-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #c9d3dd;
  max-width: 560px;
}

.planner-shortcut-btn,
.planner-shortcut-btn:hover {
  background: #ffffff;
  color: #0e1a2b !important;
  border-radius: var(--radius-full);
  padding: 0 1.75rem;
  min-height: 56px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: none;
  transform: none;
}

.planner-shortcut-btn:hover {
  background: #e9edeb;
}

/* Recent searches */
.recent-searches-box {
  border-radius: var(--radius-lg);
}

/* ---------- Footer ---------- */
.app-footer {
  background-color: var(--bg-tertiary);
}

.footer-guides {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-guides-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-guides-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-guides-list .footer-seo-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  background: none;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
}

.footer-guides-list .footer-seo-link:hover {
  background: none;
  color: var(--accent-text);
}

.footer-links a {
  font-weight: 600;
}

/* ---------- Cards & sections on the inner pages ---------- */
.card,
.section-card {
  border-radius: var(--radius-lg);
}

@media (max-width: 680px) {
  .input-page-view {
    padding: 2rem 0 1.5rem;
  }

  .hero-main-title {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }

  .hero-sub-description {
    font-size: 1rem;
  }

  .search-card-container {
    margin-top: 1.75rem;
  }

  .search-card-container .search-form-layout {
    padding: 0.5rem;
    border-radius: var(--radius-lg);
  }

  .planner-shortcut-card {
    margin-top: 3rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
  }

  .home-section {
    margin-top: 3rem;
  }

  .planner-shortcut-content {
    flex: 0 0 auto;
  }
}

/* No ambient glow washes anywhere */
.hero-glow-backdrop,
.mustdo-hero-glow,
.mustdo-welcome-glow,
.legal-hero-glow {
  display: none !important;
}

/* Line icons that replaced emoji */
.ui-icon {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

/* ---------- Inner page heroes: same left-aligned pattern as the homepage ---------- */
:root body .planner-hero,
:root body .ti-hero,
:root body .mustdo-hero-wrapper {
  text-align: left;
  padding: 3.5rem 0 1.5rem;
}

:root body .mustdo-hero-inner {
  max-width: none;
  margin: 0;
}

:root body .planner-hero-tagline,
:root body .ti-eyebrow-pill,
:root body .mustdo-hero-badge {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 1.1rem;
  border-radius: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

:root body .planner-hero-title,
:root body .ti-hero-title,
:root body .mustdo-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  max-width: 16ch;
  margin: 0 0 1.25rem;
}

:root body .ti-hero-compact .ti-hero-title {
  max-width: none;
}

:root body .planner-hero-desc,
:root body .ti-hero-sub,
:root body .mustdo-hero-desc {
  margin: 0 0 2rem;
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Search cards: full container width, white, soft shadow */
:root body .route-search-card,
:root body .ti-panel {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: var(--bg-secondary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glow);
}

:root body .mustdo-search-bar-wrap {
  justify-content: flex-start;
  max-width: none;
  margin: 0 0 1.25rem;
}

:root body .mustdo-search-box,
:root body .mustdo-country-box {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  height: 60px;
}

:root body .mustdo-chips-row {
  justify-content: flex-start;
}

/* Chips across the inner pages match the homepage chips */
:root body .quick-chip-btn,
:root body .mustdo-quick-chip,
:root body .ti-chip {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transform: none;
}

:root body .quick-chip-btn:hover,
:root body .mustdo-quick-chip:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--bg-secondary);
  transform: none;
  text-decoration: none;
}

:root body .ti-chip:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg-primary);
}

/* Mode tabs (trip planner) */
:root body .ti-mode-tabs {
  background: var(--bg-tertiary);
}

:root body .ti-mode-tab.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: none;
}

/* Callouts: no left-border stripe */
.legal-callout,
.disclosure-box {
  border-left: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md);
}

@media (max-width: 680px) {
  :root body .planner-hero,
  :root body .ti-hero,
  :root body .mustdo-hero-wrapper {
    padding: 2rem 0 1rem;
  }

  :root body .planner-hero-title,
  :root body .ti-hero-title,
  :root body .mustdo-hero-title {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
  }
}

/* Must-do welcome panel: same feature cards as the homepage */
:root body .mustdo-welcome-panel {
  max-width: none;
  margin: 0;
  padding: 1rem 0 0;
}

:root body .mustdo-welcome-card {
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  box-shadow: none;
}

:root body .welcome-pill {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

:root body .mustdo-welcome-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  margin: 0 0 0.5rem;
}

:root body .mustdo-welcome-card > p {
  margin: 0 0 1.5rem;
  max-width: 620px;
}

:root body .mustdo-welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

:root body .mustdo-feature-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
}

:root body .mustdo-feature-box .feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 0.85rem;
  background: var(--accent-teal-subtle);
  color: var(--accent-text);
}

:root body .mustdo-feature-box:nth-child(2) .feature-icon {
  background: var(--highlight-subtle);
  color: var(--highlight-text);
}

:root body .mustdo-feature-box h4 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

/* Results sections: calmer section headings */
.section-title-wrap h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.15;
}

/* QA: readable badges and photo overlays */
.mustdo-badge-accent,
[data-theme="dark"] .mustdo-badge-accent {
  background: var(--highlight-subtle);
  color: var(--highlight-text);
  border-color: transparent;
}

/* White text over the destination photo stays readable while the photo
   loads, or if it never does */
.hero-media-wrapper {
  background-color: #0e1a2b;
}

@media print {
  .hero-media-wrapper {
    background-color: transparent;
  }
}

/* Must-do results header: badge row above the heading, not squeezed beside it */
.mustdo-header-row .section-title-wrap {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Planner: a missing fare is not good news, so it isn't shown in green */
.estimate-row-total strong.estimate-missing {
  color: var(--text-muted);
  font-weight: 600;
}

/* ---- Homepage usefulness pass ------------------------------------------ */

/* Destination first; country is an optional filter */
.search-row-destination-country {
  grid-template-columns: 1fr 240px;
}

.optional-tag {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.country-filter-toggle {
  display: none;
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 768px) {
  .search-row-destination-country {
    grid-template-columns: 1fr;
  }
  .country-filter-toggle {
    display: inline-block;
  }
  .search-form-layout:not(.show-country) .country-form-group {
    display: none;
  }
}

/* Explore stays a normal button until pressed */
.search-btn-explore.is-incomplete {
  opacity: 0.92;
}

/* Returning visitors */
.continue-trip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.continue-trip[hidden] {
  display: none;
}

.continue-trip strong {
  color: var(--text-primary);
}

/* Weather idea chips: what the score means */
.quick-chip .chip-weather {
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* Feature cards open a real example */
a.feature-card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

a.feature-card-link:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

a.feature-card-link p {
  color: var(--text-secondary);
}

.feature-example {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-text);
}

/* Where to go next */
.home-section-sub {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.season-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.season-guide-group {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
}

.season-guide-group h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.season-guide-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.season-guide-group li + li {
  border-top: 1px solid var(--border-subtle);
}

.season-guide-group a {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.season-guide-group a span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.season-guide-group a:hover strong {
  color: var(--accent-text);
}

/* Phones: less hero, so the form and ideas come sooner */
@media (max-width: 640px) {
  .hero-sub-description {
    display: none;
  }
  .hero-tagline-badge {
    margin-bottom: 0.4rem;
  }
  .search-card-container {
    margin-top: 1.1rem;
  }
}

.season-guide-group a,
.season-guide-group a strong,
.season-guide-group a span {
  text-decoration: none;
}

/* Where to go next: the place name is the link; the weather beside it isn't
   underlined (the site-wide "main li a" rule would underline the whole row) */
#seasonGuidesList a { text-decoration: none; }
#seasonGuidesList a strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#seasonGuidesList a:hover strong { text-decoration-thickness: 2px; }

/* Less empty space between the last section and the footer */
.input-page-view { padding-bottom: 0.5rem; }
.planner-shortcut-card { margin-bottom: 1.5rem; }

/* Phones: start and end dates side by side, a smaller heading, so the
   Explore button and ideas come into view sooner */
@media (max-width: 640px) {
  .date-range-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .date-range-fields .form-input.date-field {
    padding-left: 0.6rem;
    font-size: 0.85rem;
  }
  .date-range-fields .input-icon { display: none; }
  .hero-main-title, .input-hero-title {
    font-size: 2rem;
    line-height: 1.08;
  }
}
