/* ==================================================================
   Europe → South India · November — travel planner styles
   ================================================================== */
:root {
  --bg: #fbf7f1;
  --bg-2: #f3ece2;
  --card: #ffffff;
  --card-2: #fdfaf5;
  --ink: #1b1a22;
  --ink-2: #4b4956;
  --muted: #7c7a86;
  --line: rgba(27, 26, 34, .08);
  --accent: #e8590c;
  --accent-2: #0f766e;
  --gold: #d4a017;
  --rose: #e11d48;
  --shadow: 0 10px 40px -12px rgba(27, 26, 34, .18);
  --shadow-sm: 0 4px 16px -6px rgba(27, 26, 34, .14);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --bg: #0f1117;
  --bg-2: #151823;
  --card: #1a1e2b;
  --card-2: #20253300;
  --ink: #f2f0ec;
  --ink-2: #c8c5c0;
  --muted: #8f8c98;
  --line: rgba(255, 255, 255, .09);
  --accent: #ff7a2f;
  --accent-2: #2dd4bf;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, .6);
  --shadow-sm: 0 4px 16px -6px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 92vw); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Progress bar ---------- */
#progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), var(--gold)); z-index: 100; transition: width .1s linear; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, 94vw); z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.nav.hidden { transform: translate(-50%, -120%); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; font-size: .9rem; box-shadow: 0 6px 14px -4px rgba(232, 89, 12, .6); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .9rem; transition: background .25s, color .25s; }
.nav-links a:hover, .nav-links a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .25s; }
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); }
.burger { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; padding: 10px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open .nav-links { display: flex; animation: fadeUp .35s var(--ease); }
  .burger { display: grid; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 700; border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, background .25s; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff8a3d); color: #fff; box-shadow: 0 12px 28px -10px rgba(232, 89, 12, .7); }
.btn-primary:hover { box-shadow: 0 18px 34px -10px rgba(232, 89, 12, .8); }
.btn-ghost { background: color-mix(in srgb, var(--card) 70%, transparent); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--card); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 130px 0 80px; overflow: hidden; isolation: isolate; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; will-change: transform; }
.orb-1 { width: 520px; height: 520px; background: #ffb347; top: -140px; left: -120px; }
.orb-2 { width: 460px; height: 460px; background: #5eead4; bottom: -160px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #f9a8d4; top: 40%; left: 55%; animation-delay: -12s; opacity: .4; }
[data-theme="dark"] .orb { opacity: .28; }
.grid-bg { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, -40px) scale(1.12); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(15, 118, 110, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .55); } 70% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); } }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); margin: 22px 0 18px; }
.hero h1 .accent { font-style: italic; font-weight: 500; background: linear-gradient(90deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, max-content); gap: 22px 28px; margin-top: 40px; }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
.stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Route card in hero */
.flight-card { position: relative; padding: 28px; border-radius: 28px; background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(16px); transform-style: preserve-3d; transition: transform .2s ease-out; }
.flight-card svg { width: 100%; height: auto; display: block; }
.flight-card .legend { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.flight-card .legend span { display: flex; align-items: center; gap: 6px; }
.flight-card .legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.route-path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; stroke-linecap: round; animation: dash 1.6s linear infinite; }
.route-path.secondary { stroke: var(--accent-2); stroke-width: 2; }
.route-outline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s var(--ease) forwards .3s; }
@keyframes dash { to { stroke-dashoffset: -28; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.city { font: 700 11px var(--font-body); fill: var(--ink-2); }
.city-dot { fill: var(--card); stroke: var(--accent); stroke-width: 3; }
.city-dot.teal { stroke: var(--accent-2); }
.ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; animation: ring 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ring { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }
.plane { fill: var(--ink); }
.plane-2 { fill: var(--accent-2); }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.alt { background: var(--bg-2); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; } .reveal[data-delay="2"] { transition-delay: .2s; } .reveal[data-delay="3"] { transition-delay: .3s; } .reveal[data-delay="4"] { transition-delay: .4s; } .reveal[data-delay="5"] { transition-delay: .5s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Weather strip ---------- */
.weather-row { display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.weather-card { flex: 0 0 220px; scroll-snap-align: start; padding: 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.weather-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.weather-card .icon { font-size: 2rem; display: block; margin-bottom: 8px; animation: float 4s ease-in-out infinite; }
.weather-card b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.weather-card .temp { color: var(--accent); font-weight: 800; font-size: .95rem; }
.weather-card p { color: var(--muted); font-size: .84rem; margin-top: 8px; }
.weather-card .badge { margin-top: 10px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge.great { background: #dcfce7; color: #166534; } .badge.good { background: #fef3c7; color: #92400e; } .badge.skip { background: #fee2e2; color: #991b1b; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- Flights ---------- */
.flight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .flight-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; transition: transform .45s var(--ease), box-shadow .45s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.route-line { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.route-line .arrow { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); position: relative; }
.route-line .arrow::after { content: '✈'; position: absolute; right: -6px; top: -13px; font-size: 1rem; color: var(--accent); animation: fly 2.6s var(--ease) infinite; }
@keyframes fly { 0% { transform: translateX(-80px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); font-size: .78rem; font-weight: 800; }
.chip.warm { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.price { font-weight: 800; color: var(--ink); margin-top: 4px; }
.tip { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); color: var(--ink-2); font-size: .88rem; border-left: 3px solid var(--gold); }
.card small { color: var(--muted); }

.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .92rem; }
th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td b { color: var(--ink); }
td .note { display: block; color: var(--muted); font-size: .82rem; margin-top: 4px; }
tbody tr { transition: background .25s; } tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }

/* ---------- Routes / itinerary ---------- */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tab { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; transition: all .35s var(--ease); }
.tab .emoji { font-size: 1.2rem; }
.tab small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.tab:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: var(--shadow); }
.tab.active small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.route-panel { display: grid; grid-template-columns: 340px 1fr; gap: 34px; animation: fadeUp .5s var(--ease); }
@media (max-width: 960px) { .route-panel { grid-template-columns: 1fr; } }
.route-summary { position: sticky; top: 100px; align-self: start; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.route-summary::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--route-accent, var(--accent)); }
.route-summary h3 { font-size: 1.7rem; margin: 6px 0 4px; }
.route-summary .sub { color: var(--muted); font-weight: 700; font-size: .9rem; }
.route-summary p { margin-top: 14px; color: var(--ink-2); }
.route-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.route-stats div { padding: 12px; border-radius: 12px; background: var(--bg-2); }
.route-stats b { display: block; font-size: 1rem; } .route-stats span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.route-stats div:last-child { grid-column: 1 / -1; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--route-accent, var(--accent)), transparent); opacity: .5; }
.day { position: relative; padding: 22px 24px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; opacity: 0; transform: translateX(20px); animation: slideIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.day:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.day::before { content: attr(data-day); position: absolute; left: -34px; top: 22px; width: 24px; height: 24px; border-radius: 50%; background: var(--route-accent, var(--accent)); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--bg); }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.day .where { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--route-accent, var(--accent)); }
.day h4 { font-size: 1.25rem; margin: 4px 0 8px; }
.day p { color: var(--ink-2); font-size: .95rem; }
.day .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.day .tags span { padding: 4px 10px; border-radius: 999px; background: var(--bg-2); font-size: .76rem; font-weight: 700; color: var(--ink-2); }

/* ---------- Destinations ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.dest { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .45s var(--ease), box-shadow .45s; opacity: 0; animation: fadeUp .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
.dest .type-pill { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #1b1a22; font-style: normal; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; z-index: 1; }
.dest-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: .86rem; transition: all .3s var(--ease); }
.filter b { padding: 1px 7px; border-radius: 999px; background: var(--bg-2); font-size: .72rem; color: var(--muted); }
.filter:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter.active b { background: rgba(255, 255, 255, .18); color: inherit; }
#destCount { font-size: .85rem; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.dest:hover { transform: translateY(-8px) scale(1.01); box-shadow: var(--shadow); }
.dest .cover { height: 150px; display: grid; place-items: center; font-size: 3.6rem; position: relative; overflow: hidden; }
.dest .cover::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 50%); }
.dest .cover span { transition: transform .5s var(--ease); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.dest:hover .cover span { transform: scale(1.18) rotate(-6deg); }
.dest .body { padding: 20px 22px 22px; }
.dest h3 { font-size: 1.4rem; }
.dest .tag { color: var(--muted); font-size: .85rem; font-weight: 700; }
.dest .meta { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.dest .meta .cost { color: var(--accent); }
.dest .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; color: var(--accent-2); font-size: .9rem; }
.dest .more::after { content: '→'; transition: transform .3s var(--ease); }
.dest:hover .more::after { transform: translateX(4px); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .backdrop { position: absolute; inset: 0; background: rgba(15, 12, 20, .55); backdrop-filter: blur(8px); animation: fadeIn .3s; }
.modal .sheet { position: relative; width: min(860px, 100%); max-height: 88vh; overflow-y: auto; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); animation: pop .45s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.sheet .cover { height: 180px; display: grid; place-items: center; font-size: 5rem; position: sticky; top: 0; }
.sheet .content { padding: 28px 32px 36px; }
.sheet h3 { font-size: 2rem; } .sheet .tag { color: var(--muted); font-weight: 700; }
.sheet .intro { margin: 12px 0 22px; color: var(--ink-2); font-size: 1.02rem; }
.sheet .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 700px) { .sheet .cols { grid-template-columns: 1fr; } .sheet .content { padding: 22px; } }
.sheet h4 { font-size: 1.05rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.sheet ul { margin: 0 0 18px; padding-left: 18px; color: var(--ink-2); font-size: .93rem; } .sheet li { margin-bottom: 5px; }
.stay-tier { display: grid; grid-template-columns: 78px 1fr; gap: 10px; font-size: .9rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stay-tier b { color: var(--accent); }
.close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #111; font-size: 1.2rem; display: grid; place-items: center; z-index: 2; transition: transform .3s var(--ease); }
.close:hover { transform: rotate(90deg); }

/* ---------- Cost planner ---------- */
.cost-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: start; }
@media (max-width: 960px) { .cost-layout { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: flex; justify-content: space-between; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.field label output { color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); height: 6px; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.seg button { padding: 10px 6px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: .86rem; transition: all .3s var(--ease); }
.seg button.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.active) { color: var(--accent); }
.result { padding: 30px; border-radius: var(--radius); background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
[data-theme="dark"] .result { background: #232838; }
.result::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -120px; top: -140px; background: radial-gradient(circle, rgba(232, 89, 12, .45), transparent 65%); pointer-events: none; }
.result .big { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; line-height: 1; margin: 8px 0 4px; }
.result .big small { font-size: 1.1rem; font-weight: 600; opacity: .7; margin-left: 6px; }
.result .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; font-weight: 800; }
.result .group-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.result .group-total b { font-family: var(--font-display); font-size: 1.5rem; }
.breakdown { margin-top: 24px; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 130px 1fr 80px; gap: 12px; align-items: center; font-size: .86rem; font-weight: 700; }
.bar .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--gold)); width: 0; transition: width .9s var(--ease); }
.bar .amt { text-align: right; opacity: .85; font-variant-numeric: tabular-nums; }
.currency-toggle { position: absolute; top: 22px; right: 22px; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); z-index: 1; }
.currency-toggle button { padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-weight: 800; font-size: .78rem; }
.currency-toggle button.active { background: var(--bg); color: var(--ink); }
.result .fine { margin-top: 18px; font-size: .78rem; opacity: .6; }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.safe { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.safe:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.safe .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--gold) 20%, transparent)); margin-bottom: 14px; }
.safe h3 { font-size: 1.15rem; margin-bottom: 8px; }
.safe p { color: var(--ink-2); font-size: .92rem; }
.safe a { display: inline-block; margin-top: 12px; font-weight: 800; font-size: .88rem; }
.checklist { margin-top: 44px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.checklist h3 { font-size: 1.4rem; margin-bottom: 6px; }
.checklist .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.checklist li label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: background .25s; font-size: .92rem; }
.checklist li label:hover { background: var(--bg-2); }
.checklist input { accent-color: var(--accent-2); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.check-progress { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; margin-bottom: 18px; }
.check-progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), #5eead4); transition: width .6s var(--ease); }

/* ---------- Links ---------- */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.link-group { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.link-group h3 { font-size: 1.1rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.link-group a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; color: var(--ink); font-weight: 700; font-size: .92rem; transition: background .25s, transform .3s var(--ease); }
.link-group a small { color: var(--muted); font-weight: 600; font-size: .78rem; text-align: right; }
.link-group a:hover { background: var(--bg-2); text-decoration: none; transform: translateX(4px); }

/* ---------- Footer ---------- */
footer { padding: 40px 0 60px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Back to top ---------- */
#toTop { position: fixed; bottom: 24px; right: 24px; z-index: 80; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .4s var(--ease); }
#toTop.show { opacity: 1; pointer-events: auto; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==================================================================
   Engagement features
   ================================================================== */
/* Covers: procedural scenes + optional photo */
.cover { position: relative; overflow: hidden; }
.cover .scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .scene .sun { animation: sunrise 6s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translateY(0); } to { transform: translateY(-8px); } }
.cover .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cover .emoji-badge { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: 2rem; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); transition: transform .5s var(--ease); }
.dest:hover .cover .emoji-badge { transform: scale(1.2) rotate(-8deg); }
.dest .cover { height: 170px; }
.dest .cover::after { z-index: 2; }
.dest .type-pill { z-index: 3; }
.sheet .cover { height: 220px; }
.sheet .cover .emoji-badge { font-size: 3rem; }

/* Nav extras */
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; font-size: .82rem; transition: transform .3s var(--ease); }
.pill-btn:hover { transform: translateY(-2px); }

/* Passport */
.passport { margin: 0 0 26px; padding: 18px 20px; border-radius: var(--radius); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--card)), var(--card)); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.passport-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-bottom: 12px; }
.passport-head b { font-family: var(--font-display); font-size: 1.1rem; } .passport-head span { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stamp-mini { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--line); background: transparent; font-size: 1.1rem; display: grid; place-items: center; transition: all .35s var(--ease); }
.stamp-mini.got { border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); transform: rotate(-8deg); }
.stamp-mini:hover { transform: scale(1.15); }
.stamp { position: absolute; left: 24px; top: 24px; z-index: 4; padding: 10px 14px; border: 3px solid #b91c1c; border-radius: 10px; color: #b91c1c; font-weight: 900; text-align: center; transform: rotate(-12deg); background: rgba(255, 255, 255, .55); mix-blend-mode: multiply; letter-spacing: .12em; line-height: 1.15; pointer-events: none; }
.stamp span { font-size: .7rem; display: block; } .stamp b { font-size: .95rem; display: block; max-width: 180px; } .stamp small { font-size: .6rem; display: block; opacity: .8; }
.stamp.slam { animation: slam .55s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes slam { 0% { transform: rotate(-12deg) scale(2.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-12deg) scale(1); } }

/* Quiz */
.quiz { max-width: 760px; margin: 0 auto; padding: 36px; text-align: center; position: relative; overflow: hidden; }
.quiz::before { content: ''; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); pointer-events: none; }
.quiz-emoji { font-size: 3.4rem; animation: float 4s ease-in-out infinite; }
.quiz h3 { font-size: 1.8rem; margin: 10px 0 8px; } .quiz p { color: var(--ink-2); }
.quiz-intro .btn { margin-top: 20px; }
.quiz-progress { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.quiz-progress .track { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .quiz-progress .fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transition: width .5s var(--ease); }
.quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
@media (max-width: 640px) { .quiz-answers { grid-template-columns: 1fr; } .quiz { padding: 24px; } }
.quiz-a { padding: 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-weight: 700; text-align: left; transition: all .3s var(--ease); opacity: 0; animation: fadeUp .5s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms); }
.quiz-a:hover { background: var(--card); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.quiz-result { animation: pop .5s var(--ease); }
.quiz-picks { margin-top: 18px; } .quiz-picks b { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.quiz-picks div { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pick { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; transition: all .3s var(--ease); } .pick:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* Map */
#mapWrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
#mapEl { height: 520px; width: 100%; background: var(--bg-2); }
@media (max-width: 640px) { #mapEl { height: 420px; } }
.map-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 18px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; } .map-legend span { display: flex; align-items: center; gap: 6px; } .map-legend i { width: 10px; height: 10px; border-radius: 50%; }
.pin-wrap { background: none; border: 0; }
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c); display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5); border: 2px solid #fff; transition: transform .3s var(--ease); }
.pin > * { transform: rotate(45deg); }
.pin { font-size: 1rem; line-height: 1; } .pin::before { content: attr(data-e); }
.pin:hover { transform: rotate(-45deg) scale(1.2); }
.pin.hub { width: 42px; height: 42px; border-width: 3px; animation: hub 2s ease-in-out infinite; }
@keyframes hub { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, .5); } 50% { box-shadow: 0 0 0 12px rgba(232, 89, 12, 0); } }
.leaflet-popup-content-wrapper { border-radius: 16px; box-shadow: var(--shadow); font-family: var(--font-body); }
.leaflet-popup-content { margin: 14px 16px; } .pop b { font-family: var(--font-display); font-size: 1.05rem; display: block; } .pop > span { color: #6b7280; font-size: .8rem; font-weight: 700; }
.pop-meta { margin: 8px 0; font-size: .82rem; color: #374151; line-height: 1.5; }
.pop-actions { display: flex; gap: 6px; } .pop-actions button { padding: 7px 11px; border-radius: 999px; border: 0; background: #e8590c; color: #fff; font-weight: 800; font-size: .78rem; cursor: pointer; } .pop-actions button.alt { background: #0f766e; }
[data-theme="dark"] .leaflet-tile { filter: brightness(.7) contrast(1.05) saturate(.8); }
[data-theme="dark"] .leaflet-popup-content-wrapper, [data-theme="dark"] .leaflet-popup-tip { background: #1a1e2b; color: #f2f0ec; } [data-theme="dark"] .pop-meta { color: #c8c5c0; }

/* Food */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.dish { opacity: 0; animation: fadeUp .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 40ms); display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.dish:hover { transform: translateY(-5px); box-shadow: var(--shadow); } .dish:hover .dish-emoji { transform: scale(1.15) rotate(-8deg); }
.dish-emoji { width: 74px; height: 74px; border-radius: 20px; display: grid; place-items: center; font-size: 2.3rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, transparent), color-mix(in srgb, var(--gold) 22%, transparent)); transition: transform .5s var(--ease); }
.dish-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .dish h3 { font-size: 1.12rem; } .dish-price { font-weight: 800; color: var(--accent); font-size: .85rem; white-space: nowrap; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .75rem; font-weight: 700; color: var(--muted); margin: 4px 0 8px; }
.dish p { font-size: .88rem; color: var(--ink-2); }

/* Builder */
.builder-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .builder-layout { grid-template-columns: 1fr; } .builder-pool { position: static; max-height: none; } .pool { max-height: 260px; grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pool { grid-template-columns: 1fr; } }
.builder-pool { position: sticky; top: 90px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.builder-pool h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pool-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .filter.small { padding: 6px 10px; font-size: .95rem; }
.pool { display: grid; gap: 8px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.pool-chip { display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--bg-2); color: var(--ink); cursor: grab; transition: all .3s var(--ease); }
.pool-chip > span { font-size: 1.3rem; grid-row: span 2; } .pool-chip > b { font-size: .9rem; } .pool-chip > b .mbadge { margin-left: 4px; } .pool-chip small { color: var(--muted); font-size: .72rem; font-weight: 600; }
.pool-chip:hover { transform: translateX(4px); background: var(--card); box-shadow: var(--shadow-sm); } .pool-chip.added { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(.95); background: color-mix(in srgb, var(--accent-2) 20%, var(--card)); } }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.presets > div { display: flex; flex-wrap: wrap; gap: 8px; } .tab.small { padding: 8px 14px; font-size: .85rem; text-transform: none; letter-spacing: 0; }
.timeline-builder { display: grid; gap: 10px; min-height: 120px; padding: 10px; border-radius: var(--radius); border: 2px dashed transparent; transition: border-color .3s, background .3s; }
.timeline-builder.drag-over { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 6%, transparent); }
.stop { display: grid; grid-template-columns: 84px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c); box-shadow: var(--shadow-sm); cursor: grab; opacity: 0; animation: fadeUp .45s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms); transition: transform .3s var(--ease), box-shadow .3s; }
.stop:hover { box-shadow: var(--shadow); } .stop.dragging { opacity: .4; } .stop.over { outline: 2px solid var(--accent-2); }
@media (max-width: 640px) { .stop { grid-template-columns: 60px 1fr; } .stop-nights, .stop-tools { grid-column: span 2; justify-self: start; } }
.stop-cover { position: relative; height: 64px; border-radius: 12px; overflow: hidden; } .stop-cover svg { width: 100%; height: 100%; } .stop-cover span { position: absolute; right: 6px; bottom: 4px; font-size: 1.3rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); }
.stop-title b { font-family: var(--font-display); font-size: 1.1rem; display: block; } .stop-title small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.stop-cost { font-size: .8rem; font-weight: 800; color: var(--accent); margin-top: 4px; }
.stop-nights { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.stop-nights button, .stop-tools button, .people-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 800; transition: all .25s; }
.stop-nights button:hover, .stop-tools button:hover:not(:disabled), .people-ctl button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.stop-nights b { min-width: 18px; text-align: center; font-size: 1.05rem; } .stop-nights span { font-size: .72rem; color: var(--muted); font-weight: 700; margin-right: 4px; }
.stop-tools { display: flex; gap: 4px; } .stop-tools button:disabled { opacity: .3; } .stop-tools .danger:hover { background: var(--rose); border-color: var(--rose); }
.drop-target, .drop-empty { padding: 18px; border-radius: 14px; border: 2px dashed var(--line); text-align: center; color: var(--muted); font-weight: 700; font-size: .88rem; }
.builder-summary { margin-top: 16px; }
.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .sum-grid div { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); text-align: center; } .sum-grid b { display: block; font-family: var(--font-display); font-size: 1.6rem; } .sum-grid span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .7; font-weight: 800; }
@media (max-width: 640px) { .sum-grid { grid-template-columns: 1fr 1fr; } }
.sum-cost { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); } .sum-cost b { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; }
.sum-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.seg.small { padding: 3px; } .seg.small button { padding: 7px 12px; font-size: .8rem; } .result .seg { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); } .result .seg button { color: inherit; } .result .seg button.active { background: var(--bg); color: var(--ink); }
.people-ctl { display: flex; align-items: center; gap: 8px; } .people-ctl b { font-size: .95rem; } .result .people-ctl button { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: inherit; }
.route-string { margin-top: 16px; font-size: .88rem; font-weight: 700; line-height: 1.9; } .route-string small { opacity: .6; } .route-string i { opacity: .5; margin: 0 4px; font-style: normal; }
.builder-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Dates */
.dates-layout { display: grid; grid-template-columns: 300px 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .dates-layout { grid-template-columns: 1fr; } }
.date-card input[type=date] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 700; margin-top: 8px; }
.countdown { margin-top: 18px; text-align: center; padding: 22px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #ff8a3d); color: #fff; }
.countdown b { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; } .countdown span { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; opacity: .9; }
.card h3.small { font-size: 1.1rem; margin-bottom: 12px; }
.fest { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); } .fest:last-child { border: 0; }
.fest-date { text-align: center; padding: 6px 4px; border-radius: 10px; background: var(--bg-2); } .fest-date b { display: block; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; } .fest-date span { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--accent); }
.fest > div:last-child b { display: block; font-size: .95rem; } .fest em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .8rem; } .fest small { color: var(--muted); font-weight: 700; font-size: .76rem; display: block; margin: 2px 0 4px; } .fest p { font-size: .84rem; color: var(--ink-2); }
.packing { display: grid; gap: 4px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.pack { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 8px; font-size: .88rem; cursor: pointer; } .pack:hover { background: var(--bg-2); } .pack input { accent-color: var(--accent-2); margin-top: 3px; flex: none; } .pack input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Confetti & print */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; }
#printArea { display: none; }
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; padding: 20px; font-family: Georgia, serif; color: #000; }
  #printArea table { width: 100%; border-collapse: collapse; font-size: 12px; } #printArea th, #printArea td { border: 1px solid #999; padding: 6px 8px; text-align: left; vertical-align: top; }
  #printArea ul { columns: 2; font-size: 12px; } #printArea .fine { font-size: 10px; color: #666; }
}

/* Live weather */
.weather-card .live, .modal-live { display: none; }
.weather-card .live.on { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); font-size: .78rem; font-weight: 700; color: var(--ink-2); animation: fadeUp .5s var(--ease); }
.modal-live.on { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.live b { color: var(--ink); font-size: .95rem; }
.live .wx-trip b { color: var(--accent); } .live .wx-soon, .live .wx-last { color: var(--muted); font-weight: 600; }
.wx-status { margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.wx-status a { color: var(--muted); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 0 rgba(15, 118, 110, .6); animation: pulse 2s infinite; }
.stop-wx { color: var(--ink-2); font-weight: 700; }

/* Curated picks & operators (modal) */
.picks-note { font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.pick-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.pick-row b { display: block; font-size: .95rem; } .pick-row small { color: var(--muted); font-weight: 700; font-size: .76rem; } .pick-row p { font-size: .84rem; color: var(--ink-2); margin: 3px 0 6px; }
.pick-links { display: flex; gap: 6px; } .pick-links a { padding: 4px 10px; border-radius: 999px; background: var(--bg-2); font-size: .74rem; font-weight: 800; color: var(--accent-2); } .pick-links a:hover { background: var(--accent-2); color: #fff; text-decoration: none; }
.tier { align-self: start; padding: 4px 8px; border-radius: 8px; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; text-align: center; }
.tier-budget { background: #dcfce7; color: #166534; } .tier-mid { background: #dbeafe; color: #1e40af; } .tier-lux { background: #fef3c7; color: #92400e; }
.ops { display: grid; gap: 8px; margin-top: 10px; }
.op { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); color: var(--ink); transition: transform .3s var(--ease), background .25s; }
.op:hover { transform: translateX(4px); background: var(--card); box-shadow: var(--shadow-sm); text-decoration: none; }
.op-kind { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem; background: var(--card); }
.op b { display: block; font-size: .9rem; } .op small { color: var(--muted); font-size: .76rem; font-weight: 600; }

/* Booking desk */
.desk-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; } .desk-progress .check-progress { flex: 1; margin: 0; } #deskCount { font-size: .82rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.desk { display: grid; gap: 12px; }
.desk-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: opacity .3s, transform .3s var(--ease); opacity: 0; animation: fadeUp .5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.desk-row.done { opacity: .55 !important; } .desk-row.done .desk-title { text-decoration: line-through; }
.desk-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--gold) 20%, transparent)); }
.desk-kind { font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.desk-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 2px 0 4px; }
.desk-sub { font-size: .84rem; color: var(--muted); font-weight: 600; }
.desk-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.desk-links a { padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); transition: all .25s; }
.desk-links a:hover { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.desk-links a.primary { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
.desk-links a.pickchip { background: transparent; }
.desk-check { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; color: var(--muted); cursor: pointer; padding-top: 6px; } .desk-check input { width: 20px; height: 20px; accent-color: var(--accent-2); }
.desk-empty { padding: 26px; border-radius: var(--radius); border: 2px dashed var(--line); text-align: center; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .desk-row { grid-template-columns: 44px 1fr; } .desk-check { grid-column: 2; } }

/* Live ratings filter */
.rating-summary { font-size: .78rem; font-weight: 700; color: var(--muted); margin: -2px 0 6px; min-height: 1em; }
.rating-summary .rs-on { color: #166534; } .rating-summary .rs-off { color: #92400e; }
.rs-toggle { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--accent-2); text-decoration: underline; cursor: pointer; }
.rating-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: .74rem; font-weight: 900; vertical-align: middle; margin-left: 6px; }
.rating-badge small { font-weight: 700; opacity: .8; } .rating-badge.none { background: var(--bg-2); color: var(--muted); }
.rating-slot { display: flex; align-items: center; gap: 6px; margin: 3px 0 2px; } .rating-slot .rating-badge { margin-left: 0; } .rating-slot.dim { opacity: .7; }
.rating-link { font-size: .72rem; font-weight: 800; margin-left: 4px; }
.pick-row.rating-hidden { display: none; } .show-hidden .pick-row.rating-hidden { display: grid; opacity: .6; }
.tier-eat { background: var(--bg-2); font-size: 1rem; }

/* Trip settings bar */
.settings-section { padding: 0 0 40px; margin-top: -30px; position: relative; z-index: 2; }
.settings-card { padding: 20px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.settings-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin-bottom: 14px; } .settings-title span { font-size: 1.2rem; } .settings-title b { font-family: var(--font-display); font-size: 1.15rem; } .settings-title small { color: var(--muted); font-weight: 600; }
.settings-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.set label { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.set select, .set input { width: 100%; padding: 10px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; }
.set select:focus, .set input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.sub-title { font-size: 1.3rem; margin: 34px 0 -26px; }
/* Month ratings */
.mbadge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .7rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.mbadge.best { background: #dcfce7; color: #166534; } .mbadge.good { background: #dbeafe; color: #1e40af; } .mbadge.ok { background: #fef3c7; color: #92400e; } .mbadge.avoid { background: #fee2e2; color: #991b1b; }
.when-to-go { padding: 22px 24px; }
.wtg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-bottom: 14px; } .wtg-head b { font-family: var(--font-display); font-size: 1.6rem; } .wtg-head span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.wtg-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); }
@media (max-width: 640px) { .wtg-row { grid-template-columns: 1fr; } }
.wtg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wtg-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font-size: .82rem; font-weight: 700; transition: all .25s var(--ease); } .wtg-chip:hover { background: var(--card); border-color: var(--accent); transform: translateY(-2px); }
.best-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 800; color: var(--ink-2); cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); } .best-toggle input { accent-color: var(--accent-2); }
.dest .month-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .8rem; font-weight: 700; color: var(--ink-2); }
/* Comfort card in modal */
.comfort-card { margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent-2) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); }
.comfort-card h4 { margin-bottom: 8px; } .comfort-card .score { display: inline-flex; gap: 2px; margin-left: 6px; } .comfort-card .score i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); } .comfort-card .score i.on { background: var(--accent-2); }
.comfort-card p { font-size: .86rem; color: var(--ink-2); margin: 4px 0; } .comfort-card ul { margin: 6px 0 0; padding-left: 18px; font-size: .86rem; color: var(--ink-2); }
.month-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin: 10px 0 4px; } .month-strip span { height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .62rem; font-weight: 900; color: #fff; opacity: .9; } .month-strip .r3 { background: #16a34a; } .month-strip .r2 { background: #3b82f6; } .month-strip .r1 { background: #d97706; } .month-strip .r0 { background: #dc2626; } .month-strip .cur { outline: 2px solid var(--ink); }
/* Country card */
.country-card { margin-bottom: 18px; border-left: 4px solid var(--accent-2); }
.country-links { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; } .country-links a { font-weight: 800; font-size: .9rem; }
/* Builder legs */
.leg { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 40px; font-size: .8rem; font-weight: 700; color: var(--muted); } .leg b { color: var(--ink-2); } .leg .leg-cost { margin-left: auto; color: var(--accent); }

/* Photos */
.cover.has-photo .scene { display: none; }
.cover .photo { transition: transform .8s var(--ease); }
.dest:hover .cover .photo { transform: scale(1.06); }
.cover.has-photo::after { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .45)); }
.sheet .cover.has-photo { height: 300px; }
.photo-credit { position: absolute; left: 14px; bottom: 10px; z-index: 4; font-size: .68rem; font-weight: 700; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.photo-credit:hover { text-decoration: none; background: rgba(0, 0, 0, .55); }
.hero-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero-photo.on { opacity: 1; animation: kenburns 28s ease-in-out infinite alternate; }
.hero-photo.on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 88%, transparent) 42%, color-mix(in srgb, var(--bg) 35%, transparent) 100%); }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2%, -1.5%); } }
.hero-photo.on ~ .orb { opacity: .25; }
@media (max-width: 960px) { .hero-photo.on::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent), var(--bg) 85%); } }

/* Onward tiles */
.onward-title { margin-bottom: 14px; }
.onward-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.onward-tile { flex: 0 0 200px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-sm); text-align: left; padding: 0; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; opacity: 0; animation: fadeUp .45s var(--ease) forwards; animation-delay: calc(var(--i) * 30ms); }
.onward-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.onward-tile .cover { height: 110px; } .onward-tile .emoji-badge { font-size: 1.3rem; right: 8px; bottom: 6px; }
.ot-body { padding: 10px 12px 12px; display: grid; gap: 4px; } .ot-body b { font-family: var(--font-display); font-size: 1rem; } .ot-body span { font-size: .78rem; font-weight: 700; color: var(--ink-2); } .ot-body .mbadge { justify-self: start; }
/* Style tiles in settings */
.set-wide { grid-column: span 2; }
.style-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.style-tile { display: grid; justify-items: center; gap: 1px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); transition: all .25s var(--ease); }
.style-tile span { font-size: 1.3rem; } .style-tile b { font-size: .78rem; } .style-tile small { font-size: .68rem; color: var(--muted); font-weight: 800; }
.style-tile:hover { transform: translateY(-2px); } .style-tile.active { background: var(--ink); color: var(--bg); border-color: var(--ink); } .style-tile.active small { color: color-mix(in srgb, var(--bg) 70%, transparent); }

/* Visual modal */
.sheet .cover.has-photo { height: 340px; }
.sheet .cover.has-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.6)); }
.modal-title { position: relative; z-index: 5; margin-bottom: 14px; }
.cover.has-photo + .content .modal-title { margin-top: -96px; margin-bottom: 26px; }
.cover.has-photo + .content .modal-title h3, .cover.has-photo + .content .modal-title .tag { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.sheet h3 { font-size: 2.2rem; }
.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
@media (max-width: 700px) { .stat-tiles { grid-template-columns: 1fr 1fr; } }
.stile { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.stile-k { font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stile > b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; } .stile > b.mbadge { font-family: var(--font-body); font-size: .72rem; justify-self: start; }
.stile small { font-size: .74rem; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.stile .score { display: inline-flex; gap: 3px; } .stile .score i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); } .stile .score i.on { background: var(--accent-2); }
.month-strip.mini { grid-template-columns: repeat(12, 1fr); gap: 2px; margin: 4px 0 0; } .month-strip.mini span { height: 6px; border-radius: 3px; } .month-strip.mini .cur { outline: 2px solid var(--ink); outline-offset: 1px; }
.todo-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; margin-bottom: 8px; }
.todo-card { flex: 0 0 170px; scroll-snap-align: start; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); opacity: 0; animation: fadeUp .45s var(--ease) forwards; animation-delay: calc(var(--i) * 50ms); }
.todo-card span { font-size: 1.6rem; display: block; margin-bottom: 6px; } .todo-card p { font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.safety-notes { margin: 6px 0 18px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent-2) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent-2) 30%, transparent); }
.safety-notes summary { cursor: pointer; font-weight: 800; font-size: .9rem; } .safety-notes ul { margin: 8px 0 0; padding-left: 18px; font-size: .86rem; color: var(--ink-2); }
.pick-card { border-left: 4px solid var(--line); border-bottom: 0; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg-2); }
.pick-card.tier-band-lux { border-left-color: #d4a017; } .pick-card.tier-band-mid { border-left-color: #3b82f6; } .pick-card.tier-band-budget { border-left-color: #16a34a; }
.pick-card p { display: none; } .pick-card:hover p { display: block; }
/* Modal photo header fixes */
.sheet .cover { position: relative; top: auto; }
.sheet .cover.has-photo .emoji-badge { display: none; }
.sheet .photo-credit { left: auto; right: 14px; bottom: 12px; }
.sheet .cover.has-photo .stamp { top: 70px; }
/* Route-card legend: keep on one row, wrap as chips on narrow screens */
.flight-card .legend { flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; }
.flight-card .legend span { white-space: nowrap; }

/* Region filter row */
.filters.regions { margin-top: 8px; } .filter.small-r { padding: 6px 11px; font-size: .78rem; }
.dest-toolbar { align-items: flex-end; }

.stamp-mini { width: 32px; height: 32px; font-size: .95rem; }

/* Festival & events ticker */
.ticker { position: relative; z-index: 3; margin: -6px 0 0; padding: 10px 0; background: var(--ink); color: var(--bg); }
[data-theme="dark"] .ticker { background: #232838; }
.ticker-inner { display: flex; align-items: center; gap: 14px; }
.ticker-label { flex: none; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .7; white-space: nowrap; }
.ticker-viewport { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: flex; gap: 10px; width: max-content; animation: tick 70s linear infinite; }
.ticker-track:hover, .ticker-track.paused { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tk { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .25s; }
.tk:hover { background: rgba(255, 255, 255, .16); }
.tk b { font-weight: 800; } .tk-date { opacity: .65; font-size: .74rem; }
.tk.celebrate .tk-icon { filter: none; } .tk.caution { border-color: rgba(251, 191, 36, .5); } .tk.closed { border-color: rgba(248, 113, 113, .55); }
.tk.rel { background: rgba(232, 89, 12, .25); border-color: rgba(232, 89, 12, .6); }
.ticker-pause { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: inherit; font-size: .75rem; }
.event-pop { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; width: min(520px, 92vw); padding: 0 0 16px; border-radius: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .4s var(--ease); }
.ep-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 18px 18px 0 0; font-size: .74rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ep-head.celebrate { background: #dcfce7; color: #166534; } .ep-head.caution { background: #fef3c7; color: #92400e; } .ep-head.closed { background: #fee2e2; color: #991b1b; }
.ep-head .close { position: static; width: 28px; height: 28px; font-size: .9rem; background: rgba(255, 255, 255, .7); }
.event-pop h4 { font-size: 1.2rem; margin: 12px 16px 2px; } .ep-date { margin: 0 16px 8px; font-size: .8rem; font-weight: 700; color: var(--muted); } .event-pop p { margin: 0 16px; font-size: .9rem; color: var(--ink-2); } .event-pop .chip-row { margin: 10px 16px 0; }
.event-pop .chip { border: 0; cursor: pointer; }
/* per-stop event chips */
.stop-events { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.se { padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.se.celebrate { background: #dcfce7; color: #166534; } .se.caution { background: #fef3c7; color: #92400e; } .se.closed { background: #fee2e2; color: #991b1b; }

.not-yours { margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); font-size: .72rem; letter-spacing: .02em; text-transform: none; color: var(--accent); font-weight: 800; }
.not-yours:hover { text-decoration: underline; }

/* Inspiration wall */
.inspire { padding-top: 40px; }
.wall-chips { margin-bottom: 18px; } .filter.shuffle { border-style: dashed; }
.wall { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; grid-auto-flow: dense; gap: 10px; }
@media (max-width: 1000px) { .wall { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; } }
@media (max-width: 640px) { .wall { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } }
.tile { position: relative; margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); cursor: pointer; opacity: 0; animation: fadeUp .5s var(--ease) forwards; animation-delay: calc(var(--i) * 40ms); }
.tile.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 640px) { .tile.big { grid-column: span 2; grid-row: span 1; } }
.tile img, .tile svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65)); }
.tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); display: grid; gap: 1px; }
.tile-region { font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.tile figcaption b { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.15; } .tile.big figcaption b { font-size: 1.6rem; }
.tile figcaption small { font-size: .74rem; font-weight: 600; opacity: .9; display: none; } .tile.big figcaption small, .tile:hover figcaption small { display: block; }
.tile figcaption .mbadge { justify-self: start; margin-top: 4px; }
.heart { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #e11d48; font-size: 1.2rem; line-height: 1; display: grid; place-items: center; transition: transform .3s var(--ease), background .25s; }
.heart:hover { transform: scale(1.15); } .heart.on { background: #e11d48; color: #fff; animation: beat .4s var(--ease); }
@keyframes beat { 30% { transform: scale(1.35); } }
.wish-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 250; width: min(760px, 94vw); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); animation: pop .4s var(--ease); }
.wish-thumbs { display: flex; align-items: center; } .wish-thumbs img, .wish-thumbs span { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); margin-left: -10px; display: grid; place-items: center; background: var(--bg-2); } .wish-thumbs img:first-child, .wish-thumbs span:first-child { margin-left: 0; } .wish-thumbs i { margin-left: 4px; font-style: normal; font-size: .78rem; font-weight: 800; color: var(--muted); }
.wish-text { flex: 1; min-width: 0; } .wish-text b { display: block; font-size: .92rem; } .wish-text small { display: block; color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-bar .btn { padding: 10px 16px; font-size: .86rem; } .wish-bar .btn-ghost { padding: 10px 12px; }
@media (max-width: 640px) { .wish-text small { display: none; } .wish-bar { gap: 8px; } }
#toTop { bottom: 90px; }

/* Trip builder fixes */
.timeline-builder.no-anim .stop { animation: none; opacity: 1; }
.leg { flex-wrap: wrap; row-gap: 2px; }
@media (max-width: 960px) {
  .builder-pool { position: static !important; top: auto; max-height: none !important; }
  .pool { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; max-height: none; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .pool-chip { flex: 0 0 200px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .stop { grid-template-columns: 60px 1fr; grid-template-areas: "cover body" "nights tools"; row-gap: 8px; }
  .stop-cover { grid-area: cover; height: 52px; } .stop-body { grid-area: body; min-width: 0; }
  .stop-nights { grid-area: nights; justify-self: start; } .stop-tools { grid-area: tools; justify-self: end; }
  .stop-title b { font-size: 1rem; } .stop-title small { display: block; }
  .leg { padding-left: 14px; font-size: .76rem; } .leg .leg-cost { margin-left: auto; }
  .timeline-builder { padding: 6px 0; }
  .sum-cost b { font-size: 1.6rem; }
}
body.has-wish { padding-bottom: 96px; }
.builder-layout > * { min-width: 0; } .builder-pool { min-width: 0; } .pool { max-width: 100%; }

/* Compact hero: pictures are the first screen */
.hero { min-height: auto; padding: 108px 0 18px; }
.hero-compact { display: grid; grid-template-columns: 1fr; gap: 10px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 14px 0 10px; }
.hero .lead { font-size: 1rem; max-width: 62ch; }
.hero-cta { margin-top: 16px; } .hero-cta .btn { padding: 11px 18px; font-size: .9rem; }
.hero-stats { margin-top: 18px; gap: 12px 24px; } .stat b { font-size: 1.25rem; } .stat span { font-size: .78rem; }
@media (max-width: 640px) { .hero { padding-top: 96px; } .hero-stats { display: none; } .hero .lead { display: none; } .hero h1 { margin-bottom: 6px; } }
.inspire { padding-top: 10px; }
.inspire .section-head { margin-bottom: 18px; } .inspire .section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 4px; }
.flights-top { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .flights-top { grid-template-columns: 1fr; } }
.flights-top .flight-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .flights-top .flight-grid { grid-template-columns: 1fr; } }
.pick-links a.primary { background: var(--accent-2); color: #fff; }

/* First screen = pictures */
.hero { padding: 96px 0 10px; }
.hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.hero h1 br { display: none; }
.hero .lead { font-size: 1rem; max-width: 620px; margin-bottom: 12px; }
.hero-cta { margin-bottom: 0; }
.inspire { padding-top: 6px; }
.inspire .section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; max-width: none; }
.inspire .section-head .kicker { margin-bottom: 0; }
.inspire .section-head h2 { margin-bottom: 0; }
.inspire .section-head p { flex-basis: 100%; margin: 0; font-size: .95rem; }
.wall-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 10px; }
.wall-chips::-webkit-scrollbar { display: none; }
.wall-chips .filter { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) {
  .hero { padding: 70px 0 6px; }
  .hero .lead, .hero .hero-cta, .inspire .section-head .kicker, .inspire .section-head p, .not-yours { display: none; }
  .hero h1 { font-size: 1.45rem; margin-bottom: 4px; }
  .hero .eyebrow { font-size: .72rem; }
  .brand { font-size: 1rem; }
  .wall { grid-auto-rows: 140px; }
  .hide-phone { display: none; }
}
