

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font-body);
}
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .card h3, [dir="rtl"] .brand-name { font-family: var(--font-body); letter-spacing: 0; }
[dir="rtl"] .lang button { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-body); font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
a { color: var(--accent); }
.muted { color: var(--muted); font-size: .95rem; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Header + language switch */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--happy); color: var(--happy-ink);
  font: 800 17px/1 var(--font-body);
}
.brand-name { font-weight: 700; font-family: var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang { display: flex; background: var(--chip); border-radius: 999px; padding: 3px; flex: none; }
.lang button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 700 13px/1 var(--font-body); letter-spacing: .04em;
  padding: 12px 12px; border-radius: 999px; min-width: 44px; min-height: 44px;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

main { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 28px 0 8px; position: relative; }
main { overflow-x: hidden; }
.hero::after {
  content: ""; position: absolute; inset-inline-end: -30px; top: -6px; width: 150px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--happy), transparent 70%); opacity: .8; pointer-events: none; z-index: -1;
}
.eyebrow { margin: 0 0 6px; font-weight: 600; color: var(--muted); font-size: .95rem; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow .sky { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.hero h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); }
.stay {
  display: inline-block; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px;
  background: var(--happy); color: var(--happy-ink); font-size: .9rem; font-weight: 600;
}
.name-box { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.name-box input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 180px; max-width: 260px; }
.qbtn-ghost { background: var(--chip); color: var(--ink); padding: 10px 14px; border: 1px solid var(--line); }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.qbtn { text-decoration: none; font-weight: 700; font-size: 1rem; padding: 12px 18px; min-height: 46px; border-radius: 14px; display: inline-flex; align-items: center; gap: 6px; }
.qbtn[hidden] { display: none; }
.qbtn-wa { background: var(--wa-bg); color: var(--wa-ink); }
.qbtn-sos { background: var(--surface); color: var(--danger); border: 2px solid var(--danger); }
.sos-static { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.sos-static a { font-weight: 700; color: var(--danger); }
.sos-static a.sos-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.steps li { position: relative; padding-inline-start: 46px; font-size: 1.05rem; line-height: 1.45; min-height: 34px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink, #fff);
  font: 800 1rem/34px var(--font-body); text-align: center;
}
.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ext-links a { display: inline-block; padding: 10px 14px; border-radius: 12px; background: var(--chip); color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; box-sizing: border-box; }
.stay-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; font-size: .95rem; }
.stay-pick input[type="date"] { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
.linkish { border: 0; background: none; color: var(--accent); font: inherit; font-size: .9rem; cursor: pointer; padding: 10px 0; min-height: 44px; text-decoration: underline; }
.jump { display: flex; gap: 8px; padding: 24px 0 4px; flex-wrap: wrap; }
.jump a {
  text-decoration: none; color: var(--ink); background: var(--chip);
  padding: 10px 16px; border-radius: 999px; font-size: .95rem; font-weight: 600;
}
.block { padding: 36px 0 4px; scroll-margin-top: 64px; }
.block > h2, .week-head h2 { font-size: 1.65rem; margin-bottom: 14px; }
.week-head { margin-bottom: 14px; }
.week-head h2 { margin-bottom: 4px; }

/* First-hour strip */
.first-block { padding-top: 28px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 10px; scrollbar-width: none; margin: 0 -16px; padding-inline: 16px; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 620px) { .strip { grid-auto-columns: 40%; } }
.tile { scroll-snap-align: start; position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--chip); text-decoration: none; color: #fff; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-ico { display: grid; place-items: center; height: 100%; font-size: 3rem; }
.tile-txt { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgb(var(--scrim-rgb) / .85), rgb(var(--scrim-rgb) / 0)); }
.tile-txt strong { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.tile-txt span { font-size: .85rem; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile:active { transform: scale(.98); }

/* House cards */
.group-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 800; margin: 22px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
[dir="rtl"] .group-title { letter-spacing: 0; }
.group-title:first-child { margin-top: 0; }
.group-title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.group-title[data-group="safe"] .dot { background: var(--danger); }
.group-title[data-group="local"] .dot { background: var(--happy); }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-height: 64px;
}
.card summary::-webkit-details-marker { display: none; }
.card .ico {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; font-size: 26px; line-height: 1; border-radius: 14px; background: var(--chip);
}
.card .thumb { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 14px; background: var(--chip); }
.card summary:active { background: var(--accent-soft); }
.card .chev { transition: transform .16s; }
.card[open] .body { animation: rise .18s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card[open] .body { animation: none; } .card .chev { transition: none; } }
.card h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }
.card .sub { color: var(--muted); font-size: .93rem; line-height: 1.4; }
.card .chev { margin-inline-start: auto; color: var(--muted); transition: transform .2s; }
.card[open] .chev { transform: rotate(180deg); }
.card .body { padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.card .body ul { margin: 14px 0 0; padding-inline-start: 20px; }
.card .body ul.plain { list-style: none; padding: 0; }
.card .body li.row { margin: 10px 0; }
.card .body li.row-img { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.row-pic { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--chip); }
.row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-txt { min-width: 0; flex: 1; }
.row-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.row-links a { text-decoration: none; font-weight: 600; }
.row-links .credit-link { font-weight: 400; }
.card .body li.row a { font-weight: 600; text-decoration: none; }
.small { font-size: .9rem; }
.card-video { display: block; width: 100%; border-radius: 12px; margin: 14px 0 4px; background: #000; }
.sec-title { margin: 18px 0 4px; font-size: 1rem; font-weight: 700; }
.card-img-tall { max-height: 360px; }
.card-img { display: block; width: 100%; max-height: 260px; object-fit: contain; margin: 14px 0 0; border-radius: 12px; background: var(--chip); }
.card .body li { margin: 8px 0; }
.card.emergency { box-shadow: inset 4px 0 0 var(--danger); }
[dir="rtl"] .card.emergency { box-shadow: inset -4px 0 0 var(--danger); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy {
  margin-inline-start: 8px; border: 1px solid var(--line); background: var(--chip); color: var(--ink);
  border-radius: 8px; font: 500 12px var(--font-body); padding: 3px 8px; cursor: pointer;
}
.tel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tel a {
  text-decoration: none; background: var(--danger); color: var(--danger-ink);
  padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: .95rem;
}
:root[data-theme="dark"] .tel a { color: var(--danger-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel a { color: var(--danger-ink); } }

/* Places we love */
.lead { margin: -6px 0 14px; }
.places { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .places { grid-template-columns: 1fr 1fr; } }
.place {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.place-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--chip); }
.place-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-media .walk {
  position: absolute; inset-inline-start: 12px; bottom: 12px; font-size: .8rem; font-weight: 700; color: var(--happy-ink);
  background: var(--happy); padding: 5px 10px; border-radius: 999px;
}
.place-body { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.place-body h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }
.place-body p { margin: 0; font-size: 1rem; }
.place-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; padding-top: 10px; font-size: .85rem; }
.credit-link { color: var(--muted); text-decoration: none; font-size: .75rem; line-height: 1.3; }
.credit-link:hover { text-decoration: underline; }
.map-link { flex: none; font-weight: 700; text-decoration: none; }

/* Heads-up notes */
.headsup { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.headsup li { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-inline-start: 4px solid var(--happy); border-radius: 12px; padding: 12px 14px; font-size: .95rem; }
.hu-ico { flex: none; font-size: 1.1rem; line-height: 1.3; }

/* Weekly events */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; border: 0; background: var(--chip); color: var(--ink);
  font: 600 .95rem var(--font-body); padding: 10px 16px; min-height: 40px; border-radius: 999px; cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.events { display: grid; gap: 12px; margin-top: 14px; }
.ev {
  background: var(--surface); border-radius: var(--radius);
  padding: 18px 20px; overflow: hidden;
}
.ev-media {
  position: relative; margin: -18px -20px 14px; aspect-ratio: 16 / 7; overflow: hidden;
  background: var(--chip);
}
.ev-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-media .credit {
  position: absolute; inset-inline-end: 8px; bottom: 6px; font-size: .7rem; color: #fff;
  background: rgba(0,0,0,.45); padding: 2px 7px; border-radius: 999px;
}
.ev-media.ph { display: grid; place-items: center; font-size: 1.8rem; aspect-ratio: 16 / 4; }
.ph-food { background: var(--chip); }
.ph-culture { background: var(--accent-soft); }
.ph-nightlife { background: var(--chip); }
.ev-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ev h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; }
.ev .when { flex: none; font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .03em; }
.ev .where { color: var(--muted); font-size: .9rem; margin: 2px 0 6px; }
.ev p { margin: 0; }
.ev .foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: .9rem; }
.ev .src { color: var(--muted); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--happy); color: var(--happy-ink); margin-inline-start: 6px; vertical-align: middle; }
.empty { color: var(--muted); padding: 20px 0; }

.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); }

/* Auto-links inside text */
a.auto { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; font-weight: 600; }
a.auto.out { text-decoration-style: dotted; }

/* Decorative blobs down the page (the hero has the sun) */
.block { position: relative; }
.block::before { content: ""; position: absolute; z-index: -1; width: 180px; aspect-ratio: 1; border-radius: 50%; pointer-events: none; opacity: .55;
  background: radial-gradient(circle at 40% 40%, var(--accent-soft), transparent 70%); inset-inline-start: -60px; top: -20px; }
#places::before { background: radial-gradient(circle at 40% 40%, var(--happy), transparent 70%); inset-inline-start: auto; inset-inline-end: -50px; top: 0; }
#week::before { inset-inline-start: -40px; top: 40px; width: 220px; }
#first::before { background: radial-gradient(circle at 40% 40%, var(--happy), transparent 72%); inset-inline-start: auto; inset-inline-end: -40px; top: -10px; width: 140px; opacity: .45; }

/* Bottom tab bar (app-like section switcher) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; z-index: 20; display: flex;
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 600; padding: 4px 2px; border-radius: 12px; min-height: 48px; justify-content: center; }
.tabbar a svg { display: block; }
.tabbar a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); }
.tabbar a[hidden] { display: none; }
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.foot { padding-bottom: 12px; }
@media (min-width: 760px) { .tabbar { max-width: 760px; margin: 0 auto; border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0; } }
.block { scroll-margin-top: 64px; }

/* Narrow phones: short brand next to the 4 language buttons */
@media (max-width: 430px) {
  .brand-name { display: none; }
  .lang button { min-width: 40px; padding: 10px 9px; }
  .top { gap: 8px; }
}

/* Belt and braces against horizontal scroll on phones */
html, body { max-width: 100vw; }
.strip { max-width: 100vw; }
/* Softer decorative blobs in dark mode */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .block::before, :root:not([data-theme="light"]) .hero::after { opacity: .5; } }
:root[data-theme="dark"] .block::before, :root[data-theme="dark"] .hero::after { opacity: .5; }

a.auto.page { text-decoration-style: solid; }

/* The bottom tab bar replaces the section chips */
.jump { display: none; }

/* SOS brand mark in the sticky header (always reachable) */
.brand-mark.sos { background: var(--danger); color: var(--danger-ink); font-size: 15px; text-decoration: none; }
.badge.sat { background: var(--happy); color: var(--happy-ink); margin-inline-start: 8px; }

/* ===== Design pass 2026-09-29 (design review): depth, dark-mode red, blobs, tab bar, type ===== */

.card, .place, .ev { box-shadow: var(--shadow), 0 0 0 1px var(--ring); }
.card { transition: box-shadow .2s; }
.card[open] { box-shadow: var(--shadow-hi), 0 0 0 1px var(--ring); }
.card.emergency { box-shadow: var(--shadow), 0 0 0 1px var(--ring), inset 4px 0 0 var(--danger-fill); }
[dir="rtl"] .card.emergency { box-shadow: var(--shadow), 0 0 0 1px var(--ring), inset -4px 0 0 var(--danger-fill); }

.brand-mark.sos { background: var(--danger-fill); color: #fff; font-size: 0; }
.brand-mark.sos::after { content: "SOS"; font: 800 11px/1 var(--font-body); letter-spacing: .06em; }
.tel a { background: var(--danger-fill); color: var(--danger-ink); }
:root[data-theme="dark"] .tel a { color: var(--danger-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tel a { color: var(--danger-ink); } }
.qbtn-sos { background: var(--danger-soft); color: var(--danger); border: 2px solid var(--danger-fill); }
.sos-static { font-size: .85rem; margin-top: 16px; }
.sos-static strong { display: none; }

.hero::after { width: 220px; inset-inline-end: -50px; top: -30px; opacity: 1; filter: blur(6px); }
.block::before { display: none; }
#places::before { display: block; width: 260px; opacity: .6; filter: blur(12px); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::after,
  :root:not([data-theme="light"]) #places::before { opacity: .32; mix-blend-mode: screen; }
}
:root[data-theme="dark"] .hero::after,
:root[data-theme="dark"] #places::before { opacity: .32; mix-blend-mode: screen; }

.tabbar { padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgb(var(--shadow-rgb) / .05); }
.tabbar a { gap: 4px; font-size: .75rem; border-radius: 0; }
.tabbar a svg { width: 22px; height: 22px; padding: 4px 16px; box-sizing: content-box; border-radius: 999px; transition: background .18s; }
.tabbar a[aria-current="true"] { color: var(--accent); background: none; font-weight: 700; }
.tabbar a[aria-current="true"] svg { background: var(--accent-soft); stroke-width: 2.4; }

.block > h2, .week-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.015em; }
.hero h1 { line-height: 1.1; }
.group-title { font-size: .78rem; font-weight: 700; letter-spacing: .1em; gap: 8px; margin: 26px 0 10px; }
.group-title .dot { width: 8px; height: 8px; }
[dir="rtl"] .group-title { font-size: .9rem; letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2 { font-weight: 700; }
[dir="rtl"] .hero h1 { line-height: 1.2; }

.card summary { padding: 16px 18px; }
.card summary > span:not(.chev):not(.ico) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.card h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.card .sub { font-size: .875rem; line-height: 1.35; }
.card .thumb, .card .ico, .row-pic { border-radius: 12px; outline: 1px solid var(--ring); outline-offset: -1px; }
.card .chev {
  width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--chip); color: var(--ink);
  display: grid; place-items: center; font-size: 12px; line-height: 1;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .15s, color .15s;
}
.card[open] .chev { background: var(--accent-soft); color: var(--accent); }

.card .body li.row-img { gap: 14px; margin: 16px 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card .body li.row-img:last-child { border-bottom: 0; padding-bottom: 0; }
.row-pic { width: 76px; height: 76px; }
.row-txt > a:first-child { color: var(--ink); font-weight: 700; font-size: 1.02rem; }
.row-txt > .muted { font-size: .875rem; display: block; }
.row-links a { font-size: .875rem; }

.strip { grid-auto-columns: 68%; gap: 10px; scroll-snap-type: x mandatory; }
.tile { box-shadow: 0 0 0 1px var(--ring); transition: transform .15s cubic-bezier(.2,.8,.2,1); }
.tile:active { transform: scale(.97); }
.tile-txt {
  padding: 56px 14px 14px;
  background: linear-gradient(to top, rgb(var(--scrim-rgb) / .92) 0%, rgb(var(--scrim-rgb) / .55) 50%, rgb(var(--scrim-rgb) / 0) 100%);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.tile-txt strong { font-size: 1.2rem; letter-spacing: -.01em; }
.tile-txt span { opacity: .92; }
.tile-ico { background: linear-gradient(135deg, var(--accent-soft), var(--chip)); }

a, button, summary, .tile { -webkit-tap-highlight-color: transparent; }
.card summary { transition: background .15s; }
.card summary:active { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.card[open] .body { animation: rise .24s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card, .tile, .card summary, .tabbar a svg { transition: none; } }

/* Anchored cards land just below the sticky header */
.card, .place { scroll-margin-top: 84px; }

.brand-mark.sos::after { display: block; letter-spacing: .04em; padding-inline-start: .04em; }

/* Listing logo in the header */
.brand-mark.logo { background: none; width: 36px; height: 36px; }
.brand-mark.logo svg { display: block; }
.brand-short { display: none; font-weight: 700; font-family: var(--font-body); white-space: nowrap; }
@media (max-width: 430px) { .brand-short { display: inline; } }
[dir="rtl"] .brand-short { font-family: var(--font-body); }

/* Wordmark logo */

/* Wordmark v2 (ChatGPT): var(--font-body) 600 + var(--font-body) 600, no yellow */

.top { padding-left: 12px; padding-right: 12px; gap: 8px; }

/* Wordmark v3: QUIET ROOM (var(--font-body)) + Florentin (var(--font-body)) rising across, on a soft plate with a sun */

.top { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 8px; }

/* 1.10: wordmark v3 kept, sun blob removed */

/* Name box (1.10): input and Save always on one line, no truncated placeholder */
.name-box { flex-wrap: nowrap; }
.name-box input { flex: 1 1 0; max-width: 240px; font-size: 15px; padding: 8px 12px; min-height: 40px; }
.name-box input::placeholder { color: var(--muted); }
.name-box .qbtn { flex: none; white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: .95rem; }

/* Day trips & tours section (2.10): open photo cards, like the weekly events */
.ev.tour .ev-media { display: block; position: relative; }
.ev.tour .book { font-weight: 700; text-decoration: none; background: var(--accent); color: var(--accent-ink, #fff); padding: 9px 14px; border-radius: 12px; }
.tours-note { margin-top: 12px; }
@media (max-width: 400px) { .tabbar a { font-size: .66rem; } }

/* Guided-tour link inside a place card (2.10): one entry per spot instead of a duplicate tour card */
.place-tour { display: inline-block; margin: 2px 0 10px; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 10px; }

/* Review fixes (2.10): tap targets, tab labels on one line, guests' pick tag on the photo, "all tours" link row */
.ev.tour .book, .place-tour { min-height: 44px; display: inline-flex; align-items: center; }
.tabs button { min-height: 44px; }
.tabbar a span { white-space: nowrap; }
.name-box input { font-size: 16px; }
.ev-media .fav-tag { position: absolute; inset-inline-start: 12px; top: 12px; font-size: .8rem; font-weight: 700; color: var(--happy-ink); background: var(--happy); padding: 5px 10px; border-radius: 999px; }
.more-tours { display: block; margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); color: var(--accent); font-weight: 600; text-decoration: none; }

/* Check-out reminder under the greeting (evening before + the day itself) */
a.stay { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
a.stay[hidden] { display: none; }

/* ===== Warm theme (3.10): parchment + terracotta, softer type, lighter cards, 2-column places ===== */

body { font-family: var(--font-body); }
h1, h2, h3, .tile-txt strong, .brand-short, .block > h2, .week-head h2 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.02em; }
.hero h1 { font-weight: 800; }
.card h3, .place-body h3, .ev h3 { font-family: var(--font-body); font-weight: 700; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .card h3, [dir="rtl"] .place-body h3, [dir="rtl"] .ev h3, [dir="rtl"] .tile-txt strong { font-family: var(--font-body); letter-spacing: 0; }
.block > h2, .week-head h2 { font-size: 1.6rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.hero::after, #places::before { display: none; }
.top { border-bottom: 0; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Apartment cards: icon in a soft tinted square, more air */
.card { border-radius: var(--radius); }
.card summary { padding: 18px 18px; gap: 14px; }
.card .ico { background: var(--accent-soft); color: var(--accent); border-radius: 16px; width: 54px; height: 54px; font-size: 24px; }
.card .thumb { border-radius: 16px; width: 54px; height: 54px; }
.card .chev { background: transparent; color: var(--muted); }
.card.emergency .ico { background: var(--danger-soft); color: var(--danger); }
.card .body { border-top: 1px solid var(--line); padding: 6px 20px 22px; }
.group-title { color: var(--accent); }
.group-title .dot { background: var(--accent); }

/* First-hour tiles: squarer, softer gradient */
.strip { grid-auto-columns: 62%; gap: 12px; }
.tile { aspect-ratio: 1 / 1.05; border-radius: 22px; }
.tile-txt { padding: 60px 14px 16px; background: linear-gradient(to top, rgb(var(--scrim-rgb) / .88) 0%, rgb(var(--scrim-rgb) / .45) 55%, rgb(var(--scrim-rgb) / 0) 100%); }

/* Tours: full-width photo cards with a big terracotta Book button */
.ev.tour { border-radius: var(--radius); }
.ev.tour .ev-media { aspect-ratio: 16 / 10; }
.ev.tour .foot-row { display: block; margin-top: 14px; }
.ev.tour .book { display: flex; justify-content: center; width: 100%; padding: 13px 16px; border-radius: 14px; font-size: 1.02rem; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 55%, transparent); }
.ev.tour .foot-row .credit-link, .ev.tour .foot-row > span { display: block; margin-top: 8px; text-align: center; }
.more-tours { text-align: center; border-radius: 14px; }

/* Places: two columns on the phone, walk time as a pill on the photo, round map button */
.places { grid-template-columns: 1fr 1fr; gap: 12px; }
.place { border-radius: 20px; }
.place-media { aspect-ratio: 1 / 1; }
.place-media .walk { inset-inline-start: auto; inset-inline-end: 10px; top: 10px; bottom: auto; background: var(--badge-bg); color: var(--badge-ink); font-size: .74rem; padding: 5px 9px; backdrop-filter: blur(6px); }
.place-body { padding: 12px 14px 14px; gap: 4px; }
.place-body h3 { font-size: 1rem; line-height: 1.25; }
.place-body p { font-size: .9rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.place-foot { flex-wrap: wrap; gap: 8px; padding-top: 10px; align-items: center; }
.map-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; }
.place-tour { font-size: .85rem; padding: 7px 10px; margin: 0 0 6px; }
.credit-link { font-size: .68rem; }
@media (max-width: 360px) { .places { grid-template-columns: 1fr; } .place-media { aspect-ratio: 16 / 10; } }

/* This week: lighter rows, photo when there is one */
.ev { border-radius: var(--radius); }
.ev .when { color: var(--accent); }
.ev-media.ph { background: var(--accent-soft); color: var(--accent); }

/* Tab bar */
.tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgb(var(--shadow-rgb) / .05); }
.tabbar a[aria-current="true"] { color: var(--accent); }
.tabbar a[aria-current="true"] svg { background: var(--accent-soft); }

/* Buttons */
.qbtn { border-radius: 14px; }
.qbtn-wa, .qbtn.primary { background: var(--accent); color: var(--accent-ink); }
.qbtn-sos { border-color: var(--danger-fill); color: var(--danger); background: var(--surface); }
.tel a { border-radius: 14px; }
/* 3.10 polish: readable chevrons, shorter credits in the 2-column places */
.card .chev { font-size: 16px; width: 32px; height: 32px; }
.place .credit-link { font-size: .62rem; opacity: .8; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ev.tour .foot-row .credit-link { font-size: .7rem; opacity: .75; }

/* ===== 3.10 afternoon: council + site-review fixes ===== */
/* Darker terracotta for text and buttons (sunlight contrast ≥ 4.5), the light one stays for decoration */

.group-title .dot, .ev-media .fav-tag { background: var(--accent-deco); }
.ev-media .fav-tag { color: #fff; }
/* WhatsApp is green again; terracotta only for the "primary" button */
.qbtn-wa { background: var(--wa-bg); color: var(--wa-ink); }
.qbtn-wa:hover { filter: brightness(.94); }

/* Floating pill tab bar */
.tabbar { left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; border-radius: 999px; border: 1px solid var(--line);
  padding: 6px 6px; box-shadow: 0 10px 30px -10px rgb(var(--shadow-rgb) / .25), 0 0 0 1px var(--ring); }
@media (min-width: 760px) { .tabbar { max-width: 640px; margin: 0 auto; border-radius: 999px; border-bottom: 1px solid var(--line); } }
.tabbar a { border-radius: 999px; min-height: 52px; }
.tabbar a svg { padding: 3px 12px; }
body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

/* Tours: two big cards for the guests' picks, compact rows for the rest */
.ev.tour.tour-row { display: grid; grid-template-columns: 104px 1fr; gap: 0; align-items: stretch; padding: 0; }
.ev.tour.tour-row .ev-media { aspect-ratio: 1 / 1; height: 100%; border-radius: 0; }
.ev.tour.tour-row .ev-media .credit { display: none; }
.ev.tour.tour-row .tour-txt { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.ev.tour.tour-row h3 { font-size: 1rem; }
.ev.tour.tour-row .where { font-size: .8rem; margin: 0; }
.ev.tour.tour-row p { font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev.tour.tour-row .foot-row { margin-top: 8px; }
.ev.tour.tour-row .book { width: auto; display: inline-flex; padding: 9px 14px; font-size: .9rem; min-height: 40px; box-shadow: none; }
.ev.tour:not(.tour-row) .tour-txt { padding: 0; }
.ev.tour .foot-row .credit-link { display: none; }

/* Places: one strong line, "more" to unfold, visible tour pill, map-all button */
.place-body p.place-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place-body p.place-text.open { display: block; -webkit-line-clamp: unset; }
.more-btn { align-self: flex-start; border: 0; background: none; color: var(--accent); font: 700 .85rem/1 inherit; font-family: inherit; padding: 6px 0; min-height: 32px; cursor: pointer; }
.place-media .tour-pill { position: absolute; inset-inline-start: 10px; top: 10px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--accent); padding: 5px 9px; border-radius: 999px; }
.place-media .walk { font-size: .8rem; }
.map-all { grid-column: 1 / -1; text-align: center; font-size: 1rem; padding: 16px; }

/* This week: one line of text, small photo on the side */
.ev:not(.tour) { display: grid; grid-template-columns: 84px 1fr; gap: 0; }
.ev:not(.tour) .ev-media { aspect-ratio: 1 / 1; height: 100%; border-radius: 0; }
.ev:not(.tour) .ev-media .credit { display: none; }
.ev:not(.tour) .ev-media.ph { aspect-ratio: 1 / 1; font-size: 1.6rem; }
.ev:not(.tour) > .ev-top, .ev:not(.tour) > .where, .ev:not(.tour) > p, .ev:not(.tour) > .foot-row { grid-column: 2; }
.ev:not(.tour) > .ev-top { padding: 12px 14px 0; }
.ev:not(.tour) > .where { padding: 0 14px; font-size: .82rem; }
.ev:not(.tour) > p { padding: 0 14px; font-size: .9rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev:not(.tour) > .foot-row { padding: 0 14px 12px; margin-top: 6px; }
.ev:not(.tour) h3 { font-size: 1rem; }

/* Check-out tick boxes */
ul.checks { list-style: none; padding: 0; margin: 14px 0 0; }
li.check { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
li.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
li.check label { flex: 1; }
li.check input:checked + label { color: var(--muted); text-decoration: line-through; }

/* "Everything OK?" card under the greeting */
.ok-card { margin: 14px 0 0; padding: 14px 16px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); display: flex; flex-direction: column; gap: 6px; }
.ok-card[hidden] { display: none; }
.ok-card h3 { font-size: 1.05rem; }
.ok-card p { margin: 0; font-size: .95rem; color: var(--muted); }
.ok-card a { align-self: flex-start; margin-top: 4px; text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
/* 3.10 fixes from owner's phone: compact tour rows (image must stay in its column), badges on photos */
.ev.tour.tour-row { min-height: 120px; overflow: hidden; }
.ev.tour.tour-row .ev-media { position: relative; aspect-ratio: auto; height: 100%; min-height: 120px; display: block; }
.ev.tour.tour-row .ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev.tour.tour-row .fav-tag { display: none; }
.ev.tour.tour-row .tour-txt { min-width: 0; }
.ev.tour.tour-row h3, .ev.tour.tour-row p { overflow-wrap: anywhere; }
.place-media .walk { max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; line-height: 1.2; }
.place-media .tour-pill { top: auto; bottom: 10px; }
.place .credit-link { font-size: .6rem; }
.ev:not(.tour) { min-height: 84px; overflow: hidden; }
.ev:not(.tour) .ev-media { position: relative; aspect-ratio: auto; min-height: 84px; }
.ev:not(.tour) .ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* compact rows: cancel the negative photo margins of the big card */
.ev.tour.tour-row .ev-media, .ev:not(.tour) .ev-media { margin: 0; }
.ev:not(.tour) { padding: 0; }
.ev:not(.tour) .ev-media.ph { display: grid; }
.ev:not(.tour) .ev-media { grid-row: 1 / span 4; }
.ev:not(.tour) > p { -webkit-line-clamp: 2; }
/* dark mode: walk badge stays readable, wordmark plate warm */
.place-media .walk { color: var(--badge-ink); }

/* ===== 3.10 evening (owner): apartment cards as compact 2-up tiles; an open card spans the full width ===== */
.cards { grid-template-columns: 1fr 1fr; gap: 10px; }
.card:not([open]) summary { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 12px; min-height: 100%; }
.card:not([open]) .ico, .card:not([open]) .thumb { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
.card:not([open]) h3 { font-size: .95rem; line-height: 1.2; }
.card:not([open]) .sub { font-size: .78rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:not([open]) .chev { position: absolute; inset-inline-end: 10px; top: 10px; width: 24px; height: 24px; font-size: 12px; }
.card { position: relative; }
.card[open] { grid-column: 1 / -1; }
.card.emergency:not([open]) { grid-column: 1 / -1; }
.card.emergency:not([open]) summary { flex-direction: row; align-items: center; }
.card.emergency:not([open]) .chev { position: static; }
@media (max-width: 340px) { .cards { grid-template-columns: 1fr; } .card:not([open]) summary { flex-direction: row; align-items: center; } }

/* Opening polish (3.10 evening): more air, aligned buttons, quiet emergency line; desktop alignment */
.hero { padding-top: 40px; }
.eyebrow { margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.95rem, 7.4vw, 2.5rem); margin-bottom: 20px; }
.name-box { margin-top: 0; gap: 10px; }
.name-box input { max-width: none; min-height: 48px; font-size: 16px; border-radius: 14px; }
.name-box .qbtn { min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-soft); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.quick .qbtn { justify-content: center; min-height: 52px; border-radius: 14px; }
.sos-static { margin-top: 14px; font-size: .78rem; line-height: 1.7; }
.sos-static br { display: none; }
.sos-static a.sos-link { margin-inline-start: .5em; font-weight: 500; text-decoration-thickness: 1px; }
.sos-static a { font-weight: 600; }

/* Desktop: header lines up with the 760px column; first-hour tiles become a grid instead of a clipped carousel */
.top { padding-inline: max(16px, calc((100vw - 760px) / 2 + 16px)); }
@media (min-width: 620px) {
  .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 4px 0 10px; max-width: none; }
  .tile { aspect-ratio: 4 / 3; }
}

/* Wide screens (3.10 evening): use the width instead of a narrow phone column */
@media (min-width: 1000px) {
  main { max-width: 1120px; padding: 0 32px; }
  .top { padding-inline: max(16px, calc((100vw - 1120px) / 2 + 32px)); }
  .hero { padding-top: 56px; }
  .hero h1 { font-size: 3rem; }
  .name-box { max-width: 520px; }
  .quick { max-width: 520px; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .tile { aspect-ratio: 3 / 4; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .places { grid-template-columns: repeat(3, 1fr); }
  .events { grid-template-columns: 1fr 1fr; }
  .tabbar { max-width: 640px; }
}

/* ===== 3.10 polish (autonomous pass, see docs/design-brief-2026-10-03.md). Backup: git tag v-before-polish-3.10 ===== */
/* Native widgets (date picker, scrollbars) follow the theme */

/* Rhythm: the same section spacing on phone and desktop */
.block { padding-top: 44px; }
.block > h2, .week-head h2 { margin-bottom: 6px; }
.lead { margin: 0 0 16px; }
.first-block { padding-top: 36px; }

/* 1. Opening: one calm screen - greeting, name pill, two equal buttons, one quiet line */
.hero { padding-top: 28px; padding-bottom: 0; }
.eyebrow { margin-bottom: 10px; gap: 8px; }
.eyebrow .sky { width: 28px; height: 28px; box-shadow: none; }
.hero h1 { margin-bottom: 16px; }
.name-box { margin: 0 0 14px; max-width: 420px; display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; padding-inline-start: 6px; }
.name-box:focus-within { border-color: var(--accent); }
.name-box input { flex: 1 1 auto; min-width: 0; max-width: none; border: 0; background: transparent; min-height: 40px; padding: 0 12px; font-size: 16px; border-radius: 999px; color: var(--ink); }
.name-box input:focus { outline: none; }
.name-box .name-save { flex: none; border: 0; cursor: pointer; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .92rem/1 inherit; font-family: inherit; }
.name-box.named { background: none; border: 0; padding: 0; margin: -8px 0 8px; }
.name-box .not-you { font-size: .85rem; color: var(--muted); min-height: 36px; padding: 0; }
.quick { margin-top: 0; gap: 10px; }
.quick .qbtn { min-height: 54px; padding: 0 12px; gap: 8px; white-space: nowrap; font-size: 1rem; border-radius: 16px; }
.quick .qbtn svg { flex: none; }
.qbtn-wa { box-shadow: 0 6px 16px -10px var(--wa-bg); }
.qbtn-sos { border-width: 1.5px; }
.sos-static { margin-top: 12px; font-size: .8rem; line-height: 1.5; color: var(--muted); white-space: normal; }
.sos-static .sos-n { white-space: nowrap; }
.sos-static a { color: var(--danger); font-weight: 700; text-decoration: none; }
.sos-static .sep { opacity: .6; }
@media (max-width: 360px) { .quick .qbtn { font-size: .92rem; padding: 0 8px; } }

/* 2. Apartment cards: one icon system (line glyph in a tinted square), subtle chevron, equal heights */
.cards { align-items: stretch; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 22px; outline: 0; }
.card .ico svg { width: 24px; height: 24px; display: block; }
.card.emergency .ico { background: var(--danger-soft); color: var(--danger); }
.card:not([open]) .ico { width: 44px; height: 44px; border-radius: 14px; }
.card .chev { background: none; color: var(--muted); width: 24px; height: 24px; opacity: .7; }
.card .chev svg { width: 18px; height: 18px; display: block; }
.card:not([open]) .chev { top: 12px; inset-inline-end: 10px; width: 24px; height: 24px; }
.card[open] .chev { background: none; color: var(--accent); opacity: 1; }
.card:not([open]) summary { gap: 12px; padding: 16px 14px 14px; height: 100%; }
.card:not([open]) h3 { font-size: 1rem; line-height: 1.25; }
.card:not([open]) .sub { font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.card.emergency:not([open]) summary { padding: 14px 16px; }
.group-title { margin: 30px 0 12px; }
.group-title:first-child { margin-top: 12px; }

/* 3. First-hour tiles: uniform portrait crop, title readable in sunlight, two tiles + a peek of the next */
.strip { grid-auto-columns: 43%; gap: 10px; }
.tile { aspect-ratio: 3 / 4; border-radius: 20px; }
.tile img { object-fit: cover; object-position: center; }
.tile-txt { padding: 70px 12px 12px; gap: 3px;
  background: linear-gradient(to top, rgb(var(--scrim-rgb) / .94) 0%, rgb(var(--scrim-rgb) / .78) 38%, rgb(var(--scrim-rgb) / 0) 100%); text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.tile-txt strong { font-size: 1.02rem; line-height: 1.2; }
.tile-txt span { font-size: .78rem; line-height: 1.3; opacity: .95; }
@media (min-width: 620px) { .tile { aspect-ratio: 4 / 3; } .tile-txt strong { font-size: 1.15rem; } .tile-txt span { font-size: .85rem; } }
@media (min-width: 1000px) { .tile { aspect-ratio: 3 / 4; } }

/* 4. Tours: compact rows never clip the title (RTL too); "all tours" reads as a secondary link */
.ev.tour.tour-row { grid-template-columns: 96px minmax(0, 1fr); min-height: 0; }
.ev.tour.tour-row .ev-media { min-height: 100%; }
.ev.tour.tour-row .tour-txt { padding: 12px 14px; gap: 3px; }
.ev.tour.tour-row h3 { font-size: 1rem; line-height: 1.25; overflow-wrap: normal; word-break: normal; }
.ev.tour.tour-row .foot-row { margin-top: 6px; }
.ev.tour.tour-row .book { min-height: 38px; padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.more-tours:not(.map-all) { display: flex; align-items: center; background: transparent; box-shadow: none; border: 1px dashed color-mix(in srgb, var(--muted) 45%, transparent);
  color: var(--muted); font-weight: 500; font-size: .9rem; line-height: 1.45; text-align: start; padding: 14px 16px; }

/* 5. Places: short "Photo ↗" when collapsed (full credit inside "More"), compact map pill, equal heights */
.places { align-items: stretch; }
.place-body { gap: 4px; }
.place-foot { flex-wrap: nowrap; justify-content: space-between; align-items: center; padding-top: 12px; gap: 8px; }
.map-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.map-link svg { flex: none; }
.place .credit-link, .credit-link { font-size: .72rem; opacity: 1; color: var(--muted); display: inline; -webkit-line-clamp: unset; white-space: nowrap; padding: 8px 0; }
.credit-full { display: block; font-size: .72rem; line-height: 1.35; color: var(--muted); text-decoration: none; margin-top: 2px; word-break: break-word; }
.credit-full[hidden] { display: none; }
.place-tour { font-size: .8rem; line-height: 1.3; padding: 8px 10px; border-radius: 12px; margin: 4px 0 0; min-height: 40px; }
.more-btn { min-height: 32px; padding: 4px 0; }
.place-media .walk, .place-media .tour-pill { font-size: .72rem; padding: 4px 9px; line-height: 1.25; }
/* Photo badges keep fixed colours: they sit on photos, not on the page background */
.place-media .tour-pill { background: var(--pill-bg); color: var(--pill-ink); }
.ev-media .fav-tag { background: var(--badge-bg); color: var(--badge-ink); font-size: .74rem; padding: 4px 10px; }

/* 6. This week: one chip style above the title, one line of text, small photo */
.ev:not(.tour) { grid-template-columns: 92px minmax(0, 1fr); }
.ev:not(.tour) > .ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 12px 14px 0; }
.ev:not(.tour) > .ev-top h3 { flex: 1 1 100%; font-size: 1rem; line-height: 1.25; }
.ev .when { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 1; padding: 5px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
[dir="rtl"] .ev .when { letter-spacing: 0; font-size: .74rem; }
.ev .badge { margin: 0; font-size: .68rem; line-height: 1; padding: 5px 8px; }
.ev:not(.tour) > .where { margin-top: 2px; }
.ev:not(.tour) > p { -webkit-line-clamp: 2; margin-top: 4px; }
.ev:not(.tour) > .foot-row { font-size: .82rem; margin-top: 8px; }
.ev .foot-row a { font-weight: 700; text-decoration: none; white-space: nowrap; }
[dir="rtl"] .ev [dir="ltr"], [dir="rtl"] .ev h3[dir="auto"], [dir="rtl"] .ev p[dir="auto"], [dir="rtl"] .ev .where[dir="auto"] { text-align: start; }

/* 7. Dark mode details */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qbtn-wa { box-shadow: none; } }
:root[data-theme="dark"] .qbtn-wa { box-shadow: none; }

/* 8. Desktop keeps the same rhythm, a little roomier */
@media (min-width: 620px) { .place-media { aspect-ratio: 4 / 3; } }
@media (min-width: 1000px) {
  .hero { padding-top: 48px; }
  .name-box, .quick { max-width: 480px; }
  .block { padding-top: 56px; }
}

/* ===== 3.10 night: full rows everywhere (3-wide), compact tiles on phones, uniform tour tiles, map card ===== */
.cards { grid-template-columns: repeat(3, 1fr); }
.cards[data-group="safe"] { grid-template-columns: 1fr 1fr; }
.cards[data-group="safe"] .card.emergency:not([open]) { grid-column: 1 / -1; }
.cards[data-group="safe"] #card-rules { border-inline-start: 4px solid var(--accent); }
.cards[data-group="safe"] .card:not([open]) summary { flex-direction: row; align-items: center; gap: 14px; }
.cards[data-group="safe"] .card:not([open]) .chev { position: static; }
@media (max-width: 619px) {
  .cards[data-group="safe"] { grid-template-columns: 1fr; }
  .cards:not([data-group="safe"]) { gap: 8px; }
  .cards:not([data-group="safe"]) .card:not([open]) summary { align-items: center; text-align: center; gap: 8px; padding: 14px 6px 12px; }
  .cards:not([data-group="safe"]) .card:not([open]) .sub, .cards:not([data-group="safe"]) .card:not([open]) .chev { display: none; }
  .cards:not([data-group="safe"]) .card:not([open]) h3 { font-size: .84rem; line-height: 1.2; overflow-wrap: anywhere; }
  .cards:not([data-group="safe"]) .card:not([open]) .ico, .cards:not([data-group="safe"]) .card:not([open]) .thumb { width: 44px; height: 44px; }
}

/* Tours: one uniform tile each (photo, title, meta, blurb, link) */
#tours-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#tours-list .more-tours { grid-column: 1 / -1; margin-top: 0; }
.ev.tour.tour-tile { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ev.tour.tour-tile .ev-media { aspect-ratio: 4 / 3; height: auto; border-radius: 0; flex: none; }
.ev.tour.tour-tile .ev-media .credit { display: block; }
.ev.tour.tour-tile .tour-txt { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ev.tour.tour-tile h3 { font-size: 1rem; line-height: 1.25; }
.ev.tour.tour-tile .where { font-size: .78rem; margin: 0; }
.ev.tour.tour-tile p { font-size: .85rem; line-height: 1.4; margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev.tour.tour-tile .book { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 700; font-size: .9rem; text-decoration: none; background: none; box-shadow: none; width: auto; display: inline-block; }
@media (max-width: 619px) {
  #tours-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ev.tour.tour-tile .tour-txt { padding: 10px 11px 12px; }
  .ev.tour.tour-tile h3 { font-size: .92rem; }
  .ev.tour.tour-tile p { -webkit-line-clamp: 2; font-size: .8rem; }
}

/* Places: 12 fill 2-up and 3-up; map card spans the row */
.mapcard { grid-column: 1 / -1; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); overflow: hidden; }
.mapcard-art svg { display: block; width: 100%; height: 110px; }
.mapcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.mapcard-body h3 { font-size: 1.1rem; }
.mapcard-body p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.mapcard-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.mapcard .route { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 11px 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.mapcard .route strong { font-size: .92rem; line-height: 1.25; }
.mapcard .route span { font-size: .78rem; color: var(--muted); }
.mapcard-all { font-size: .85rem; color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 2px; }
@media (max-width: 480px) { .mapcard-routes { grid-template-columns: 1fr; } }
.ev.tour.tour-tile .ev-media { margin: 0; }
.ev.tour.tour-tile .book { padding: 8px 0 0; white-space: nowrap; border-radius: 0; min-height: 0; }
.ev.tour.tour-tile .ev-media .credit { font-size: .6rem; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; }
@media (max-width: 619px) { .ev.tour.tour-tile p { -webkit-line-clamp: 3; } .ev.tour.tour-tile .ev-media .fav-tag { font-size: .72rem; padding: 4px 8px; inset-inline-start: 8px; top: 8px; } }

/* 3.10 (owner): first hour as a 2×2 grid on the phone, all four at once */
.strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 4px 0 6px; scroll-snap-type: none; gap: 10px; }
.strip .tile { aspect-ratio: 1 / 1; }
@media (min-width: 620px) { .strip { grid-template-columns: repeat(4, 1fr); } }

/* 3.10 (owner, phone): apartment groups in pairs, "good to know" one under the other, places one per row with a big title */
.cards { grid-template-columns: 1fr 1fr; }
.cards[data-group="safe"] { grid-template-columns: 1fr; }
.cards[data-group="safe"] .card:not([open]) summary { flex-direction: row; align-items: center; }
.cards[data-group="safe"] .card:not([open]) .chev { position: static; }
.places { grid-template-columns: 1fr; gap: 14px; }
.place-media { aspect-ratio: 16 / 10; }
.place-body h3 { font-size: 1.25rem; }
.place-body p.place-text { -webkit-line-clamp: 3; font-size: 1rem; color: var(--ink); }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards[data-group="safe"] { grid-template-columns: 1fr 1fr; } .places { grid-template-columns: 1fr 1fr; } }
/* "Where owner eats" as open cards (3.10) */
#eat .eat-list { grid-template-columns: 1fr; }
#eat .eat-group { grid-column: 1 / -1; margin: 10px 0 2px; }
#eat .place.eat .place-media { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { #eat .eat-list { grid-template-columns: 1fr 1fr; } }
/* 3.10 (owner): the walk card was far too big - now a slim strip of route chips */
.mapcard { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.mapcard-art { display: none; }
.mapcard-body { padding: 4px 0 0; gap: 8px; }
.mapcard-body h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
[dir="rtl"] .mapcard-body h3 { letter-spacing: 0; font-size: .95rem; text-transform: none; }
.mapcard-body > p { display: none; }
.mapcard-routes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mapcard-routes::-webkit-scrollbar { display: none; }
.mapcard-routes .route { flex: none; display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--ring); text-decoration: none; color: var(--ink); max-width: 78vw; }
.mapcard-routes .route strong { font-size: .92rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapcard-routes .route span { font-size: .75rem; color: var(--muted); }
.mapcard-all { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .9rem; text-decoration: none; align-self: flex-start; }

/* 3.10 night 2: Emergency framed all round in red; House rules and the feedback card identical; short groups fill the row */
.cards[data-group="safe"] .card.emergency, [dir="rtl"] .cards[data-group="safe"] .card.emergency { box-shadow: var(--shadow); border: 2px solid var(--danger); }
.cards[data-group="safe"] #card-rules { border-inline-start: 0; }
@media (min-width: 900px) { .cards:not([data-group="safe"]) { grid-template-columns: repeat(var(--cols, 3), 1fr); } }
/* (7.10 night) the lone last tile now spans via .span-row, set by layoutCards() in app.js */
/* 3.10 (designer review, urgent): route chips widened the places column past the screen; long credits were cut */
.places { grid-template-columns: minmax(0, 1fr); }
.places > * { min-width: 0; }
@media (min-width: 900px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.place-foot .credit-link, .place .credit-link { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* ===== 3.10 designer round (docs/graphic-design-review-2026-10-03.md, items 3-7, 9, 10, 13, 15) ===== */
:root { --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.5625rem; --fs-2xl: 1.95rem; --caps-track: .08em; }
/* 3+4: one type scale (12/14/16/20/25/31), nothing below 12px */
.hero h1 { font-size: clamp(var(--fs-2xl), 7.4vw, 2.5rem); }
.block > h2, .week-head h2 { font-size: var(--fs-xl); }
.place-body h3 { font-size: var(--fs-lg); }
.card h3, .ev h3, .ev:not(.tour) > .ev-top h3, .tile-txt strong, .lead, .headsup li { font-size: var(--fs-md); }
.sub, .where, .ev .where, .ev:not(.tour) > .where, .ev.tour.tour-row .where, .ev.tour.tour-tile .where, .src, .map-link, .more-btn, .name-box .qbtn, .ev.tour .book, .mapcard-all, .mapcard-routes .route strong, .sos-static, .ev:not(.tour) > .foot-row, .place-tour, .tile-txt span, .credit-full { font-size: var(--fs-sm); }
.tabbar a, .ev .when, .ev .badge, .badge, .place-media .walk, .place-media .tour-pill, .ev-media .fav-tag, .credit-link, .place .credit-link, .ev.tour .foot-row .credit-link, .group-title, .eyebrow, .mapcard-body h3, .mapcard-routes .route span { font-size: var(--fs-xs); }
@media (max-width: 400px) { .tabbar a { font-size: var(--fs-xs); } .ev.tour.tour-tile .ev-media .fav-tag { font-size: var(--fs-xs); } }
.ev.tour.tour-tile .ev-media .credit { font-size: .6875rem; }
[dir="rtl"] .group-title, [dir="rtl"] .mapcard-body h3 { font-size: var(--fs-sm); }
/* 15: one tracking value for small caps labels (Hebrew stays 0) */
.eyebrow, .group-title, .mapcard-body h3, .ev .when { letter-spacing: var(--caps-track); }
[dir="rtl"] .eyebrow, [dir="rtl"] .group-title, [dir="rtl"] .mapcard-body h3, [dir="rtl"] .ev .when { letter-spacing: 0; }
/* 5: real device photos at their own ratio, centred, no beige band */
.card-img { width: auto; max-width: 100%; height: auto; max-height: 340px; margin: 14px auto 0; background: none; object-fit: initial; }
/* 6: "This week" photos as a fixed 76px square (like the apartment row pictures) */
.ev:not(.tour) { grid-template-columns: 92px minmax(0, 1fr); }
.ev:not(.tour) .ev-media { align-self: start; width: 76px; height: 76px; min-height: 0; aspect-ratio: 1; margin: 14px 0 0; margin-inline-start: 14px; border-radius: 14px; }
/* 7: shorter food/place photos, 2-line text (still one card per row) */
.place-media, #eat .place.eat .place-media { aspect-ratio: 2 / 1; }
.place-body p.place-text { -webkit-line-clamp: 2; }
/* 9: cards stand off the background, especially in dark mode */

/* 10: line length on wide screens */
.lead, .block > p.muted, .week-head p { max-width: 62ch; }
.cards[data-group="safe"] .sub { max-width: 60ch; }
/* 13: 44px touch targets */
.ev.tour.tour-tile .book { min-height: 44px; display: inline-flex; align-items: center; }
.more-btn, .map-link, .mapcard-all { min-height: 44px; }
.name-box input, .name-box .qbtn { min-height: 44px; }
.sos-static a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
.place-media { overflow: hidden; }
.place-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.place-media img { object-position: 50% 35%; }
/* ===== Photo gallery (3.10, owner): "N photos" button on tour/place cards + full-screen strip ===== */
.gal-btn { position: absolute; inset-inline-start: 10px; bottom: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgb(var(--scrim-rgb) / .72); color: #fff; font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.gal-btn svg { flex: none; }
.ev.tour.tour-tile .ev-media .gal-btn { bottom: 8px; }
.ev.tour.tour-tile .ev-media .credit { inset-inline-end: 8px; inset-inline-start: auto; max-width: 48%; }
.lightbox { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: var(--lightbox-bg); color: #fff; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lb-top { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; font-weight: 700; font-size: var(--fs-sm); background: linear-gradient(rgba(0,0,0,.55), transparent); }
.lb-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 20px; cursor: pointer; }
.lb-strip { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.lb-strip::-webkit-scrollbar { display: none; }
.lb-item { flex: none; width: 100%; height: 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; justify-content: center; }
.lb-item img { width: 100%; max-height: calc(100% - 96px); object-fit: contain; display: block; }
.lb-item figcaption { padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.lb-cap { font-size: var(--fs-md); font-weight: 700; }
.lb-credit { color: rgba(255,255,255,.6); font-size: var(--fs-xs); text-decoration: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; display: none; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
[dir="rtl"] .lb-prev { left: auto; right: 12px; } [dir="rtl"] .lb-next { right: auto; left: 12px; }
@media (hover: hover) and (min-width: 700px) { .lb-nav { display: block; } .lb-item img { max-height: calc(100% - 110px); } }
/* Gallery v2 (owner: the big button hid the photo): tap the photo, small count badge, credit under the text */
.gal-btn { display: none; }
.gal-badge { position: absolute; inset-inline-end: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgb(var(--scrim-rgb) / .62); color: #fff; font-size: var(--fs-xs); font-weight: 700; backdrop-filter: blur(3px); pointer-events: none; }
.gal-badge svg { flex: none; }
.ev-media[role="button"], .place-media[role="button"] { cursor: pointer; }
.ev.tour.tour-tile .tour-txt .credit-link { display: block; margin-top: 6px; }
/* ===== 3.10 evening: designer round 2 (items 1, 2, 4, 5) + owner: chips inside the screen, event photo on top ===== */
/* 1: the type scale wins over the old rules (same specificity, no !important) */
.cards:not([data-group="safe"]) .card:not([open]) h3 { font-size: var(--fs-sm); }
.card:not([open]) .sub { font-size: var(--fs-xs); }
@media (max-width: 619px) { .ev.tour.tour-tile h3 { font-size: var(--fs-md); } .ev.tour.tour-tile p { font-size: var(--fs-sm); } }
.ev.tour.tour-tile .book, .more-tours, .small, .ev:not(.tour) > p, .foot { font-size: var(--fs-sm); }
.muted, .stay-pick, .tabs button { font-size: var(--fs-md); }
.lang button { font-size: var(--fs-sm); }
.name-box .name-save { font-size: var(--fs-sm); }
.hero h1 { font-size: var(--fs-2xl); }
/* 2: the booking link sits on the same edge as the rest of the tile */
.ev.tour.tour-tile .book { justify-content: flex-start; width: auto; padding-inline: 0; }
/* 4: no text under 12px in Hebrew either */
[dir="rtl"] .ev .when { font-size: var(--fs-xs); }
/* 5: every gallery slide in the same 3:2 frame */
.lb-item img { aspect-ratio: 3 / 2; object-fit: cover; max-height: calc(100% - 96px); }
/* owner: route chips and category chips must stay inside the screen - wrap instead of scrolling off */
.mapcard-routes { flex-wrap: wrap; overflow: visible; }
.mapcard-routes .route { max-width: 100%; }
.tabs { flex-wrap: wrap; overflow: visible; }
/* owner: "This week" rows - wide photo on top, text under it (like the place cards) */
.ev:not(.tour) { display: block; }
.ev:not(.tour) .ev-media { width: auto; height: auto; min-height: 0; aspect-ratio: 2 / 1; margin: 0; border-radius: 0; }
.ev:not(.tour) .ev-media.ph { aspect-ratio: 2 / 1; }
.ev:not(.tour) > .ev-top { padding: 12px 14px 0; }
.ev:not(.tour) > .foot-row { padding: 0 14px 14px; }
.eat-more { grid-column: 1 / -1; justify-self: start; margin: 4px 0 8px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; min-height: 44px; }
.eat-extra[hidden] { display: none; }
/* Tours (designer: too many layers on one photo): the "guests' pick" label moves from the photo to a quiet line above the title */
.fav-line { color: var(--accent); font-size: var(--fs-xs); font-weight: 700; letter-spacing: var(--caps-track); text-transform: uppercase; }
[dir="rtl"] .fav-line { letter-spacing: 0; text-transform: none; font-size: var(--fs-sm); }
.ev.tour.tour-tile .tour-txt .credit-link { margin-top: 2px; }
/* ===== Pages (3.10 evening): each bottom tab is its own page ===== */
[data-off] { display: none !important; }
/* Start page: the other pages as four big tiles under the first-hour strip's header area */
.jump { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 0 6px; }
.jump a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; padding: 12px 16px; border-radius: var(--r-md, 16px); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); color: var(--ink); font-weight: 700; font-size: var(--fs-md); text-decoration: none; }
.jump a::after { content: "→"; color: var(--accent); font-weight: 700; }
[dir="rtl"] .jump a::after { content: "←"; }
.jump a[hidden] { display: none; }
@media (min-width: 900px) { .jump { grid-template-columns: repeat(4, 1fr); } }
/* Places page: Places | Eat switch */
.subtabs { display: flex; gap: 8px; padding: 6px 0 0; }
.subtabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font: inherit; font-size: var(--fs-md); font-weight: 700; cursor: pointer; }
.subtabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.subtabs button[hidden] { display: none; }
/* each page starts under the sticky header with some air */
main > .block:first-of-type { scroll-margin-top: 80px; }
body { overflow-anchor: none; }
/* ===== Home page (3.10 night): intro line, tiles with a one-line description, calmer frames on phones ===== */
.home-intro { margin: 4px 0 0; max-width: 56ch; }
.jump a { align-items: center; padding: 12px 14px; min-height: 76px; }
.jump .jt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jump .jt strong { font-size: var(--fs-md); line-height: 1.2; }
.jump .jt span { font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; color: var(--muted); }
@media (max-width: 619px) {
  :root { --radius: 16px; }
  .tile, .strip .tile { border-radius: 16px; }
  .jump a { border-radius: 14px; }
  .place-body { padding: 12px 14px 14px; }
  .ev.tour.tour-tile .tour-txt { padding: 10px 12px 12px; }
  .mapcard-routes .route { border-radius: 14px; }
}
/* ===== Header (3.10 night, owner): language drop-down + hamburger menu; logo gets room ===== */

.brand { min-width: 0; }
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.langmenu { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: var(--chip); color: var(--ink); font: 700 var(--fs-sm)/1 var(--font-body); letter-spacing: .04em; cursor: pointer; }
[dir="rtl"] .lang-btn { font-family: var(--font-body); letter-spacing: 0; padding: 0 14px 0 12px; }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.langmenu .lang { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 70; flex-direction: column; gap: 2px; min-width: 150px; padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-hi), 0 0 0 1px var(--ring); }
.langmenu .lang[hidden], .burger-panel[hidden] { display: none; }
.langmenu .lang button { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; text-align: start; font: 600 var(--fs-md)/1 var(--font-body); letter-spacing: 0; color: var(--ink); background: transparent; }
.langmenu .lang button[data-lang="he"] { font-family: var(--font-body); }
.langmenu .lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--chip); color: var(--ink); cursor: pointer; }
.burger[aria-expanded="true"] { background: var(--accent); color: var(--accent-ink, #fff); }
.burger-panel { position: absolute; top: 100%; inset-inline: 12px; margin-top: 4px; z-index: 70; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-hi), 0 0 0 1px var(--ring); }
.burger-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-weight: 700; font-size: var(--fs-md); text-decoration: none; }
.burger-panel a[hidden] { display: none; }
.burger-panel a:active { background: var(--chip); }
.burger-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.burger-panel .burger-sos { color: var(--danger); }
.burger-panel .burger-wa { color: var(--wa-link); }
.hood { padding-top: 8px; padding-bottom: 24px; }
.hood h2 { font-size: var(--fs-lg); }
.hood .lead { max-width: 60ch; }
/* Eat: "Open on Saturday" filter chip */
.satchip { min-height: 44px; padding: 0 16px; margin: 4px 0 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 700 var(--fs-sm)/1 var(--font-body); cursor: pointer; }
.satchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink, #fff); }
/* designer round 3: contrast of the menu WhatsApp link, About Florentin as strong as the other titles, bigger "Details" target */
.burger-panel .burger-wa { color: var(--wa-link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .burger-panel .burger-wa { color: var(--wa-link); } }
:root[data-theme="dark"] .burger-panel .burger-wa { color: var(--wa-link); }
.hood h2 { font-size: var(--fs-xl); }
.hood .lead { color: var(--ink); }
.ev:not(.tour) .foot-row a { display: inline-flex; align-items: center; min-height: 44px; }
.jump .jt span { font-size: var(--fs-xs); color: var(--muted); }
.hood h3 { margin: 18px 0 4px; font-size: var(--fs-md); color: var(--accent); }
.hood h2 + h3 { margin-top: 10px; }
/* Google Maps pills under lists of places (bars, gyms ...): every place we mention has a visible map link */
.maplinks { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.hours-note { margin: 0 0 8px; }
/* Home: emergency + WhatsApp stay at the top; the "Everything OK?" card comes after the phone numbers and is slimmer */
.ok-card { margin: 14px 0 4px; padding: 14px 16px; }
.ok-card h3 { font-size: var(--fs-md); margin: 0 0 4px; }
.ok-card p { font-size: var(--fs-sm); margin: 0 0 10px; }
/* "This week": an event without a photo is a text-only card (no big empty placeholder) */
.ev:not(.tour) .ev-media.ph { display: none; }

/* 6.10: several tour options per place card; short fact line under a tour button */
.tour-opt { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px; }
.tour-opt .place-tour { margin: 2px 0 0; align-self: flex-start; }
.tour-desc { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.4; display: block !important; -webkit-line-clamp: unset !important; }

/* 7.10: food page highlighted on Home - a venue (Kiosko) could not find itself; full-width accent tile first */
.jump a.jump-eat { grid-column: 1 / -1; background: var(--accent-soft); box-shadow: var(--shadow), 0 0 0 1px var(--accent); min-height: 72px; }
.jump a.jump-eat .jt strong { font-size: var(--fs-lg, 1.15rem); color: var(--accent); }
.jump a.jump-eat .jt span { color: var(--ink); opacity: .8; }

/* 7.10: "Everything OK?" is one quiet line under the buttons, not a card with a second WhatsApp button (owner: too busy) */
.ok-line { margin: 10px 0 0; font-size: var(--fs-sm, .9rem); color: var(--muted); }
.ok-line[hidden] { display: none; }
.ok-line span { font-weight: 700; color: var(--ink); }
.ok-line a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== 7.10 type & home cleanup (docs/graphic-design-review-2026-10-07.md 1-6, docs/site-review-2026-10-07.md 1, 3, 6, 7, 9) ===== */
/* one body size: text no longer bigger than its own heading */
body { font-size: var(--fs-md); }
.card[open] h3 { font-size: var(--fs-lg); }
.sec-title { font-size: var(--fs-md); font-weight: 700; }
/* off-scale 14.4 / 13.6 -> 14 */
.muted.small, .place-body p.small, .place-body p.muted, .place-body p.tour-desc, .more-tours:not(.map-all), .name-box .not-you, .ev.tour.tour-tile p { font-size: var(--fs-sm); }
.name-box .not-you { min-height: 44px; display: inline-flex; align-items: center; }
/* off-scale 15.2 / 16.32 / 16.8 / 17.6 */
.tel a, .row-txt > a:first-child, .hu-ico { font-size: var(--fs-md); }
.steps li { font-size: var(--fs-lg); line-height: 1.4; }
[dir="rtl"] .eyebrow { font-size: var(--fs-sm); }
.more-btn, .eat-more { font-weight: 700; }
/* home: eat tile, then "Your first hour", then four equal tiles with one-line titles */
.ok-line { margin: 8px 0 0; }
.jump.jump-top { padding: 20px 0 0; }
.jump.jump-rest { padding: 18px 0 6px; }
.jump .jt strong { font-family: var(--font-body); font-weight: 700; }
[dir="rtl"] .jump .jt strong { font-family: var(--font-body); }
.jump .jt span { font-size: var(--fs-sm); }
.jump.jump-rest a { min-height: 88px; }
.jump a.jump-eat { min-height: 76px; }
@media (min-width: 900px) { .jump a.jump-eat { justify-content: flex-start; gap: 16px; } }
.first-block { padding-top: 24px; }
/* direct link to a venue (#eat-kiosko): brief highlight */
.place.eat { scroll-margin-top: 84px; }
.place.eat.flash { box-shadow: var(--shadow), 0 0 0 3px var(--accent); transition: box-shadow .3s; }

/* ===== Stay Guide pilot (7.10): brand, demo banner, display font. Colours and fonts come from assets/theme.css ===== */
/* Headings: display face (Fraunces for Latin, Frank Ruhl Libre for Hebrew via the same stack) */
:root :is(h1, h2) { font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: -.01em; }
[dir="rtl"] :is(h1, h2) { letter-spacing: 0; }
.hero h1 { font-weight: var(--fw-display); line-height: 1.12; }
[dir="rtl"] .hero h1 { line-height: 1.2; }
/* small headings and labels stay in the body face, bold */
h3, .tile-txt strong, .jump .jt strong { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.eyebrow { color: var(--accent); }

/* Wordmark: "Stay Guide" + a coral DEMO tag */
.brandmark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); white-space: nowrap; direction: ltr; }
.bm-name { font: var(--fw-display) 1.375rem/1 var(--font-display); letter-spacing: -.015em; }
.bm-demo { font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: .12em; padding: 4px 7px 3px; border-radius: 6px; background: var(--happy); color: var(--happy-ink); }

/* Thin demo banner above the header (scrolls away; the header stays sticky) */
.demo-bar { padding: 7px 16px; padding-top: calc(7px + env(safe-area-inset-top)); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-sm); line-height: 1.4; text-align: center; }
.demo-bar a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; display: inline-block; padding: 2px 0; }

/* Group dots and the active tab use the coral accent sparingly */
.group-title .dot { background: var(--accent-deco); }

/* "This would open the host's WhatsApp" note */
.wa-demo { max-width: min(420px, calc(100vw - 32px)); border: 0; border-radius: var(--radius); padding: 22px 22px 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-hi), 0 0 0 1px var(--ring); }
.wa-demo::backdrop { background: rgb(var(--scrim-rgb) / .55); }
.wa-demo h2 { font-size: var(--fs-lg); margin: 0 0 8px; }
.wa-demo p { margin: 0 0 16px; color: var(--muted); }
.wa-demo form { display: flex; justify-content: flex-end; }
.wa-demo .qbtn { border: 0; cursor: pointer; font: 700 var(--fs-md)/1 var(--font-body); background: var(--accent); color: var(--accent-ink); }

/* "WhatsApp your host" is longer than a first name: two equal columns that never overflow, labels may wrap */
.quick { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.quick .qbtn { white-space: normal; text-align: center; line-height: 1.2; padding: 6px 10px; }

/* ===== Demo polish (7.10 evening): 44px targets, short demo banner, static "about this demo" ===== */
.demo-bar { padding-block: 2px; padding-top: calc(2px + env(safe-area-inset-top)); }
.demo-bar a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.name-box .name-save { min-height: 44px; }
.about-demo { max-width: 62ch; margin: 16px auto 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.6; color: var(--muted); }
.about-demo a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.about-demo { text-align: start; }
/* remaining small targets: photo credits, "More", tour links */
.place .credit-link, .ev .credit-link { min-height: 44px; display: inline-flex; align-items: center; }
.more-btn { min-width: 44px; }
.place-tour { min-height: 44px; display: inline-flex; align-items: center; }
/* desktop home: welcome block and the "Where Adiel eats" tile side by side instead of a narrow column and an empty half */
@media (min-width: 900px) {
  main#top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
  main#top > * { grid-column: 1 / -1; }
  main#top > .hero { grid-column: 1; grid-row: 1; }
  main#top > .jump-top { grid-column: 2; grid-row: 1; align-self: end; display: block; padding: 0 0 28px; }
  main#top > .jump-top a.jump-eat { min-height: 132px; padding: 20px 24px; justify-content: space-between; }
  main#top > .jump-top a.jump-eat .jt strong { font-size: var(--fs-xl); }
}
/* host's favourite dish on an eat card: one quiet line, same size as the meta line */
.place-body .fav { margin: 4px 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink); }
.place-body .fav-k { color: var(--accent); font-weight: 700; }
.about-demo a { display: inline-block; min-height: 0; padding: 12px 2px; margin: -12px 0; }

/* ===== Florentin engine rounds 3 + 4 (7.10), ported; colours and radius from assets/theme.css ===== */
/* first-hour tiles: the instruction is no longer cut mid-word */
.tile-txt span { -webkit-line-clamp: 4; }
/* "This week": three equal category buttons in one row, round date field */
#cat-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; flex-wrap: nowrap; }
#cat-tabs button { justify-content: center; text-align: center; padding-inline: 8px; font-size: var(--fs-sm); min-width: 0; white-space: normal; line-height: 1.2; }
#checkout-input { border-radius: 999px; min-height: 44px; }
/* desktop: readable line length (~70 characters) in open apartment cards and intro paragraphs */
.card .body ul, .card .body p, .card .body ol, .lead { max-width: 34em; }
/* home: four tiles, titles on one baseline; breathing room before "The city"; Tel Aviv / Neve Tzedek behind "more" */
.jump.jump-rest a { align-items: flex-start; min-height: 100px; }
.jump.jump-rest a::after { align-self: center; }
.hood { padding-top: 24px; }
.hood-more { margin-top: 12px; }
.hood-more > summary { cursor: pointer; color: var(--accent); font-weight: 700; font-size: var(--fs-sm); min-height: 44px; display: flex; align-items: center; list-style: none; }
.hood-more > summary::-webkit-details-marker { display: none; }
.hood-more > summary::after { content: "+"; margin-inline-start: 6px; }
.hood-more[open] > summary::after { content: "−"; }
/* one card radius everywhere (the theme's --radius: 20px, 16px on phones) */
:root { --r-card: var(--radius); }
.card, .place, .ev, .tile, .jump a, .mapcard { border-radius: var(--r-card); }
/* one credit per open place card (Eat cards always show theirs: CC BY / venue permission) */
.place:not(.eat):has(.place-text.open) .place-foot .credit-link { display: none; }
/* event cards: same body/title sizes as the rest of the site, 3 lines before the cut */
.ev:not(.tour) > p { font-size: var(--fs-md); -webkit-line-clamp: 3; }
.ev:not(.tour) h3, .ev:not(.tour) > .ev-top h3 { font-size: var(--fs-lg); }
.ev.tour.tour-tile p, .ev.tour.tour-row p { -webkit-line-clamp: 4; }
/* Eat: chips that jump to the groups, wrapping, 44px */
.eat-jump { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 8px; }
.eat-jump button { flex: none; min-height: 44px; padding: 0 11px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; }
.eat-group { scroll-margin-top: 84px; }
/* a visitor landing on one venue card (#eat-<slug>) sees where it comes from; full credit for photos given by the venue */
.place.eat.landed::before { content: attr(data-from); display: block; padding: 10px 14px; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.place-foot .credit-link.credit-venue { white-space: normal; }
/* tours: one column on phones, no cut text */
@media (max-width: 619px) {
  #tours-list { grid-template-columns: 1fr; gap: 12px; }
  .ev.tour.tour-tile p { font-size: var(--fs-md); -webkit-line-clamp: 5; }
  .ev.tour.tour-tile h3 { font-size: var(--fs-lg); }
  .ev.tour.tour-tile .ev-media { aspect-ratio: 16 / 9; }
}

/* ===== Florentin marketing round 2 + site-review round 4 + designer round 3 (7.10), ported ===== */
/* "Ask me on WhatsApp" under the tours intro; map pill in "This week" event footers */
.tours-ask { margin: 4px 0 14px; font-size: var(--fs-sm); }
.tours-ask[hidden] { display: none; }
.tours-ask a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ev:not(.tour) > .foot-row { flex-wrap: wrap; gap: 8px; align-items: center; }
/* check-out: only the three to-dos have tick boxes, the lines after them are notes */
.checks li.check-note { list-style: none; padding-inline-start: 0; color: var(--muted); margin-top: 6px; }
/* heads-up notes in two columns on desktop */
@media (min-width: 900px) { #headsup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } #headsup li { margin: 0; } }
/* emergency call buttons: one per row, centred */
.tel { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tel a { justify-content: center; text-align: center; }

/* ===== 7.10 night: designer / marketer / builder must-fix round (docs/review-*-2026-10-07.md) ===== */
/* Inline line icons replace emoji (phone, compass, walk/bike, info, star) */
svg.i { flex: none; display: inline-block; vertical-align: -3px; }
.tel a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.place-media .tour-pill, .place-tour, .fav-line { display: inline-flex; align-items: center; gap: 4px; }
.place-tour { gap: 8px; }
.mapcard-routes .route strong { display: flex; align-items: center; gap: 8px; white-space: normal; }
.hu-ico { display: flex; color: var(--accent); }
.tile-ico { color: var(--accent); }

/* Demo bar in dark mode: a soft band, not the brightest thing on a night screen */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo-bar { background: var(--accent-soft); color: var(--ink); }
  :root:not([data-theme="light"]) .demo-bar a { color: var(--accent); }
}
:root[data-theme="dark"] .demo-bar { background: var(--accent-soft); color: var(--ink); }
:root[data-theme="dark"] .demo-bar a { color: var(--accent); }

/* Device photos on white backgrounds are dimmed a little at night (tiles and place photos untouched) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card .body img { filter: brightness(.86) contrast(1.05); } }
:root[data-theme="dark"] .card .body img { filter: brightness(.86) contrast(1.05); }

/* Numbered steps: a real ordered list, no bullet in front of the number */
.card .body ol.num-list { margin: 16px 0 0; padding-inline-start: 24px; }
.card .body ol.num-list li::marker { color: var(--accent); font-weight: 700; }

/* Opening a card no longer leaves a lone tile with a hole beside it: dense packing, JS marks a lone last tile */
.cards { grid-auto-flow: row dense; }
/* .span-row: grid-column set inline by layoutCards() (spans the empty columns of the last row) */

/* First-hour tiles that are illustrations say so */
.tile-tag { position: absolute; top: 8px; inset-inline-start: 8px; padding: 4px 8px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; text-shadow: none; }

/* Demo-only strip for hosts: what makes the guide different, four chips, dismissible */
.demo-strip { margin: 16px 0 0; padding: 12px 12px 12px 16px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--ring); }
[dir="rtl"] .demo-strip { padding: 12px 16px 12px 12px; }
.demo-strip[hidden] { display: none; }
.ds-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-label { margin: 0; font-size: var(--fs-sm); font-weight: 700; color: var(--accent); }
.ds-close { flex: none; width: 44px; height: 44px; margin: -8px -4px -8px 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
[dir="rtl"] .ds-close { margin: -8px 0 -8px -4px; }
.ds-chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }

/* Sample events: a quiet "Sample" tag instead of a link to a site that doesn't list them */
.ev .badge.sample { background: var(--chip); color: var(--ink); }

/* Emergency numbers: 44px targets without changing the line */
.sos-static a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; margin: -12px -8px; vertical-align: middle; }

/* Name field: the same 3px focus ring as every other control */
.name-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Desktop opening: a real headline; the eat tile lines up with the top of the headline */
@media (min-width: 900px) {
  .hero h1 { font-size: 2.75rem; }
  main#top > .jump-top { align-self: start; padding: 64px 0 0; }
  .card-img { margin-inline: 0; }
}
@media (min-width: 1000px) { main#top > .jump-top { padding-top: 88px; } }

/* Desktop (1024px+): the section bar sits in the header instead of floating over the first row of tiles */
@media (min-width: 1024px) {
  .top > .tabbar { position: static; width: auto; max-width: none; margin: 0 auto; padding: 4px; gap: 4px; border: 0; border-radius: 999px; background: var(--chip); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top > .tabbar a { flex: none; flex-direction: row; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; font-size: var(--fs-sm); }
  [dir="rtl"] .top > .tabbar a { padding: 0 12px 0 16px; }
  .top > .tabbar a svg { width: 20px; height: 20px; padding: 0; background: none; }
  .top > .tabbar a[aria-current="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--ring); }
  .top > .tabbar a[aria-current="true"] svg { background: none; }
  body:has(.top > .tabbar) { padding-bottom: 0; }
}
@media (max-width: 619px) {
  .ds-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* a two-line label in a pill looked squashed: on phones the chips are small tiles, text at the start */
  .ds-chip { justify-content: flex-start; text-align: start; padding: var(--sp-2) var(--sp-3); border-radius: 12px; line-height: 1.2; width: 100%; }
}

/* ===== 4px spacing scale (designer 7.10, item 9): every padding, margin and gap below is a multiple of 4 ===== */
:root { --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; }
.map-link { gap: var(--sp-1); padding: 0 var(--sp-3); }
.place-body, #eat .place-body { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.place-media .walk, .place-media .tour-pill { padding: var(--sp-1) var(--sp-2); }
.tabbar a { padding: var(--sp-1); gap: var(--sp-1); }
.tabbar a svg { padding: var(--sp-1) var(--sp-3); }
.tabbar { padding: var(--sp-1); }
.card .body ul, .card .body ol, ul.checks { margin-top: var(--sp-4); }
.sec-title { margin: var(--sp-5) 0 var(--sp-1); }
.jump .jt, .card summary > span:not(.chev):not(.ico), .mapcard .route, .mapcard-routes .route, .tour-opt { gap: 0; }
.jump a { padding: var(--sp-3) var(--sp-4); }
.block > h2, .week-head h2 { margin-bottom: var(--sp-2); }
.demo-bar { padding: 0 var(--sp-4); padding-top: env(safe-area-inset-top); }
.demo-bar a { padding: 0 var(--sp-2); }
.brand { gap: var(--sp-2); }
.bm-demo { padding: var(--sp-1) var(--sp-2); }
.lang-btn { padding: 0 var(--sp-3) 0 var(--sp-4); }
[dir="rtl"] .lang-btn { padding: 0 var(--sp-4) 0 var(--sp-3); }
.burger { padding: 0; }
.about-demo { margin-top: var(--sp-4); padding-top: var(--sp-4); }
.about-demo a { padding: var(--sp-3) 0; }
.foot p { margin-block: var(--sp-4); }   /* block only: .about-demo keeps margin-inline:auto (centred on desktop) */
.card summary, .card:not([open]) summary, .cards[data-group="safe"] .card:not([open]) summary, .card.emergency:not([open]) summary { padding: var(--sp-4); gap: var(--sp-3); }
@media (max-width: 619px) { .cards:not([data-group="safe"]) .card:not([open]) summary { padding: var(--sp-4) var(--sp-2) var(--sp-3); gap: var(--sp-2); } }
.card:not([open]) .sub { margin-top: 0; }
.card .body { padding: var(--sp-2) var(--sp-5) var(--sp-6); }
.credit-link, .place .credit-link { margin-top: 0; }
.tile-txt { padding: 72px var(--sp-3) var(--sp-3); gap: var(--sp-1); }
.place-tour { padding: var(--sp-2) var(--sp-3); margin-top: var(--sp-1); }
.subtabs button { padding: 0 var(--sp-4); }
.steps li { padding-inline-start: 48px; }
.mapcard-routes .route { padding: var(--sp-2) var(--sp-4); }
.eat-jump button { padding: 0 var(--sp-3); }
#cat-tabs button { padding: var(--sp-2); }
.ev:not(.tour) > .ev-top { padding: var(--sp-3) var(--sp-4) 0; gap: var(--sp-1) var(--sp-2); }
.ev:not(.tour) > .where, .ev:not(.tour) > p { padding: 0 var(--sp-4); }
.ev:not(.tour) > .where { margin: var(--sp-1) 0 var(--sp-1); }
.ev:not(.tour) > .foot-row { padding: 0 var(--sp-4) var(--sp-4); }
.ev .when, .ev .badge { padding: var(--sp-1) var(--sp-2); }
.eyebrow { margin-bottom: var(--sp-3); gap: var(--sp-2); }
.name-box { padding: var(--sp-1); padding-inline-start: var(--sp-2); margin-bottom: var(--sp-4); }
.name-box .name-save { padding: 0 var(--sp-4); }
.quick { gap: var(--sp-3); }
.quick .qbtn { padding: var(--sp-2) var(--sp-3); }
.ok-line { margin-top: var(--sp-2); }
.cards { gap: var(--sp-3); }
@media (max-width: 619px) { .cards:not([data-group="safe"]) { gap: var(--sp-2); } }
.group-title { margin: var(--sp-8) 0 var(--sp-3); }
.group-title:first-child { margin-top: var(--sp-3); }
.tel a { padding: var(--sp-3) var(--sp-4); }
.tour-txt, .ev.tour.tour-tile .tour-txt { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.ev.tour.tour-tile p, .ev.tour.tour-tile .tour-txt .credit-link { margin-top: 0; }
.ev.tour.tour-tile .book { margin-top: auto; padding-top: var(--sp-2); }
.tours-ask { margin: var(--sp-1) 0 var(--sp-4); }
.events { margin-top: var(--sp-4); }
.more-tours:not(.map-all) { padding: var(--sp-4); }
.subtabs { padding-top: var(--sp-2); }
.places, #eat .eat-list { gap: var(--sp-4); }
.eat-jump { gap: var(--sp-2); }
#eat .eat-group { margin: var(--sp-3) 0 var(--sp-1); }
.jump { gap: var(--sp-3); }
.ds-close { padding: 0; }
.strip { gap: var(--sp-3); padding-bottom: var(--sp-2); }
.jump.jump-rest { padding: var(--sp-5) 0 var(--sp-2); }
.hood h2 + h3 { margin-top: var(--sp-3); }
.ext-links a { padding: var(--sp-3) var(--sp-4); }
.week-head { margin-bottom: var(--sp-4); }
#checkout-input { padding: var(--sp-2) var(--sp-3); }
.headsup { gap: var(--sp-2); }
.headsup li { padding: var(--sp-3) var(--sp-4); gap: var(--sp-3); }
#cat-tabs { gap: var(--sp-2); }
.place-tour, .tour-opt .place-tour { margin-top: var(--sp-1); }
.mapcard-routes { padding-bottom: 0; }
.mapcard-all { padding: var(--sp-2) var(--sp-4); margin-top: var(--sp-1); }

/* Desktop opening (900px+, designer round 2 item 2): the hosts strip moves under the "Where Adiel eats" tile
   (app.js placeDemoStrip), so the right column is no longer half empty */
@media (min-width: 900px) {
  main#top > .hero { grid-row: 1 / span 2; }
  main#top > .jump-top { grid-row: 1; align-self: start; }
  main#top > .demo-strip { grid-column: 2; grid-row: 2; align-self: start; margin-top: var(--sp-4); }
}
