/* Block-print editorial: ivory paper, indigo ink, brass hairlines, Fraunces headings over a DM Sans body.
   Ornaments are tiny monoline SVGs (drawn for this site) used as CSS masks, so they take the theme colour. */
:root {
  /* buti: a four-petal block-print flower */
  --orn-buti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.1' stroke-linejoin='round'%3E%3Cpath d='M12 3.2C14.6 5.8 14.6 9.4 12 12 9.4 9.4 9.4 5.8 12 3.2ZM12 20.8C14.6 18.2 14.6 14.6 12 12 9.4 14.6 9.4 18.2 12 20.8ZM3.2 12C5.8 9.4 9.4 9.4 12 12 9.4 14.6 5.8 14.6 3.2 12ZM20.8 12C18.2 14.6 14.6 14.6 12 12 14.6 9.4 18.2 9.4 20.8 12Z'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='12' cy='12' r='1.4'/%3E%3Ccircle cx='5.6' cy='5.6' r='.9'/%3E%3Ccircle cx='18.4' cy='5.6' r='.9'/%3E%3Ccircle cx='5.6' cy='18.4' r='.9'/%3E%3Ccircle cx='18.4' cy='18.4' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  /* border: a dabu-style strip of small buti and dots between two hairlines (tiles sideways) */
  --orn-border: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 14' fill='none' stroke='%23000' stroke-width='.8'%3E%3Cpath d='M0 .5H32M0 13.5H32M0 2.4H32M0 11.6H32' stroke-width='.5'/%3E%3Cpath d='M8 3.6C9.6 5.2 9.6 6.2 8 7 6.4 6.2 6.4 5.2 8 3.6ZM8 10.4C9.6 8.8 9.6 7.8 8 7 6.4 7.8 6.4 8.8 8 10.4ZM4.6 7C6.2 5.4 7.2 5.4 8 7 7.2 8.6 6.2 8.6 4.6 7ZM11.4 7C9.8 8.6 8.8 8.6 8 7 8.8 5.4 9.8 5.4 11.4 7Z'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='24' cy='7' r='1.2'/%3E%3Ccircle cx='20' cy='7' r='.55'/%3E%3Ccircle cx='28' cy='7' r='.55'/%3E%3C/g%3E%3C/svg%3E");
  /* title rule: hairline, diamond, hairline */
  --orn-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 10'%3E%3Cpath d='M0 5H36M52 5H88' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M44 1.2L47.8 5 44 8.8 40.2 5Z' fill='%23000'/%3E%3Ccircle cx='38.6' cy='5' r='.9' fill='%23000'/%3E%3Ccircle cx='49.4' cy='5' r='.9' fill='%23000'/%3E%3C/svg%3E");
  /* card corner: two hairlines meeting at a small buti */
  --orn-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23000' stroke-width='.8'%3E%3Cpath d='M4 34.5H27M34.5 4V27' stroke-linecap='round'/%3E%3Cpath d='M34.5 29.2C36.1 30.8 36.1 32 34.5 33 32.9 32 32.9 30.8 34.5 29.2ZM34.5 39C36.1 37.4 36.1 36.2 34.5 35.2 32.9 36.2 32.9 37.4 34.5 39ZM29.6 34.1C31.2 32.5 32.4 32.5 33.4 34.1 32.4 35.7 31.2 35.7 29.6 34.1ZM39.4 34.1C37.8 35.7 36.6 35.7 35.6 34.1 36.6 32.5 37.8 32.5 39.4 34.1Z'/%3E%3Cg fill='%23000' stroke='none'%3E%3Ccircle cx='20' cy='34.5' r='.9'/%3E%3Ccircle cx='34.5' cy='20' r='.9'/%3E%3Ccircle cx='12' cy='34.5' r='.6'/%3E%3Ccircle cx='34.5' cy='12' r='.6'/%3E%3C/g%3E%3C/svg%3E");
  /* jaali: interlocking circles, the lattice of a stone screen */
  --orn-jaali-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%23b6914a' stroke-opacity='.22' stroke-width='.7'%3E%3Ccircle cx='14' cy='14' r='9.9'/%3E%3Ccircle cx='0' cy='0' r='9.9'/%3E%3Ccircle cx='28' cy='0' r='9.9'/%3E%3Ccircle cx='0' cy='28' r='9.9'/%3E%3Ccircle cx='28' cy='28' r='9.9'/%3E%3C/svg%3E");
  --orn-jaali-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none' stroke='%23c4a15a' stroke-opacity='.16' stroke-width='.7'%3E%3Ccircle cx='14' cy='14' r='9.9'/%3E%3Ccircle cx='0' cy='0' r='9.9'/%3E%3Ccircle cx='28' cy='0' r='9.9'/%3E%3Ccircle cx='0' cy='28' r='9.9'/%3E%3Ccircle cx='28' cy='28' r='9.9'/%3E%3C/svg%3E");
  /* handmade paper: faint fibres from fractal noise */
  --paper-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .75 0 0 0 0 .6 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  background-color: var(--bg);
  background-image: var(--paper-l), radial-gradient(120% 60% at 50% 0%, rgba(240, 184, 90, .07), transparent 70%);
  background-attachment: fixed;
  color: var(--ink);
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  body { background-image: var(--paper-d), radial-gradient(120% 60% at 50% 0%, rgba(196, 161, 90, .08), transparent 70%); }
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; margin: 0 0 .45em; letter-spacing: -.012em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--t-h1); font-weight: 600; }
h2 { font-size: var(--t-h2); font-weight: 560; }
h3 { font-size: var(--t-h3); font-weight: 600; }
p { margin: 0 0 .8em; }
html { scroll-padding-top: calc(var(--topbar-h, 62px) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: var(--a); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
mark { background: var(--gold-soft); color: var(--ink); padding: 0 2px; border-radius: 3px; }
::selection { background: color-mix(in srgb, var(--marigold) 45%, transparent); color: var(--ink); }

/* one obvious focus ring everywhere: a solid ring with a halo of page colour so it shows on any fill */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--bg); }
summary:focus-visible, .tbl :focus-visible { box-shadow: none; }
main[tabindex="-1"]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--indigo); color: var(--ivory); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 8px; }
[data-item] { scroll-margin-top: 84px; }

/* shared small-label look: DM Sans, medium weight */
.home-btn, .menu-btn, .nav a, .btn, .chip, .badge, .tag, .stat-label, .cd-lab, .cd-kicker, .res-sec, .lg, .day-col h3, .field dt,
.tbl th, .tbl td::before, .legend, .soon-pill, .cancel-left, .dl-days, .dl-date, .day-n, .cl-count, .when, .india-time, .hero-sub,
.route-legend, .stop, .toast, label {
  font-family: var(--font-label);
}

/* ---------- top bar and nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background-color: var(--bg);
  background-image: var(--orn-jaali-l);
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 45%, transparent);
}
@media (prefers-color-scheme: dark) { .topbar { background-image: var(--orn-jaali-d); } }
.home-btn, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); min-width: var(--tap); padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .9rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.home-btn:hover, .menu-btn:hover { border-color: var(--edge); }
.home-btn .icon { color: var(--a); }
.menu-btn[aria-expanded="true"] { background: var(--indigo); color: var(--ivory); border-color: var(--indigo); }
.search { position: relative; flex: 1; min-width: 0; }
.search input[type="search"] {
  width: 100%; min-height: var(--tap); padding: 8px 14px 8px 40px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem;
}
.search input[type="search"]:hover { border-color: var(--edge); }
.search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.search-ico { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }

.shell { max-width: 1240px; margin: 0 auto; }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 2px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px;
  border-radius: 12px; text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 1rem; letter-spacing: 0;
  transition: background-color .2s ease;
}
.nav li[data-region] a .icon { color: var(--a); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--a-soft); color: var(--ink); font-weight: 650; box-shadow: inset 3px 0 0 var(--a); }
.nav a[aria-current="page"] .icon { color: var(--a); }
.soon-pill { margin-left: auto; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted); }

.content { padding: var(--s4); min-width: 0; }
main { outline: none; }
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; background: var(--gold-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent); border-radius: var(--radius-sm); margin: 0 0 12px; }
.banner p { margin: 0; }
.banner[hidden] { display: none; }
.banner-warn { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }

@media (max-width: 959px) {
  /* Phone and tablet: the bottom tab bar holds Home, Itinerary, Planning, Contacts and More.
     "More" opens the full section list as a sheet just above the bar, within thumb reach. */
  body.has-tabbar { --tabbar-h: 64px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.has-tabbar .home-btn { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 34;
    max-height: calc(100vh - var(--tabbar-h) - 90px); max-height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom) - 90px);
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 40px -18px rgba(14, 19, 38, .45);
  }
  .nav ul { padding: 12px 12px 8px; }
  .nav ul::before {
    content: ""; display: block; grid-column: 1 / -1; justify-self: center; width: 88px; height: 10px; margin: 0 0 8px;
    background: var(--brass); -webkit-mask: var(--orn-rule) center / contain no-repeat; mask: var(--orn-rule) center / contain no-repeat;
  }
  /* phones: the floating Contacts button gives way to the Contacts tab */
  body.has-tabbar .contacts-fab { display: none; }
  /* the Contacts tab already sits in the bar; "Group and contacts" stays in the list */
  body.has-tabbar .nav-contacts { display: none; }
}
@media (max-width: 480px) {
  .home-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .home-btn { padding: 0 11px; }
}
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; padding: 0 28px; }
  .nav { display: block; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; box-shadow: var(--shadow); }
  .nav[hidden] { display: block; }
  .nav ul { display: grid; grid-template-columns: 1fr; }
  .menu-btn { display: none; }
  .content { padding: 24px 0 24px; }
}

/* ---------- page head: medallion, editorial title, a slim gold rule ---------- */
.page-head { display: flex; gap: var(--s4); align-items: flex-start; margin: var(--s2) 0 var(--s5); padding-bottom: 0; border-bottom: 0; }
.page-head h1 { margin: 0; line-height: 1.08; }
.page-head h1::after {
  content: ""; display: block; width: 88px; height: 10px; margin: 12px 0 2px;
  background: var(--brass); -webkit-mask: var(--orn-rule) left center / contain no-repeat; mask: var(--orn-rule) left center / contain no-repeat;
}
.page-icon {
  flex: none; width: 56px; height: 66px; display: grid; place-items: center;
  background: var(--surface); color: var(--a); border: 1px solid var(--edge);
  border-radius: 999px 999px 10px 10px;
}
.intro { color: var(--muted); margin: 6px 0 0; font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.blk-h { margin: var(--s6) 0 var(--s3); padding-bottom: 0; border-bottom: 0; font-size: 1.4rem; }
.hint { color: var(--muted); font-size: var(--t-small); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }

/* ---------- buttons and form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--a); color: var(--a-ink); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(14, 19, 38, .12);
  transition: filter .2s ease, transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 6px 16px -10px rgba(14, 19, 38, .55); }
.btn:active { transform: translateY(1px); box-shadow: none; }
/* secondary: quiet hairline outline */
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { filter: none; background: var(--a-soft); border-color: var(--edge); box-shadow: none; }
.btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #2a0d14; } }
.btn-danger-ghost { background: var(--surface); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 60%, transparent); box-shadow: none; }
.btn-small { padding: 0 16px; }
.btn[disabled] { opacity: .55; cursor: default; filter: none; transform: none; }
input[type="text"], input[type="date"], input[type="number"], input[type="email"], input[type="search"], input[type="password"], textarea, select {
  width: 100%; max-width: 100%; min-height: var(--tap); padding: 10px 12px; font-size: 1rem;
  border: 1px solid color-mix(in srgb, var(--edge) 65%, var(--line)); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: border-color .2s ease;
}
input:hover, textarea:hover, select:hover { border-color: var(--edge); }
textarea { resize: vertical; }
label { font-weight: 600; font-size: var(--t-label); letter-spacing: .07em; text-transform: uppercase; display: block; margin: 12px 0 6px; color: var(--muted); }
.linklike { background: none; border: 0; color: var(--a); text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); padding: 0 6px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px;
  border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: 0;
  transition: background-color .2s ease, border-color .2s ease;
}
.chip .icon { color: var(--a); }
.chip:hover { background: var(--a-soft); border-color: var(--edge); }
.chip-btn { cursor: pointer; }
.chip-btn.is-on { background: var(--a); color: var(--a-ink); border-color: transparent; }
.chip-btn.is-on .icon { color: inherit; }

/* ---------- badges, tags, gaps ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
  background: var(--surface-2); color: var(--ink); border: 0; white-space: nowrap;
}
.badge-booked { background: var(--ok-bg); color: var(--ok); }
.badge-unbooked { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 50%, transparent); }
.badge-gap { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 50%, transparent); }
.badge-today { background: var(--marigold); color: var(--indigo); }
.badge-soon { background: var(--surface-2); color: var(--muted); margin-left: 8px; }
.tag {
  display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: .74rem; font-weight: 650; letter-spacing: .05em;
  text-transform: uppercase; vertical-align: middle; border: 0; white-space: nowrap;
}
.tag-web, .tag-derived { background: var(--b-soft); color: var(--b); }
.tag-inferred, .tag-listing { background: var(--gold-soft); color: var(--gold); }
.tag-conflict { background: var(--bad-bg); color: var(--bad); }
.tag-suggested { background: var(--ok-bg); color: var(--ok); }
.gap {
  display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--warn-bg); color: var(--warn);
  font-style: italic; font-weight: 600;
}
.note { color: var(--muted); font-size: .92rem; }
.val { overflow-wrap: anywhere; }
a.url { overflow-wrap: anywhere; }
a.tel { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-weight: 650; font-variant-numeric: tabular-nums; }
a.tel.big { font-size: 1.15rem; }
.cancel-left { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 4px; font-size: .78rem; font-weight: 650; letter-spacing: .02em; border: 1px solid currentColor; }
.cancel-left.ok { background: var(--ok-bg); color: var(--ok); }
.cancel-left.soon { background: var(--warn-bg); color: var(--warn); }
.cancel-left.late { background: var(--bad-bg); color: var(--bad); }

/* ---------- cards ---------- */
/* One card pattern for Stays, Activities, Food, Budget, Planning: paper surface, hairline edge, soft lift,
   a fine region rule on top and a block-print corner. Status shows as a coloured left edge plus one badge. */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin: 0 0 var(--s4); }
@media (min-width: 1100px) { .cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card, .day {
  position: relative; background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s4); overflow: hidden; box-shadow: var(--shadow);
}
.card::before, .day::before { content: none; }
/* region rule along the top: an accent hairline over a brass hairline */
.card[data-region]::before, .day[data-region]::before {
  content: ""; display: block; height: 4px; margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s4);
  background:
    linear-gradient(var(--a), var(--a)) 0 0 / 100% 2px no-repeat,
    linear-gradient(color-mix(in srgb, var(--brass) 55%, transparent), color-mix(in srgb, var(--brass) 55%, transparent)) 0 100% / 100% 1px no-repeat;
}
.card[data-region=""]::before { content: none; }
.card-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.3rem; }
.sub { margin: 4px 0 0; color: var(--muted); }
.status-gap { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.status-unbooked { box-shadow: inset 3px 0 0 var(--warn), var(--shadow); }
.warnline {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: var(--s2) 0; border-radius: var(--radius-sm);
  background: var(--warn-bg); color: var(--warn); border: 0; font-weight: 600;
}
.warnline .icon { flex: none; margin-top: 3px; }
.status-gap .warnline { background: var(--bad-bg); color: var(--bad); }
.fields { margin: 0; }
.field { display: grid; grid-template-columns: minmax(110px, 30%) minmax(0, 1fr); gap: 2px 14px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); }
.field dt { font-weight: 600; color: var(--muted); font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; padding-top: .3em; }
.field dd { margin: 0; overflow-wrap: anywhere; }
.lines .line { margin: 0 0 4px; }
@media (max-width: 520px) { .field { grid-template-columns: minmax(0, 1fr); } }

/* ---------- blocks ---------- */
.blk-list { padding-left: 1.2em; }
.blk-list li, .callout li { margin-bottom: .4em; }
.blk-list li::marker { color: var(--brass); }
.callout {
  display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--brass) 30%, transparent); background: var(--b-soft); margin: 0 0 var(--s4);
}
.callout-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.callout-icon { flex: none; color: var(--b); padding-top: 2px; }
.callout-warn .callout-icon { color: var(--warn); }
.callout-body { min-width: 0; }
.callout h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.2em; margin: .3em 0; }
.blk-details { border: 1px solid var(--line); border-radius: var(--radius); background-color: var(--surface); margin: 0 0 var(--s4); box-shadow: var(--shadow); }
.blk-details > summary {
  display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 8px 16px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; border-radius: var(--radius);
}
.blk-details > summary::-webkit-details-marker, .stay-fold > summary::-webkit-details-marker, .group-done > summary::-webkit-details-marker { display: none; }
/* one chevron for every fold */
.blk-details > summary::after, .stay-fold > summary::after, .group-done > summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 4px 4px auto; border: solid var(--brass); border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.blk-details[open] > summary::after, .stay-fold[open] > summary::after, .group-done[open] > summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.blk-details[data-region] > summary { background: var(--a-soft); }
.blk-details[open] > summary { border-bottom: 1px solid var(--line); border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.details-body { padding: var(--s3) var(--s4) var(--s4); }

/* ---------- stays: one collapsible block per stay ---------- */
.stay-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 56px; cursor: pointer; list-style: none; }
.stay-fold > summary .badge { margin-left: auto; }
.stay-fold > summary::after { margin-left: 0; }
.stay-sum-main { display: grid; gap: 2px; min-width: 0; }
.stay-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.stay-dates { color: var(--muted); font-weight: 500; font-size: 1rem; }
.stay-cancel { color: var(--warn); font-size: var(--t-small); font-weight: 650; }
.stay-fold[open] > summary { margin-bottom: var(--s2); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }

/* ---------- budget groups ---------- */
.budget-place { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); margin-top: var(--s5); }
.blk-h.budget-place { justify-content: flex-start; text-align: left; }
.blk-h.budget-place .subtotal { margin-left: auto; }
.subtotal { font-family: var(--font-body); font-size: .95rem; font-weight: 650; color: var(--a); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- tables (cards on phones) ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 var(--s4); border-radius: var(--radius-sm); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl caption { text-align: left; font-weight: 650; padding: 6px 2px; }
.tbl th { background: var(--surface-2); color: var(--ink); text-align: left; padding: 12px; font-size: .78rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--brass); }
.tbl td { padding: 12px; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.tbl-banana-leaf th { background: var(--south-soft); color: var(--south-ink); border-bottom-color: var(--south); }
@media (max-width: 720px) {
  .table-wrap { overflow: visible; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl { border: 0; background: transparent; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl caption { display: block; }
  .tbl tr { margin: 0 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
  .tbl td { display: grid; grid-template-columns: minmax(92px, 32%) minmax(0, 1fr); gap: 2px 12px; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); padding: 8px 14px; background: transparent !important; }
  .tbl td::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .3em; }
  .tbl td:first-child { grid-template-columns: minmax(0, 1fr); background: var(--a-soft) !important; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-top: 0; padding: 12px 14px; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--brass) 45%, transparent); }
  .tbl td:first-child::before { display: none; }
  .tbl-banana-leaf td:first-child { background: var(--south-soft) !important; color: var(--south-ink); }
  .tbl-banana-leaf td:first-child .note, .tbl-banana-leaf td:first-child .gap { color: inherit; }
  .tbl td:empty { display: none; }
}

/* ---------- home: a photograph at dawn, the countdown printed on a boarding pass ---------- */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin: 0 0 var(--s5);
  padding: 22px var(--s4) 30px; background: var(--block); color: var(--block-ink);
  border: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lift);
}
.hero-photo {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 42%;
}
/* the shade keeps every word on the photo readable: dark at top and bottom, darkest behind the copy */
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 14, 31, .82) 0%, rgba(10, 14, 31, .5) 34%, rgba(10, 14, 31, .55) 62%, rgba(10, 14, 31, .9) 100%),
    radial-gradient(90% 60% at 50% 55%, transparent 0%, rgba(10, 14, 31, .35) 100%);
}
.hero::after {
  /* a fine brass frame inside the photo */
  content: ""; position: absolute; z-index: -1; inset: 10px; border: 1px solid rgba(240, 189, 98, .45); border-radius: 15px; pointer-events: none;
}
.hero-copy { order: -1; max-width: 34rem; text-shadow: 0 1px 12px rgba(10, 14, 31, .6); }
.hero-hello { margin: 0 0 4px; font-family: var(--font-indic); font-size: 1.15rem; line-height: 1.5; color: var(--marigold); letter-spacing: .02em; }
.hero-hello .hello-dot { margin: 0 .35em; opacity: .7; }
.hero-copy h1 { margin: 0; font-size: clamp(2.2rem, 10vw, 3.4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.02em; color: #fbf6ea; }
.hero-sub { margin: 8px 0 0; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: #f4d79c; font-weight: 600; }
.hero .hint { color: #ece5d4; margin: 10px 0 0; font-size: 1rem; }
.hero-stage { position: relative; width: min(100%, 360px); }
.hero-credit {
  position: absolute; right: 18px; bottom: 12px; left: 18px; margin: 0; text-align: right;
  font-size: .72rem; line-height: 1.3; color: rgba(247, 242, 231, .88);
}
.hero-credit a { color: inherit; }
@media (min-width: 760px) {
  /* wide screens: copy and ticket side by side, so the hero stays short */
  .hero { flex-direction: row; justify-content: center; gap: var(--s7); text-align: left; padding: 52px var(--s6) 50px; }
  .hero-copy { order: 0; }
  .hero-stage { flex: none; width: 360px; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(10, 14, 31, .35) 0%, rgba(10, 14, 31, .55) 40%, rgba(10, 14, 31, .85) 100%),
      linear-gradient(180deg, rgba(10, 14, 31, .25), rgba(10, 14, 31, .65));
  }
}
.rangoli { display: none; }
.india-time { display: inline-block; margin: 10px 0 0; padding: 5px 14px; border-radius: 999px; background: rgba(10, 14, 31, .45); border: 1px solid rgba(240, 189, 98, .4); color: #fbf6ea; font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: none; }
.india-time .cd-lab { color: #f4d79c; }
.cd-lab { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }

/* The ticket: a main part and a stub, torn along a dotted line between two notches. The notches are real holes
   (masks), so the photo shows through them; the shadow follows the cut shape (drop-shadow on the wrapper). */
.ticket { filter: drop-shadow(0 16px 18px rgba(5, 8, 20, .45)) drop-shadow(0 2px 2px rgba(5, 8, 20, .35)); text-shadow: none; }
.bp {
  --notch: 10px; --bp-bg: var(--surface); --bp-rule: color-mix(in srgb, var(--brass) 70%, transparent); --bp-ring: color-mix(in srgb, var(--brass) 38%, transparent);
  display: flex; flex-direction: column; color: var(--ink); text-align: left;
}
@media (prefers-color-scheme: dark) { .bp { --bp-bg: #1b2244; --bp-ring: color-mix(in srgb, var(--brass) 55%, transparent); } }
.bp-main, .bp-stub { position: relative; background: var(--bp-bg); }
.bp-main {
  padding: 22px 16px 12px; border-radius: 16px 16px 0 0;
  box-shadow: inset 1px 0 0 var(--bp-ring), inset -1px 0 0 var(--bp-ring), inset 0 1px 0 var(--bp-ring);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 100%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 100%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.bp-stub {
  padding: 12px 16px 10px; border-radius: 0 0 16px 16px;
  box-shadow: inset 1px 0 0 var(--bp-ring), inset -1px 0 0 var(--bp-ring), inset 0 -1px 0 var(--bp-ring);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle var(--notch) at 0 0, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 0, #0000 98%, #000) right / 51% 100% no-repeat;
}
/* the tear line */
.bp-stub::before {
  content: ""; position: absolute; top: 0; left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); height: 4px;
  background: radial-gradient(circle, var(--bp-rule) 1.1px, transparent 1.7px) 0 0 / 7px 4px repeat-x;
}
/* a block-print border along the top edge */
.bp-main::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 6px; height: 10px;
  background: var(--brass); opacity: .8;
  -webkit-mask: var(--orn-border) left center / 23px 10px repeat-x; mask: var(--orn-border) left center / 23px 10px repeat-x;
}
.bp-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px;
  font-size: .66rem; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.bp-kicker { color: var(--b); }
.bp-pax { color: var(--ink); }
.bp-lab { color: var(--muted); font-weight: 650; }
.bp-head .bp-lab { display: none; }
@media (min-width: 400px) { .bp-head .bp-lab { display: inline; } }

.bp-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; margin-top: 6px; }
.bp-code { font: 500 2.2rem/1 var(--font-display); letter-spacing: -.01em; font-variant-numeric: lining-nums; color: var(--ink); }
.bp-path { position: relative; align-self: stretch; min-height: 40px; }
.bp-arc { position: absolute; left: 0; right: 0; top: -2px; width: 100%; height: calc(100% - 8px); overflow: visible; }
.bp-arc-todo { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 0 .034; opacity: .75; }
.bp-arc-done { fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 0 2; }
.bp-arc-end { fill: var(--brass); }
.bp-plane path { fill: var(--a); stroke: var(--bp-bg); stroke-width: .8; paint-order: stroke; }
.bp-flight {
  position: absolute; left: 0; right: 0; bottom: -2px; text-align: center;
  font-size: .62rem; font-weight: 700; letter-spacing: .16em; color: var(--b);
}
.bp-legs { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; font-size: .76rem; line-height: 1.3; }
.bp-legs > div { min-width: 0; }
.bp-legs .bp-to { text-align: right; }
.bp-city { display: block; font-weight: 650; color: var(--ink); }
.bp-time { display: block; color: var(--muted); font-variant-numeric: tabular-nums; }
.bp-time abbr { text-decoration: none; }

.cd { width: 100%; }
.cd-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cd-cell { display: flex; flex-direction: column; align-items: center; }
.cd-cell + .cd-cell { border-left: 1px solid var(--line); }
.cd-num { font: 500 clamp(1.8rem, 9vw, 2.3rem)/1.05 var(--font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.cd-cell:last-child .cd-num { color: var(--a); }
.bp-stub-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.cd-until { margin: 0; font: italic 500 1.02rem/1.2 var(--font-display); color: var(--ink); }
.bp-barcode { flex: none; width: 84px; height: 24px; fill: var(--ink); opacity: .78; }

/* during the trip: a day pass */
.bp-today { position: relative; margin-top: 6px; padding-right: 74px; }
.cd-place { margin: 0; line-height: 1.1; }
.cd-place .bp-lab { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.bp-place { font: 500 2rem/1.05 var(--font-display); color: var(--ink); }
.cd-next { margin: 4px 0 0; font-size: .9rem; line-height: 1.3; color: var(--ink); }
.cd-next .bp-lab { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.cd-day { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.cd-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); font-weight: 650; }
.cd-bignum { font: 500 clamp(2.6rem, 12vw, 3.2rem)/1 var(--font-display); color: var(--a); font-variant-numeric: lining-nums; }
.cd-of { font: italic 500 1.2rem var(--font-display); color: var(--ink); }

/* ink stamps */
.bp-stamp {
  --ink-stamp: var(--north);
  position: absolute; left: 50%; top: 52%; margin: 0; padding: 4px 14px; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-11deg);
  font: 600 1.45rem/1.1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-stamp);
  border: 3px double var(--ink-stamp); border-radius: 8px; opacity: .9;
  background: color-mix(in srgb, var(--bp-bg) 70%, transparent);
}
.bp-stamp-sm { top: 4px; left: auto; right: 0; transform: rotate(-9deg); font-size: .78rem; padding: 3px 8px; letter-spacing: .14em; text-align: center; }
.bp-stamp-sm small { display: block; font-size: 1.15em; letter-spacing: .1em; }
.cd-done { margin: 0; text-align: center; font: italic 500 1.6rem/1.1 var(--font-display); color: var(--a); }
.bp-after .bp-stub-foot .cd-next { margin: 0; font-size: .82rem; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .bp-plane-bob { animation: bp-bob 3.4s ease-in-out infinite; }
  @keyframes bp-bob { 0%, 100% { transform: translateY(-.5px); } 50% { transform: translateY(.7px); } }
}
@media (max-width: 359px) {
  .bp-main { padding-left: 12px; padding-right: 12px; }
  .bp-stub { padding-left: 10px; padding-right: 10px; }
  .bp-code { font-size: 1.9rem; }
  .bp-barcode { width: 64px; }
  .bp-legs { font-size: .72rem; }
  .bp-stamp { font-size: 1.15rem; }
  .hero { padding-bottom: 44px; }
}

/* ---------- home quick actions: four big labelled tiles right under the countdown ---------- */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
@media (min-width: 720px) { .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qa {
  display: flex; align-items: center; gap: var(--s3); min-height: 72px; padding: var(--s3); width: 100%;
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font: inherit; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
}
.qa:hover { border-color: var(--edge); box-shadow: var(--shadow-lift); }
.qa:active { transform: scale(.985); }
.qa-ico { flex: none; width: 42px; height: 46px; display: grid; place-items: center; border-radius: 999px 999px 9px 9px; background: var(--a-soft); color: var(--a); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 40%, transparent); }
.qa-text { display: grid; min-width: 0; }
.qa-label { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.qa-sub { color: var(--muted); font-size: .9rem; line-height: 1.3; }

.route-wrap { margin: 0 0 var(--s2); }
.route-legend { display: flex; gap: 8px; margin-bottom: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 12px; border-radius: 999px; font-weight: 650; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.lg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lg-north { background: var(--north-soft); color: var(--north-ink); }
.lg-south { background: var(--south-soft); color: var(--south-ink); }
.route { list-style: none; display: flex; flex-wrap: wrap; padding: 0; margin: 0; gap: var(--s2); }
.stop {
  display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; font-weight: 500; font-size: .95rem; letter-spacing: 0;
  border: 1px solid transparent; border-radius: 999px;
}
.stop-north { background: var(--north-soft); color: var(--north-ink); border-color: color-mix(in srgb, var(--north) 25%, transparent); }
.stop-south { background: var(--south-soft); color: var(--south-ink); border-color: color-mix(in srgb, var(--south) 25%, transparent); }
.stop-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.stop.is-here { background: var(--marigold); color: var(--indigo); border-color: var(--edge); }
.stop.is-here .stop-dot { background: var(--indigo); opacity: 1; }
.route-boat { display: none; }
.houseboat { display: none; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-height: var(--tap); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
a.stat:hover { border-color: var(--edge); }
.stat-label { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-value { white-space: nowrap; font: 500 clamp(1.4rem, 6vw, 2rem)/1.1 var(--font-display); letter-spacing: -.01em; color: var(--a); font-variant-numeric: tabular-nums lining-nums; }
.stat-sub { font-size: .92rem; color: var(--muted); line-height: 1.4; }
.stat.is-warn { background: var(--warn-bg); border-color: transparent; }
.stat.is-warn .stat-value { color: var(--warn); }
.deadlines { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.dl a {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; padding: 12px 14px; min-height: var(--tap); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: border-color .2s ease;
}
.dl a:hover { border-color: var(--edge); }
.dl-days { grid-row: span 2; align-self: center; font-weight: 650; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.dl-soon .dl-days { background: var(--warn-bg); color: var(--warn); }
.dl-late .dl-days { background: var(--bad-bg); color: var(--bad); }
.dl-title { font-weight: 650; line-height: 1.3; }
.dl-date { color: var(--muted); font-size: .88rem; }

/* section index: compact rows on phones, tiles on wider screens */
.index { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); margin: 0 0 var(--s3); }
@media (min-width: 640px) { .index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); } }
@media (min-width: 1000px) { .index { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.index-card {
  display: flex; gap: var(--s3); align-items: center; padding: 12px 14px; min-height: 64px;
  text-decoration: none; color: var(--ink); background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.index-card:hover { border-color: var(--edge); box-shadow: var(--shadow-lift); }
.index-card:active { transform: scale(.99); }
.index-card.is-soon { border-style: dashed; box-shadow: none; }
.index-icon { flex: none; width: 42px; height: 48px; display: grid; place-items: center; background: var(--a-soft); color: var(--a); border-radius: 999px 999px 8px 8px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 40%, transparent); }
.index-text { display: flex; flex-direction: column; min-width: 0; }
.index-title { font: 600 1.15rem/1.25 var(--font-display); display: flex; flex-wrap: wrap; align-items: center; }
.index-sum { color: var(--muted); font-size: .92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 640px) { .index-card { align-items: flex-start; padding: 16px; } .index-sum { -webkit-line-clamp: 3; } }
.legend { color: var(--muted); font-size: .85rem; letter-spacing: .01em; margin-top: var(--s4); }

/* ---------- itinerary ---------- */
.days { display: grid; gap: 18px; margin-top: 8px; }
.day-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.day-head h2 { flex-basis: 100%; margin: 0; font-size: 1.5rem; }
.day-date { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.day-n { background: var(--a); color: var(--a-ink); border-radius: 999px; padding: 1px 10px; font-size: .76rem; }
.day-note { color: var(--muted); }
.day-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin: var(--s2) 0; }
@media (min-width: 720px) { .day-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.day-col h3 { font: 600 .78rem var(--font-label); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.day-col ul { margin: 0; padding-left: 1.2em; }
.day-col li { margin-bottom: .35em; }
.ticks { list-style: none; padding-left: 0 !important; }
.ticks li { padding-left: 1.4em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: .2em; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); background: var(--a); }
.day-col.gaps { background: var(--warn-bg); border: 0; border-radius: var(--radius-sm); padding: 10px 12px; }
.day-col.gaps h3 { color: var(--warn); }
.day-col.gaps li { color: var(--ink); }
.is-today { box-shadow: 0 0 0 2px var(--marigold), 0 0 0 3px var(--edge), var(--shadow-lift); }
.meals { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.meal { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border-radius: var(--radius-sm); border: 0; background: var(--surface-2); }
.meal-ico { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8rem; background: var(--muted); color: var(--surface); }
.meal-txt { display: flex; flex-direction: column; font-size: .95rem; line-height: 1.3; min-width: 0; }
.meal-txt small { color: var(--muted); font-size: .85rem; }
.meal-paid { background: var(--ok-bg); }
.meal-paid .meal-ico { background: var(--ok); color: var(--ok-bg); }
.meal-likely { background: var(--gold-soft); }
.meal-likely .meal-ico { background: var(--gold); color: var(--gold-soft); }
.meal-no { background: var(--bad-bg); }
.meal-no .meal-ico { background: var(--bad); color: var(--bad-bg); }

/* ---------- budget and contacts ---------- */
.snapshot-label { font-size: .88rem; letter-spacing: .01em; font-weight: 600; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); background: var(--gold-soft); border-radius: var(--radius-sm); display: inline-block; }
.transfers { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.transfers li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.amt { font-weight: 650; color: var(--a); font-variant-numeric: tabular-nums; }
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { padding: 6px 14px; border-radius: 999px; background: var(--a-soft); border: 0; font-weight: 500; }
.phones { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
@media (min-width: 720px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.phone-group { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.phone-group h3 { margin: 0; }
.phone-group ul { list-style: none; padding: 0; margin: 6px 0 0; }
.phone-group li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; border-top: 1px solid color-mix(in srgb, var(--line) 75%, transparent); padding: 4px 0; }

/* ---------- checklist ---------- */
.cl-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-count { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cl-group { margin: 0 0 var(--s5); }
.cl-group h2 { font-size: 1.3rem; padding-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); }
.group-late h2 { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.group-soon h2 { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.group-ok h2 { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.group-done > summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; font: 600 1.3rem var(--font-display); }
.items { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 3px 0 0 var(--a), var(--shadow); transition: background-color .3s ease; }
.item-main { display: flex; gap: 2px; padding: 4px 10px 4px 2px; align-items: flex-start; }
.check { flex: none; width: 48px; min-height: 48px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input { width: 26px; height: 26px; accent-color: var(--a); margin: 0; cursor: pointer; }
.item-body { flex: 1; min-width: 0; }
.item-title { display: block; width: 100%; min-height: var(--tap); padding: 10px 4px 4px; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.item-title:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.is-done .item-title { text-decoration: line-through; color: var(--muted); }
.is-done { background: var(--surface-2); box-shadow: none; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 4px 10px; }
.when { font-size: .85rem; letter-spacing: .01em; color: var(--muted); }
.due-late { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.due-soon { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.due-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.region-north { background: var(--north-soft); color: var(--north-ink); }
.region-south { background: var(--south-soft); color: var(--south-ink); }
.item-more { padding: 0 16px 16px 16px; border-top: 1px solid var(--line); }
.detail { margin: 10px 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.row label { margin: 0; flex: none; }
.row input { flex: 1 1 160px; width: auto; }
.row.col { flex-direction: column; align-items: stretch; }
.row.col label { margin-bottom: 0; }
.row.actions { justify-content: flex-end; }

dialog.dlg { border: 1px solid var(--line); border-radius: 20px; padding: 0; width: min(520px, 94vw); background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(10, 14, 31, .6); }
dialog.dlg::backdrop { background: rgba(14, 19, 38, .55); }
.dlg-form { padding: 20px; }
.dlg-form h2 { margin-top: 0; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 440px) { .two { grid-template-columns: 1fr; } }
.form-err { color: var(--bad); font-weight: 650; min-height: 1.2em; }

/* ---------- search, soon, misc ---------- */
.results { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.results a {
  display: grid; gap: 2px; padding: 12px 16px; min-height: var(--tap); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: inset 3px 0 0 var(--a), var(--shadow);
}
.results a:hover { border-color: var(--edge); }
.res-sec { font-size: .76rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--a); }
.res-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.res-snip { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
/* empty, "coming soon" and error states share one calm panel */
.soon-card { text-align: center; padding: var(--s6) var(--s4); background-color: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.soon-card h1, .soon-card h2 { margin-bottom: .3em; }
.soon-card p { color: var(--muted); max-width: 46ch; margin-left: auto; margin-right: auto; }
.soon-art { color: var(--a); margin-bottom: 6px; }
.foot { position: relative; border-top: 0; margin-top: var(--s7); padding: var(--s5) 0 var(--s4); color: var(--muted); font-size: .92rem; }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: var(--brass); opacity: .7; -webkit-mask: var(--orn-border) left center / 32px 14px repeat-x; mask: var(--orn-border) left center / 32px 14px repeat-x;
}
.foot p { margin: 0 0 4px; }
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(14px + var(--tabbar-h) + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 60; padding: 0 12px; }
.toast { background: var(--indigo); color: var(--ivory); border: 1px solid rgba(240, 189, 98, .45); font-size: .95rem; padding: 12px 20px; border-radius: 999px; pointer-events: auto; box-shadow: 0 14px 30px -14px rgba(10, 14, 31, .6); }
@media (prefers-color-scheme: dark) { .toast { background: #f1ead8; color: #12182e; border-color: var(--brass); } }
.toast.err { background: var(--bad); color: #fff; }
@media (prefers-color-scheme: dark) { .toast.err { color: #2a0d14; } }
.flash { animation: flash 2.6s ease-out; }
@keyframes flash { 0%, 55% { box-shadow: 0 0 0 4px var(--marigold); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- calm motion: content rises gently into view as it scrolls in ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .page-head, .hero, .region-band { animation: rise .7s var(--ease) both; }
  .hero-photo { animation: fade 1.2s ease-out both; }
  @supports (animation-timeline: view()) {
    #app :is(.card, .day, .index-card, .qa, .stat, .dl, .phone-group, .blk-details, .transfers li, .vote-summary, .call-row, .item, .ts-item) {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 28%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- search results by region, Call block ---------- */
.res-region, .call-region {
  margin: 18px 0 8px; font: 650 .78rem var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--a);
  padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
}
.res-region[data-region="north"], .call-region[data-region="north"] { color: var(--north-ink); }
.res-region[data-region="south"], .call-region[data-region="south"] { color: var(--south-ink); }
.call-block { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); border-radius: var(--radius); padding: 4px 16px 16px; margin: 0 0 var(--s5); }
.call-block > .blk-h { display: flex; align-items: center; gap: 8px; margin-top: var(--s3); }
.call-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.call-row {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px;
  background: var(--surface); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 3px 0 0 var(--a), var(--shadow);
}
.call-row:hover { border-color: var(--edge); }
.call-row .icon { flex: none; color: var(--a); }
.call-text { display: grid; gap: 1px; min-width: 0; }
.call-place { font-size: 1rem; overflow-wrap: anywhere; }
.call-num { font: 650 1.15rem var(--font-body); color: var(--a); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.call-note { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }

/* ---------- "On this page" jump bar ---------- */
:root { --topbar-h: 62px; }
.jump-bar {
  position: sticky; top: var(--topbar-h); z-index: 20;
  display: flex; align-items: center; gap: 10px; min-width: 0;
  margin: -8px 0 var(--s4); padding: 6px 0; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
}
.jump-label { flex: none; font: 600 .75rem var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* the chip row scrolls sideways; a fade on the right edge says there is more */
.jump-chips {
  display: flex; gap: var(--s2); flex: 1; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 24px 4px 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.jump-chips::-webkit-scrollbar { display: none; }
.jump-chip {
  flex: none; display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; cursor: pointer; white-space: nowrap;
  border-radius: 999px; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  font: 500 .92rem var(--font-label); letter-spacing: 0;
}
.jump-chip:hover { background: var(--a-soft); border-color: var(--edge); }
.jump-chip.is-today { background: var(--a); color: var(--a-ink); border-color: transparent; }
@media (max-width: 480px) { .jump-label { display: none; } }
.jump-target, .jump-bar ~ [data-item], .jump-bar ~ * [data-item] { scroll-margin-top: 140px; }

/* ---------- floating Contacts button and sheet ---------- */
.contacts-fab {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 56px; min-height: 56px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--marigold); color: var(--indigo); border: 1px solid var(--edge); box-shadow: var(--shadow-lift);
  transition: transform .2s var(--ease), box-shadow .2s ease;
}
[data-region="all"] .contacts-fab, [data-region="north"] .contacts-fab { background: var(--marigold); }
body[data-region="south"] .contacts-fab { background: var(--peacock); color: #fffdf8; }
.contacts-fab:active { transform: scale(.96); box-shadow: var(--shadow); }
.fab-label { font: 650 .8rem var(--font-label); letter-spacing: .04em; display: none; }
@media (min-width: 720px) { .contacts-fab { padding: 0 18px; } .fab-label { display: inline; } }
.sheet-open { overflow: hidden; }
.sheet-open .contacts-fab { display: none; }
dialog.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 600px; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); box-sizing: border-box;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 -16px 44px -16px rgba(10, 14, 31, .5);
}
dialog.sheet::backdrop { background: rgba(14, 19, 38, .5); }
.sheet-head { position: sticky; top: -14px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); }
.sheet-head h2 { margin: 0; }
.sheet-foot { margin: 16px 0 0; text-align: center; }

/* ---------- place pills and chips (home route, itinerary filter) ---------- */
.stop { padding: 0; }
.stop-link { display: flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px; width: 100%; color: inherit; text-decoration: none; border-radius: 999px; }
.stop-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.places { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip-place.chip-north { background: var(--north-soft); color: var(--north-ink); border-color: color-mix(in srgb, var(--north) 25%, transparent); }
.chip-place.chip-south { background: var(--south-soft); color: var(--south-ink); border-color: color-mix(in srgb, var(--south) 25%, transparent); }
.chip-place.chip-north:hover { background: var(--north-soft); border-color: var(--north); }
.chip-place.chip-south:hover { background: var(--south-soft); border-color: var(--south); }
.chip-place.is-on, .chip-place.is-on:hover { background: var(--marigold); color: var(--indigo); border-color: var(--edge); font-weight: 650; }
.place-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.place-head h2 { margin: 0; font-size: 1.45rem; }

/* ---------- region photographs: two arched windows, North and South ---------- */
.region-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin: 0 0 var(--s5); }
.region-band.is-single { grid-template-columns: minmax(0, 1fr); }
.window { margin: 0; min-width: 0; }
.window-frame {
  position: relative; isolation: isolate; overflow: hidden; display: block; aspect-ratio: 4 / 3.4;
  border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; background: var(--block);
  box-shadow: 0 0 0 1px var(--brass), 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--brass) 55%, transparent), var(--shadow);
  margin: 5px;
}
.region-band.is-single .window-frame { aspect-ratio: 2.4 / 1; border-radius: 22% 22% 12px 12px / 46% 46% 12px 12px; }
.window-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: -2; }
.window[data-region="north"] .window-photo { object-position: 50% 35%; }
.window-frame::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 38%, rgba(10, 14, 31, .55) 66%, rgba(10, 14, 31, .88) 100%);
}
.window-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; color: #fbf6ea; text-shadow: 0 1px 8px rgba(10, 14, 31, .7); display: grid; gap: 1px; }
.window-name { font: 600 1.3rem/1.1 var(--font-display); }
.window-name::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 3px 0; transform: rotate(45deg); background: var(--marigold); vertical-align: middle; }
.window[data-region="north"] .window-name::before { background: #f5a3c7; }
.window[data-region="south"] .window-name::before { background: #7fdcc8; }
.window-sub { font-size: .9rem; font-weight: 500; color: #ece5d4; }
.photo-credit { margin: 6px 6px 0; font-size: .75rem; line-height: 1.35; color: var(--muted); }
.photo-credit a { color: inherit; }
@media (min-width: 760px) {
  .window-frame { aspect-ratio: 16 / 8.5; border-radius: 50% 50% 12px 12px / 34% 34% 12px 12px; }
  .region-band.is-single .window-frame { aspect-ratio: 3.4 / 1; border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; }
  .window-label { padding: 14px 18px 16px; }
  .window-name { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  .window-name { font-size: 1.12rem; }
  .window-sub { font-size: .82rem; }
}

/* ---------- packing picker ---------- */
.pk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 6px; }
.pk-total { flex: 1 1 160px; font-weight: 600; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pk-group { margin: 0 0 18px; }
.pk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 4px; margin-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--brass) 55%, transparent); }
.pk-head h2 { margin: 0; font-size: 1.25rem; }
.pk-count { flex: none; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pk-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pk-item {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; min-height: var(--tap); padding: 10px 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink);
  font-weight: 400; font-size: 1rem; letter-spacing: normal; text-transform: none;
  transition: border-color .2s ease;
}
.pk-item:hover { border-color: var(--edge); }
.pk-item input { flex: none; width: 26px; height: 26px; margin: 0; accent-color: var(--a); cursor: pointer; }
.pk-text { display: grid; gap: 2px; min-width: 0; }
.pk-label { font-weight: 650; overflow-wrap: anywhere; }
.pk-opt { font-weight: 400; color: var(--muted); }
.pk-why { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.pk-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 18px 0; }
.pk-msg { flex: 1 1 200px; margin: 0; font-weight: 600; }
.pk-msg.ok { color: var(--ok); }
.pk-msg.err { color: var(--bad); }

/* ---------- Contacts sheet: one number per place, "+N more" opens the full list ---------- */
.call-more { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; font-size: .9rem; font-weight: 600; }

/* ---------- upvotes (Food) ---------- */
.vote { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: middle; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 5px; min-height: var(--tap); min-width: 56px; padding: 2px 12px; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.vote-btn:hover { background: var(--a-soft); border-color: var(--edge); }
.vote-btn.is-on { background: var(--a); color: var(--a-ink); border-color: transparent; }
.vote-up { font-size: .7rem; line-height: 1; }
.vote-who { color: var(--muted); font-size: .85rem; }
.vote-summary { margin: 0 0 var(--s5); padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.vote-summary .blk-h { margin-top: 0; }
.vote-place { margin: 10px 0 4px; font-size: 1.05rem; }
.vote-list { margin: 0; padding-left: 1.2em; }
.vote-list li { margin-bottom: .3em; }
.vote-count { font-weight: 650; }
.vote-names { color: var(--muted); }
.vote-copy-ta { position: fixed; left: -9999px; top: 0; opacity: 0; }
.vote-print { display: none; }

/* ---------- Today card, trip spending, activity, comments ---------- */
.today-wrap:empty { display: none; }
.today-card { margin: 0 0 14px; }
.today-card h3 { margin: 14px 0 6px; }
.unread-dot { display: inline-block; width: 9px; height: 9px; margin-left: 6px; border-radius: 50%; background: var(--bad); border: 1px solid var(--surface); flex: none; }
.unread-dot[hidden] { display: none; }
.activity-feed { margin: 14px 0; }
.comments { margin-top: 8px; }
.comment-thread { margin-top: 6px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 2px solid color-mix(in srgb, var(--brass) 60%, transparent); }
.comment-list { margin: 0 0 6px; }
.comment-text { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-form textarea { width: 100%; }
.ts-add { margin: 0 0 14px; }
.ts-split { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; }
.ts-split legend { font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 0; margin-bottom: 4px; color: var(--muted); }
.split-opt { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; color: var(--ink); font-size: 1rem; font-weight: 500; }
.ts-item { padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- bottom tab bar (phones and tablets) ---------- */
.tabbar { display: none; }
@media (max-width: 959px) {
  .tabbar {
    position: fixed; z-index: 35; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding: 0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
    background: var(--surface); border-top: 1px solid color-mix(in srgb, var(--brass) 50%, transparent); box-shadow: 0 -8px 24px -16px rgba(14, 19, 38, .4);
  }
}
.tabbar .tab, .tabbar .menu-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: var(--tabbar-h); height: var(--tabbar-h); padding: 6px 2px 4px; margin: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--muted); cursor: pointer; text-decoration: none;
  font: 600 .74rem/1.1 var(--font-label); letter-spacing: .01em; text-transform: none;
}
.tabbar .tab-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: nowrap; max-width: 100%; text-overflow: ellipsis; }
.tabbar .tab .icon { transition: transform .2s var(--ease); }
/* the current tab: accent colour, a small arch behind the icon, a brass tick above */
.tabbar .tab[aria-current="page"], .tabbar .menu-btn[aria-expanded="true"] { color: var(--a); background: none; }
.tabbar .tab[aria-current="page"]::before, .tabbar .menu-btn[aria-expanded="true"]::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 52px; height: 32px; margin-left: -26px; border-radius: 999px 999px 10px 10px; background: var(--a-soft); z-index: -1;
}
.tabbar .tab[aria-current="page"]::after {
  content: ""; position: absolute; top: -1px; left: 50%; width: 24px; height: 2px; margin-left: -12px; background: var(--a); border-radius: 0 0 2px 2px;
}
.tabbar .tab:active .icon { transform: scale(.9); }
.tabbar .tab:focus-visible, .tabbar .menu-btn:focus-visible { outline-offset: -4px; box-shadow: none; border-radius: 12px; }
.tabbar { isolation: isolate; }
.tabbar .unread-dot { position: absolute; top: 8px; left: calc(50% + 10px); margin: 0; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; z-index: 33; right: max(16px, env(safe-area-inset-right));
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lift);
  font: 600 .85rem var(--font-label); letter-spacing: .01em;
}
.to-top[hidden] { display: none; }
.to-top:hover { border-color: var(--edge); }
@media (min-width: 960px) { .to-top { bottom: 92px; } }
.sheet-open .to-top { display: none; }

/* ---------- wide tables: a soft shadow on the edge that can still scroll ---------- */
@media (min-width: 721px) {
  .table-wrap {
    background:
      linear-gradient(90deg, var(--bg) 30%, transparent) left / 24px 100% no-repeat local,
      linear-gradient(-90deg, var(--bg) 30%, transparent) right / 24px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(29, 38, 71, .22), transparent) left / 10px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(29, 38, 71, .22), transparent) right / 10px 100% no-repeat scroll;
  }
}

/* ---------- small-screen type: never below 16px for reading text ---------- */
@media (max-width: 520px) {
  .content { padding: var(--s4) var(--s4) var(--s5); }
  .page-head { gap: var(--s3); }
  .intro, .sub, .index-sum, .res-snip, .pk-why, .stat-sub, .qa-sub, .note, .meal-txt, .call-note, .dl-date, .hint { font-size: 1rem; }
  .card, .day { padding: var(--s4); }
}
.ts-item .budget-place { display: flex; justify-content: space-between; gap: 12px; }
.ts-item p { margin: 4px 0 0; }

/* ---------- Feedback: floating button, sheet and page ---------- */
.feedback-fab {
  position: fixed; z-index: 33;
  left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: var(--tap); min-height: var(--tap); padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--edge); box-shadow: var(--shadow-lift);
  font-weight: 600; transition: transform .2s var(--ease), box-shadow .2s ease;
}
.feedback-fab .icon { color: var(--a); }
.feedback-fab:active { transform: scale(.96); box-shadow: var(--shadow); }
@media (min-width: 720px) { .feedback-fab { padding: 0 16px; } }
/* Top-bar copy of the button, used on phones and tablets so nothing floats over the content. */
.feedback-top {
  display: none; flex: none; align-items: center; justify-content: center;
  width: var(--tap); height: var(--tap); padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface); color: var(--a); border: 1px solid var(--edge);
}
@media (max-width: 959px) {
  .feedback-fab { display: none; }
  .feedback-top { display: inline-flex; }
}
.sheet-open .feedback-fab { display: none; }
.fb-types { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-types legend { padding: 0; font-weight: 600; font-size: var(--t-label); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fb-type { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; color: var(--ink); }
.fb-type:focus-within { outline: 3px solid var(--a); outline-offset: 2px; }
.fb-count-row { margin: 4px 0 0; text-align: right; }
.fb-about { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.fb-about input { width: 22px; height: 22px; flex: none; }
.fb-about label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 500; color: var(--ink); }
.fb-thanks { font-weight: 650; color: var(--ok); }
.fb-card .comment-text { margin: 0 0 6px; }
.fb-reply { margin: 0 0 6px; padding: 6px 10px; border-left: 2px solid var(--a); background: var(--surface-2); overflow-wrap: anywhere; }
.fb-vote { margin: 0 0 4px; }
.fb-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.fb-admin select { width: auto; flex: none; }
.fb-admin input { flex: 1 1 180px; width: auto; }
.fb-admin .form-err { flex: 1 0 100%; margin: 0; min-height: 0; }

/* ---------- gaps: Add info buttons, the Help fill the gaps list, draft banner ---------- */
.gap-add { margin-left: 8px; vertical-align: middle; }
.gap-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.gap-what { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.gap-n { white-space: nowrap; }
.gaps-card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.gap-list { margin: 0; }
.gaps-card .gap-list .gap-summary { padding: 6px 0; }
.gap-booking { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.gap-booking-head { display: flex; align-items: center; gap: 12px; }
.gap-booking-title { min-width: 0; }
.gap-booking-title h3 { margin: 0; overflow-wrap: anywhere; }
.gap-count { margin: 2px 0 0; font-weight: 700; color: var(--warn); }
.gap-thumb { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.gap-fields { margin: 10px 0 6px; padding-left: 1.2em; overflow-wrap: anywhere; }
.gap-fields li { margin: 2px 0; }
.gap-holder { margin: 4px 0; }
.gap-waiting { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.gap-waiting svg { flex: none; margin-top: 2px; }
.gap-know { margin-top: 8px; }
.gap-know > summary { cursor: pointer; color: var(--a); text-decoration: underline; text-underline-offset: 3px; min-height: var(--tap); display: flex; align-items: center; }
.gap-rest-h { margin-top: 20px; }
.db-tag[hidden] { display: none; }
.draft-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 var(--s4); padding: 10px 14px;
  border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--brass) 70%, transparent); background: var(--gold-soft); color: var(--ink);
}
.draft-banner span { flex: 1 1 220px; font-weight: 600; }
.fb-ref { font-weight: 600; }
.fb-prompt { margin: 8px 0 0; }
.fb-upload { margin: 8px 0 0; }

/* ---------- place photos: a small square per place (day cards, stays, route pills) ---------- */
.thumb { display: block; flex: none; object-fit: cover; background: var(--surface-2); }
.day-head.has-thumb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
.day-head.has-thumb h2 { grid-column: 2 / -1; }
.day-head.has-thumb .day-thumb { grid-row: 1 / span 2; align-self: center; }
.day-head.has-thumb .badge { justify-self: end; }
.day-thumb { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 0 0 3px var(--surface), 0 0 0 4px color-mix(in srgb, var(--brass) 55%, transparent); }
.stay-fold > summary.has-thumb { justify-content: flex-start; }
.stay-thumb { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.stay-town { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a); }
.stay-photo { margin: 0 0 var(--s3); }
.stay-photo-img { display: block; width: 100%; aspect-ratio: 2 / 1; height: auto; object-fit: cover; border-radius: 12px; }
.stay-photo .photo-credit { margin: 4px 2px 0; }
.stop-link { padding-left: 5px; }
.stop-link:has(.stop-dot) { padding-left: 14px; }
.stop-thumb { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px currentColor; margin-right: 2px; }
.stop.is-here .stop-thumb { box-shadow: 0 0 0 2px var(--marigold), 0 0 0 3px var(--indigo); }
.photo-credits { margin: var(--s3) 0 0; }
@media (max-width: 480px) { .day-thumb, .stay-thumb { width: 44px; height: 44px; } }
