/* ============================================================
   TOURIST INDEX — Design System
   Inspired by nomads.com: clean, modern, mobile-first
   ============================================================ */

/* --- Variables --- */
:root {
  --green: #2BDE73;
  --green-dark: #1db85d;
  --green-soft: #eafaf1;
  --red: #FF4742;
  --red-dark: #e03c37;
  --red-soft: #fff0ef;
  --blue: #00ACED;

  --ink: #1c1c1c;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fbfaf8;
  --white: #ffffff;

  --surface: rgba(255, 255, 255, 0.94);
  --surface-alt: rgba(251, 250, 248, 0.92);
  --panel-surface: rgba(255, 255, 255, 0.96);

  --dark: #0c1a0e;
  --dark-2: #152318;
  --night: #14213d;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.11), 0 3px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.14), 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.05);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --font-heading: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --nav-h: 64px;

  /* Legacy compat */
  --tiffany: var(--green);
  --tiffany-dark: var(--green-dark);
  --tiffany-soft: var(--green-soft);
  --teal: var(--green);
  --teal-dark: var(--green-dark);
  --coral: var(--red);
  --sky: #dbeafe;
  --glow-border: rgba(43, 222, 115, 0.38);
  --glow-shadow: 0 0 0 1px rgba(43, 222, 115, 0.09), 0 0 18px rgba(43, 222, 115, 0.11);
  --site-pattern: none;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

a { color: inherit; text-decoration: none; }

p { margin-top: 0; }

h1, h2, h3, h4 {
  margin-top: 0;
  font-family: var(--font-heading);
  line-height: 1.12;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Button System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-cta {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 18px rgba(255, 71, 66, 0.32);
}

.btn-cta:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 6px 24px rgba(255, 71, 66, 0.4);
}

.btn-primary {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 4px 18px rgba(43, 222, 115, 0.28);
}

.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 6px 24px rgba(43, 222, 115, 0.38);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: #d1d5db;
}

.btn-ghost-white {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-lg {
  min-height: 48px;
  padding: 0 26px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-btn:hover { color: #fff; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 280ms ease, box-shadow 280ms ease, backdrop-filter 280ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  transition: opacity 200ms;
}

.site-logo:hover { opacity: 0.85; }

.site-header.is-scrolled .site-logo { color: var(--ink); }

.site-logo-globe {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.site-logo-text { display: grid; gap: 1px; }

.site-logo-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.72;
  line-height: 1;
  color: var(--green);
}

.site-header.is-scrolled .site-logo-text span { color: var(--green-dark); }

/* Nav search */
.nav-search-form {
  flex: 1;
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.nav-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: color 280ms;
}

.site-header.is-scrolled .nav-search-icon { color: var(--muted); }

.nav-search-form input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px 0 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: none;
  transition: background 280ms, border-color 280ms, color 280ms, box-shadow 280ms;
}

.nav-search-form input::placeholder { color: rgba(255, 255, 255, 0.58); }

.nav-search-form input:focus {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.site-header.is-scrolled .nav-search-form input {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}

.site-header.is-scrolled .nav-search-form input::placeholder { color: var(--muted); }

.site-header.is-scrolled .nav-search-form input:focus {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.16);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.site-header.is-scrolled .nav-actions .btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

.site-header.is-scrolled .nav-actions .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 200ms, opacity 200ms;
}

.site-header.is-scrolled .nav-hamburger {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line);
}

.site-header.is-scrolled .nav-hamburger span { background: var(--ink); }

.site-header.mobile-nav-open {
  height: auto;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 0 var(--line), var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.mobile-nav-open .site-logo { color: var(--ink); }

.site-header.mobile-nav-open .site-logo-text span { color: var(--green-dark); }

.site-header.mobile-nav-open .nav-hamburger {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--line);
}

.site-header.mobile-nav-open .nav-hamburger span { background: var(--ink); }

.site-header.mobile-nav-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.mobile-nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }

.site-header.mobile-nav-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
  padding-top: var(--nav-h);
}

.hero-media,
.hero-video,
.newsletter-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Double-buffer crossfade */
.hero-buf-a,
.hero-buf-b,
.nl-buf-a,
.nl-buf-b {
  transition: opacity 700ms ease;
  will-change: opacity;
}
.hero-buf-b,
.nl-buf-b {
  opacity: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 26, 14, 0.92) 0%, rgba(12, 26, 14, 0.72) 48%, rgba(12, 26, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 26, 14, 0.4) 0%, rgba(12, 26, 14, 0.18) 60%, rgba(12, 26, 14, 0.72) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 96px;
}

/* Hero content */
.hero-content { color: #fff; }

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

h1 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-highlight {
  color: var(--green);
  position: relative;
}

.hero-sub {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Key points */
.key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.key-points article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.key-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  line-height: 1;
}

.key-text h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.key-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* Hero join card */
.hero-join-card {
  align-self: center;
}

.hero-join-card-inner {
  padding: 28px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.join-card-eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.join-card-title {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.18;
}

.join-benefits {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.join-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-2);
}

.benefit-check { flex-shrink: 0; font-size: 0.9rem; }

.join-card-btn { width: 100%; }

.join-card-login {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 36px 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 10px 24px;
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--line);
  flex-shrink: 0;
}

/* ============================================================
   EXPLORE BAND
   ============================================================ */
.explore-band {
  padding: 96px 0 80px;
  background: var(--bg);
  scroll-margin-top: var(--nav-h);
}

.section-heading { max-width: 680px; }

.section-heading h2 {
  margin: 0 0 4px;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.18;
}

.explore-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  text-align: center;
}

.explore-intro .section-heading { margin: 0 auto; }

.explore-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.explore-context {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  justify-self: start;
}

.explore-controls-right { justify-self: end; }

/* Persona tabs */
.persona-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 5px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.persona-tab {
  min-width: 84px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms, color 160ms, box-shadow 160ms;
}

.persona-tab.is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.persona-tab:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}

/* Destination grid */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.seo-destination-index {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.seo-destination-index h2 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.3vw, 2.35rem);
  line-height: 1.05;
}

.seo-destination-index p:not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.seo-destination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-destination-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.seo-destination-links a:hover,
.seo-destination-links a:focus-visible {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.35);
}

/* Destination cards */
.destination-card {
  position: relative;
  display: block;
  min-height: 290px;
  overflow: hidden;
  color: #fff;
  background: var(--night);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 300ms ease;
  text-decoration: none;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e5e7eb;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.destination-card:hover .card-image img { transform: scale(1.05); }

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.1) 55%, rgba(0, 0, 0, 0.72) 100%);
}

.card-price {
  position: absolute;
  z-index: 2;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.card-corner {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.card-corner span,
.card-price span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-corner strong,
.card-price strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.1;
}

.card-weather { top: 12px; left: 12px; }

.card-aqi { top: 12px; right: 12px; text-align: right; }

.card-price { right: 12px; bottom: 12px; text-align: right; }

.card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 56px;
  text-align: center;
}

.card-body h3 {
  margin: 0 0 2px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.card-body p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-rank {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 0 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
  transition: background 180ms, border-color 180ms, color 180ms;
}

.destination-card:hover .card-link {
  background: rgba(43, 222, 115, 0.2);
  border-color: rgba(43, 222, 115, 0.6);
  color: #fff;
}


/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  padding: 56px 20px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.empty-state h3 {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
}

.empty-state p { margin: 0; color: var(--muted); }

/* ============================================================
   NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background: var(--dark);
  color: #fff;
}

.newsletter-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(12, 26, 14, 0.95) 0%, rgba(12, 26, 14, 0.8) 50%, rgba(12, 26, 14, 0.6) 100%);
}

.newsletter-media,
.newsletter-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.newsletter-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 500px);
  gap: 32px;
  align-items: center;
}

.newsletter-copy .eyebrow { color: var(--green); }

.newsletter-copy h2 {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
}

.newsletter-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.6;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.newsletter-form input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.95rem;
  outline: 0;
}

.newsletter-form input::placeholder { color: var(--muted); }

.newsletter-form button {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--red-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-brand .footer-logo span { font-size: 1.25rem; }

.footer-brand .footer-logo strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links p, .footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   DETAIL PAGE
   ============================================================ */
body.detail-open .hero,
body.detail-open .explore-band,
body.detail-open .newsletter-band,
body.detail-open .stats-band,
body.detail-open .site-footer { display: none; }

.detail-page {
  background: var(--bg);
  padding-bottom: 104px;
}

.detail-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(180deg, rgba(8, 20, 18, 0.42), rgba(8, 20, 18, 0.3) 42%, rgba(8, 20, 18, 0.66)),
    var(--detail-image, url("assets/hero-bangkok.jpg"));
  background-position: center;
  background-size: cover;
}

.detail-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px min(7vw, 78px) 92px;
  text-align: center;
}

.detail-summary h1 {
  max-width: 680px;
  margin: 0 auto 8px;
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.4);
}

.detail-summary .eyebrow {
  color: var(--green);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.detail-summary p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

/* Back button */
.back-button {
  position: fixed;
  top: calc(var(--nav-h) + 8px);
  left: max(16px, env(safe-area-inset-left));
  z-index: 50;
  min-height: 36px;
  padding: 0 13px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
}

.back-button:hover { background: var(--red-dark); }

/* Score chart */
.detail-score-chart {
  width: 100%;
  max-width: 560px;
  margin: 22px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.score-chart-bars {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 2px 0;
}

.score-chart-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
}

.score-chart-row dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.score-chart-row dd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.score-chart-track {
  flex: 1;
  height: 12px;
  background: rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-chart-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 380ms cubic-bezier(0.25, 0.8, 0.25, 1);
}

.score-chart-overall .score-chart-track span { background: #e96da6; }
.score-chart-singles .score-chart-track span { background: #f5b731; }
.score-chart-couples .score-chart-track span { background: var(--green); }
.score-chart-families .score-chart-track span { background: #62acd8; }

.score-chart-row strong {
  min-width: 2.4rem;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: right;
}

/* Detail hero topic */
.detail-hero-topic {
  max-width: 560px;
  margin: 18px auto 0;
}

.detail-hero-topic .detail-panel {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  text-align: center;
  border-radius: var(--radius-lg);
}

.detail-hero-topic .topic-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.detail-hero-topic .detail-panel h2 {
  max-width: 370px;
  margin: 0 auto;
  color: var(--ink);
  font-size: 1.2rem;
}

.detail-hero-topic .eyebrow,
.detail-hero-topic .detail-panel h2 { text-shadow: none; }

.detail-hero-topic .field-grid {
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}

.detail-hero-topic .field-item { padding: 11px; }

/* Detail content */
.detail-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 18px;
  padding-top: 48px;
  padding-bottom: 132px;
}

.detail-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.detail-panel h2 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.detail-dropdown { padding: 0; }

.detail-dropdown-summary {
  position: relative;
  display: block;
  padding: 24px 58px 24px 24px;
  cursor: pointer;
  list-style: none;
  text-align: center;
}

.detail-dropdown-summary::-webkit-details-marker { display: none; }

.detail-dropdown-summary::after {
  content: "+";
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.detail-dropdown[open] .detail-dropdown-summary::after { content: "−"; }

.detail-dropdown-summary h2 { margin: 0; }

.detail-dropdown-body { padding: 0 24px 24px; }

.topic-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 8px;
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
}

.detail-panel .eyebrow { margin-bottom: 4px; }
.detail-panel h2 { margin-bottom: 0; }

.detail-panel-wide { grid-column: 1 / -1; }

.detail-section h2 { margin-bottom: 18px; }

.detail-dropdown-summary h2 { margin-bottom: 0; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.field-item {
  min-width: 0;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.field-item span,
.metric-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.field-item a {
  color: var(--green-dark);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

.metric-strip > div {
  min-height: 90px;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}

.metric-strip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}

.detail-snapshot .metric-strip span { font-weight: 400; }

/* Sticky membership */
.detail-sticky-membership[hidden] { display: none; }

.detail-sticky-membership {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  z-index: 55;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.detail-sticky-membership-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(760px, 100%);
  min-height: 72px;
  overflow: hidden;
  padding: 14px 18px;
  color: #fff;
  background: var(--dark);
  background-image: linear-gradient(90deg, rgba(8, 20, 18, 0.88), rgba(8, 20, 18, 0.62)), var(--membership-image);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(43, 222, 115, 0.5);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 54px rgba(8, 20, 18, 0.3), 0 0 18px rgba(43, 222, 115, 0.18);
  pointer-events: auto;
}

.detail-sticky-membership-inner span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-sticky-membership-inner strong {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.1;
}

.detail-sticky-membership-inner button {
  width: 120px;
  min-height: 40px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms;
}

.detail-sticky-membership-inner button:hover { background: var(--red-dark); }

/* ============================================================
   TRAVEL LOG
   ============================================================ */
.travel-log-panel {
  display: grid;
  gap: 20px;
  overflow: hidden;
  text-align: left;
}

.travel-log-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.travel-log-header h2 { margin: 0 0 8px; color: var(--ink); }

.travel-log-header p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.travel-log-primary,
.travel-log-secondary,
.travel-log-form button,
.travel-log-features button {
  min-height: 40px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
}

.travel-log-primary:hover,
.travel-log-secondary:hover,
.travel-log-form button:hover,
.travel-log-features button:hover { background: var(--red-dark); }

.travel-log-primary { padding: 0 18px; }

.travel-log-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.travel-log-card {
  min-width: 0;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.travel-log-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.travel-log-tabs span {
  display: grid;
  min-height: 32px;
  place-items: center;
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.travel-log-tabs .is-active {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.travel-log-form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.travel-log-form input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  transition: border-color 160ms, box-shadow 160ms;
}

.travel-log-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.16);
}

.travel-log-form button { padding: 0 18px; }

.travel-log-stops {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.travel-log-stop {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: grab;
}

.travel-log-stop.is-dragging { opacity: 0.5; }

.travel-log-pin,
.travel-map-pin {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50% 50% 50% 4px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.78rem;
}

.travel-log-stop strong {
  display: block;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

.travel-log-stop p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.travel-log-stop small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.travel-log-stop button {
  width: 28px;
  height: 28px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.travel-log-map-card {
  display: grid;
  grid-template-rows: minmax(220px, 1fr) auto;
  gap: 14px;
}

.travel-log-map {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(43, 222, 115, 0.15)),
    linear-gradient(180deg, rgba(12, 23, 21, 0.1), rgba(12, 23, 21, 0.24)),
    var(--travel-log-image);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.travel-log-map::before {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.22) 50%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.22) 50%, transparent 52%);
  background-size: 58px 58px;
  opacity: 0.4;
}

.travel-map-route {
  position: absolute;
  inset: 24% 14% 19% 16%;
  border-bottom: 4px dashed rgba(255, 255, 255, 0.72);
  border-left: 4px dashed rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.travel-map-pin {
  position: absolute;
  transform: translate(-50%, -50%) rotate(-10deg);
  box-shadow: 0 8px 18px rgba(8, 20, 18, 0.2);
}

.travel-log-route-copy { display: grid; gap: 8px; }

.travel-log-route-copy h3,
.travel-log-route-copy p { margin: 0; }

.travel-log-route-copy p {
  color: var(--muted);
  font-size: 0.9rem;
}

.travel-log-secondary {
  display: inline-grid;
  width: fit-content;
  min-height: 36px;
  place-items: center;
  padding: 0 14px;
}

.travel-log-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.travel-log-features button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 8px 10px;
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  color: var(--ink);
}

.travel-log-features span { font-size: 1.05rem; }

.travel-log-preview {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.travel-log-preview[hidden] { display: none; }

.travel-log-preview span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.travel-log-preview h3,
.travel-log-preview p { margin: 0; }

.travel-log-preview p {
  color: var(--muted);
  font-size: 0.92rem;
}

.travel-log-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.travel-log-preview-stats strong {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.travel-log-preview a {
  display: inline-grid;
  min-height: 36px;
  place-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms;
}

.travel-log-preview a:hover { background: var(--green-dark); }

/* ============================================================
   MEMBERSHIP DIALOG
   ============================================================ */
.membership-dialog {
  --membership-image: url("assets/hero-bangkok.jpg");
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  color: #fff;
  background: var(--dark);
  background-image: linear-gradient(160deg, rgba(8, 20, 18, 0.48), rgba(8, 20, 18, 0.82)), var(--membership-image);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.membership-dialog::backdrop {
  background: rgba(8, 20, 18, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.membership-form {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 28px;
  background: rgba(8, 20, 18, 0.36);
  backdrop-filter: blur(4px);
}

.membership-form h2 {
  margin: 0 0 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
}

.membership-form .eyebrow { color: var(--green); }

.membership-form label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.membership-form input,
.membership-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  outline: 0;
  transition: border-color 160ms, box-shadow 160ms;
}

.membership-form input:focus,
.membership-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.2);
}

.membership-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 0;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  transition: background 160ms;
}

.membership-close:hover { background: rgba(43, 222, 115, 0.3); }

.membership-submit {
  min-height: 46px;
  margin-top: 8px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms, box-shadow 160ms;
  box-shadow: 0 4px 16px rgba(255, 71, 66, 0.3);
}

.membership-submit:hover {
  background: var(--red-dark);
  box-shadow: 0 6px 20px rgba(255, 71, 66, 0.4);
}

.form-message {
  min-height: 1.2em;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.form-message.is-success {
  padding: 10px 12px;
  color: #dfffe9;
  background: rgba(43, 222, 115, 0.14);
  border: 1px solid rgba(43, 222, 115, 0.34);
  border-radius: var(--radius-sm);
}

.form-message.is-error {
  padding: 10px 12px;
  color: #ffe3e0;
  background: rgba(255, 71, 66, 0.16);
  border: 1px solid rgba(255, 71, 66, 0.34);
  border-radius: var(--radius-sm);
}

.form-message a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap-lite { overflow-x: auto; }

.climate-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.climate-table th,
.climate-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.climate-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============================================================
   ADMIN
   ============================================================ */
.admin-body { min-height: 100vh; }

.admin-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.admin-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.admin-header h1 {
  max-width: none;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--ink);
}

.admin-header p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions .member-action {
  display: inline-grid;
  place-items: center;
  color: #fff;
  pointer-events: auto;
}

.admin-status {
  margin-bottom: 18px;
  padding: 12px 16px;
  background: rgba(251, 250, 248, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-status p { margin: 0; color: var(--muted); }

.admin-status strong { color: var(--ink); }

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.admin-card,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.admin-card {
  min-height: 118px;
  padding: 16px;
}

.admin-card span,
.admin-table th,
.admin-log-card span,
.admin-destination-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-card strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--ink);
}

.admin-panel {
  margin-top: 18px;
  padding: 20px;
}

.admin-panel-header {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-panel-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--ink);
}

.admin-small-button,
.admin-search { min-height: 38px; border-radius: var(--radius); }

.admin-small-button {
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  border: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
}

.admin-small-button:hover { background: var(--red-dark); }

.admin-search {
  width: min(280px, 100%);
  padding: 0 12px;
  color: var(--ink);
  background: #f9fafb;
  border: 1.5px solid var(--line);
  outline: 0;
  transition: border-color 160ms;
}

.admin-search:focus { border-color: var(--green); }

.admin-empty { margin: 0; color: var(--muted); }

.admin-table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-table td { color: var(--ink); }

.admin-log-grid,
.admin-destination-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.admin-log-card,
.admin-destination-card {
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.admin-log-card h3,
.admin-log-card p,
.admin-log-card small { margin: 0; }

.admin-log-card h3 {
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-heading);
}

.admin-log-card p {
  margin-top: 6px;
  color: var(--ink);
  font-weight: 700;
}

.admin-log-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.admin-log-card a {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  margin-top: 12px;
  padding: 0 12px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 800;
  transition: background 160ms;
}

.admin-log-card a:hover { background: var(--green-dark); }

.admin-destination-card {
  position: relative;
  min-height: 160px;
  display: grid;
  align-content: end;
  color: #fff;
  background: var(--dark);
}

.admin-destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 18, 0.04), rgba(8, 20, 18, 0.78));
}

.admin-destination-card span,
.admin-destination-card strong {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.admin-destination-card span { color: rgba(255, 255, 255, 0.78); }

.admin-destination-card strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.05;
}

/* Member action (used in admin) */
.member-action {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms;
}

.member-action-primary {
  background: var(--red);
  border-color: var(--red);
}

/* ============================================================
   RESPONSIVE — 1080px
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr 340px;
    gap: 32px;
  }

  .destination-grid { grid-template-columns: repeat(3, 1fr); }

  .seo-destination-index { grid-template-columns: 1fr; }

  .newsletter-inner { grid-template-columns: 1fr; }

  .key-points { grid-template-columns: 1fr; gap: 14px; }

  .explore-controls { grid-template-columns: 1fr; }

  .explore-context,
  .explore-controls .persona-tabs { justify-self: center; }

  .explore-controls-right { display: none; }

  .field-grid,
  .metric-strip { grid-template-columns: repeat(2, 1fr); }

  .admin-card-grid,
  .admin-log-grid,
  .admin-destination-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — 840px
   ============================================================ */
@media (max-width: 840px) {
  :root { --nav-h: 58px; }

  .site-nav { width: calc(100% - 32px); gap: 12px; }

  .nav-search-form { display: none; }

  .nav-actions { display: none; }

  .nav-hamburger { display: flex; }

  .site-header.mobile-nav-open .site-nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    padding: 9px 0 14px;
  }

  .site-header.mobile-nav-open .nav-search-form {
    display: block;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 8px 0 0;
  }

  .site-header.mobile-nav-open .nav-search-icon { color: var(--muted); }

  .site-header.mobile-nav-open .nav-search-form input {
    min-height: 44px;
    color: var(--ink);
    background: var(--white);
    border-color: var(--line);
  }

  .site-header.mobile-nav-open .nav-search-form input::placeholder { color: var(--muted); }

  .site-header.mobile-nav-open .nav-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .site-header.mobile-nav-open .nav-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .site-header.mobile-nav-open .nav-actions .btn-ghost {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
  }

  .hero { min-height: 100dvh; align-items: flex-start; padding-top: calc(var(--nav-h) + 20px); }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-join-card { display: none; }

  .hero-eyebrow { font-size: 0.78rem; }

  h1 { letter-spacing: -0.01em; }

  .hero-sub { font-size: 0.98rem; }

  .hero-cta-row { margin-bottom: 28px; }

  .key-points { gap: 12px; }

  .key-points article {
    gap: 10px;
  }

  .key-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .key-text h2 { font-size: 0.9rem; }
  .key-text p { font-size: 0.8rem; }

  .stats-inner { gap: 0; padding: 16px 0; flex-wrap: wrap; }
  .stat-item { min-width: 140px; padding: 8px 16px; }
  .stat-sep { display: none; }

  .destination-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .seo-destination-index { margin-top: 30px; gap: 18px; }
  .seo-destination-links { gap: 7px; }
  .seo-destination-links a { min-height: 32px; font-size: 0.8rem; }

  .destination-card { min-height: 230px; }

  .card-body { padding: 60px 14px 56px; }
  .card-body h3 { font-size: 1.4rem; }
  .card-body p { font-size: 0.8rem; }

  .explore-band { padding: 40px 0 56px; }

  .section-inner { width: calc(100% - 32px); }

  .detail-content {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
    padding-bottom: 120px;
  }

  .detail-summary { min-height: auto; padding: 64px 16px 40px; }
  .detail-hero { min-height: 0; }
  .detail-summary h1 { font-size: 1.7rem; line-height: 1.06; }
  .detail-summary p { font-size: 0.9rem; }
  .back-button {
    top: calc(var(--nav-h) + 4px);
    left: max(10px, env(safe-area-inset-left));
    min-height: 32px;
    padding: 0 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    box-shadow: var(--shadow-sm);
  }
  .detail-panel { padding: 16px; }
  .detail-panel h2 { font-size: 1.15rem; }
  .detail-dropdown-summary { padding: 16px 48px 16px 16px; }
  .detail-dropdown-summary::after { top: 16px; right: 16px; width: 26px; height: 26px; }
  .detail-dropdown-body { padding: 0 16px 16px; }

  .detail-score-chart { margin-top: 16px; padding: 14px; }
  .score-chart-row { grid-template-columns: 82px 1fr; gap: 8px; }
  .score-chart-row dt { font-size: 0.72rem; }
  .score-chart-track { height: 10px; }

  .detail-hero-topic { margin-top: 12px; }
  .detail-hero-topic .detail-panel { padding: 14px; }
  .detail-hero-topic .topic-icon { width: 34px; height: 34px; font-size: 1.1rem; }
  .detail-hero-topic .detail-panel h2 { font-size: 1rem; }
  .detail-hero-topic .field-grid { gap: 8px; }
  .detail-hero-topic .field-item { padding: 8px 6px; }
  .detail-hero-topic .field-item span { font-size: 0.58rem; }
  .detail-hero-topic .field-item p { font-size: 0.76rem; }

  .field-item { padding: 10px; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric-strip > div { min-height: 80px; padding: 12px; }
  .metric-strip strong { font-size: 1.05rem; }

  .detail-sticky-membership { right: max(10px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); left: max(10px, env(safe-area-inset-left)); }
  .detail-sticky-membership-inner { grid-template-columns: 1fr auto; gap: 8px 12px; min-height: 62px; padding: 10px 12px; }
  .detail-sticky-membership-inner span { grid-column: 1; font-size: 0.62rem; }
  .detail-sticky-membership-inner strong { grid-column: 1; font-size: 1rem; }
  .detail-sticky-membership-inner button { grid-row: 1 / span 2; grid-column: 2; width: 88px; min-height: 36px; }

  .newsletter-band { padding: 48px 0; }
  .newsletter-inner { gap: 24px; }
  .newsletter-copy h2 { font-size: 1.5rem; }
  .newsletter-form { grid-template-columns: 1fr; }
  .newsletter-form button { width: 100%; min-height: 48px; }

  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-copy { order: -1; }

  .persona-tabs { width: 100%; max-width: 360px; }
  .persona-tab { min-width: 0; min-height: 36px; padding: 0 10px; font-size: 0.82rem; }

  .tl-header { grid-template-columns: 1fr; gap: 16px; padding: 18px 18px 16px; }
  .tl-header-right { flex-wrap: wrap; }
  .tl-header-right .btn-lg { width: 100%; }
  .tl-tabs-nav { padding: 0 16px; }
  .tl-tab-btn { padding: 0 12px; font-size: 0.84rem; }
  .tl-day-strip { padding: 10px 14px; }
  .tl-stops-list { padding: 12px 14px; }
  .tl-add-form { padding: 12px 14px; }
  .tl-add-form input[name="note"] { display: none; }
  .tl-action-row { padding: 12px 14px; gap: 8px; }
  .tl-ov-section { padding: 16px 16px; }
  .tl-explore-search-wrap { padding: 12px 16px; }
  .tl-explore-search-icon { left: 28px; }
  .tl-category-chips { padding: 12px 16px; gap: 6px; }
  .tl-category-chip { padding: 0 10px; font-size: 0.8rem; }
  .tl-explore-section { padding: 12px 16px; }
  .tl-budget-hero { padding: 18px 16px; }
  .tl-budget-amount { font-size: 2rem; }
  .tl-expenses-wrap { padding: 16px 16px; }
  .tl-add-expense-form { padding: 12px 14px; }
  .tl-add-expense-row { gap: 6px; }
  .tl-add-expense-row input[name="note"] { display: none; }
  .tl-budget-actions { padding: 12px 14px; }
  .tl-feature-teaser { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-feature-teaser .tl-upsell-btn { width: 100%; }

  .membership-form { gap: 8px; padding: 22px; }
  .membership-form h2 { font-size: 1.35rem; }

  .admin-shell { width: calc(100% - 24px); padding: 18px 0 38px; }
  .admin-header { grid-template-columns: 1fr; padding: 18px; }
  .admin-header h1 { font-size: 2rem; }
  .admin-actions { justify-content: flex-start; }
  .admin-card-grid, .admin-log-grid, .admin-destination-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 16px; }
  .admin-panel-header { display: grid; grid-template-columns: 1fr; align-items: start; }
  .admin-search { width: 100%; }
}

/* ============================================================
   TRAVEL LOG (WANDERLOG-INSPIRED)
   ============================================================ */

/* Panel shell */
.tl-panel {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  text-align: left;
}

/* Header */
.tl-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--dark) 0%, #1b3a20 100%);
  color: #fff;
}

.tl-header-left h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: 1.5rem;
}

.tl-header-left p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.tl-header-left .eyebrow { color: var(--green); }

.tl-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tl-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms;
}

.tl-maps-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* Tab nav */
.tl-tabs-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}

.tl-tabs-nav::-webkit-scrollbar { display: none; }

.tl-tab-btn {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 160ms, border-color 160ms;
  margin-bottom: -1px;
}

.tl-tab-btn:hover { color: var(--ink); }

.tl-tab-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--red);
}

/* Body */
.tl-body {
  padding: 0;
  min-height: 320px;
}

/* Shared helpers */
.tl-stop-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50% 50% 50% 4px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 900;
}

.tl-pin-sm { width: 24px; height: 24px; font-size: 0.72rem; }

.tl-day-pill {
  display: inline-block;
  padding: 2px 10px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tl-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 900;
}

.tl-remove-btn {
  flex-shrink: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--muted);
  background: #f3f4f6;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.tl-remove-btn:hover { background: var(--red-soft); color: var(--red); }

.tl-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
}

.tl-empty-icon { font-size: 2rem; }

.tl-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tl-empty-msg {
  margin: 0;
  padding: 12px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tl-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--line);
}

.tl-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink-2);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  transition: border-color 160ms, background 160ms;
}

.tl-action-link:hover { border-color: var(--green); background: var(--green-soft); }

.tl-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 14px;
  color: var(--ink-2);
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms, background 160ms, color 160ms;
}

.tl-action-pill:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-dark); }

/* ---- ITINERARY TAB ---- */
.tl-itinerary { display: flex; flex-direction: column; }

.tl-day-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.tl-day-strip::-webkit-scrollbar { display: none; }

.tl-day-btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  color: var(--muted);
  background: #f3f4f6;
  border: 1.5px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms;
  white-space: nowrap;
}

.tl-day-btn:hover { background: var(--line); color: var(--ink); }

.tl-day-btn.is-active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.tl-stops-list {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-stop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: grab;
  transition: box-shadow 200ms, border-color 200ms, transform 200ms;
}

.tl-stop:not(:last-child) { margin-bottom: 0; }

.tl-stop:hover {
  border-color: var(--green);
  box-shadow: 0 2px 10px rgba(43, 222, 115, 0.12);
}

.tl-stop.is-dragging { opacity: 0.45; transform: scale(0.98); }

.tl-stop-body {
  flex: 1;
  min-width: 0;
}

.tl-stop-body strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 3px;
}

.tl-stop-body p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.tl-transit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.tl-transit-icon { font-size: 0.9rem; }

/* Add stop form */
.tl-add-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f9fafb;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.tl-add-icon-wrap {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.tl-add-form input,
.tl-add-form select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: 0;
  transition: border-color 160ms, box-shadow 160ms;
}

.tl-add-form input:focus,
.tl-add-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.16);
}

.tl-add-form input[name="title"] { flex: 1 1 180px; min-width: 140px; }
.tl-add-form input[name="note"] { flex: 1 1 140px; min-width: 100px; }
.tl-add-form select { flex: 0 0 auto; }

.tl-add-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--green-dark);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
  white-space: nowrap;
}

.tl-add-btn:hover { background: var(--green); color: var(--ink); }

/* ---- OVERVIEW TAB ---- */
.tl-overview { display: flex; flex-direction: column; gap: 0; }

.tl-ov-section {
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
}

.tl-ov-section:last-child { border-bottom: 0; }

.tl-ov-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tl-ov-head h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-ov-body { display: flex; flex-direction: column; gap: 10px; }

.tl-notes-area {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #f9fafb;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
  outline: 0;
  transition: border-color 160ms, box-shadow 160ms;
}

.tl-notes-area:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.16);
  background: #fff;
}

.tl-save-btn {
  align-self: flex-start;
  min-height: 36px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--green);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
}

.tl-save-btn:hover { background: var(--green-dark); color: #fff; }

.tl-bucket-list { display: flex; flex-direction: column; gap: 8px; }

.tl-bucket-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tl-bucket-body {
  flex: 1;
  min-width: 0;
}

.tl-bucket-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.tl-bucket-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.tl-feature-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px;
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.3);
  border-radius: var(--radius);
}

.tl-feature-teaser p {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.tl-upsell-btn {
  flex-shrink: 0;
  min-height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
  white-space: nowrap;
}

.tl-upsell-btn:hover { background: var(--red-dark); }

/* ---- EXPLORE TAB ---- */
.tl-explore { display: flex; flex-direction: column; gap: 0; }

.tl-explore-search-wrap {
  position: relative;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.tl-explore-search-icon {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  pointer-events: none;
}

.tl-explore-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 38px;
  color: var(--ink);
  background: #f3f4f6;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  outline: 0;
  cursor: pointer;
  transition: border-color 160ms;
}

.tl-explore-input:focus { border-color: var(--green); }

.tl-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.tl-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  color: var(--ink-2);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms, border-color 160ms, color 160ms;
}

.tl-category-chip:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-dark);
}

.tl-explore-section { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.tl-explore-section:last-child { border-bottom: 0; }

.tl-explore-h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--ink);
}

.tl-explore-places { display: flex; flex-direction: column; gap: 8px; }

.tl-explore-place {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms;
}

.tl-explore-place:hover { border-color: var(--green); }

.tl-explore-place-body {
  flex: 1;
  min-width: 0;
}

.tl-explore-place-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1px;
}

.tl-explore-place-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.tl-add-place-btn {
  flex-shrink: 0;
  min-height: 30px;
  padding: 0 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(43, 222, 115, 0.4);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms, color 160ms;
}

.tl-add-place-btn:hover { background: var(--green); color: var(--ink); }

/* ---- BUDGET TAB ---- */
.tl-budget { display: flex; flex-direction: column; gap: 0; }

.tl-budget-hero {
  padding: 24px 28px;
  text-align: center;
  background: var(--night);
  color: #fff;
}

.tl-budget-amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 6px;
}

.tl-budget-limit-btn {
  display: inline-block;
  min-height: 28px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms;
}

.tl-budget-limit-btn:hover { background: rgba(255, 255, 255, 0.2); }

.tl-budget-bar-track {
  margin: 12px auto 0;
  width: min(340px, 80%);
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tl-budget-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: var(--radius-full);
  transition: width 400ms ease;
}

.tl-budget-bar-fill.is-over { background: var(--red); }

.tl-budget-pct {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.tl-budget-hint {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.tl-expenses-wrap {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.tl-expenses-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.tl-expenses-hd h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
}

.tl-expenses-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.tl-expense-list { display: flex; flex-direction: column; gap: 8px; }

.tl-expense {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms;
}

.tl-expense:hover { border-color: var(--line); }

.tl-expense-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.1rem;
}

.tl-expense-body {
  flex: 1;
  min-width: 0;
}

.tl-expense-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.tl-expense-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.tl-expense-amt {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--ink);
}

/* Add expense form */
.tl-add-expense-form {
  padding: 14px 20px;
  background: #f9fafb;
  border-bottom: 1px solid var(--line);
}

.tl-add-expense-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tl-add-expense-row input,
.tl-add-expense-row select {
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  outline: 0;
  transition: border-color 160ms, box-shadow 160ms;
}

.tl-add-expense-row input:focus,
.tl-add-expense-row select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(43, 222, 115, 0.16);
}

.tl-add-expense-row select { flex: 0 0 auto; }
.tl-add-expense-row input[name="title"] { flex: 1 1 140px; min-width: 120px; }
.tl-add-expense-row input[name="note"] { flex: 1 1 120px; min-width: 100px; }
.tl-add-expense-row input[name="amount"] { flex: 0 1 100px; min-width: 80px; }

.tl-add-expense-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms;
  white-space: nowrap;
}

.tl-add-expense-btn:hover { background: var(--red-dark); }

.tl-budget-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 20px;
}

/* ============================================================
   RESPONSIVE — 520px
   ============================================================ */
@media (max-width: 520px) {
  .destination-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .btn-lg { min-height: 44px; padding: 0 20px; }

  .hero-cta-row { gap: 10px; }

  .stats-inner { padding: 12px 0; }

  .stat-item strong { font-size: 1.15rem; }
}

/* ============================================================
   RESPONSIVE — 380px
   ============================================================ */
@media (max-width: 380px) {
  h1 { font-size: 2.2rem; }

  .destination-grid { grid-template-columns: 1fr; }

  .explore-intro .section-heading h2 { font-size: 1.25rem; }

  .persona-tab { font-size: 0.76rem; }
}

/* ============================================================
   DEALS PANEL (detail page — Book this trip)
   ============================================================ */
.deals-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0;
}

.deals-panel-inner {
  padding: 28px 28px 20px;
}

.deals-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.deals-panel-head h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--ink);
  margin: 4px 0 6px;
}

.deals-panel-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.deals-price-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-shrink: 0;
}

.deals-price-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  min-width: 80px;
}

.deals-price-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.deals-price-chip strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.deals-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.deals-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}

.deals-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(43,222,115,.15);
  transform: translateY(-2px);
}

.deals-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deals-card-icon-flights { background: #eff6ff; color: #2563eb; }
.deals-card-icon-hotels  { background: #fef3c7; color: #d97706; }
.deals-card-icon-airbnb  { background: #fff1f2; color: #e11d48; }
.deals-card-icon-cars    { background: #f0fdf4; color: #16a34a; }

.deals-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deals-card-body strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.deals-card-body span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.deals-card-hint {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--ink-2, #3d4049);
  line-height: 1.4;
  background: rgba(43,222,115,.08);
  border-left: 3px solid var(--green);
  padding: 5px 8px;
  border-radius: 0 4px 4px 0;
}

.deals-card-cta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green-dark, #1ab558);
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.deals-card:hover .deals-card-cta { color: var(--green); }

.deals-disclaimer {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding-top: 4px;
}

@media (max-width: 900px) {
  .deals-cards { grid-template-columns: repeat(2, 1fr); }
  .deals-panel-inner { padding: 20px; }
}

@media (max-width: 520px) {
  .deals-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .deals-panel-inner { padding: 16px; }
  .deals-panel-head { gap: 12px; }
  .deals-price-chips { gap: 6px; }
  .deals-price-chip { padding: 6px 10px; min-width: 70px; }
  .card-deal-btn { font-size: 0.62rem; padding: 7px 2px; }
}
