/* ==========================================================================
   Sana Leibak — Discover Manipur
   Design system: warm ivory paper, deep lake teal, lily rose & temple gold.
   ========================================================================== */

:root {
  --ink: #0d1b24;
  --ink-2: #14293a;
  --ink-3: #1d3a4d;
  --paper: #faf7f1;
  --paper-2: #f3ede2;
  --mist: #e7efee;
  --line: rgba(13, 27, 36, 0.1);
  --teal: #0f766e;
  --teal-deep: #0b4f4a;
  --teal-bright: #14b8a6;
  --rose: #d94f74;
  --rose-soft: #f3d3dc;
  --gold: #d9a441;
  --gold-soft: #f4e3c0;
  --sky: #7cc6e8;
  --txt: #22333e;
  --txt-2: #5b6b76;
  --cream: #fffdf8;
  --shadow-1: 0 1px 2px rgba(13, 27, 36, 0.06), 0 8px 24px -12px rgba(13, 27, 36, 0.18);
  --shadow-2: 0 2px 6px rgba(13, 27, 36, 0.08), 0 24px 48px -16px rgba(13, 27, 36, 0.28);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --font-d: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-b: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  color: var(--txt);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
a { color: inherit; }
::selection { background: var(--rose-soft); }

h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; color: var(--ink); line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------ layout ---------------------------------- */

.wrap { width: min(1200px, 92vw); margin: 0 auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section.tint { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.section.deep { background: linear-gradient(180deg, var(--ink) 0%, #0a2230 100%); color: #cfe3e0; }
.section.deep h2, .section.deep h3 { color: #f2f7f6; }
.section.deep p { color: #a9c3c0; }

.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.8rem;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.section.deep .kicker { color: var(--teal-bright); }
.lede { color: var(--txt-2); font-size: 1.05rem; margin-top: 0.7rem; }
.section.deep .lede { color: #9db8b5; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* pattern divider — Meitei-inspired chevrons */
.pattern-strip {
  height: 14px; width: 100%;
  background-image: repeating-linear-gradient(135deg,
    var(--gold) 0 10px, transparent 10px 20px,
    rgba(13, 27, 36, 0.85) 20px 30px, transparent 30px 40px);
  background-size: 40px 14px;
  opacity: 0.9;
}

/* ------------------------------ nav ------------------------------------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1240px, 94vw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: conic-gradient(from 220deg, var(--teal-deep), var(--teal), var(--sky), var(--teal-deep));
  display: grid; place-items: center; color: #fff; font-size: 1.15rem;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35), var(--shadow-1);
}
.brand-name { font-family: var(--font-d); font-size: 1.18rem; font-weight: 700; color: var(--ink); line-height: 1; }
.brand-name small { display: block; font-family: var(--font-b); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--teal); margin-top: 3px; }
.on-hero .brand-name, .on-hero .nav-link { color: #fff; }
.on-hero .brand-name small { color: #9adfd4; }
.nav-links { display: flex; align-items: center; gap: 0.2rem; }
.nav-link {
  position: relative; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--ink-2); padding: 0.55rem 0.85rem; border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { background: rgba(15, 118, 110, 0.08); color: var(--teal-deep); }
.nav-link.active { color: var(--teal-deep); }
.nav-link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 16px; height: 3px; border-radius: 3px; background: var(--gold);
}
.on-hero .nav-link.active { color: #ffd98a; }
.on-hero .nav-link.active::after { background: #ffd98a; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.trip-fab-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 0.88rem;
  padding: 0.55rem 1rem; border-radius: 999px; transition: transform 0.25s var(--ease), background 0.25s;
}
.trip-fab-btn:hover { transform: translateY(-1px); background: var(--ink-3); }
.tripCount {
  background: var(--rose); color: #fff; border-radius: 999px; font-size: 0.72rem;
  min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px;
}
#menuBtn { display: none; width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; background: rgba(13, 27, 36, 0.06); }

/* ------------------------------ hero ------------------------------------ */

.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #0a1a26; color: #fff;
  isolation: isolate;
}
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 20, 30, 0.42) 0%, rgba(10, 20, 30, 0) 34%, rgba(8, 18, 26, 0.28) 62%, rgba(6, 14, 20, 0.82) 100%);
}
.hero-content { position: relative; z-index: 2; width: min(1240px, 94vw); margin: 0 auto; padding: 9.5rem 0 4.2rem; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: #ffd98a; background: rgba(255, 217, 138, 0.1); border: 1px solid rgba(255, 217, 138, 0.3);
  padding: 0.5rem 1rem; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.9rem); color: #fff; margin: 1.4rem 0 1rem;
  letter-spacing: -0.015em; max-width: 15ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(6, 14, 20, 0.45);
}
.hero-title em { font-style: italic; color: #ffd98a; }
.hero-sub { max-width: 56ch; color: #cfe0e4; font-size: clamp(1rem, 1.6vw, 1.18rem); text-shadow: 0 1px 16px rgba(6, 14, 20, 0.5); }

.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.4rem; margin-top: 2.4rem; }

.hero-search {
  flex: 1 1 460px; max-width: 620px; position: relative;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.96); border-radius: 999px;
  padding: 0.45rem 0.55rem 0.45rem 1.35rem;
  box-shadow: 0 10px 40px -8px rgba(4, 12, 18, 0.55);
}
.hero-search .s-ic { font-size: 1.05rem; opacity: 0.55; }
#heroSearch {
  flex: 1; border: none; outline: none; background: none;
  font-size: 1rem; color: var(--ink); padding: 0.55rem 0; min-width: 0;
}
#heroSearch::placeholder { color: #93a4ad; }
.hero-search-btn {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 0.75rem 1.4rem; border-radius: 999px; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.hero-search-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(11, 79, 74, 0.7); }

#heroResults {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 30;
  background: var(--cream); border-radius: 18px; box-shadow: var(--shadow-2);
  overflow: hidden; display: none; max-height: 380px; overflow-y: auto;
}
#heroResults.open { display: block; }
.sr-row {
  display: flex; align-items: center; gap: 0.85rem; width: 100%;
  padding: 0.8rem 1.2rem; text-align: left; border-bottom: 1px solid var(--mist);
  transition: background 0.2s;
}
.sr-row:hover { background: #f2f8f6; }
.sr-row > span { font-size: 1.25rem; }
.sr-row strong { display: block; color: var(--ink); font-size: 0.98rem; }
.sr-row em { font-style: normal; font-size: 0.78rem; color: var(--txt-2); }
.sr-none { padding: 1.1rem 1.3rem; color: var(--txt-2); font-size: 0.92rem; }

.hero-live { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end; }
.live-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px); color: #fff;
  font-size: 0.9rem; padding: 0.55rem 1.05rem; border-radius: 999px; white-space: nowrap;
}
.live-chip strong { font-weight: 700; }
.live-chip .dot-live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
#heroClock { font-size: 0.8rem; color: #9db8bd; letter-spacing: 0.08em; }

.live-strip { display: flex; gap: 1.6rem; margin-top: 0.35rem; flex-wrap: wrap; }
.live-strip > div { display: flex; flex-direction: column; align-items: flex-start; }
.live-strip span { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8fb0b8; }
.live-strip strong { font-family: var(--font-d); font-size: 1.05rem; color: #fff; font-weight: 600; }

/* hero scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%); z-index: 3;
  color: rgba(255, 255, 255, 0.75); font-size: 1.4rem; animation: bob 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 9px); } }

/* ------------------------------ hero SVG art ---------------------------- */

.sun { transform-origin: center; animation: sunPulse 7s ease-in-out infinite; }
@keyframes sunPulse { 0%, 100% { opacity: 0.85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
.ph { animation: phBob 6.5s ease-in-out infinite; }
.ph:nth-of-type(2n) { animation-duration: 8s; animation-delay: -2.2s; }
.ph:nth-of-type(3n) { animation-duration: 7.2s; animation-delay: -4s; }
@keyframes phBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.shimmer { animation: shimmer 5s ease-in-out infinite; }
.shimmer:nth-of-type(2n) { animation-delay: -2.5s; }
@keyframes shimmer { 0%, 100% { opacity: 0.35; transform: scaleX(1); } 50% { opacity: 0.7; transform: scaleX(1.06); } }
.mist { animation: mistDrift 26s linear infinite; }
.mist.m2 { animation-duration: 34s; animation-delay: -12s; }
@keyframes mistDrift { 0% { transform: translateX(-140px); } 100% { transform: translateX(140px); } }
.bird { animation: fly 17s linear infinite; }
.bird.b2 { animation-duration: 23s; animation-delay: -9s; }
@keyframes fly { 0% { transform: translate(-180px, 0); opacity: 0; } 8% { opacity: 0.85; } 90% { opacity: 0.85; } 100% { transform: translate(980px, -46px); opacity: 0; } }
.boat { animation: boatRock 5.5s ease-in-out infinite; transform-origin: center; }
@keyframes boatRock { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-3.5px) rotate(1.4deg); } }

/* ------------------------------ buttons & chips -------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; padding: 0.8rem 1.6rem;
  border-radius: 999px; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn.primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; box-shadow: 0 10px 26px -10px rgba(11, 79, 74, 0.65);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(11, 79, 74, 0.75); }
.btn.primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink-2); background: transparent; }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-deep); background: rgba(15, 118, 110, 0.05); }
.btn.rose { background: var(--rose); color: #fff; }
.btn.wide { width: 100%; }
.btn.big { padding: 1rem 2.1rem; font-size: 1.02rem; }

.chip-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--teal-deep); color: #fff; font-weight: 600; font-size: 0.82rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
.chip-btn:hover { transform: translateY(-1px); opacity: 0.92; }
.chip-btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }
.chip-btn.ghost:hover { border-color: var(--teal); color: var(--teal-deep); }

/* ------------------------------ season banner --------------------------- */

.season-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem;
  background: linear-gradient(120deg, var(--ink) 0%, #123a44 100%);
  border-radius: var(--r-l); padding: 1.6rem 2rem; color: #fff;
  box-shadow: var(--shadow-2); position: relative; overflow: hidden;
}
.season-banner::after {
  content: "✦"; position: absolute; right: -1rem; top: -2.4rem; font-size: 9rem; opacity: 0.07;
}
.season-chip {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: var(--gold-soft); padding: 0.5rem 0.95rem; border-radius: 999px;
  white-space: nowrap;
}
.season-banner p { flex: 1 1 320px; color: #d7e5e3; font-size: 1rem; margin: 0; }
.season-banner p strong { color: #ffd98a; font-weight: 700; }
.season-banner .chip-btn { background: var(--gold); color: var(--ink); }

/* ------------------------------ destination cards ----------------------- */

.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }

.d-card {
  background: var(--cream); border-radius: var(--r-l); overflow: hidden;
  box-shadow: var(--shadow-1); cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.d-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.d-card-img { position: relative; aspect-ratio: 4 / 2.7; overflow: hidden; }
.d-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.d-card:hover .d-card-img img { transform: scale(1.06); }
.d-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 22, 30, 0.5)); pointer-events: none; }
.d-now {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: rgba(255, 253, 248, 0.92); color: var(--teal-deep);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.d-save {
  position: absolute; top: 0.8rem; right: 0.8rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 253, 248, 0.92); display: grid; place-items: center;
  font-size: 1.05rem; color: var(--ink-2);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}
.d-save:hover { transform: scale(1.12); }
.d-save.active { background: var(--rose); color: #fff; }
.d-save .trip-icon { pointer-events: none; line-height: 1; font-size: 1.35rem; font-weight: 400; }
.btn .trip-icon { font-size: 1.25em; line-height: 0; vertical-align: -0.06em; }
.d-card-body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.d-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.d-card-top h3 { font-size: 1.22rem; }
.d-cost { font-weight: 700; color: var(--gold); font-size: 0.95rem; }
.d-card-sub { font-size: 0.8rem; color: var(--teal-deep); font-weight: 600; letter-spacing: 0.03em; }
.d-card-blurb {
  font-size: 0.92rem; color: var(--txt-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.d-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.7rem; font-size: 0.82rem; color: var(--txt-2); }
.d-card-more { font-weight: 700; color: var(--teal-deep); transition: gap 0.25s; }
.d-card:hover .d-card-more { color: var(--rose); }

/* ------------------------------ experiences ----------------------------- */

.x-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-l); padding: 1.6rem 1.5rem; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
  position: relative;
}
.x-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 217, 138, 0.4); }
.x-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(255, 217, 138, 0.12); margin-bottom: 1rem;
}
.x-card h3 { color: #f2f7f6; margin-bottom: 0.5rem; }
.x-card p { color: #a9c3c0; font-size: 0.92rem; }
.x-where { display: inline-block; margin-top: 0.9rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: #ffd98a; text-transform: uppercase; }

/* ------------------------------ explore --------------------------------- */

.explore-layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
.filters {
  position: sticky; top: 84px;
  background: var(--cream); border-radius: var(--r-l); padding: 1.4rem;
  box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 1.3rem;
  max-height: calc(100vh - 110px); overflow-y: auto;
}
.filters h4 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-2); font-family: var(--font-b); font-weight: 700; }
.f-check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; padding: 0.28rem 0; cursor: pointer; color: var(--txt); }
.f-check input { accent-color: var(--teal); width: 16px; height: 16px; }
.f-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid var(--line); background: #fff; color: var(--txt);
  font-size: 0.85rem; font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px;
  transition: all 0.22s var(--ease);
}
.f-chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.f-chip.on { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.filters select, .tool-select {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.5rem 1rem; font-size: 0.88rem; color: var(--txt); outline: none;
}
.explore-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
#exploreCount { font-weight: 700; color: var(--teal-deep); }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 3.5rem 1rem;
  color: var(--txt-2); font-size: 1rem; background: var(--cream); border-radius: var(--r-l);
}

/* ------------------------------ detail modal ---------------------------- */

#detailOverlay {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 16, 22, 0.62);
  backdrop-filter: blur(7px); display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 3.2vh 2vw;
}
#detailOverlay.open { display: flex; }
.detail-modal {
  background: var(--paper); border-radius: var(--r-l); width: min(1060px, 100%);
  box-shadow: var(--shadow-2); overflow: hidden; animation: popUp 0.45s var(--ease);
  margin: auto 0;
}
@keyframes popUp { from { opacity: 0; transform: translateY(30px) scale(0.985); } to { opacity: 1; transform: none; } }
.detail-hero { position: relative; height: clamp(240px, 34vh, 340px); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 16, 22, 0.1) 20%, rgba(8, 16, 22, 0.78) 100%); }
.detail-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  font-size: 1rem; color: var(--ink); transition: transform 0.25s;
}
.detail-close:hover { transform: rotate(90deg); }
.detail-hero-text { position: absolute; left: 2rem; right: 2rem; bottom: 1.5rem; color: #fff; }
.detail-district { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: #ffd98a; }
.detail-hero-text h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0.3rem 0 0.4rem; }
.detail-hero-text p { max-width: 62ch; color: #dbe7ea; font-size: 0.98rem; }
.detail-body { padding: clamp(1.4rem, 3vw, 2.4rem); }
.detail-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.4rem; }
.detail-main h4 { margin: 1.5rem 0 0.6rem; font-size: 1.02rem; }
.detail-main h4:first-child { margin-top: 0; }
.detail-main p { color: var(--txt); font-size: 0.97rem; }
.hl-list { list-style: none; display: grid; gap: 0.45rem; }
.hl-list li { padding-left: 1.5rem; position: relative; font-size: 0.95rem; color: var(--txt); }
.hl-list li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; top: 0.2em; }
.dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dot { width: 13px; height: 13px; border-radius: 50%; background: var(--mist); border: 1.5px solid var(--line); }
.dot.on { background: var(--teal); border-color: var(--teal-deep); }
.dots-note { margin-left: 0.6rem; font-size: 0.84rem; color: var(--txt-2); font-weight: 600; }
.tip-note { background: var(--gold-soft); border-radius: var(--r-s); padding: 0.9rem 1.1rem; font-size: 0.93rem; }
.near-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.near-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem;
  font-weight: 600; font-size: 0.86rem; background: #fff; transition: all 0.22s;
}
.near-chip:hover { border-color: var(--rose); color: var(--rose); }
.near-chip small { color: var(--txt-2); font-weight: 500; }
.detail-side { display: flex; flex-direction: column; gap: 1rem; }
.side-card { background: var(--cream); border-radius: var(--r-m); padding: 1.2rem 1.3rem; box-shadow: var(--shadow-1); }
.side-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; font-size: 0.9rem; border-bottom: 1px dashed var(--line); }
.side-row:last-child { border-bottom: none; }
.side-row span { color: var(--txt-2); }
.side-row strong { text-align: right; }
.wx-card h5 { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--txt-2); margin-bottom: 0.7rem; font-family: var(--font-b); }
.wx-loading { color: var(--txt-2); font-size: 0.88rem; padding: 0.4rem 0; }
.wx-now { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; font-size: 0.95rem; padding-bottom: 0.7rem; border-bottom: 1px dashed var(--line); margin-bottom: 0.7rem; }
.wx-ic { font-size: 1.7rem; }
.wx-sub { width: 100%; font-size: 0.8rem; color: var(--txt-2); }
.wx-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.wx-day { display: grid; justify-items: center; gap: 2px; font-size: 0.72rem; color: var(--txt-2); }
.wx-day .wx-i { font-size: 1.15rem; }
.wx-day .wx-t { font-weight: 700; color: var(--ink); }
.wx-day .wx-pop { color: var(--sky); font-weight: 600; }

/* ------------------------------ trip drawer ------------------------------ */

#tripFab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 100;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 0.92rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; box-shadow: var(--shadow-2);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
#tripFab:hover { transform: translateY(-2px); }
#tripFab.hide { opacity: 0; pointer-events: none; transform: translateY(10px); }
#drawerScrim {
  position: fixed; inset: 0; background: rgba(8, 16, 22, 0.5); z-index: 110;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#drawerScrim.show { opacity: 1; pointer-events: auto; }
#tripDrawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 115; width: min(400px, 92vw);
  background: var(--paper); box-shadow: var(--shadow-2);
  transform: translateX(105%); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
#tripDrawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.2rem; }
#tripClose { width: 36px; height: 36px; border-radius: 50%; background: var(--mist); font-size: 0.95rem; }
#tripList { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
.trip-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: var(--cream); border-radius: var(--r-s); padding: 0.85rem 1rem; box-shadow: var(--shadow-1);
}
.trip-item-info strong { display: block; font-size: 0.95rem; color: var(--ink); }
.trip-item-info span { font-size: 0.78rem; color: var(--txt-2); }
.trip-x { width: 30px; height: 30px; border-radius: 50%; background: var(--mist); color: var(--txt-2); font-size: 0.8rem; flex: none; transition: all 0.2s; }
.trip-x:hover { background: var(--rose-soft); color: var(--rose); }
.trip-empty { text-align: center; color: var(--txt-2); padding: 3rem 1rem; font-size: 0.95rem; line-height: 1.8; }
.drawer-foot { padding: 1.1rem 1.4rem 1.3rem; border-top: 1px solid var(--line); }
.drawer-foot .btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ------------------------------ trip studio ------------------------------ */

.plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
.field label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--txt-2); margin-bottom: 0.6rem; }
.field input[type="date"], .field input[type="number"] {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-s);
  padding: 0.85rem 1.1rem; font-size: 1rem; color: var(--ink); outline: none; transition: border-color 0.2s;
}
.field input:focus { border-color: var(--teal); }
.field .sub { font-size: 0.8rem; color: var(--txt-2); margin-top: 0.4rem; }
.field-full { grid-column: 1 / -1; }
.opt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.opt-card {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-m);
  padding: 0.95rem 1rem; text-align: left; display: flex; flex-direction: column; gap: 0.15rem;
  transition: all 0.22s var(--ease);
}
.opt-card strong { color: var(--ink); font-size: 0.97rem; }
.opt-card span { font-size: 0.8rem; color: var(--txt-2); }
.opt-card:hover { border-color: var(--teal); }
.opt-card.on { background: var(--teal-deep); border-color: var(--teal-deep); }
.opt-card.on strong { color: #fff; }
.opt-card.on span { color: #b7dcd6; }
.must-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.must-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--rose-soft); color: #8c2d4b; font-weight: 600; font-size: 0.85rem;
  padding: 0.4rem 0.5rem 0.4rem 0.9rem; border-radius: 999px;
}
.must-chip button { width: 20px; height: 20px; border-radius: 50%; background: rgba(140, 45, 75, 0.14); font-size: 0.65rem; }
.hint-line { color: var(--txt-2); font-size: 0.92rem; }
#planHints { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; color: var(--rose); font-size: 0.88rem; font-weight: 600; min-height: 1.4em; margin: 0.8rem 0 1rem; }
.plan-generate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }

#planOutput { display: none; margin-top: 3rem; }
#planOutput.show { display: block; }
.plan-totals-card {
  background: linear-gradient(120deg, var(--ink) 0%, #123a44 100%);
  border-radius: var(--r-l); padding: 1.8rem 2rem; color: #fff; margin-bottom: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; box-shadow: var(--shadow-2);
}
.totals { display: grid; grid-template-columns: repeat(4, auto); gap: 1.6rem; align-content: center; justify-content: start; }
.totals div strong { display: block; font-family: var(--font-d); font-size: 1.5rem; color: #ffd98a; }
.totals div span { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9db8bd; }
.budget-bars { display: flex; flex-direction: column; gap: 0.55rem; justify-content: center; }
.bar-row { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 0.8rem; font-size: 0.82rem; color: #cfe3e0; }
.bar { height: 8px; background: rgba(255, 255, 255, 0.12); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-bright), var(--gold)); }
.bar-row em { font-style: normal; font-weight: 700; color: #fff; }

.day-card {
  background: var(--cream); border-radius: var(--r-l); box-shadow: var(--shadow-1);
  padding: 1.6rem 1.8rem; margin-bottom: 1.4rem;
}
.day-head { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); margin-bottom: 1.2rem; }
.day-no {
  flex: none; width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-d); font-size: 1.05rem; font-weight: 700;
  text-align: center; line-height: 1.05; padding: 4px;
}
.day-title { flex: 1; min-width: 200px; }
.day-title h3 { font-size: 1.25rem; }
.day-title span { font-size: 0.84rem; color: var(--txt-2); }
.day-wx { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; color: var(--txt); background: #eef6f4; border-radius: 999px; padding: 0.45rem 1rem; }
.day-wx .wx-pop { color: var(--sky); font-weight: 600; font-size: 0.8rem; }
.day-wx .wx-out { color: var(--txt-2); font-size: 0.8rem; }
.day-line { position: relative; padding-left: 0.2rem; }
.leg { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0 0.3rem 1.9rem; color: var(--txt-2); font-size: 0.86rem; }
.leg em { font-style: normal; font-weight: 600; }
.leg-from em, .leg-to em { color: var(--teal-deep); }
.stop { display: grid; grid-template-columns: 22px 1fr; gap: 0.9rem; padding: 0.35rem 0; }
.stop-tl { position: relative; display: flex; justify-content: center; }
.stop-tl::before { content: ""; position: absolute; top: -14px; bottom: -14px; width: 2px; background: var(--mist); }
.stop:first-of-type .stop-tl::before { top: 4px; }
.stop:last-of-type .stop-tl::before { bottom: auto; height: 26px; }
.stop-dot { width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--gold); margin-top: 5px; z-index: 1; }
.stop-body { background: #fff; border: 1px solid var(--mist); border-radius: var(--r-m); padding: 1rem 1.2rem; }
.stop-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.stop-name { font-size: 1.05rem; cursor: pointer; transition: color 0.2s; }
.stop-name:hover { color: var(--teal-deep); }
.stop-cost { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.stop-body > p { font-size: 0.9rem; color: var(--txt-2); margin-top: 0.25rem; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.8rem; color: var(--txt-2); margin-top: 0.55rem; }
.stop-why { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.stop-why em {
  font-style: normal; font-size: 0.74rem; font-weight: 700; color: var(--teal-deep);
  background: #e7f3f0; padding: 0.22rem 0.65rem; border-radius: 999px;
}
.meal { margin-top: 0.7rem; font-size: 0.85rem; color: #8c2d4b; background: var(--rose-soft); border-radius: var(--r-s); padding: 0.5rem 0.8rem; display: inline-block; }
#planActions { display: none; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
#planActions.show { display: flex; }

/* ------------------------------ food ------------------------------------- */

.food-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.8rem; }
.food-card {
  display: grid; grid-template-columns: 74px 1fr; gap: 1.1rem; align-items: start;
  background: var(--cream); border-radius: var(--r-l); padding: 1.4rem; box-shadow: var(--shadow-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.food-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.food-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.8rem; background: linear-gradient(135deg, var(--gold-soft), var(--rose-soft));
}
.food-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.spice { font-size: 0.85rem; }
.food-body p { font-size: 0.92rem; color: var(--txt-2); margin: 0.3rem 0 0.6rem; }
.food-where { font-size: 0.78rem; font-weight: 700; color: var(--teal-deep); letter-spacing: 0.03em; text-transform: uppercase; }

/* ------------------------------ festivals -------------------------------- */

.fest-now {
  background: linear-gradient(120deg, #4a1030 0%, var(--rose) 120%);
  color: #fff; border-radius: var(--r-l); padding: 1.5rem 1.9rem; margin-bottom: 2.4rem;
  box-shadow: 0 18px 40px -18px rgba(217, 79, 116, 0.55);
}
.fest-now-inner { display: flex; align-items: center; gap: 1.1rem; }
.fest-pulse { flex: none; width: 14px; height: 14px; border-radius: 50%; background: #ffd98a; box-shadow: 0 0 0 0 rgba(255, 217, 138, 0.5); animation: pulse 2s infinite; }
.fest-now-inner strong { font-size: 1.02rem; }
.fest-now-inner p { color: #ffe3ec; font-size: 0.94rem; margin: 0.15rem 0 0; }
.fest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.fest-card {
  position: relative; background: var(--cream); border-radius: var(--r-l); padding: 1.6rem;
  box-shadow: var(--shadow-1); border-top: 4px solid var(--teal);
  transition: transform 0.3s var(--ease);
}
.fest-card:hover { transform: translateY(-4px); }
.fest-card.soon { border-top-color: var(--rose); }
.fest-when { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.fest-card h3 { margin: 0.5rem 0 0.2rem; font-size: 1.35rem; }
.fest-window { font-size: 0.85rem; font-weight: 600; color: var(--txt-2); margin-bottom: 0.7rem; }
.fest-card p { font-size: 0.92rem; color: var(--txt); }
.fest-place { display: inline-block; margin-top: 0.9rem; font-size: 0.82rem; color: var(--txt-2); }
.fest-soon {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--rose); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 999px;
}

/* ------------------------------ travel & essentials ---------------------- */

.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.tr-card, .ess-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--r-l); padding: 1.6rem;
}
.tr-icon, .ess-icon { font-size: 1.7rem; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: rgba(124, 198, 232, 0.12); margin-bottom: 1rem; }
.ess-icon { background: rgba(255, 217, 138, 0.12); }
.tr-card p, .ess-card p { font-size: 0.92rem; }
.ess-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.stay-card { background: var(--cream); border-radius: var(--r-l); padding: 1.5rem; box-shadow: var(--shadow-1); }
.stay-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; }
.stay-price { font-weight: 700; color: var(--gold); white-space: nowrap; font-size: 0.88rem; }
.stay-where { font-size: 0.8rem; color: var(--txt-2); display: block; margin: 0.3rem 0 0.6rem; }
.stay-card p { font-size: 0.92rem; color: var(--txt); }
.emg-grid { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.emg {
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-m); padding: 0.8rem 1.3rem;
}
.emg strong { font-family: var(--font-d); font-size: 1.3rem; color: #ffd98a; }
.emg span { font-size: 0.85rem; color: #cfe3e0; }

/* ------------------------------ map -------------------------------------- */

.map-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1.4rem; height: calc(100vh - 130px); min-height: 540px; }
.map-side { display: flex; flex-direction: column; gap: 0.8rem; overflow-y: auto; padding-right: 2px; }
.map-side-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.map-side-head strong { font-size: 0.95rem; }
.map-item {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; text-align: left;
  background: var(--cream); border-radius: var(--r-s); padding: 0.75rem 0.95rem;
  box-shadow: var(--shadow-1); transition: transform 0.2s var(--ease); font-size: 0.92rem;
}
.map-item:hover { transform: translateX(3px); }
.map-item .pin-ic { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.map-item strong { display: block; font-size: 0.9rem; color: var(--ink); }
.map-item span { font-size: 0.75rem; color: var(--txt-2); }
#mapCanvas { border-radius: var(--r-l); z-index: 1; background: var(--mist); box-shadow: var(--shadow-1); }
.leaflet-container { font-family: var(--font-b); }
.pin-wrap { transition: transform 0.2s; }
.pin-wrap:hover { transform: scale(1.12); }
.map-pop { font-family: var(--font-b); }
.map-pop-title { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.map-pop-meta { font-size: 0.74rem; color: var(--txt-2); margin-bottom: 0.4rem; }
.map-pop p { font-size: 0.84rem; color: var(--txt); margin-bottom: 0.6rem; }
.map-pop-actions { display: flex; gap: 0.5rem; }
.map-pop-actions button {
  background: var(--teal-deep); color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 0.42rem 0.85rem; border-radius: 999px;
}
.map-pop-actions button:last-child { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }
.day-badge-wrap { background: none; border: none; }
.day-badge {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c, var(--teal)); color: #fff; font-size: 0.72rem; font-weight: 800;
  box-shadow: 0 0 0 2.5px #fff, 0 2px 8px rgba(13, 27, 36, 0.35);
}
.map-fallback {
  height: 100%; border-radius: var(--r-l); background: var(--cream); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; text-align: center; padding: 2rem; overflow: hidden;
}
.map-fallback-art { font-size: 2.6rem; }
.map-fallback h3 { font-size: 1.2rem; }
.map-fallback p { color: var(--txt-2); font-size: 0.9rem; max-width: 46ch; }
.map-fallback-list {
  margin-top: 0.8rem; width: 100%; max-height: 240px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.3rem 1.4rem; text-align: left;
}
.map-fallback-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.84rem; padding: 0.25rem 0; border-bottom: 1px dashed var(--line); }
.map-fallback-row em { color: var(--txt-2); font-style: normal; }

/* ------------------------------ chat ------------------------------------- */

#chatFab {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff; font-size: 1.45rem; box-shadow: 0 14px 30px -8px rgba(11, 79, 74, 0.65);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease), opacity 0.3s;
  animation: fabIn 0.8s var(--ease) 1.2s backwards;
}
@keyframes fabIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }
#chatFab:hover { transform: scale(1.08); }
#chatFab.hide { opacity: 0; pointer-events: none; transform: scale(0.6); }

#chatPanel {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 130;
  width: min(420px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 2.8rem));
  background: var(--paper); border-radius: var(--r-l); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(24px) scale(0.97); opacity: 0; pointer-events: none;
  transition: all 0.35s var(--ease);
}
#chatPanel.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; gap: 0.8rem;
  background: linear-gradient(135deg, var(--teal-deep), #0a3d39); color: #fff;
  padding: 1rem 1.2rem;
}
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; font-size: 1.2rem; }
.chat-head-info { flex: 1; }
.chat-head-info strong { display: block; font-family: var(--font-d); font-size: 1.05rem; }
.chat-head-info span { font-size: 0.74rem; color: #9adfd4; display: flex; align-items: center; gap: 0.35rem; }
.chat-head-info span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
#chatClose { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 0.9rem; }
#chatLog { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.8rem; background: linear-gradient(180deg, #f6f3ec, var(--paper)); }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble {
  max-width: 86%; padding: 0.75rem 1rem; border-radius: 18px; font-size: 0.92rem; line-height: 1.55;
  animation: msgIn 0.35s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.bot .bubble { background: #fff; color: var(--txt); border-bottom-left-radius: 6px; box-shadow: var(--shadow-1); }
.msg.user .bubble { background: var(--teal-deep); color: #fff; border-bottom-right-radius: 6px; }
.bubble p { margin: 0 0 0.55rem; }
.bubble p:last-child { margin-bottom: 0; }
.bubble strong { color: var(--ink); }
.msg.user .bubble strong { color: #fff; }
.chat-note { font-size: 0.82rem; color: var(--txt-2); }
.msg.user .chat-note { color: #cfe3e0; }
.chat-list { margin: 0 0 0.55rem 1.1rem; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.5rem 0 0.2rem; }
.chat-card { background: #f4f8f7; border: 1px solid var(--mist); border-radius: 14px; padding: 0.9rem 1rem; margin: 0.4rem 0 0.6rem; }
.chat-card-title { font-family: var(--font-d); font-weight: 700; color: var(--ink); font-size: 1rem; }
.chat-card-meta { font-size: 0.75rem; color: var(--teal-deep); font-weight: 600; margin: 0.15rem 0 0.4rem; }
.chat-card-body { font-size: 0.88rem; color: var(--txt); }
.dots { display: inline-flex; gap: 4px; padding: 0.4rem 0.2rem; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--txt-2); animation: blink 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.18s; }
.dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-form { display: flex; gap: 0.5rem; padding: 0.9rem; border-top: 1px solid var(--line); background: #fff; }
#chatInput {
  flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 0.7rem 1.1rem;
  font-size: 0.93rem; outline: none; transition: border-color 0.2s; min-width: 0;
}
#chatInput:focus { border-color: var(--teal); }
#chatSend {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; font-size: 1.05rem;
  transition: transform 0.2s var(--ease);
}
#chatSend:hover { transform: scale(1.07); }

/* ------------------------------ why / cta -------------------------------- */

.why-card {
  background: var(--cream); border-radius: var(--r-l); padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-1); border-top: 3px solid var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.why-card span { font-size: 1.8rem; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--gold-soft), var(--rose-soft)); margin-bottom: 1rem; }
.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { font-size: 0.92rem; color: var(--txt-2); }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem;
  background: linear-gradient(115deg, var(--rose) 0%, #8c2d4b 130%);
  border-radius: var(--r-l); padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 3rem);
  color: #fff; box-shadow: 0 24px 50px -20px rgba(140, 45, 75, 0.6);
  position: relative; overflow: hidden;
}
.cta-band::after { content: "🪷"; position: absolute; right: 2rem; bottom: -1.2rem; font-size: 7rem; opacity: 0.16; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: #ffe3ec; max-width: 52ch; }
.cta-band .btn.rose { background: #fff; color: #8c2d4b; box-shadow: 0 10px 26px -10px rgba(20, 8, 12, 0.5); }
.cta-band .btn.rose:hover { transform: translateY(-2px); }

.f-group { display: flex; flex-direction: column; gap: 0.5rem; }
.f-check-col { display: grid; gap: 0.15rem; max-height: 210px; overflow-y: auto; }

/* ------------------------------ toasts ----------------------------------- */

#toasts { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.3rem; border-radius: 999px; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(14px); transition: all 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast-ic { color: var(--gold); }

/* ------------------------------ footer ----------------------------------- */

.footer { background: var(--ink); color: #9db8bd; padding: 3.6rem 0 2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.4rem; }
.f-brand .brand-name { color: #fff; }
.f-brand p { font-size: 0.92rem; margin-top: 0.9rem; max-width: 44ch; }
.footer h4 { color: #fff; font-family: var(--font-b); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer ul a, .footer ul button { color: #9db8bd; text-decoration: none; font-size: 0.92rem; transition: color 0.2s; text-align: left; }
.footer ul a:hover, .footer ul button:hover { color: #ffd98a; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.8rem; }

/* ------------------------------ credits modal ---------------------------- */

#creditsOverlay {
  position: fixed; inset: 0; z-index: 140; background: rgba(8, 16, 22, 0.6);
  display: none; place-items: center; padding: 2rem; backdrop-filter: blur(6px);
}
#creditsOverlay.open { display: grid; }
.credits-box {
  background: var(--paper); border-radius: var(--r-l); max-width: 640px; width: 100%;
  max-height: 76vh; overflow-y: auto; padding: 2rem; box-shadow: var(--shadow-2); font-size: 0.9rem;
}
.credits-box h3 { margin-bottom: 1rem; }
.credits-box ul { list-style: none; display: grid; gap: 0.6rem; margin: 1rem 0; }
.credits-box li { padding-bottom: 0.6rem; border-bottom: 1px dashed var(--line); }
.credits-box a { color: var(--teal-deep); }

/* ------------------------------ responsive ------------------------------- */

@media (max-width: 1020px) {
  .explore-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .filters h4 { width: 100%; }
  .f-group { flex: 1 1 240px; }
  .detail-cols { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; height: auto; }
  #mapCanvas { height: 62vh; min-height: 420px; }
  .map-side { max-height: 300px; }
  .plan-totals-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 64px; right: 3vw; flex-direction: column; align-items: stretch;
    background: var(--cream); border-radius: var(--r-m); box-shadow: var(--shadow-2);
    padding: 0.7rem; min-width: 210px; display: none; z-index: 95;
  }
  .nav-links.open { display: flex; }
  .nav-link { border-radius: var(--r-s); }
  .nav-link.active::after { display: none; }
  #menuBtn { display: grid; place-items: center; }
  .trip-fab-btn span.trip-label { display: none; }
  .hero-content { padding-top: 7.5rem; }
  .hero { min-height: 88svh; }
  .hero-row { flex-direction: column; align-items: stretch; }
  .hero-live { align-items: flex-start; }
  .plan-grid { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: 1fr; }
  .totals { grid-template-columns: repeat(2, auto); }
  .day-card { padding: 1.2rem 1.1rem; }
  .detail-hero-text { left: 1.2rem; right: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  #chatPanel { right: 3vw; }
  .food-card { grid-template-columns: 1fr; }
  .day-wx { width: 100%; justify-content: flex-start; }
  .map-fallback-list { grid-template-columns: 1fr; }
}

/* ------------------------------ print ------------------------------------ */

@media print {
  body { background: #fff; }
  .nav, .hero, #tripFab, #chatFab, #chatPanel, #tripDrawer, #drawerScrim, #toasts,
  .footer, #planFormWrap, #detailOverlay, .pattern-strip, .section:not(.print-keep),
  #planActions, .map-layout { display: none !important; }
  #planOutput { display: block !important; }
  .day-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; page-break-inside: avoid; }
  .plan-totals-card { background: #fff; color: #000; border: 1px solid #ddd; }
  .totals div strong { color: #000; }
  .bar i { background: #333; }
}

/* ------------------------------ motion preferences ----------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  html { scroll-behavior: auto; }
}

/* Editorial refinement: let the photographs and writing do the work. */
:root {
  --paper: #f8f6f0;
  --paper-2: #eeebe3;
  --cream: #fffefa;
  --ink: #1f2b27;
  --ink-2: #34443c;
  --txt: #3f4944;
  --txt-2: #727a74;
  --teal: #47725c;
  --teal-deep: #315b45;
  --rose: #ad675c;
  --gold: #b4874b;
  --gold-soft: #f0e4ce;
  --line: rgba(31, 43, 39, 0.14);
  --shadow-1: 0 2px 12px rgba(31, 43, 39, 0.07);
  --shadow-2: 0 12px 34px rgba(31, 43, 39, 0.14);
  --r-s: 5px;
  --r-m: 9px;
  --r-l: 12px;
}

body { background: var(--paper); }
.section.tint { background: var(--paper-2); }
.section.deep { background: #263a30; }
.pattern-strip { height: 8px; opacity: 0.65; }

.nav.scrolled {
  background: rgba(248, 246, 240, 0.96);
  box-shadow: 0 1px 0 var(--line);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--teal-deep);
  box-shadow: none;
}
.nav-links { gap: 0.45rem; }
.nav-link { padding-inline: 0.45rem; border-radius: 0; }
.nav-link:hover { background: none; color: var(--teal-deep); }
.trip-fab-btn { background: var(--ink); border-radius: 5px; }

.hero-kicker { border-radius: 4px; background: rgba(255,255,255,.08); }
.hero-search {
  background: var(--cream);
  border-radius: 6px;
  box-shadow: 0 12px 35px -18px rgba(0,0,0,.65);
}
.hero-search-btn { background: var(--teal-deep); border-radius: 4px; }
.live-chip { border-radius: 4px; }

.btn, .chip-btn, .f-chip, .filters select, .tool-select { border-radius: 5px; }
.btn.primary { background: var(--teal-deep); box-shadow: none; }
.btn.primary:hover { background: var(--ink); transform: none; }

.section-head { margin-bottom: 2.15rem; }
.kicker { letter-spacing: .14em; }
.lede { max-width: 58ch; }
.section-head.center .lede { margin-inline: auto; }

.season-banner { border-radius: 9px; box-shadow: none; }
.d-card {
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: none;
}
.d-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.d-card-img::after { background: linear-gradient(180deg, transparent 60%, rgba(12,22,17,.42)); }
.d-card-body { padding: 1.15rem 1.2rem 1.2rem; }
.d-card-top h3 { font-size: 1.17rem; }

.filters, .side-card, .empty, .credits-box { border: 1px solid var(--line); border-radius: 9px; box-shadow: none; }
.filters { background: var(--cream); }
.f-chip { background: transparent; }
.f-chip.on { background: var(--teal-deep); border-color: var(--teal-deep); }
.detail-modal { border-radius: 9px; }
.detail-close { border-radius: 5px; }
.tip-note { border-left: 3px solid var(--gold); border-radius: 4px; }

@media (max-width: 760px) {
  .nav-links { gap: 0; }
  .nav-link { border-radius: 4px; }
}
