:root {
  --sky: #4eb7d9;
  --sky-deep: #1a8bb8;
  --sky-soft: #e6f5fb;
  --sun: #ffb020;
  --mango: #ff8a00;
  --sand: #fff8ec;
  --ink: #1a2a32;
  --ink-soft: #4a5d66;
  --line: #e4ebee;
  --ok: #1f9d55;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(26, 42, 50, 0.08);
  --shadow-sm: 0 2px 10px rgba(26, 42, 50, 0.06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --north: linear-gradient(135deg, #1a8bb8, #4eb7d9);
  --central: linear-gradient(135deg, #ff8a00, #ffb020);
  --south: linear-gradient(135deg, #1f9d55, #6fcf97);
  --island: linear-gradient(135deg, #0e7490, #22d3ee);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fbfdfe; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.8em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.shell { width: min(1180px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--mango); font-family: var(--serif); }
.nav { display: flex; gap: 22px; flex: 1; }
.nav a { color: var(--ink-soft); font-weight: 600; }
.nav a.active, .nav a:hover { color: var(--ink); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; background: var(--ink); color: #fff; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--mango), var(--sun)); color: #1a1205; }
.btn-sky { background: var(--sky-deep); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--sky); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-xs { padding: 5px 11px; font-size: 0.8rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--sky-deep); font-weight: 700; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { border-color: var(--sky-deep); background: var(--sky-soft); color: var(--sky-deep); }
button.chip:hover { border-color: var(--sky); }
.tag { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.tag-book { background: #fff1dc; color: #a35a00; }
.tag-free { background: #e4f7ec; color: var(--ok); }
.tag-src { background: var(--sky-soft); color: var(--sky-deep); }
.tag-expert { background: #fff1dc; color: #a35a00; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #ffe2b0 0%, transparent 60%), linear-gradient(180deg, var(--sky-soft) 0%, #fff 100%); padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mango); margin-bottom: 12px; }
.hero h1 span { color: var(--sky-deep); }
.hero .lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 36em; }
.hero-stats { display: flex; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 1.6rem; }
.planner { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.planner h3 { margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); }
.field input, .field select, .field textarea, .input { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; outline: none; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(78, 183, 217, 0.18); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field textarea { min-height: 76px; resize: vertical; }

/* sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--sand); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.step .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--sky-deep); font-weight: 800; margin-bottom: 10px; }
.step code { display: inline-block; margin-top: 6px; background: var(--sand); padding: 4px 8px; border-radius: 8px; font-size: 0.82rem; color: #8a4b00; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.15s ease; color: var(--ink); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card-art { position: relative; padding: 18px 18px 16px; color: #fff; min-height: 128px; display: flex; flex-direction: column; justify-content: space-between; }
.card-art .nights { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.card-art .nights small { font-size: 0.95rem; font-family: var(--sans); font-weight: 700; opacity: 0.9; }
.card-art .route { font-weight: 700; font-size: 0.92rem; opacity: 0.95; }
.card-art .src { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 3px 10px; font-size: 0.74rem; font-weight: 800; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 1.06rem; margin: 0; }
.card-body .hl { font-size: 0.86rem; color: var(--ink-soft); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price b { font-family: var(--serif); font-size: 1.15rem; }
.price small { color: var(--ink-soft); }
.reasons { font-size: 0.8rem; color: var(--ok); }
.bg-north { background: var(--north); }
.bg-central { background: var(--central); }
.bg-south { background: var(--south); }
.bg-island { background: var(--island); }

/* months strip */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.month { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.month .dots { display: flex; justify-content: center; gap: 3px; margin-top: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #dfe7ea; }
.dot.good { background: var(--ok); }
.month.best { border-color: var(--ok); background: #f1fbf5; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.heat { width: 100%; border-collapse: separate; border-spacing: 4px; }
.heat th { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; text-align: left; }
.heat td { border-radius: 8px; height: 34px; text-align: center; font-size: 0.78rem; font-weight: 700; }
.heat td.g3 { background: #c9efd8; color: #11663a; }
.heat td.g1 { background: #f3f6f7; color: #9aa9b0; }

/* stats band */
.band { background: var(--ink); color: #fff; border-radius: 24px; padding: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.band b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--sun); }
.cta-box { background: linear-gradient(135deg, var(--sky-deep), var(--sky)); color: #fff; border-radius: 24px; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-box h2 { color: #fff; }

/* filters */
.filters { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 26px; }
.count-line { margin: 0 0 14px; color: var(--ink-soft); font-weight: 600; }

/* board */
.board-head { background: linear-gradient(180deg, var(--sky-soft), #fff); padding: 30px 0 0; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.board-title { display: flex; justify-content: space-between; gap: 20px; align-items: start; flex-wrap: wrap; }
.board-title h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-weight: 600; font-size: 0.92rem; }
.meta span b { color: var(--ink); }
.route-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0 4px; }
.route-stop { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 0.88rem; }
.route-stop small { color: var(--mango); font-weight: 800; margin-left: 4px; }
.route-arrow { color: var(--ink-soft); }
.tabs { display: flex; gap: 4px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: none; padding: 12px 16px; font-weight: 700; color: var(--ink-soft); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab.on { color: var(--ink); border-bottom-color: var(--mango); }
.board-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding: 26px 0 60px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.panel h3 { margin-bottom: 12px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--sand); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-family: var(--serif); font-size: 1.35rem; }
.kpi span { font-size: 0.8rem; color: var(--ink-soft); font-weight: 700; }
.city-tl { display: grid; gap: 10px; }
.city-row { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); }
.city-badge { width: 54px; height: 54px; border-radius: 14px; color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.city-row h4 { margin: 0; font-size: 1.02rem; }
.make-yours { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.make-yours button { text-align: left; background: #fff; border: 1.5px dashed var(--sky); border-radius: 14px; padding: 14px; font-weight: 700; color: var(--ink); }
.make-yours button small { display: block; color: var(--ink-soft); font-weight: 500; margin-top: 4px; }
.make-yours button:hover { background: var(--sky-soft); }

.day { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-bottom: 6px; }
.day-rail { display: flex; flex-direction: column; align-items: center; }
.day-num { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; line-height: 1.05; text-align: center; font-size: 0.75rem; }
.day-num b { font-size: 1.2rem; display: block; }
.day-line { width: 2px; flex: 1; background: var(--line); margin-top: 6px; }
.day-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.day-card.relaxed { border-color: #bfe8d0; background: linear-gradient(180deg, #f3fbf6, #fff 40%); }
.day-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.day-top h3 { margin: 0; font-size: 1.15rem; }
.day-sub { color: var(--ink-soft); font-size: 0.86rem; font-weight: 600; }
.transfer { display: inline-flex; gap: 8px; align-items: center; margin: 10px 0 2px; padding: 6px 12px; border-radius: 10px; background: var(--sky-soft); color: var(--sky-deep); font-size: 0.85rem; font-weight: 700; }
.acts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.act { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; align-items: center; }
.act h4 { font-family: var(--sans); font-size: 0.98rem; margin: 0 0 2px; }
.act .sub { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.act-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border-left: 4px solid var(--sun); font-size: 0.88rem; }
.tip b { color: #8a4b00; }
.note { margin-top: 10px; font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

.stay-city { margin-bottom: 22px; }
.stay-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.stay { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.stay.picked { border-color: var(--ok); background: #f3fbf6; }
.stay.reco { border-color: var(--sun); }
.stay h4 { font-family: var(--sans); margin: 0; font-size: 1rem; }
.stay .links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; margin-top: auto; }

.book-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.book-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.book-item.done { background: #f3fbf6; border-color: #bfe8d0; }
.book-item.done .bl { text-decoration: line-through; color: var(--ink-soft); }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.8rem; }
.book-item.done .check { background: var(--ok); border-color: var(--ok); }
.book-links { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; }
.progress { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0 14px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #6fcf97); }
.budget-row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; margin-bottom: 10px; font-weight: 600; font-size: 0.92rem; }
.bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; }
.budget-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 6px; }
.budget-total b { font-family: var(--serif); font-size: 1.6rem; }
.ess-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ess-grid ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.ess-grid li { margin-bottom: 6px; }
.food-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.food { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.food b { display: block; }

/* AI side panel */
.side { position: sticky; top: 84px; }
.ai { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.ai-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.ai-head h3 { margin: 0 0 2px; font-size: 1.1rem; }
.ai-log { padding: 14px 18px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 0.9rem; white-space: pre-wrap; }
.msg.user { align-self: end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: start; background: var(--sky-soft); border-bottom-left-radius: 4px; }
.ai-suggest { padding: 0 18px 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-suggest button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px; font-size: 0.8rem; font-weight: 600; }
.ai-suggest button:hover { border-color: var(--sky); }
.ai-form { display: flex; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.ai-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; outline: none; }
.ai-form input:focus { border-color: var(--sky); }
.ai-fab { display: none; }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(26, 42, 50, 0.45); z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal { background: #fff; border-radius: 22px; width: min(560px, 100%); max-height: 88vh; overflow-y: auto; padding: 24px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; }
.x { border: 0; background: var(--sky-soft); width: 34px; height: 34px; border-radius: 50%; font-weight: 800; }
.alt-list { display: grid; gap: 8px; }
.alt { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; opacity: 0; transition: all 0.25s ease; z-index: 90; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* explore */
.city-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.city-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.city-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.city-card .art { color: #fff; padding: 22px 18px; min-height: 110px; }
.city-card .art h3 { color: #fff; font-size: 1.5rem; margin: 0; }
.city-card .body { padding: 14px 18px 18px; font-size: 0.9rem; }

.loading { padding: 80px 0; text-align: center; color: var(--ink-soft); }
.loader-route { display: block; width: 200px; height: 70px; margin: 0 auto 14px; overflow: visible; }
.loader-route .lr-path { fill: none; stroke: var(--mango); stroke-width: 2.5; stroke-dasharray: 6 7; stroke-linecap: round; animation: dash 6s linear infinite; }
.loader-route .lr-pin { fill: #fff; stroke: var(--sky-deep); stroke-width: 2.5; }
.loader-route .lr-pin.end { stroke: var(--mango); }
.loader-route .lr-dot { fill: var(--sky-deep); offset-path: path("M10 55 C 50 5, 90 65, 130 30 S 180 15, 190 20"); animation: travel 1.8s ease-in-out infinite; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes dash { to { stroke-dashoffset: -400; } }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--sky-deep); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { padding: 40px; text-align: center; color: var(--ink-soft); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.foot { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- photos & illustrations ---------- */
img { max-width: 100%; }
.card-art { min-height: 168px; overflow: hidden; }
.card-art .card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 20, 26, 0.15) 0%, rgba(10, 20, 26, 0.05) 35%, rgba(10, 20, 26, 0.72) 100%); }
.card-art > :not(.card-img) { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.card-art .src { position: absolute; z-index: 2; background: rgba(0, 0, 0, 0.38); backdrop-filter: blur(4px); }
.card:hover .card-img { transform: scale(1.05); }

.hero-photos { position: relative; height: 170px; margin-top: 28px; max-width: 460px; }
.hero-photos .hp { position: absolute; width: 46%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; border: 4px solid #fff; box-shadow: var(--shadow); }
.hero-photos .hp1 { left: 0; top: 18px; transform: rotate(-4deg); }
.hero-photos .hp2 { left: 27%; top: 0; z-index: 2; transform: rotate(2deg); }
.hero-photos .hp3 { left: 54%; top: 26px; transform: rotate(5deg); }

.step-illo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin: -6px 0 8px; }

.city-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.city-tile { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; color: #fff; box-shadow: var(--shadow-sm); }
.city-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.city-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 20, 26, 0.75)); }
.city-tile span { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 800; font-size: 0.95rem; }
.city-tile:hover { text-decoration: none; }
.city-tile:hover img { transform: scale(1.06); }

.region-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.region-tile { position: relative; border-radius: 16px; overflow: hidden; min-height: 150px; aspect-ratio: 16 / 10; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); }
.region-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.region-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(10, 20, 26, 0.8)); }
.rt-body { position: relative; z-index: 1; padding: 14px; display: grid; gap: 2px; }
.rt-body b { font-family: var(--serif); font-size: 1.25rem; }
.rt-body small { opacity: 0.9; }
.rt-best { margin-top: 6px; justify-self: start; background: var(--sun); color: #1a1205; font-weight: 800; font-size: 0.75rem; padding: 3px 9px; border-radius: 999px; }

.cta-box .cta-illo { width: 150px; border-radius: 16px; background: #fff; padding: 6px; }

.empty-state { text-align: center; padding: 28px 20px 40px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state .empty-illo { width: min(320px, 80%); display: block; margin: 0 auto 8px; }
.shell.empty-state { margin: 48px auto; max-width: 640px; }

.mosaic { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; aspect-ratio: 12 / 5; margin: 6px 0 20px; border-radius: 20px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; display: block; background: var(--sky-soft); }
.mosaic .m-main { grid-row: 1 / 3; overflow: hidden; min-height: 0; }
.mosaic .m-main img { animation: kenburns 22s ease-in-out var(--kb, 0s) infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.04) translate(-0.8%, 0.5%); } }
.mosaic:has(.m-side:only-of-type) { grid-template-rows: minmax(0, 1fr); }
.mosaic:has(.m-side:only-of-type) .m-main { grid-row: 1; }
.mosaic:not(:has(.m-side)) { grid-template-columns: minmax(0, 1fr); }

.route-stop { display: inline-flex; align-items: center; gap: 6px; padding-left: 4px; }
.route-stop .stop-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }

.city-row { grid-template-columns: 76px 1fr auto; }
.city-thumb { position: relative; width: 76px; height: 60px; border-radius: 12px; overflow: hidden; }
.city-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.city-thumb span { position: absolute; left: 6px; bottom: 5px; background: rgba(0, 0, 0, 0.6); color: #fff; font-weight: 800; font-size: 0.75rem; padding: 1px 7px; border-radius: 999px; }

.act.has-img, .alt.has-img { grid-template-columns: 84px 1fr auto; }
.act-img { width: 84px; height: 62px; border-radius: 10px; object-fit: cover; display: block; background: var(--sky-soft); }

.photo-banner { position: relative; aspect-ratio: 2 / 1; min-height: 130px; border-radius: 14px; overflow: hidden; margin: -4px -4px 14px; color: #fff; display: flex; align-items: flex-end; }
.photo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 20, 26, 0.75)); }
.photo-banner > div { position: relative; z-index: 1; padding: 12px 16px; }
.photo-banner h3 { color: #fff; margin: 0; }
.photo-banner span { font-size: 0.85rem; opacity: 0.92; }

.panel.with-illo { position: relative; padding-right: 160px; min-height: 130px; }
.panel-illo { position: absolute; right: 14px; top: 12px; width: 140px; }
.ai-illo { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; }

.photo-panel { padding-top: 0; overflow: hidden; }
.photo-panel .pp-img { display: block; width: calc(100% + 40px); max-width: none; margin: 0 -20px 12px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }

.city-card .art { position: relative; overflow: hidden; min-height: 150px; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; }
.city-card .art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.city-card .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 20, 26, 0.75)); }
.city-card .art > :not(.art-img) { position: relative; z-index: 1; }
.city-card:hover .art-img { transform: scale(1.05); }

.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.credit { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; font-size: 0.88rem; word-break: break-word; }
.credit img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }

@media (max-width: 980px) {
  .hero-grid, .board-grid { grid-template-columns: 1fr; }
  .steps, .band, .kpis, .make-yours { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .q { grid-column: 1 / -1; }
  .months { grid-template-columns: repeat(6, 1fr); }
  .side { position: static; }
  .side.collapsed .ai { display: none; }
  .ai-fab { display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; box-shadow: var(--shadow); }
  .ess-grid { grid-template-columns: 1fr; }
  .city-tiles { grid-template-columns: repeat(4, 1fr); }
  .region-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .top-row { gap: 10px; justify-content: space-between; }
  .steps, .band, .kpis { grid-template-columns: 1fr 1fr; }
  .make-yours { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .act { grid-template-columns: 1fr; }
  .act.has-img { grid-template-columns: 72px 1fr; }
  .act.has-img .act-actions { grid-column: 1 / -1; }
  .act-img { width: 72px; height: 56px; }
  .alt.has-img { grid-template-columns: 64px 1fr; }
  .alt.has-img .act-img { width: 64px; height: 48px; }
  .alt.has-img > button { grid-column: 1 / -1; justify-self: start; }
  .act-actions { justify-content: start; }
  .city-tiles { grid-template-columns: repeat(2, 1fr); }
  .region-tiles { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr; aspect-ratio: 3 / 2; }
  .mosaic .m-side { display: none; }
  .hero-photos { height: 130px; }
  .panel.with-illo { padding-right: 20px; }
  .panel-illo { position: static; display: block; width: 160px; margin: 0 auto 8px; }
  .cta-box .cta-illo { width: 120px; }
  .day { grid-template-columns: 1fr; }
  .day-rail { display: none; }
  .budget-row { grid-template-columns: 100px 1fr 90px; font-size: 0.85rem; }
  .book-item { grid-template-columns: auto 1fr; }
  .book-links { grid-column: 2; }
  .hero { padding-top: 36px; }
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, 0.35), transparent 65%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(78, 183, 217, 0.28), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; pointer-events: none; }
.hero-grid { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.15); } }

.hp-route { position: absolute; inset: -6px -24px; width: calc(100% + 48px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.hp-route path { fill: none; stroke: var(--mango); stroke-width: 2.2; stroke-dasharray: 6 7; stroke-linecap: round; opacity: 0.75; animation: dash 30s linear infinite; }
.hero-photos .hp { --d: 0s; animation: hp-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards, floaty 6s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) + 0.9s); transition: scale 0.3s ease; }
.hero-photos .hp2 { --d: 0.15s; }
.hero-photos .hp3 { --d: 0.3s; }
.hero-photos .hp:hover { scale: 1.06; z-index: 3; }
@keyframes hp-in { from { opacity: 0; translate: 0 40px; scale: 0.85; } }
@keyframes floaty { 50% { translate: 0 -8px; } }

.step { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-illo { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.step:hover .step-illo { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
.step .n { transition: background 0.2s, color 0.2s; }
.step:hover .n { background: var(--mango); color: #fff; }

.region-tile img { transition: transform 0.5s ease; }
.region-tile:hover img { transform: scale(1.06); }
.city-thumb img, .act-img, .pp-img, .art-img { transition: transform 0.4s ease; }
.city-row:hover .city-thumb img, .act:hover .act-img, .photo-panel:hover .pp-img, .city-card:hover .art-img { transform: scale(1.08); }
.city-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.route-arrow { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(3px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.8); } }

.first .progress > i { animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) backwards 0.2s; }
@keyframes grow { from { width: 0; } }

.tab { position: relative; transition: color 0.2s, border-color 0.2s; }
.tab-in { animation: fade-up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

.msg.pop { animation: pop-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.msg.user.pop { transform-origin: bottom right; }
.msg.assistant.pop { transform-origin: bottom left; }
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-deep); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

.ai-illo { animation: floaty 5s ease-in-out infinite; }
.btn-primary { transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .loader-route .lr-dot { offset-distance: 50%; }
}
