:root {
  --bg: #fffbf0;
  --card: #ffffff;
  --ink: #13232a;
  --muted: #56676d;
  --line: #ece4cf;
  --sun: #ffc94a;
  --sun-ink: #13232a;
  --sand: #fff4d6;
  --coral: #ff6b4a;
  --coral-ink: #c43e22;
  --ok: #1f8a4c;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(19, 35, 42, 0.05), 0 4px 14px rgba(19, 35, 42, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1a1f;
    --card: #172429;
    --ink: #eef3f4;
    --muted: #9fb2b8;
    --line: #26363c;
    --sand: #2a2617;
    --coral-ink: #ff8a6e;
    --ok: #4cc77a;
    --danger: #ff6b5b;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: env(safe-area-inset-bottom);
}
body.with-tabs { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--coral-ink); }
h1 { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 6px; }
h2 { font-size: 1.05rem; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--danger); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 6px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
  background: var(--sun); color: var(--sun-ink);
}
.brand { display: flex; align-items: center; gap: 8px; flex: 1; color: inherit; text-decoration: none; font-size: 1.3rem; font-weight: 500; letter-spacing: -0.03em; }
.brand b { font-weight: 800; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 2px rgba(19, 35, 42, 0.12); }
.title { flex: 1; margin: 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; color: inherit;
}
.icon-btn:hover { background: rgba(19, 35, 42, 0.08); }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

main { max-width: 720px; margin: 0 auto; padding: 16px; }

/* Bottom tabs */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.tabs a svg { width: 22px; height: 22px; }
.tabs a.on { color: var(--ink); font-weight: 800; }
.tabs a.on svg { color: var(--coral); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card);
  font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink);
}
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); } }
.btn.big { min-height: 54px; font-size: 1.05rem; padding: 0 26px; }
.btn.block { display: flex; width: 100%; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 0.85rem; }
.btn.danger { color: var(--danger); }
.btn.pro { color: var(--muted); }
.link-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 6px 0; color: var(--coral-ink); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.9rem; }

/* Layout bits */
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.section { margin: 22px 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.card.soft { background: var(--sand); border-color: transparent; box-shadow: none; }
.attrib { text-align: center; margin-top: 24px; }

/* Home */
.hero { text-align: center; padding: 32px 8px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero img { border-radius: 26px; box-shadow: 0 8px 24px rgba(255, 201, 74, 0.45); }
.hero h1 { font-size: 1.9rem; margin-top: 12px; }
.hero p { max-width: 420px; margin: 0 0 8px; color: var(--muted); }
.tagline { font-weight: 600; color: var(--ink) !important; margin-top: 8px !important; }
.trip { display: block; color: inherit; text-decoration: none; border-left: 6px solid var(--sun); }
.trip h2 { font-size: 1.15rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--sand); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.pill.now { background: var(--ok); color: #fff; }
.pill.past { background: var(--line); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 0.9rem; white-space: nowrap; cursor: pointer; }
.chip.small { min-height: 26px; padding: 0 10px; font-size: 0.78rem; cursor: default; }
.chip.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.chip.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip.toggle:has(input:checked) { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.chip.toggle:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Wizard */
.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.steps i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--sun); }
.steps span { margin-left: 6px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.wiz-nav { display: flex; gap: 10px; margin-top: 24px; padding: 18px 0 12px; position: sticky; bottom: env(safe-area-inset-bottom); background: linear-gradient(to bottom, transparent, var(--bg) 35%); }
.wiz-nav .btn { flex: 1; min-height: 52px; }
.search { display: flex; gap: 8px; margin: 14px 0 6px; }
.search input { flex: 1; min-width: 0; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 4px 0; }
.result { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; }
.result:hover { border-color: var(--sun); }
.stops { list-style: none; margin: 12px 0; padding: 0; counter-reset: stop; }
.stop { display: flex; align-items: center; gap: 4px; padding: 10px 6px 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 8px; }
.stop b { display: block; font-size: 1.05rem; }
.stop .muted { display: block; }
.stop-dates { display: flex; flex-direction: column; gap: 4px; }
.cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cat {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 112px; padding: 16px; border-radius: 20px; border: 2px solid var(--line);
  background: var(--card); text-align: left; font-weight: 800; font-size: 1.05rem; cursor: pointer;
}
.cat svg { width: 30px; height: 30px; color: var(--coral); }
.cat.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.cat.on svg { color: var(--sun-ink); }
.cat .tick svg { width: 16px; height: 16px; color: var(--sun); }
.cat .tick { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--sun-ink); color: var(--sun); display: flex; align-items: center; justify-content: center; }

.countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.country { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; text-align: left; border-radius: 16px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.country b { font-size: 1.1rem; }
.country.on { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.country.on .muted { color: var(--sun-ink); }
.routes { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.route { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 16px; text-align: left; border-radius: 18px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.route.on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
.route-head { display: flex; flex-direction: column; }
.route-head b { font-size: 1.1rem; }
.route-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.route-stops li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 10px; background: var(--sand); font-weight: 600; }
.route-stops .leg { background: none; padding: 0 10px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.route-stops .leg::before { content: "↓ "; }
.travel { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; border: 1.5px dashed var(--coral); }
.route-stops .nights { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.choices { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px; text-align: left; border-radius: 18px; border: 2px solid var(--line); background: var(--card); cursor: pointer; }
.choice b { font-size: 1.15rem; }
.choice.on { border-color: var(--sun); background: var(--sun); color: var(--sun-ink); }
.choice.on .muted { color: var(--sun-ink); }
.choice:disabled { opacity: 0.55; cursor: default; }
.stop { flex-direction: column; align-items: stretch; }
.stop-main { display: flex; align-items: center; gap: 4px; }
.stop .two label { margin: 6px 0 0; }

.sug { margin-top: 20px; }
.sug-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.05rem; }
.sug-head svg { width: 22px; height: 22px; color: var(--coral); }
.list .more { padding: 6px 0 10px; border-top: 1px solid var(--line); }
.empty-plan p { margin: 0 0 10px; font-weight: 600; }

.wx { display: flex; flex-direction: column; gap: 6px; }
.wx p { margin: 0; }
.wx-sum { font-weight: 700; }
.wx-days { list-style: none; margin: 4px -4px 0; padding: 0 4px 4px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.wx-days li { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 6px 4px; border-radius: 12px; background: var(--sand); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.wx-days svg { color: var(--coral); }
.pack { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 2px 12px; }
.pack label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 6px 0; font-size: 0.95rem; font-weight: 500; color: var(--ink); }
.pack input:checked + span { text-decoration: line-through; color: var(--muted); }

/* Date range */
.field { margin: 12px 0; }
.field-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.date-field { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.date-field.set { color: var(--ink); font-weight: 700; }
.date-field svg { color: var(--coral); flex: none; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; }
.rp-head b { font-size: 1.05rem; text-transform: capitalize; }
.rp-week, .rp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rp-week span { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.rp-grid { row-gap: 4px; }
.rp-day { position: relative; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.rp-day span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.rp-day.past { color: var(--line); cursor: default; }
.rp-day.in-range { background: var(--sand); }
.rp-day.has-range.start { background: linear-gradient(to right, transparent 50%, var(--sand) 50%); }
.rp-day.has-range.end { background: linear-gradient(to left, transparent 50%, var(--sand) 50%); }
.rp-day.edge span { background: var(--ink); color: #fff; }
.rp-day:not(.past):not(.edge):hover span { background: var(--sand); }
.rp-day:focus-visible span { outline: 2px solid var(--sun); outline-offset: 1px; }
.rp-sum { min-height: 1.5em; margin: 10px 0 0; font-weight: 700; text-align: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rp-day.edge span { background: var(--sun); color: var(--sun-ink); } }

.day-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.day-wx { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.day-wx svg { color: var(--coral); }
.day-wx .rain { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; color: #2f6fb3; font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .day-wx .rain { color: #7fb6ee; } }
.day-wx .wx-mark { color: var(--muted); }

/* Forms */
label { display: block; margin: 12px 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
label > input, label > select, label > textarea, .search input {
  display: block; width: 100%; margin-top: 4px; min-height: 46px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; font-weight: 500;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sun); outline-offset: 1px; border-color: var(--sun); }

/* Plan */
.loading-screen { text-align: center; padding: 60px 16px; }
.bounce { border-radius: 22px; animation: bounce 1.2s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .bounce { animation: none; } }
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.refine { position: relative; background: var(--sand); border-color: transparent; box-shadow: none; padding-right: 48px; }
.refine h2 { font-size: 1.15rem; }
.refine p { margin: 4px 0 12px; }
.refine .close { position: absolute; top: 8px; right: 8px; }
.day { margin-top: 18px; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.day-head h2 { font-size: 1.05rem; }
.day-head .muted { font-weight: 500; }
.city { font-weight: 700; color: var(--coral-ink); font-size: 0.9rem; }
.list { list-style: none; padding: 4px 14px; }
.item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item.done .it-title { text-decoration: line-through; color: var(--muted); }
.check { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ok); flex: none; }
.time { width: 46px; flex: none; font-weight: 800; font-variant-numeric: tabular-nums; }
.it-title { font-weight: 700; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: 0.7rem; font-weight: 700; vertical-align: middle; }
.note { white-space: pre-wrap; margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.links a { display: inline-flex; align-items: center; gap: 4px; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.it-actions { display: flex; flex-direction: column; margin: -6px -6px 0 0; color: var(--muted); }
.empty-day { padding: 12px 0; }
.place .btn { flex: none; }
/* Place photo, summary and key facts */
.ph { flex: none; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--sand); cursor: pointer; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-text { all: unset; cursor: pointer; display: block; }
.it-title.as-text { font-weight: 700; }
.as-text:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
.capsule { margin: 6px 0 0; line-height: 1.45; white-space: pre-line; }
.capsule.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.88rem; color: var(--muted); cursor: pointer; }
.links .link-btn { font-size: 0.85rem; }
.info-photo { margin: -4px -4px 12px; }
.info-photo img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; display: block; background: var(--sand); }
.info-photo figcaption { font-size: 0.7rem; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 0.9rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.tiny { font-size: 0.72rem; margin-top: 12px; }
.tip { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--sand); font-size: 0.92rem; }
.tip p { margin: 4px 0 0; line-height: 1.45; }
.date-badge { width: 46px; flex: none; text-align: center; border-radius: 10px; background: var(--sand); padding: 4px 0; line-height: 1.1; }
.date-badge b { display: block; font-size: 1.15rem; }
.date-badge span { font-size: 0.72rem; text-transform: uppercase; color: var(--muted); }
.plain { margin: 0; padding-left: 20px; }
.plain li { margin: 4px 0; }

/* Sheet */
dialog {
  width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 22px 22px 0 0; background: var(--card); color: var(--ink);
}
@media (min-width: 640px) { dialog { margin: auto; border-radius: 22px; } }
dialog::backdrop { background: rgba(19, 35, 42, 0.5); }
dialog form { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
dialog h2 { font-size: 1.2rem; margin-bottom: 6px; }
.confirm-msg { font-size: 1.05rem; font-weight: 600; margin: 4px 0 0; }
.actions { display: flex; gap: 8px; margin-top: 16px; }
.actions .btn { flex: 1; }
.refine-cat { border: 0; padding: 0; margin: 16px 0 0; }
.refine-cat legend { display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 0; }
.refine-cat legend svg { width: 20px; height: 20px; color: var(--coral); }

#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; transition: 0.2s;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px;
  background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
#toast.on { opacity: 1; transform: translateX(-50%); }

/* Plan pool and drag and drop */
.pool { margin: 12px 0 18px; padding: 14px 16px; border: 2px dashed var(--line); }
.pool-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pool-head h2 { margin: 0; font-size: 1.05rem; }
.pool-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 36px; }
.pool-chip { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 4px; border-radius: 12px; background: var(--sand); }
.pool-chip .as-text { display: flex; flex-direction: column; min-width: 0; }
.pool-chip b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 40px; color: var(--muted); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.item .grip { margin: -4px -2px 0 -8px; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; list-style: none; background: var(--card); border-radius: 12px; box-shadow: 0 12px 30px rgba(19, 35, 42, 0.25); opacity: 0.95; }
.drag-src { opacity: 0.35; }
.day.dim { opacity: 0.3; filter: grayscale(1); }
[data-drop-day].drop-on, [data-drop-pool].drop-on { outline: 2px solid var(--coral); outline-offset: 2px; }
.drop-line { list-style: none; height: 0; border-top: 3px solid var(--coral); margin: 2px 0; }

/* In-app map */
.map-box { height: min(60vh, 460px); border-radius: 14px; overflow: hidden; background: var(--sand); margin: 8px 0 4px; display: flex; align-items: center; justify-content: center; }
.map-box.leaflet-container { display: block; }

/* Card picture: the category icon shows until (or unless) a photo loads */
.ph { position: relative; display: flex; align-items: center; justify-content: center; color: var(--sun-ink); background: var(--sun); }
.ph svg { width: 26px; height: 26px; }
.ph img { position: absolute; inset: 0; }
.pool-chip .as-text { flex: 1; }

/* Place sheet: a swipeable row of photos */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px -4px 12px; scrollbar-width: none; }
.gallery .info-photo { flex: 0 0 88%; margin: 0; scroll-snap-align: start; }
.gallery .info-photo:only-child { flex-basis: 100%; }

/* Why a place is near the top */
.whys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.why { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--sand); color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.why.hot { background: var(--sun); color: var(--sun-ink); }
