:root {
  /* --brand is replaced by the site's own colour from the Our App CMS when it loads. */
  --brand: #1e3a8a;
  --navy: color-mix(in srgb, var(--brand) 62%, #000);
  --blue: var(--brand);
  --blue-2: var(--brand);
  --sky: color-mix(in srgb, var(--brand) 10%, #fff);
  --bg: color-mix(in srgb, var(--brand) 3%, #fff);
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #15803d;
  --green-bg: #dcfce7;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red-bg: #fee2e2;
  --star: #f59e0b;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 4px 16px rgb(15 23 42 / .06);
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: var(--text-fs, 1rem); }
body {
  margin: 0;
  font-family: Figtree, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg), var(--sky)) fixed;
  line-height: 1.5;
}
a { color: var(--blue-2); }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0; }
h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
p { margin: 0 0 10px; }

#app { max-width: 640px; margin: 0 auto; min-height: 100vh; }
#view { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }
.loading, .error { padding: 80px 24px; text-align: center; color: var(--muted); }

/* ---------- hero ---------- */
.hero { position: relative; }
.gallery {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; aspect-ratio: 4 / 3; background: var(--navy);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery button { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: none; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(transparent, rgb(15 23 42 / .75)); pointer-events: none;
}
.hero-text { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; pointer-events: none; }
.hero-text h1 { color: #fff; font-size: 1.6rem; font-weight: 800; text-shadow: 0 1px 8px rgb(0 0 0 / .3); }
.hero-text .addr { opacity: .9; font-size: .92rem; margin-top: 2px; }
.photo-count {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px;
  background: rgb(15 23 42 / .6); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.brandbar {
  position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px;
  background: #fff; border-radius: 10px; padding: 6px 10px; box-shadow: var(--shadow);
}
.brandbar img { height: 20px; width: auto; }

/* ---------- layout ---------- */
.wrap { padding: 0 16px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: 16px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--navy);
}
.chip.good { background: var(--green-bg); border-color: transparent; color: var(--green); }
.chip svg { width: 16px; height: 16px; }

.rating { display: flex; align-items: center; gap: 10px; }
.rating .score { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.stars { color: var(--star); letter-spacing: 1px; }
.muted { color: var(--muted); font-size: .9rem; }

/* ---------- buttons ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.action {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 4px; text-decoration: none; color: var(--navy); font-size: .78rem; font-weight: 600;
  text-align: center;
}
.action svg { width: 24px; height: 24px; stroke: var(--blue); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px; border: 0; border-radius: 14px; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 12px 16px;
}
.btn:active { transform: translateY(1px); }
.btn.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn + .btn { margin-top: 10px; }

svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- text blocks ---------- */
.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more { background: none; border: 0; padding: 0; color: var(--blue-2); font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 12px; margin: 0; padding: 0; list-style: none; }
.facilities li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.facilities .ico {
  flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--sky);
  display: grid; place-items: center; color: var(--blue);
}
.facilities .ico svg { width: 18px; height: 18px; }

/* ---------- price & calculator ---------- */
.price { display: flex; align-items: baseline; gap: 8px; }
.price .amount { font-size: 2rem; font-weight: 800; color: var(--navy); }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.time { background: var(--sky); border-radius: 12px; padding: 10px 12px; }
.time b { display: block; font-size: 1.25rem; color: var(--navy); }
.time span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.calc .full { grid-column: 1 / -1; }
.calc input, .calc select {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-height: 46px; }
.stepper button { flex: 0 0 44px; height: 46px; border: 0; background: var(--sky); color: var(--blue); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper output { flex: 1; text-align: center; font-size: 1rem; color: var(--ink); font-weight: 700; }
.total {
  margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.total b { font-size: 1.5rem; }
.total small { display: block; opacity: .8; }
.calc-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); font-size: .88rem; font-weight: 600; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; color: var(--blue); cursor: pointer; }
.cal-head button:disabled { opacity: .35; cursor: default; }
.cal-head h3 { font-size: 1rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal .d { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: .9rem; font-weight: 600; }
.cal .d.ok { background: var(--green-bg); color: var(--green); }
.cal .d.half { background: linear-gradient(135deg, var(--green-bg) 50%, var(--amber-bg) 50%); color: var(--amber); }
.cal .d.no { background: var(--red-bg); color: #b91c1c; text-decoration: line-through; }
.cal .d.past { color: #cbd5e1; }
.cal .d.sel { outline: 2px solid var(--blue); outline-offset: -2px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }

.pay { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.pay img { height: 26px; width: auto; }

/* ---------- area ---------- */
#map { height: 300px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; z-index: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a, .list .row {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  text-decoration: none; color: var(--ink);
}
.list .ico { flex: 0 0 38px; height: 38px; border-radius: 10px; background: var(--sky); display: grid; place-items: center; color: var(--blue); }
.list .ico svg { width: 20px; height: 20px; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; font-weight: 600; }
.list .grow span { font-size: .85rem; color: var(--muted); }
.list .go { color: var(--muted); }

/* ---------- info ---------- */
details { border-top: 1px solid var(--line); }
details:first-of-type { border-top: 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details .body { padding-bottom: 14px; font-size: .92rem; }
details .body p { margin-bottom: 8px; }
.rules { margin: 0; padding-left: 20px; }
.rules li { margin-bottom: 6px; }

.review { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.review:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.review .who { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.bars { display: grid; gap: 8px; margin-top: 12px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .85rem; }
.bar .track { grid-column: 1 / -1; height: 6px; background: var(--sky); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { flex: 1; }

footer.credit { text-align: center; padding: 28px 16px 8px; font-size: .82rem; color: var(--muted); }
footer.credit img { height: 22px; width: auto; margin: 0 auto 6px; }

/* ---------- tab bar: pinned to the bottom, in the site's colour with white icons and words ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  display: flex; justify-content: center;
  background: var(--brand); color: #fff;
  padding-bottom: var(--safe-b); box-shadow: 0 -4px 16px rgb(0 0 0 / .18);
  transform: translateZ(0); /* stays put while the page scrolls on iPhone */
}
.tabbar a {
  flex: 1; max-width: 128px; height: var(--tabbar); position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: rgb(255 255 255 / .78); font-size: .75rem; font-weight: 600;
}
.tabbar svg { width: 24px; height: 24px; stroke: currentColor; }
.tabbar a[aria-current="page"] { color: #fff; font-weight: 800; }
.tabbar a { padding-bottom: 6px; }
.tabbar a[aria-current="page"]::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 26px; margin-left: -13px; height: 3px; border-radius: 3px; background: #fff; }

/* ---------- lightbox ---------- */
#lightbox { border: 0; padding: 0; background: #000; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; }
#lightbox::backdrop { background: #000; }
#lightbox img { width: 100%; height: 100%; object-fit: contain; }
#lightbox button {
  position: absolute; border: 0; background: rgb(255 255 255 / .15); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lb-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: calc(16px + var(--safe-b)); left: 0; right: 0; text-align: center; color: #fff; font-size: .9rem; }

@media (min-width: 640px) {
  .gallery { aspect-ratio: 16 / 10; }
  .wrap { padding: 0 20px; }
  .facilities { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- guide (Our App CMS pages) ---------- */
.page-top { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }
.page-title { font-size: 1.5rem; margin-top: 8px; }
.back { display: inline-block; margin: 4px 0 2px; font-weight: 700; text-decoration: none; color: var(--blue); }
.logo-card { display: grid; place-items: center; padding: 0; overflow: hidden; }
.logo-card { background: #bababa; }
.logo-card img { width: 100%; max-width: 240px; }
.btn svg, .btn.small svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.small { width: auto; min-height: 40px; padding: 8px 14px; font-size: .88rem; border-radius: 10px; border-width: 1.5px; }
.btn-row .btn + .btn { margin-top: 0; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: var(--c); }
.list .ico.dot { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.fchips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 0; padding: 0 16px 2px; scrollbar-width: none; }
.fchips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); cursor: pointer;
}
.fchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.fchip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.gmap { height: 260px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 14px; z-index: 0; }
.list .row { padding: 12px 0; }
.place { padding: 14px 0; }
.place-head { display: flex; gap: 12px; align-items: center; }
.place-logo { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--sky); }
.place .grow b { display: block; font-weight: 700; }
.place .grow span { display: block; font-size: .85rem; color: var(--muted); }
.place .grow .dist { color: var(--blue); font-weight: 600; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.photo-grid button { border: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sky); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.rich { font-size: .95rem; }
.rich h1, .rich h2, .rich h3 { font-size: 1.1rem; margin: 14px 0 8px; }
.rich > :first-child { margin-top: 0; }
.rich ul, .rich ol { padding-left: 22px; margin: 0 0 10px; }
.rich li { margin-bottom: 6px; }
.rich img { border-radius: 10px; margin: 10px 0; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form input {
  font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .btn:disabled { opacity: .6; }
.notice { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; }
.notice.ok { background: var(--green-bg); color: var(--green); }
.notice.bad { background: var(--red-bg); color: #b91c1c; }

/* ---------- Download the app: pop-up and film (install.js) ---------- */
.isheet-wrap { position: fixed; inset: 0; z-index: 2000; background: rgb(0 0 0 / .5); display: flex; align-items: flex-end; justify-content: center; animation: iFade .3s ease both; }
.isheet {
  background: #fff; width: 100%; max-width: 480px; max-height: 96dvh; overflow-y: auto;
  border-radius: 28px 28px 0 0; padding: 12px 20px calc(12px + var(--safe-b)); animation: popIn .45s cubic-bezier(.2,.9,.25,1.15) both;
}
.isheet.wide { max-width: 600px; }
.igrab { width: 40px; height: 6px; border-radius: 99px; background: #e4e4e7; margin: 0 auto 16px; }
.ihead { display: flex; align-items: center; gap: 16px; }
.iicon { width: 48px; height: 48px; border-radius: 16px; box-shadow: 0 4px 10px rgb(0 0 0 / .15); object-fit: cover; }
.ititle { font-size: 1.25rem; font-weight: 800; color: var(--navy); line-height: 1.2; margin: 0; }
.isub { font-size: .875rem; color: var(--muted); margin: 4px 0 0; }
.ibig { margin-top: 20px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 16px; font: inherit; font-size: 1.1rem; font-weight: 700; color: #fff; background: var(--brand); cursor: pointer; }
.ibig .ii { width: 22px; height: 22px; }
.inot { margin: 12px 0 8px; width: 100%; border: 0; border-radius: 16px; background: #f4f4f5; padding: 12px; font: inherit; font-weight: 700; color: #3f3f46; cursor: pointer; }
.iinapp { margin-top: 16px; border-radius: 16px; background: #fffbeb; padding: 16px; color: #78350f; box-shadow: inset 0 0 0 1px #fde68a; }
.iinapp p { margin: 0 0 6px; } .iinapp .small { font-size: .9rem; }
/* iPhone: "what do you see at the bottom?" choice above the film */
.iwhich { margin: 0 0 8px; text-align: center; font-weight: 700; font-size: .95rem; }
.ipick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.ipick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 2px solid #e4e4e7; background: #fff; font: inherit; font-size: .85rem; font-weight: 700; color: #3f3f46; cursor: pointer; }
.ipick button .ii { width: 26px; height: 26px; }
.ipick button.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); color: var(--brand); }
.ichip { display: inline-flex; align-items: center; gap: 4px; margin: 0 2px; padding: 1px 6px; border-radius: 8px; background: #f4f4f5; font-weight: 700; color: #18181b; vertical-align: middle; }
.ichip .ii { width: 16px; height: 16px; }
.ii { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pop { color: var(--pop); }

.ifilm { --pop: #dc2626; --pop-mid: color-mix(in srgb, var(--pop) 40%, white); --pop-soft: color-mix(in srgb, var(--pop) 12%, white);
  margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.icaption { width: 100%; }
.icap { display: flex; align-items: flex-start; gap: 12px; min-height: 64px; border-radius: 16px; padding: 10px 12px; background: var(--pop-soft); box-shadow: inset 0 0 0 1px var(--pop-mid); font-size: 1rem; line-height: 1.35; color: #27272a; }
.inum { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .875rem; font-weight: 800; color: #fff; background: var(--brand); margin-top: 1px; }
.icap.done .inum { background: var(--pop); }
.idots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.idots i { height: 6px; width: 6px; border-radius: 99px; background: #d4d4d8; transition: width .3s, background .3s; }
.idots i.on { width: 20px; background: var(--brand); }
.isteps { display: none; list-style: none; margin: 0; padding: 0; width: 100%; }
.isteps li { display: flex; align-items: flex-start; gap: 12px; border-radius: 16px; padding: 8px 10px; font-size: 1rem; line-height: 1.35; color: #3f3f46; transition: background .3s; }
.isteps li.on { background: var(--pop-soft); box-shadow: inset 0 0 0 1px var(--pop-mid); }
.isteps .idone { font-size: .875rem; font-weight: 700; color: #a1a1aa; padding: 4px 10px; }
.isteps .idone.on { color: var(--pop); background: none; box-shadow: none; }
.isteps.plain { display: block; margin-top: 16px; }
@media (min-width: 640px) {
  .isheet-wrap { align-items: center; }
  .isheet { border-radius: 28px; }
  .ifilm { flex-direction: row; align-items: flex-start; gap: 16px; }
  .icaption { display: none; }
  .isteps { display: block; }
}

/* The little phone */
.film { position: relative; flex: none; width: 222px; height: 442px; border: 6px solid #18181b; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px -12px rgb(0 0 0 / .35); }
.film.ios { border-radius: 30px; }
.f-screen { position: relative; width: 210px; height: 430px; overflow: hidden; }
.f-screen img { display: block; object-fit: cover; }
.f-page { position: absolute; inset: 0; background: var(--bg); padding-top: 18px; }
.film.topbar .f-page { padding-top: 48px; }
.f-apphead { margin: 0 12px; display: flex; align-items: center; gap: 8px; border-radius: 16px; padding: 10px; color: #fff; background: var(--brand); font-size: .6875rem; font-weight: 700; }
.f-apphead span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-ic32 { width: 32px; height: 32px; border-radius: 8px; }
.f-card { margin: 10px 12px 0; background: #fff; border-radius: 16px; padding: 10px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.f-card i { display: block; height: 8px; width: 66%; border-radius: 4px; background: #e4e4e7; }
.f-card i + i { width: 50%; background: #f4f4f5; margin-top: 6px; }
.f-top { position: absolute; left: 0; right: 0; top: 0; height: 40px; display: flex; align-items: center; gap: 8px; background: #fff; padding: 0 8px; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.f-top.ios { height: 44px; padding: 0 10px; background: rgb(250 250 250 / .95); box-shadow: 0 1px 0 #e4e4e7; }
.f-url { flex: 1; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: rgb(228 228 231 / .8); font-size: .5625rem; color: #71717a; overflow: hidden; white-space: nowrap; }
.f-url.pill { border-radius: 999px; background: #f4f4f5; justify-content: flex-start; padding: 0 10px; }
.f-url.white { background: #fff; justify-content: center; height: 32px; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.f-url.small { flex: none; height: 24px; margin: 0 auto; }
.f-tabs { width: 16px; height: 16px; display: grid; place-items: center; border: 1.5px solid #71717a; border-radius: 3px; font-size: .4375rem; font-weight: 800; color: #71717a; }
.f-bottom { position: absolute; left: 0; right: 0; bottom: 0; }
.f-bottom.ios { background: rgb(250 250 250 / .95); border-top: 1px solid #e4e4e7; padding: 6px 12px 0; }
.f-bottom.i26 { height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px 6px; }
.f-bottom.s { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; background: #fff; box-shadow: 0 -1px 0 rgb(0 0 0 / .08); }
.f-icons { height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.f-round { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.film .mut { color: #71717a; } .film .faint { opacity: .4; }
.fb { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: #52525b; transition: transform .15s, background .15s; flex: none; }
.fb.round { border-radius: 50%; }
.fb.lit { transform: scale(1.1); background: var(--pop); color: #fff; box-shadow: 0 0 0 2px var(--pop); }

/* iPhone / iPad: the ••• menu, the Share sheet (opens halfway, then pushed up), and Add to Home Screen */
.f-menu26 { position: absolute; right: 8px; bottom: 58px; width: 132px; border-radius: 16px; overflow: hidden; background: rgb(255 255 255 / .95); font-size: .625rem; box-shadow: 0 10px 25px rgb(0 0 0 / .2), 0 0 0 1px rgb(0 0 0 / .08); transform-origin: bottom right; transform: scale(.75); opacity: 0; transition: transform .3s, opacity .3s; }
.film.on-menu .f-menu26 { transform: scale(1); opacity: 1; }
.m26 { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid #f4f4f5; color: #52525b; transition: background .15s; }
.m26.first { color: #18181b; font-weight: 700; }
.m26 .ii { width: 12px; height: 12px; }
.m26.lit { background: var(--pop); color: #fff; }
.f-sheet { position: absolute; left: 0; right: 0; top: 30px; height: 400px; border-radius: 18px 18px 0 0; background: #f4f4f5; box-shadow: 0 -8px 30px rgb(0 0 0 / .18); transform: translateY(420px); transition: transform .7s ease-in-out; }
.film.on-half .f-sheet { transform: translateY(200px); }
.film.on-up .f-sheet { transform: translateY(0); transition-duration: 1.4s; }
.film.on-full .f-sheet { transform: translateY(0); }
.f-grab { width: 32px; height: 4px; border-radius: 99px; background: #d4d4d8; margin: 6px auto 0; }
.f-sheethead { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.f-ic28 { width: 28px; height: 28px; border-radius: 6px; }
.f-sheettitle { flex: 1; min-width: 0; }
.f-sheettitle b { display: block; font-size: .625rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-sheettitle span, .f-arowi span { display: block; font-size: .5rem; color: #71717a; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.f-arowi > div { min-width: 0; }
.f-x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #e4e4e7; color: #71717a; }
.f-x .ii { width: 12px; height: 12px; }
.f-sheetbody { height: 360px; overflow: hidden; }
.f-scroll { transition: transform 1.4s ease-in-out; }
.film.on-full .f-scroll { transform: translateY(-112px); }
.f-circles { display: flex; justify-content: space-around; padding: 10px 8px; border-top: 1px solid #e4e4e7; border-bottom: 1px solid #e4e4e7; }
.f-circles.sq { border: 0; }
.f-circles .c { width: 36px; height: 36px; border-radius: 50%; background: var(--pop-mid); }
.f-circles.sq .c { border-radius: 12px; }
.f-group { margin: 0 12px 10px; background: #fff; border-radius: 12px; overflow: hidden; }
.f-row { height: 30px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: .625rem; border-bottom: 1px solid #f4f4f5; transition: background .15s; }
.f-row .ii { width: 14px; height: 14px; color: #52525b; }
.f-row.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-row.lit .ii { color: #fff; }
.f-push { position: absolute; left: 0; right: 0; top: 112px; display: flex; justify-content: center; opacity: 0; transition: opacity .3s; }
.film.on-half .f-push { opacity: 1; }
.push-bob { display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--pop); padding: 6px 12px 6px 8px; font-size: .6875rem; font-weight: 900; color: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgb(0 0 0 / .25); animation: pushBob 1.1s ease-in-out infinite; }
.rise { position: relative; width: 16px; height: 20px; overflow: hidden; }
.rise .ii { position: absolute; left: 0; width: 16px; height: 16px; stroke-width: 3.5; }
.rise-up { animation: riseUp 1s linear infinite both; }
.f-dialog.ios { position: absolute; inset: 0; background: #f4f4f5; opacity: 0; transform: translateY(24px); transition: opacity .3s, transform .3s; }
.film.on-dialog .f-dialog { opacity: 1; transform: none; }
.f-dhead { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4e4e7; background: #fff; padding: 16px 12px 10px; font-size: .625rem; }
.mutt { color: #71717a; }
.f-add { border-radius: 6px; padding: 2px 6px; font-weight: 800; color: var(--pop); transition: transform .15s, background .15s; }
.f-add.lit { transform: scale(1.1); background: var(--pop); color: #fff; }
.f-dcard { margin: 12px; display: flex; align-items: center; gap: 12px; border-radius: 12px; background: #fff; padding: 12px; }
.f-ic44 { width: 44px; height: 44px; border-radius: 12px; }
.f-dname { flex: 1; min-width: 0; border-bottom: 1px solid #e4e4e7; padding-bottom: 4px; font-size: .6875rem; font-weight: 700; }
.f-dtoggle { margin: 0 12px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: #fff; padding: 8px 12px; font-size: .625rem; }
.tog { width: 28px; height: 16px; border-radius: 999px; background: var(--pop); padding: 2px; display: flex; justify-content: flex-end; }
.tog span { width: 12px; height: 12px; border-radius: 50%; background: #fff; }

/* Android Chrome's ⋮ menu; Samsung Internet's ≡ menu and "Add page to"; the install dialog */
.f-amenu { position: absolute; right: 4px; top: 4px; width: 150px; border-radius: 8px; overflow: hidden; background: #fff; font-size: .59375rem; color: #3f3f46; box-shadow: 0 20px 40px rgb(0 0 0 / .3), 0 0 0 1px rgb(0 0 0 / .08); transform-origin: top right; transform: scale(.9); opacity: 0; transition: transform .2s, opacity .2s; }
.film.on-menu .f-amenu { transform: scale(1); opacity: 1; }
.f-aicons { height: 30px; display: flex; align-items: center; justify-content: space-around; border-bottom: 1px solid #f4f4f5; color: #71717a; }
.f-aicons .ii { width: 14px; height: 14px; }
.f-arow { height: 24px; display: flex; align-items: center; padding: 0 12px; transition: background .15s; }
.f-arow.lit, .f-srow.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-dim { position: absolute; inset: 0; background: rgb(0 0 0 / .3); opacity: 0; transition: opacity .3s; }
.film.on-menu .f-dim, .film.on-sub .f-dim { opacity: 1; }
.f-smenu { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; border-radius: 16px 16px 0 0; background: #fff; padding: 16px 8px 12px; box-shadow: 0 -10px 30px rgb(0 0 0 / .25); transform: translateY(210px); transition: transform .3s; }
.film.on-menu .f-smenu { transform: none; }
.f-sgrid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 4px; }
.f-stile { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; font-size: .46875rem; color: #52525b; text-align: center; transition: background .15s; }
.f-stile.lit { background: var(--pop); color: #fff; font-weight: 800; }
.f-ssub { position: absolute; left: 30px; right: 30px; top: 150px; border-radius: 16px; overflow: hidden; background: #fff; font-size: .625rem; box-shadow: 0 20px 40px rgb(0 0 0 / .3); transform: scale(.9); opacity: 0; transition: transform .2s, opacity .2s; }
.film.on-sub .f-ssub { transform: scale(1); opacity: 1; }
.f-ssub p { margin: 0; padding: 12px 16px 8px; font-size: .6875rem; font-weight: 800; }
.f-srow { height: 30px; display: flex; align-items: center; padding: 0 16px; color: #3f3f46; transition: background .15s; }
.f-dialog.android { position: absolute; inset: 0; background: rgb(0 0 0 / .4); opacity: 0; transition: opacity .3s; }
.f-acard { position: absolute; left: 14px; right: 14px; top: 140px; border-radius: 22px; background: #fff; padding: 16px; box-shadow: 0 20px 40px rgb(0 0 0 / .3); }
.f-atitle { margin: 0; font-size: .75rem; font-weight: 700; color: #18181b; }
.f-arowi { margin-top: 12px; display: flex; align-items: center; gap: 12px; }
.f-arowi b { display: block; font-size: .6875rem; } .f-arowi span { font-size: .53125rem; color: #71717a; }
.f-ic40 { width: 40px; height: 40px; } .round { border-radius: 50%; }
.f-abtns { margin-top: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-size: .625rem; font-weight: 700; }
.f-add.pillbtn { border-radius: 999px; padding: 6px 12px; box-shadow: inset 0 0 0 1px var(--pop-mid); }

/* Downloaded: the home screen, with the new app in the next free space; and the title card */
.f-home { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; background: linear-gradient(160deg, color-mix(in srgb, var(--pop) 55%, black), var(--pop)); }
.film.on-home .f-home { opacity: 1; }
.f-status { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px 0; color: #fff; font-size: .625rem; }
.f-batt { width: 18px; height: 9px; border: 1.5px solid rgb(255 255 255 / .9); border-radius: 3px; padding: 1px; }
.f-batt i { display: block; width: 70%; height: 100%; background: #fff; border-radius: 1px; }
.f-homegrid { display: grid; grid-template-columns: repeat(4, 38px); justify-content: space-between; row-gap: 14px; padding: 22px 16px 0; }
.f-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.f-slot > i { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .45); }
.f-appdot { display: block; width: 38px; height: 38px; border-radius: 9px; background: rgb(255 255 255 / .28); }
.f-homeicon { width: 38px; height: 38px; border-radius: 9px; }
.film.android .f-appdot, .film.android .f-homeicon { border-radius: 50%; }
.f-ring { position: relative; display: block; border-radius: 11px; }
.film.android .f-ring { border-radius: 50%; }
.film.on-home .f-ring::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; box-shadow: 0 0 0 2px #fff; animation: ringPulse 1.4s 1s ease-out infinite; }
.f-lbl { width: 48px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: .46875rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
.f-done { position: absolute; left: 0; right: 0; bottom: 84px; margin: 0; text-align: center; font-size: .875rem; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.f-dock { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 58px; display: flex; align-items: center; justify-content: space-around; border-radius: 22px; background: rgb(255 255 255 / .22); }
.film.android .f-dock { background: none; }
.film.on-home .f-mine { animation: popIn .5s .35s cubic-bezier(.2,.9,.25,1.15) both; }
.film.on-home .f-done { animation: popIn .5s .7s cubic-bezier(.2,.9,.25,1.15) both; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.f-title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 20px; text-align: center; color: #fff; opacity: 0; transition: opacity .5s; background: linear-gradient(170deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black)); }
.film.on-title .f-title { opacity: 1; }
.film.on-title .f-ic80 { animation: popIn .5s cubic-bezier(.2,.9,.25,1.15) both; }
.f-ic80 { width: 80px; height: 80px; border-radius: 20px; box-shadow: 0 0 0 2px rgb(255 255 255 / .8), 0 12px 24px rgb(0 0 0 / .3); }
.f-how { margin: 0; font-size: .625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; opacity: .8; }
.f-name { margin: 0; font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.f-dl { display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--pop); padding: 6px 12px; font-size: .6875rem; font-weight: 800; box-shadow: 0 6px 14px rgb(0 0 0 / .25); }
.f-dl .ii { width: 14px; height: 14px; }

/* The hand: its fingertip sits on (left, top); a dot shows the touch while pressed */
.f-finger { position: absolute; left: 105px; top: 215px; pointer-events: none; opacity: 0; z-index: 5; }
.f-touch { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--pop) 45%, transparent); box-shadow: 0 0 0 2px var(--pop); transform: scale(0); transition: transform .15s; }
.f-finger.down .f-touch { transform: scale(1); }
.hand { position: absolute; left: -16px; top: -4px; width: 48px; height: 48px; fill: #fff; stroke: #27272a; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 3px 4px rgb(0 0 0 / .35)); transform-origin: 16px 4px; transition: transform .15s; }
.f-finger.down .hand { transform: scale(.9); }

@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes iFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseUp { 0% { transform: translateY(14px); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(-12px); opacity: 0 } }
@keyframes pushBob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@media (prefers-reduced-motion: reduce) { .push-bob, .rise-up { animation: none; } }

/* ---------- Local listings (automatic) ---------- */
.llist .lcard { padding: 14px 0; }
.lhead { display: flex; gap: 12px; align-items: center; }
.llogo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(0 0 0 / .06); display: grid; place-items: center; overflow: hidden; }
.llogo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.llogo.none { background: var(--sky); color: var(--blue); font-weight: 800; font-size: 1rem; box-shadow: none; }
.lmain { min-width: 0; flex: 1; }
.lmain b { display: block; font-weight: 700; line-height: 1.25; }
.ldist { display: block; font-size: .82rem; font-weight: 700; color: var(--blue); margin-top: 2px; }
.laddr { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
/* The address under the logo row, from the card's left edge (not beside the logo). */
.lcard > .laddr, .ecard > .laddr, .place > .laddr { margin-top: 10px; }
.ltags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ltags span { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sky); color: var(--navy); }
.lhours { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: .8rem; color: var(--muted); }
.lhours svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.lcredit { margin: 12px 0 0; font-size: .72rem; color: var(--muted); }

/* ---------- Choose a maps app ---------- */
.navpick { display: grid; gap: 10px; margin-top: 16px; }
.navpick button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 1.05rem; color: var(--ink); cursor: pointer; text-align: left; }
.navpick button.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.navpick b { flex: 1; }
.navpick em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--brand); }
.navico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.navico svg { width: 28px; height: 28px; }
.navremember { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.navremember input { width: 18px; height: 18px; accent-color: var(--brand); }

/* Map pushpins: no box around the drawing */
.pushpin { background: none; border: 0; }
.pushpin svg { display: block; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / .3)); overflow: visible; }
.llist .lring { padding: 14px 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); border-top: 0; }
.llist .lring + .lcard { border-top: 0; }

/* ---------- What's On ---------- */
.ecard { padding: 14px 0; }
/* Date block level with the event name; distance and type tag share one line. */
.ecard > .lhead { align-items: flex-start; }
.emeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.emeta .ldist { margin-top: 0; }
.emeta .etag { margin: 0; }
.edate { flex: 0 0 52px; width: 52px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; line-height: 1.1; }
.edate b { font-size: 1.35rem; letter-spacing: 0; }
.ewhen { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-top: 2px; }
.edesc { margin: 8px 0 0; font-size: .9rem; color: var(--ink); }
.form textarea { font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; resize: vertical; }

/* "Coming up" events at a place */
.coming { margin-top: 10px; border-radius: 12px; background: var(--sky); padding: 8px 12px; }
.coming-h { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 2px; }
.coming-h svg { width: 14px; height: 14px; }
.coming a, .coming > div { display: block; padding: 5px 0; text-decoration: none; color: var(--ink); border-top: 1px solid rgb(0 0 0 / .06); }
.coming a:first-of-type, .coming-h + div { border-top: 0; }
.coming b { display: block; font-size: .9rem; }
.coming span { font-size: .8rem; color: var(--muted); }
.coming a b { color: var(--blue-2); text-decoration: underline; text-underline-offset: 2px; }
.list .grow .ebadge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: .75rem; font-weight: 700; color: var(--blue); }
.ebadge svg { width: 13px; height: 13px; }
.edate.now { background: var(--pop, #dc2626); background: #dc2626; }
.edate.now b { font-size: .95rem; letter-spacing: .06em; }
.tabbar a[hidden] { display: none; }
.tabbar span { white-space: nowrap; }
.small-print { font-size: .78rem; margin: 0; }

/* What's On controls */
.wo-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.wo-miles { font: inherit; font-size: .88rem; font-weight: 600; color: var(--navy); min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; margin-left: auto; }
.wo-stay { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.wo-stay label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); flex: 1; min-width: 120px; }
.wo-stay input { font: inherit; font-size: 1rem; padding: 8px 10px; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; }
.wo-stay .btn { flex: 0 0 auto; }
.wo-note { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff7ed; color: #7c2d12; font-size: .92rem; box-shadow: inset 0 0 0 1px #fed7aa; }
.wo-note .muted { color: #9a3412; }
.wo-types { margin-top: 10px; }
.fchip small { font-size: .72rem; opacity: .7; margin-left: 2px; }
.form select { font: inherit; font-size: 1rem; padding: 10px 12px; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }

/* Event type tags: coloured, tap to see that type */
.etag { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 4px; padding: 2px 9px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .74rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, #fff); }
.etag:active { transform: scale(.96); }
.wo-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.wo-count p { margin: 0; }
.wo-clear { flex: none; border: 0; border-radius: 999px; padding: 6px 12px; background: var(--navy); color: #fff; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }

/* ---------- Larger listing text (easier to read on phones: +3pt / 4px) ---------- */
.lmain b, .list .grow b, .place .grow b, .coming b { font-size: calc(1rem + .25rem); }
.laddr, .ldist, .ewhen, .list .grow span, .place .grow span, .coming span { font-size: calc(.85rem + .25rem); }
.lhours { font-size: calc(.8rem + .25rem); }
.lhours svg { width: 18px; height: 18px; }
.edesc { font-size: calc(.9rem + .25rem); line-height: 1.45; }
.ltags span, .etag { font-size: calc(.75rem + .25rem); }
.lring { font-size: calc(.78rem + .1875rem) !important; }
.btn.small { font-size: calc(.88rem + .1875rem); min-height: 46px; }
.btn.small svg { width: 20px; height: 20px; }
.llogo { flex-basis: 60px; width: 60px; height: 60px; }
.edate { flex-basis: 3.75rem; width: 3.75rem; height: 4rem; font-size: calc(.72rem + .1875rem); }
.edate b { font-size: calc(1.35rem + .25rem); }
.wo-count p, .lcredit { font-size: calc(.85rem + .1875rem); }
.fchip { font-size: calc(.88rem + .1875rem); }

/* What's On: By date / Closest first */
.wo-sort { display: flex; margin-top: 12px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.wo-sort button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: calc(.88rem + .1875rem); font-weight: 700; color: var(--muted); cursor: pointer; }
.wo-sort button.on { background: var(--brand); color: #fff; }
.wo-sort svg { width: 18px; height: 18px; }

.wo-add-btn { margin-top: 4px; }
.wo-add { margin-top: 12px; }
.wo-add[hidden] { display: none; }

/* Same bottom bar whether the app is opened in the browser or from the home screen. On the home screen the
   phone reserves space for its home bar (env(safe-area-inset-bottom), ~34px on iPhone); filling all of it made
   the green bar taller and lifted the icons. Keep the bar the browser height and let a thin strip of green
   run under the home bar. */
@media (display-mode: standalone) {
  :root { --safe-b: max(calc(env(safe-area-inset-bottom, 0px) - 22px), 6px); }
}

/* Offline strip */
.offline-bar { position: sticky; top: 0; z-index: 50; padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; background: #3f3f46; color: #fff; font-size: .85rem; font-weight: 600; text-align: center; }
.offline-bar.ok { background: var(--brand); }
.offline-bar[hidden] { display: none; }

/* The site on maps: icon badge, pulsing ring and name label */
.here { background: none; border: 0; }
.here-badge { position: absolute; left: 2px; top: 0; width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: 0 3px 10px rgb(0 0 0 / .35); overflow: hidden; display: grid; place-items: center; z-index: 2; }
/* Leaflet sizes marker pictures itself; keep the logo inside the disc. */
.leaflet-container .here .here-badge img { width: 100% !important; height: 100% !important; max-width: none; padding: 0; object-fit: contain; transform: scale(.92); }
.here-badge svg { width: 26px; height: 26px; }
.here-tail { position: absolute; left: 23px; top: 50px; width: 14px; height: 14px; background: var(--c); transform: rotate(45deg); border-radius: 0 0 3px 0; z-index: 1; }
.here-ring { position: absolute; left: 2px; top: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--c); opacity: .45; animation: here-pulse 2.2s ease-out infinite; }
.here-name { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: var(--c); color: #fff; font: 800 .78rem/1.2 inherit; font-family: inherit; box-shadow: 0 2px 6px rgb(0 0 0 / .3); }
@keyframes here-pulse { from { transform: scale(1); opacity: .45; } to { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .here-ring { animation: none; opacity: 0; } }

/* Contact card at the top of Info */
.contact-head { display: flex; align-items: center; gap: 14px; }
.contact-head img { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgb(0 0 0 / .08); }
.contact-head h2 { margin: 0 0 4px; }
.contact-head p { margin: 0; color: var(--muted, #52525b); line-height: 1.45; }
.contact-card #map { height: 220px; margin: 16px 0 6px; box-shadow: none; }
.contact-card .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* Guide section headings */
.gsec { margin: 24px 4px 10px; font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.page-title + .muted + .gsec { margin-top: 14px; }

/* Usage counts switch on Contact */
.stats-switch { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 700; }
.stats-switch input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ================= Team-app look: home hub over a photo, no bottom bar ================= */
:root { --accent: #e0b25a; }
.tabbar { display: none; }
#view { padding-bottom: calc(var(--safe-b) + 24px); }
body:not(.inner) #view { padding-bottom: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tile { transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s; }
.tile:active { transform: scale(.96); }
@media (hover: hover) { .tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgb(0 0 0 / .35); } }
.pop-in { animation: popIn .5s cubic-bezier(.2, .9, .25, 1.15) both; }

/* Inner screens: a header with back and Settings */
.scrhead { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 12px; padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px; background: var(--brand); color: #fff; box-shadow: 0 2px 12px rgb(0 0 0 / .15); }
.scrhead[hidden] { display: none; }
.scrhead h1 { flex: 1; min-width: 0; margin: 0; font-size: 1.3rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-back, .sh-ico { flex: 0 0 40px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; transition: transform .15s; }
.sh-back:active, .sh-ico:active { transform: scale(.9); }
.sh-back svg { width: 24px; height: 24px; }
.sh-ico svg { width: 21px; height: 21px; }
.sh-gap { flex: 0 0 40px; }
body.inner .page-title { display: none; }
body.inner .page-top { padding-top: 16px; }
body.inner .offline-bar { padding-top: 8px; }

/* Home */
.th { position: relative; isolation: isolate; min-height: 100dvh; display: flex; flex-direction: column; background: var(--brand); color: #fff; }
.th-photo { position: sticky; top: 0; height: 100dvh; margin-bottom: -100dvh; z-index: -1; overflow: hidden; pointer-events: none; }
.th-img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hp, 50% 50%); transform: scale(var(--hz, 1)); transform-origin: var(--hp, 50% 50%); animation: fadeOnly .6s ease both; }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
/* Zoomed out further than the screen: a soft, blurred copy of the same photo fills round it. */
.th-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); filter: blur(28px) brightness(.8); }
.th-img { position: relative; }
.th-img.th-out { position: absolute; max-width: none; object-fit: fill; transform: none; }
/* The preview inside Site details: just to look at. */
.preview:not(.demo) body { pointer-events: none; }
.preview .install-sheet, .preview .ins-wrap { display: none !important; }
.th-shade-top { position: absolute; inset: 0 0 auto 0; height: 224px; background: linear-gradient(to bottom, rgb(0 0 0 / .6), rgb(0 0 0 / .25) 50%, transparent); }
.th-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / .74) 25%, rgb(0 0 0 / .6) 45%, rgb(0 0 0 / .44) 60%, rgb(0 0 0 / .22) 72%, transparent 86%); }
.th-top { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: max(env(safe-area-inset-top, 0px), 12px) 12px 0; }
.th-top-r { display: flex; align-items: center; gap: 6px; }
.glass { background: color-mix(in srgb, var(--brand) 40%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); color: #fff; border: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 999px; font: 700 .84375rem/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; }
.pill svg { width: 17px; height: 17px; }
.circ { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.circ svg { width: 21px; height: 21px; }
.circ:active svg { animation: wiggle .4s ease; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.15); } 75% { transform: rotate(8deg) scale(1.1); } }
.th-menu { position: relative; }
.th-drop { position: absolute; right: 0; top: 48px; z-index: 50; width: min(18rem, calc(100vw - 2rem)); background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 48px rgb(0 0 0 / .32); overflow: hidden; animation: popIn .35s cubic-bezier(.2, .9, .25, 1.15) both; }
.th-drop[hidden] { display: none; }
.th-drop a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: .9375rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.th-drop a + a { border-top: 1px solid var(--line); }
.bub { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; }
.bub svg { width: 18px; height: 18px; }
.th-top, .th-brand, .th-welcome, .th-tiles, .th-foot { width: 100%; max-width: 600px; margin-inline: auto; }
.th-brand { padding: 16px 20px 0; animation: fadeIn .45s ease both; }
.th-logo { display: inline-flex; padding: 6px 10px; border-radius: 16px; background: var(--logo-bg, #fff); box-shadow: 0 10px 24px rgb(0 0 0 / .3); }
/* See-through logo: straight on the photo, with a soft shadow so white writing reads over light parts. */
.th-logo.clear { padding: 0; box-shadow: none; background: none; }
.th-logo.clear img { filter: drop-shadow(0 1px 2px rgb(0 0 0 / .55)) drop-shadow(0 3px 10px rgb(0 0 0 / .45)); }
.th-logo img { display: block; height: var(--logo-h, 58px); max-width: calc(var(--logo-h, 58px) * 4); object-fit: contain; }
/* No logo: the site's name on its own, in up to two lines (whole words only). */
.th-name-only { margin: 0; max-width: 15em; font-size: var(--solo-fs, 1.625rem); font-weight: 800; line-height: 1.15; color: var(--name-colour, #fff); text-shadow: 0 2px 8px rgb(0 0 0 / .7); overflow-wrap: normal; word-break: normal; hyphens: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; }
.th-name { margin: 10px 0 0; font-size: var(--name-fs, .9375rem); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--name-colour, var(--accent)); text-shadow: 0 1px 4px rgb(0 0 0 / .8); }
.th-flex { flex: 1; min-height: 112px; }
.th-welcome { padding: 0 20px 12px; animation: fadeIn .45s ease both; }
.th-kicker { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-shadow: 0 1px 4px rgb(0 0 0 / .8); }
.th-welcome h1 { margin: 2px 0 0; font-size: var(--welcome-fs, 1.875rem); font-weight: 800; line-height: 1.1; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.th-tiles { padding: 0 12px; }
.th-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-bottom: 8px; }
.th-tile { grid-column: span 3; min-height: 64px; padding: 9px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; border-radius: 16px; background: color-mix(in srgb, var(--button, var(--brand)) 62%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgb(0 0 0 / .6); font-size: var(--tile-fs, .8125rem); font-weight: 700; line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: auto; -webkit-hyphens: auto; }
.th-tile svg { width: 21px; height: 21px; opacity: .92; }
.lay-big .th-tile { flex-direction: row; justify-content: center; gap: 10px; padding: 10px 14px; font-size: calc(var(--tile-fs, .8125rem) + .25rem); text-align: center; }
.lay-big .th-tile svg { flex: 0 0 22px; width: 22px; height: 22px; }
.th-sec { margin: 16px 6px 8px; font-size: var(--sec-fs, .78125rem); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-shadow: 0 1px 4px rgb(0 0 0 / .8); }
.th-swipe { display: flex; gap: 8px; margin: 0 -12px 8px; padding: 0 12px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 12px; scrollbar-width: none; }
.th-swipe::-webkit-scrollbar { display: none; }
.th-swipe .th-tile { flex: 0 0 38%; min-height: 88px; scroll-snap-align: start; }
.th-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 15px 16px; border-radius: 16px; background: color-mix(in srgb, var(--button, var(--brand)) 78%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 70%, transparent); color: #fff; text-decoration: none; font-size: 1.0625rem; font-weight: 800; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.th-banner span { flex: 1; }
.th-banner svg { width: 22px; height: 22px; }
.th-banner svg:first-child { color: var(--accent); fill: var(--accent); }
/* Discreet: just small text beside the pills. */
.th-credit { align-self: center; font-size: .6875rem; color: rgb(255 255 255 / .7); text-decoration: underline; text-underline-offset: 2px; padding: 6px 4px; text-shadow: 0 1px 3px rgb(0 0 0 / .8); }
.th-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 18px 12px calc(max(env(safe-area-inset-bottom, 0px), 14px) + 8px); }
.th-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--ink); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.th-pill img { height: 18px; }
/* "Share with friends" at the top of the home screen, first in the top bar. When the buttons on the right leave no
   room for it (most phones) it drops to its own line just under them (wrap-reverse puts the first line lowest). */
.th-top { flex-wrap: wrap-reverse; row-gap: 8px; }
.th-top .th-top-r { margin-left: auto; }

/* Home: "Photo and list" layout */
.th.th-listlay { background: var(--bg); color: var(--ink); }
.th-box { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 46dvh; min-height: 320px; color: #fff; overflow: visible; }
.th-box .th-photo { position: absolute; inset: 0; height: auto; margin: 0; }
.th-box .th-flex { min-height: 0; }
.th-box .th-welcome { padding-bottom: 36px; }
.th-sheet { position: relative; margin-top: -24px; padding: 20px 16px 4px; border-radius: 28px 28px 0 0; background: var(--bg); }
.th-sheet .th-banner { margin-bottom: 14px; background: var(--brand); }
.th-sheet .th-pill { background: #fff; box-shadow: var(--shadow); }

/* Settings */
.text-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.text-pick button { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-height: 84px; padding: 10px 6px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--line); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.text-pick button span { font-weight: 900; line-height: 1; }
.lang-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.lang-pick button { padding: 12px 10px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2px var(--line); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.lang-pick button { display: flex; align-items: center; justify-content: center; gap: 8px; }
.lang-pick .flag { font-size: 1.35em; line-height: 1; }
.lang-pick button.on { box-shadow: 0 0 0 3px var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.text-pick button.on { box-shadow: 0 0 0 3px var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.lay-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lay-pick button { display: flex; align-items: center; gap: 10px; padding: 10px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.lay-pick button.on { box-shadow: 0 0 0 3px var(--brand); }
.lay-pick b { display: block; font-size: .92rem; }
.lay-pick small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; line-height: 1.25; }
.lsk { position: relative; flex: 0 0 42px; height: 74px; display: grid; align-content: end; gap: 2px; padding: 4px; overflow: hidden; border-radius: 9px; background: linear-gradient(#8aa36f, var(--brand)); }
.lsk i { display: block; height: 7px; border-radius: 2px; background: rgb(255 255 255 / .8); }
.lsk-tiles { grid-template-columns: repeat(4, 1fr); }
.lsk-big { grid-template-columns: repeat(2, 1fr); }
.lsk-big i { height: 10px; }
.lsk-big i:nth-child(n+7), .lsk-list i:nth-child(n+6) { display: none; }
.lsk-list { grid-template-columns: 1fr; background: linear-gradient(#8aa36f 0 46%, #fff 46%); box-shadow: inset 0 0 0 1px var(--line); }
.lsk-list i { height: 5px; background: #cbd5e1; }
.lsk-swipe { grid-template-columns: repeat(8, 15px); }
.lsk-swipe i { height: 14px; }

/* Phone icons: each page a round-cornered icon with its name underneath, like a phone's home screen. */
.lay-icons .th-tile { min-height: 0; padding: 2px 0 6px; gap: 6px; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: calc(var(--tile-fs, .8125rem) - .0625rem); }
.lay-icons .th-tile svg { box-sizing: border-box; width: 60px; height: 60px; padding: 17px; border-radius: 18px; opacity: 1; background: color-mix(in srgb, var(--button, var(--brand)) 80%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3), 0 6px 16px rgb(0 0 0 / .25); }
/* Magazine: tall cards two to a row, the icon at the top and the name in large type at the bottom. */
.lay-mag .th-tile { min-height: 116px; padding: 14px; align-items: flex-start; justify-content: space-between; text-align: left; font-size: calc(var(--tile-fs, .8125rem) + .25rem); line-height: 1.1; }
.lay-mag .th-tile svg { width: 30px; height: 30px; }
.lay-mag .th-grid .th-tile { grid-column: span 6 !important; }
/* Wide buttons: one to a row, the icon on the left. */
.lay-cards .th-tile { min-height: 58px; padding: 12px 18px; flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; font-size: calc(var(--tile-fs, .8125rem) + .25rem); }
.lay-cards .th-tile svg { flex: 0 0 24px; width: 24px; height: 24px; }
.lay-cards .th-grid .th-tile { grid-column: span 12 !important; }
/* Light: no photo behind, a light screen with solid buttons in the business's colour. */
.th.lay-light { background: var(--bg); color: var(--ink); }
.lay-light .th-photo { display: none; }
.lay-light .th-flex { min-height: 28px; }
.lay-light .glass { background: var(--brand); }
.lay-light .th-tile, .lay-light .th-more { background: var(--button, var(--brand)); box-shadow: 0 6px 16px -8px rgb(0 0 0 / .45); backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none; }
.lay-light .th-welcome h1, .lay-light .th-name-only { color: var(--ink); text-shadow: none; }
.lay-light .th-kicker, .lay-light .th-name, .lay-light .th-sec { color: var(--brand); text-shadow: none; }
.lay-light .th-credit { color: var(--muted); text-shadow: none; }
.lay-light .th-pill { box-shadow: var(--shadow); }
/* Their sketches in Settings. */
.lsk-icons { grid-template-columns: repeat(3, 1fr); gap: 3px; }
.lsk-icons i { height: 9px; border-radius: 3px; }
.lsk-icons i:nth-child(n+7) { display: none; }
.lsk-mag { grid-template-columns: repeat(2, 1fr); }
.lsk-mag i { height: 16px; }
.lsk-mag i:nth-child(n+5) { display: none; }
.lsk-cards { grid-template-columns: 1fr; }
.lsk-cards i { height: 8px; }
.lsk-cards i:nth-child(n+5) { display: none; }
.lsk-light { grid-template-columns: repeat(3, 1fr); background: #f6f4ee; box-shadow: inset 0 0 0 1px var(--line); }
.lsk-light i { height: 9px; background: var(--brand); }
.lsk-light i:nth-child(n+7) { display: none; }
.set-links { padding: 6px; }
.set-links a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.set-links a:hover { background: var(--bg); }
.set-links b { flex: 1; }
.set-links svg { width: 20px; height: 20px; color: var(--brand); }
.set-links svg:last-child { color: #cbd5e1; }
/* The quiet credit at the foot of Settings: the company that makes the app. */
.app-by { display: flex; flex-direction: column; align-items: center; gap: 2px; width: fit-content; margin: 14px auto 4px; padding: 6px 10px; border-radius: 12px; text-decoration: none; }
.app-by small { font-size: .72rem; font-style: italic; color: #71717a; }
.app-by img { height: 38px; width: auto; display: block; }
body.inner [id] { scroll-margin-top: 80px; }
/* iPhone-style switch (Settings) */
.stats-switch input { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 52px; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #d4d4d8; cursor: pointer; transition: background .2s; }
.stats-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.stats-switch input:checked { background: #22c55e; }
.stats-switch input:checked::after { transform: translateX(22px); }

/* Home (team-app layout): photo banner, "More info" and its sheet */
/* The big button across the top of the home screen (the first home button): the app's colours, no photo. */
.th-bigbtn { display: flex; align-items: center; gap: 14px; min-height: 76px; margin: 0 0 8px; padding: 12px 16px; border-radius: 18px; background: color-mix(in srgb, var(--button, var(--brand)) 80%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent, #fff) 55%, rgb(255 255 255 / .3)), 0 6px 18px rgb(0 0 0 / .22); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgb(0 0 0 / .55); }
.th-bigbtn b { flex: 1; min-width: 0; font-size: calc(var(--tile-fs, .8125rem) + .4375rem); font-weight: 800; line-height: 1.15; }
.th-bigbtn .bb-ico { flex: 0 0 46px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.th-bigbtn .bb-ico svg { width: 24px; height: 24px; color: var(--accent, #fff); }
.th-bigbtn > svg { flex: 0 0 22px; width: 22px; height: 22px; opacity: .9; }
.th-sheet .th-bigbtn { background: var(--button, var(--brand)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.th-gbanner { position: relative; display: block; height: clamp(180px, 25vh, 230px); margin: 0 0 8px; overflow: hidden; border-radius: 16px; background: var(--brand); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); color: #fff; text-decoration: none; }
.th-gbanner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.gb-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .75), rgb(0 0 0 / .25) 55%, transparent); }
.gb-row { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.gb-ico { flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .2); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.gb-ico svg { width: 22px; height: 22px; color: var(--accent); }
.gb-text { flex: 1; min-width: 0; }
.gb-text b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.15; text-shadow: 0 1px 4px rgb(0 0 0 / .6); }
.gb-text small { display: block; margin-top: 2px; font-size: .78125rem; color: rgb(255 255 255 / .85); }
.gb-row > svg { flex: 0 0 22px; width: 22px; height: 22px; }
.th-more { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; margin: 0 0 8px; padding: 10px 16px; border: 0; border-radius: 16px; background: color-mix(in srgb, var(--button, var(--brand)) 62%, transparent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); backdrop-filter: blur(1.5px); -webkit-backdrop-filter: blur(1.5px); color: #fff; font: inherit; font-size: 1rem; font-weight: 800; text-shadow: 0 1px 3px rgb(0 0 0 / .6); cursor: pointer; }
.th-more span { flex: 1; text-align: left; }
.th-more small { font-size: .78125rem; font-weight: 600; opacity: .85; }
.th-more svg { width: 21px; height: 21px; }
.msheet-wrap { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; background: rgb(0 0 0 / .45); animation: iFade .2s ease both; }
.msheet-wrap.out { opacity: 0; transition: opacity .2s; }
.msheet { width: 100%; max-width: 640px; max-height: 86dvh; display: flex; flex-direction: column; border-radius: 28px 28px 0 0; background: var(--bg); padding: 10px 16px calc(12px + var(--safe-b)); animation: popIn .45s cubic-bezier(.2, .9, .25, 1.15) both; }
.msh-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px; }
.msh-head b { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.msh-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #e4e4e7; font-size: 1.375rem; line-height: 1; cursor: pointer; }
.msh-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.msh-body .gsec { margin-top: 14px; font-size: 1rem; }
.msh-body .card { margin-bottom: 4px; }
button.th-tile { border: 0; font-family: inherit; cursor: pointer; }
.th-wide { flex-direction: row; gap: 10px; font-size: calc(var(--tile-fs, .8125rem) + .25rem); }
.th-wide svg { width: 24px; height: 24px; }
.th-top .pill { padding: 0 11px; gap: 5px; font-size: .8125rem; }
.th-top .pill svg { width: 16px; height: 16px; }
.th-top-r { gap: 5px; }

/* More info: the home screen's photo with the rest of the buttons under their headings */
.more-wrap { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; background: var(--brand); color: #fff; animation: moreUp .38s cubic-bezier(.2, .9, .25, 1) both; }
.more-wrap.out { transition: transform .22s ease, opacity .22s ease; transform: translateY(30px); opacity: 0; }
@keyframes moreUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.more-photo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.more-shade { position: absolute; inset: 0; background: rgb(0 0 0 / .55); }
.more-scroll { position: relative; width: 100%; max-width: 640px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(max(env(safe-area-inset-bottom, 0px), 14px) + 16px); }
.more-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: max(env(safe-area-inset-top, 0px), 12px) 14px 6px 20px; }
.more-head h2 { margin: 0; color: #fff; font-size: 1.75rem; font-weight: 800; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.more-x { font-size: 1.625rem; line-height: 1; cursor: pointer; }
.more-scroll .th-tiles { max-width: 600px; margin: 0 auto; }
.more-scroll .th-sec { margin-top: 18px; }
body.more-open { overflow: hidden; }
/* Three across on phones; four on wider screens (three if a name won't fit) */
.more-wrap .th-tile { grid-column: span 4; hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 600px) { .more-wrap .th-tile { grid-column: span 3; } .more-wrap.more-3 .th-tile { grid-column: span 4; } }
.more-wrap .th-tile span { max-width: 100%; }

/* The place picked on the map: highlighted in the list until another pin is tapped */
.pin-on { position: relative; border-radius: 14px; background: color-mix(in srgb, var(--accent) 22%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 75%, transparent); animation: pinOn .6s ease both; }
@keyframes pinOn { from { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } }

/* Portrait only: a phone turned on its side is asked to turn back (the installed app is locked upright too). */
.turn-upright { display: none; }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  #app, #lightbox { display: none !important; }
  .turn-upright { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999; padding: 24px; background: var(--brand); color: #fff; text-align: center; font-weight: 700; font-size: 1.15rem; }
  .turn-upright svg { width: 56px; height: 56px; margin: 0 auto 12px; display: block; }
}

/* The heading above a page's intro text (Guide pages → Heading). */
.rich .pg-heading { margin: 0 0 12px; font-size: 1.9375rem; font-weight: 900; line-height: 1.1; letter-spacing: -.01em; color: var(--brand); }
/* A short bar in the app's accent colour under the heading, so it stands apart from the text. */
.rich .pg-heading::after { content: ""; display: block; width: 48px; height: 5px; margin-top: 10px; border-radius: 3px; background: var(--accent, var(--brand)); }

/* A clear line between listings (local listings, What's On, own place lists): thicker, in the app's colour. */
.list > li.lcard + li.lcard, .list > li.ecard + li.ecard, .list > li.place + li.place,
.list > li.lcard + li.ecard, .list > li.ecard + li.lcard { border-top: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line)); }
.llist .lcard, .list .ecard, .list .place { padding: 18px 0; }
.llist .lring { border-top: 2px solid color-mix(in srgb, var(--brand) 45%, var(--line)); padding-top: 18px; }
.llist .lring:first-child { border-top: 0; padding-top: 6px; }

/* "Quickest first": shown once over a listings map, until "Got it". */
.gmap-wrap { position: relative; }
.drive-note { position: absolute; inset: 14px 0 0; z-index: 1100; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: rgb(255 255 255 / .94); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); box-shadow: var(--shadow); text-align: center; }
.drive-note .dn-title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 1.25rem; font-weight: 800; color: #dc2626; }
.drive-note .dn-title svg { width: 22px; height: 22px; }
.drive-note p { margin: 0; font-size: 1.05rem; line-height: 1.4; color: var(--ink); }
.drive-note .btn { align-self: center; min-width: 140px; margin-top: 4px; background: #dc2626; border-color: #dc2626; color: #fff; }

/* Types (tea room / café, fuel / EV charging…): a coloured dot on each listing, and a key under the map. */
.ltype { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: calc(.8rem + .1875rem); font-weight: 800; color: var(--tc, var(--ink)); }
.ltype i, .lkey i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--tc, #d62828); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(0 0 0 / .12); }
.lkey { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 4px 0; padding: 10px 14px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-size: calc(.8rem + .1875rem); font-weight: 700; color: var(--ink); }
.lkey button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; margin: -6px -8px; border: 0; border-radius: 999px; background: none; font: inherit; color: inherit; cursor: pointer; }
.lkey button:active { transform: scale(.96); }
.lkey.picked button[data-ktype]:not(.on):not(.lkey-all) { opacity: .45; }
.lkey button.on { background: color-mix(in srgb, var(--brand) 12%, #fff); box-shadow: inset 0 0 0 2px var(--brand); margin: -6px 0; }
.lkey .lkey-all { flex-basis: 100%; justify-content: center; margin: 4px 0 0; padding: 10px; background: var(--brand); color: #fff; }
.lkey .lkey-all svg { width: 18px; height: 18px; }
.lkey-hint { flex-basis: 100%; font-weight: 600; font-size: .85em; color: var(--muted, #6b7280); }
/* Fuel prices (pence per litre) on a filling station. */

/* The Recommended box on the Farm shops page: a friend's farm shop finder. */
a.promo { display: grid; gap: 2px; text-decoration: none; color: var(--ink); border-left: 5px solid var(--brand); }
a.promo small { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
a.promo b { font-size: 1.15em; }
a.promo span { color: var(--muted); }
a.promo em { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-weight: 700; color: var(--brand); }
a.promo em svg { width: 18px; height: 18px; }

/* Reviews: Google's place card, in a sheet that slides up */
.rv-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); animation: rv-fade .2s ease; }
.rv-wrap.out { opacity: 0; transition: opacity .2s; }
.rv-sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow: auto; background: var(--card, #fff); border-radius: 22px 22px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; animation: rv-up .25s ease; }
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-head b { flex: 1; font-size: 1.1em; }
.rv-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.07); font-size: 22px; line-height: 1; color: inherit; cursor: pointer; }
.rv-map { width: 100%; height: min(52dvh, 380px); border: 0; border-radius: 14px; background: #eee; }
.rv-note { margin: 0; font-size: .8rem; color: var(--muted); }
.rv-sheet .btn { justify-content: center; }
@keyframes rv-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rv-fade { from { opacity: 0; } to { opacity: 1; } }

/* The owner's own places: their photo and their words */
.lcard .lphoto { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 10px 0 2px; }
.lcard .ldesc { margin: 8px 0 2px; line-height: 1.5; }

/* Home buttons: names never broken mid-word (they shrink to fit instead: fitTiles in app.js). */
.th-tiles .th-tile > span, .th-tiles .th-bigbtn > b { max-width: 100%; min-width: 0; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
/* Big buttons layout: a row of three (the odd one out) has the icon above the name, like the smaller tiles. */
.lay-big .th-tile.th-third { flex-direction: column; gap: 5px; padding: 9px 6px; font-size: var(--tile-fs, .8125rem); }
.lay-big .th-tile.th-third svg { flex: 0 0 auto; width: 20px; height: 20px; }

/* How to use this app: one card per tip, its icon beside the heading. */
.help-card h2 { display: flex; align-items: center; gap: 10px; }
.help-card h2 .ico { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.help-card h2 .ico svg { width: 19px; height: 19px; }
.help-card .btn { margin-top: 12px; }
.more-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px auto 8px; padding: 10px 18px; width: max-content; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); }
.more-help svg { width: 18px; height: 18px; }
