/* Layout: one mobile column (max 480px). Sticky top bar with category tabs, photo hero,
   key-times card pulled up over the hero, then duve-style category sections with post cards.
   Detail posts are separate views switched by the URL hash (#transport, #kitchen, #rules, #fees). */
:root {
  /* Color: taken from the listing photos — glacial lake teal, schist slate, mustard chairs */
  --paper: #f2f5f4;
  --surface: #ffffff;
  --ink: #17262a;
  --muted: #5a696c;
  --line: #d9e2e0;
  --lake: #18656f;
  --lake-soft: #e1eeee;
  --gold: #e3a82b;
  --gold-ink: #3b2906;
  --outer: #e4eae9;
  --shade: rgba(10, 24, 28, .62);
  /* real bin lid colours (same in both themes) */
  --lid-red: #d4433b;
  --lid-yellow: #f0bf2a;
  --lid-blue: #2f6bd0;

  /* Type */
  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --font-display: "Bricolage Grotesque", var(--cjk), system-ui, sans-serif;
  --font-body: "Figtree", var(--cjk), system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: .8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: 1.875rem;

  --r-sm: 10px;
  --r-md: 16px;
  --bar-h: 56px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e191c;
    --surface: #152428;
    --ink: #e4eded;
    --muted: #98aaad;
    --line: #243a3f;
    --lake: #6cc3cb;
    --lake-soft: #17343a;
    --gold: #e9b544;
    --gold-ink: #2b1e03;
    --outer: #081114;
    --shade: rgba(4, 12, 14, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--outer);
  scroll-padding-top: calc(var(--bar-h) + 12px);
}
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
html[data-lang="zh"] body { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--lake); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lake); outline-offset: 2px; border-radius: 6px; }

/* language switching */
html[data-lang="zh"] [data-l="en"],
html[data-lang="en"] [data-l="zh"] { display: none !important; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
}
.wrap { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: var(--bar-h);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs {
  flex: 1; min-width: 0;
  display: flex; gap: 4px;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  border: 0; background: none; cursor: pointer;
  padding: 8px 10px;
  font-weight: 600; font-size: .9375rem; color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
}
.tab[aria-current="true"] { color: var(--lake); background: var(--lake-soft); }

.bar-detail { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; }
.back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
}
.back:active { background: var(--lake-soft); }
.bar-title {
  min-width: 0; margin: 0;
  font: 600 1rem/1.3 var(--font-body);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.lang {
  flex: none;
  display: inline-flex; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer;
}
.lang span {
  min-width: 34px; padding: 4px 8px;
  font-size: .8125rem; font-weight: 600; line-height: 1.2; text-align: center;
  border-radius: 999px; color: var(--muted);
}
html[data-lang="zh"] .lang [data-on="zh"],
html[data-lang="en"] .lang [data-on="en"] { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { margin: 0; background: #23383d; }
.hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.intro { padding-block: 22px 0; }
.eyebrow {
  margin: 0 0 6px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--lake);
}
.intro h1 {
  margin: 0;
  font: 700 var(--step-3)/1.15 var(--font-display);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.welcome { margin: 10px 0 0; max-width: 34em; color: var(--muted); }
.facts {
  margin: 14px 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.facts li {
  font-size: .8125rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--lake-soft); color: var(--lake);
}

/* ---------- key times ---------- */
.times {
  position: relative; z-index: 2;
  margin: 22px var(--gutter-r) 0 var(--gutter-l);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px -18px rgba(10, 30, 35, .45);
}
.time { padding: 14px 10px 12px; text-align: center; min-width: 0; }
.time + .time { border-left: 1px solid var(--line); }
.time-label { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.time-value {
  display: block; margin: 2px 0 0;
  font: 700 1.625rem/1.1 var(--font-display);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.time-note { display: block; font-size: .75rem; color: var(--muted); line-height: 1.35; margin-top: 3px; }

/* ---------- home sections ---------- */
.section { padding-block: 32px 0; scroll-margin-top: calc(var(--bar-h) + 8px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 {
  margin: 0;
  font: 700 var(--step-2)/1.2 var(--font-display);
  letter-spacing: -.005em;
}
.tag {
  flex: none;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
}
.stack { display: flex; flex-direction: column; gap: 12px; }

.post {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 20px;
  align-items: center; gap: 14px;
  padding: 10px 12px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: inherit; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.post:active { transform: scale(.99); }
.post img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); }
.post-title { display: block; font-weight: 600; font-size: var(--step-0); line-height: 1.35; }
.post-desc { display: block; margin-top: 3px; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.post .i { color: var(--muted); }

.post-feature { grid-template-columns: minmax(0, 1fr) 20px; padding: 0; overflow: hidden; }
.post-feature img {
  grid-column: 1 / -1;
  width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0;
}
.post-feature .post-body { padding: 14px 0 16px 16px; }
.post-feature .i { margin-right: 14px; }
.rule-peek {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.rule-peek span {
  font-size: .75rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: var(--lake-soft); color: var(--lake);
}

/* arrival info: address + wi-fi */
.info {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.info-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 12px;
  color: inherit; text-decoration: none;
}
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .ico {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--lake-soft); color: var(--lake);
}
.info-label { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.info-value { display: block; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  font-size: 1.0625rem; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
.info-act { display: inline-flex; align-items: center; gap: 4px; font-size: .8125rem; font-weight: 600; color: var(--lake); }
.info-act .i { width: 16px; height: 16px; }
.copy {
  min-width: 64px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 7px 12px;
  font-size: .8125rem; font-weight: 600; color: var(--lake);
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.copy.copied { background: var(--lake); border-color: var(--lake); color: var(--surface); }

/* gallery strip */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter-l);
  padding-bottom: 6px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot {
  scroll-snap-align: start;
  border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left;
}
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md); }
.shot span { display: block; margin-top: 6px; font-size: .8125rem; color: var(--muted); }

/* help footer */
.help {
  margin-top: 36px;
  padding-block: 28px calc(36px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.help h2 { margin: 0 0 8px; font: 700 var(--step-1)/1.3 var(--font-display); }
.help p { margin: 0 0 10px; color: var(--muted); }
.help-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: inherit; text-decoration: none;
}
.help-row .i { color: var(--lake); }
.help-row b { font: 700 1.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.help-row small { display: block; color: var(--muted); font-size: .8125rem; }
.fineprint { margin-top: 22px !important; font-size: .75rem; }

/* ---------- detail views ---------- */
.banner img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.content { padding-block: 22px calc(48px + env(safe-area-inset-bottom, 0px)); }
.content h1 {
  margin: 0 0 6px;
  font: 700 var(--step-3)/1.15 var(--font-display);
  letter-spacing: -.01em; text-wrap: balance;
}
.lead { margin: 0 0 20px; color: var(--muted); max-width: 36em; }
.content p { max-width: 36em; }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.row-between .lead { margin: 0; }
.link-btn {
  flex: none;
  border: 1px solid var(--line); background: var(--surface);
  padding: 6px 12px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; color: var(--lake); cursor: pointer;
}

/* accordions */
.acc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.acc summary {
  list-style: none;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px;
  align-items: center; gap: 12px;
  padding: 12px 14px 12px 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary > .ico {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--lake-soft); color: var(--lake);
}
.acc-title { font-weight: 600; line-height: 1.35; }
.acc summary > .tag { font-size: .6875rem; padding: 2px 7px; }
.acc summary > .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .2s ease; }
.acc[open] summary > .chev { transform: rotate(90deg); }
.acc-body { padding: 2px 16px 16px; }
.acc-body > :first-child { margin-top: 0; }
.acc-body > :last-child { margin-bottom: 0; }
.acc-body p { margin: 0 0 10px; }

.advice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--lake-soft);
}
.advice-label {
  display: inline-block; margin-bottom: 4px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 1px 8px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
}
.advice p { margin: 0; }

.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper);
}
.contact-list a { font-weight: 600; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.sub-h { margin: 14px 0 4px; font-weight: 700; }
.sub-h:first-child { margin-top: 0; }
.ext { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.ext .i { width: 16px; height: 16px; }

/* kitchen checklist */
.checklist {
  list-style: none; margin: 0 0 20px; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.checklist li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist .i { color: var(--lake); }

/* checkout checklist (tickable) */
.tick li { display: block; padding: 0; position: relative; }
.tick label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tick .box {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center;
  border: 1.5px solid var(--muted); background: var(--surface); color: transparent;
}
.tick .box .i { width: 16px; height: 16px; stroke-width: 2.6; color: inherit; }
.tick input:checked + .box { background: var(--lake); border-color: var(--lake); color: var(--surface); }
.tick input:focus-visible + .box { outline: 2px solid var(--lake); outline-offset: 2px; }
.tick input:checked ~ .txt { color: var(--muted); text-decoration: line-through; }
.thanks p + p { margin-top: 10px; }

/* rubbish bins */
.bins { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bins li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--paper);
}
.bins strong { margin-right: 8px; }
.lid {
  flex: none; width: 30px; height: 14px;
  border-radius: 7px 7px 3px 3px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.lid-red { background: var(--lid-red); }
.lid-yellow { background: var(--lid-yellow); }
.lid-blue { background: var(--lid-blue); }

/* fees */
.fees {
  list-style: none; margin: 18px 0 0; padding: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
}
.fees li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px; align-items: start;
  padding: 14px 16px;
}
.fees li + li { border-top: 1px solid var(--line); }
.fee-name strong { display: block; font-weight: 600; line-height: 1.4; }
.fee-name span { display: block; margin-top: 2px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.fee-amt { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-amt b { font: 700 1.375rem/1.1 var(--font-display); }
.fee-amt em { font-style: normal; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.fee-amt small { display: block; font-size: .75rem; color: var(--muted); }
.note-card {
  margin-top: 18px; padding: 16px;
  border-radius: var(--r-md); background: var(--lake-soft);
}
.note-card h2 { margin: 0 0 6px; font: 700 var(--step-1)/1.3 var(--font-display); }
.note-card p { margin: 0; }

/* ---------- photo viewer ---------- */
.viewer {
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: #071012; color: #fff;
}
.viewer::backdrop { background: #071012; }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.viewer-close {
  width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.viewer-track {
  flex: 1; min-height: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide {
  flex: 0 0 100%; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.viewer-slide img { width: 100%; max-height: 78vh; object-fit: contain; }
.viewer-slide p { margin: 0; text-align: center; font-size: .875rem; opacity: .85; }
body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
