/* ============================================================================
   vissi-web.css — public gallery/exhibition pages. Clean black-on-white, matched
   to the /gallery dashboard (#fff background, #000 text, hairline borders, system
   font, yellow #FFD60A only as a sparing accent). Includes the de/en UI switch.
   ========================================================================== */
:root {
  --paper: #ffffff;
  --ink:   #000000;
  --ink-2: rgba(0,0,0,0.55);   /* secondary text */
  --ink-3: rgba(0,0,0,0.5);    /* tertiary / labels (darkened for WCAG contrast) */
  --line:  rgba(0,0,0,0.10);   /* hairline borders */
  --line-2:rgba(0,0,0,0.06);
  --yellow:#FFD60A;
  --green: #34c759;
  --red:   #FF3B30;
  --r-card: 16px;
  --r-img:  14px;
  --r-pill: 999px;
  --maxw:  960px;
  --font:  system-ui, -apple-system, "SF Pro Display", "Segoe UI", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Visible keyboard focus everywhere (mouse/touch focus stays clean via :focus-visible). */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── i18n: show one language at a time (toggled by .en on <html>) ───────────── */
.i18n > .en { display: none; }
html.en .i18n > .de { display: none; }
html.en .i18n > .en { display: inline; }

/* ── Language switch (de · en) — active black, other grey ───────────────────── */
.lang-switch { display: flex; align-items: center; gap: 8px; }
.lang-switch button { background: none; border: none; font-family: var(--font); font-size: 13px; letter-spacing: 1.5px; color: rgba(0,0,0,0.45); cursor: pointer; padding: 10px 4px; transition: color 0.15s; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch button.active { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lang-switch .sep { color: rgba(0,0,0,0.2); font-size: 13px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 58px; max-width: 910px; }
.brand { font-weight: 700; font-size: 21px; letter-spacing: -0.03em; justify-self: start; }
.header-right { display: flex; align-items: center; gap: 18px; justify-self: end; }
.city-select { display: inline-flex; align-items: center; gap: 3px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.city-select:hover { opacity: 0.65; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.site-nav a { color: var(--ink-2); transition: color 0.15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }

/* ── Main / detail layout ──────────────────────────────────────────────── */
.site-main { flex: 1; width: 100%; }
.detail { max-width: 740px; margin: 0 auto; padding: 18px 20px 64px; }
.crumbs { max-width: 740px; margin: 0 auto; padding: 16px 20px 0; font-size: 13px; color: var(--ink-3); }
.crumbs .sep { margin: 0 7px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.hub-head, .hub-section, .hub-cards { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* ── Hero / carousel ───────────────────────────────────────────────────── */
.hero { position: relative; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; }
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel::-webkit-scrollbar { display: none; }
.carousel img { flex: 0 0 100%; width: 100%; height: clamp(240px, 52vw, 460px); object-fit: cover; scroll-snap-align: center; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); box-shadow: 0 0 3px rgba(0,0,0,0.3); }
.hero-dots span.on { background: var(--yellow); }
.hero-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: clamp(220px, 44vw, 360px); text-align: center; padding: 24px; }
.hero-bar { width: 28px; height: 3px; background: var(--yellow); border-radius: 2px; }
.hero-emptyname { font-size: 18px; font-weight: 600; color: var(--ink); }

/* ── Detail head ───────────────────────────────────────────────────────── */
.detail-head { margin-bottom: 24px; }
.detail-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.detail-head h1 { font-size: clamp(27px, 5vw, 36px); font-weight: 700; }
.detail-artist { font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.detail-sub { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* ── Status pill ───────────────────────────────────────────────────────── */
.status-pill { display: inline-flex; align-items: center; gap: 7px; flex: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.status-pill.open .dot { background: var(--green); }
.status-pill.event { border-color: transparent; background: #FFF6D6; }
.status-pill.event .dot { background: var(--yellow); }

/* ── Chips (exhibition status) ─────────────────────────────────────────── */
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 3px 9px; border-radius: var(--r-pill); }
.chip.now  { background: #FFF6D6; color: #6b5800; }
.chip.soon { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.chip.past { background: var(--line-2); color: var(--ink-3); }

/* ── Current show ──────────────────────────────────────────────────────── */
.show { border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; margin-bottom: 24px; }
.show-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.show-title { font-size: 22px; font-weight: 700; margin-top: 6px; }
.show-artist { font-size: 17px; font-weight: 600; margin-top: 2px; }
.show-dates { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.show-vern { color: #6b5800; background: #FFF6D6; display: inline-block; border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.more-link { display: inline-block; margin-top: 14px; color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }

/* ── Prose ─────────────────────────────────────────────────────────────── */
.prose { margin-top: 14px; }
.prose p { margin-bottom: 12px; color: rgba(0,0,0,0.8); }
.prose p:last-child { margin-bottom: 0; }
.prose-section, .exh-list, .related { margin: 28px 0; }
.prose-section h2, .exh-list h2, .related h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }

/* ── Info card ─────────────────────────────────────────────────────────── */
.info-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 24px; }
.info-row { display: flex; gap: 14px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }
.info-row:last-of-type { border-bottom: 0; }
.info-k { flex: 0 0 110px; color: var(--ink-3); }
.info-v { flex: 1; }
.info-v a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.info-v a:hover { border-color: var(--ink); }
.hours { margin-top: 14px; }
.hours .info-k { margin-bottom: 8px; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; font-weight: 400; color: var(--ink); padding: 5px 0; }
.hours td { text-align: right; color: var(--ink-2); padding: 5px 0; }
.hours tr.closed th, .hours tr.closed td { color: var(--ink-3); }

/* ── Exhibition list ───────────────────────────────────────────────────── */
.exli { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.exli:last-child { border-bottom: 0; }
a.exli:hover { background: rgba(0,0,0,0.02); border-radius: 10px; padding-left: 12px; padding-right: 12px; }
.exli-title { font-weight: 600; display: block; }
.exli-artist { color: var(--ink-2); font-size: 14px; }
.exli-meta { display: flex; align-items: center; gap: 10px; flex: none; }
.exli-range { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* ── Cards grid (hubs + related) ───────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color 0.12s ease, transform 0.12s ease; }
.gcard:hover { transform: translateY(-2px); border-color: rgba(0,0,0,0.25); }
.card-img { aspect-ratio: 4 / 3; background: #fafafa; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 16px; color: var(--ink); font-weight: 600; font-size: 15px; border-bottom: 0; }
.card-body { padding: 14px 16px 16px; }
.card-artist { font-weight: 700; font-size: 16px; }
.card-name { color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.card-meta { color: var(--ink-3); font-size: 13px; margin-top: 6px; }

/* ── Gallery-level works ───────────────────────────────────────────────── */
.works { margin: 28px 0; }
.works h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.work-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--paper); }
.work-img { aspect-ratio: 1 / 1; background: #fafafa; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-img-empty { border-bottom: 1px solid var(--line); }
.work-info { padding: 12px 14px 14px; }
.work-title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.work-meta { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.work-sub { color: var(--ink-3); font-size: 13px; margin-top: 5px; }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.work-price { font-weight: 700; font-size: 14px; }
.work-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 8px; }
.work-exh { font-size: 12px; color: var(--ink-3); }

/* ── Gallery reference (exhibition page) ───────────────────────────────── */
.gallery-ref { border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; margin: 28px 0; }
.gallery-ref .info-k { margin-bottom: 4px; }
.gref-name { font-size: 19px; font-weight: 700; border-bottom: 2px solid var(--yellow); padding-bottom: 1px; }
.gref-addr { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.gref-addr a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

/* ── Hubs ──────────────────────────────────────────────────────────────── */
.hub-head { padding-top: 24px; padding-bottom: 8px; }
.hub-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; }
.hub-intro { color: var(--ink-2); font-size: 17px; margin-top: 12px; max-width: 640px; }
.hub-section { margin: 30px auto; }
.hub-section h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; transition: border-color 0.12s; }
.hub-card:hover { border-color: rgba(0,0,0,0.3); }
.hub-card-name { font-size: 24px; font-weight: 700; }
.hub-card-count { color: var(--ink-3); font-size: 14px; }

/* ── App CTA + footer ──────────────────────────────────────────────────── */
.app-cta { margin-top: 32px; }
.app-cta a { display: inline-block; border: 1px solid var(--ink); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: var(--r-pill); transition: background 0.15s, color 0.15s; }
.app-cta a:hover { background: var(--ink); color: #fff; }
.site-footer { padding: 28px 0; margin-top: 44px; }
.foot-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 7px 12px; font-size: 14px; line-height: 1.5; text-align: center; }
.foot-brand { font-weight: 700; font-size: 15px; letter-spacing: -0.03em; color: var(--ink); }
.foot-tag { color: var(--ink-2); }
.foot-sep { color: var(--ink-3); }
.foot-line a { color: var(--ink-2); }
.foot-line a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-3); font-size: 13px; margin-top: 18px; }

/* ── Prominent "App laden" in the header ───────────────────────────────── */
.site-header .nav-app { justify-self: center; background: var(--ink); color: #fff; font-weight: 600; padding: 8px 16px; border-radius: var(--r-pill); white-space: nowrap; }
.site-header .nav-app:hover { color: #fff; opacity: 0.82; }

/* ── City picker (/galerien) ───────────────────────────────────────────── */
.picker { max-width: 1280px; margin: 0 auto; padding: clamp(20px, 4vh, 44px) 20px; display: flex; flex-direction: column; gap: 24px; }
.picker-card { display: block; position: relative; border-radius: var(--r-card); overflow: hidden; background: #18181b; text-decoration: none; }
.pc-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; height: clamp(340px, 54vh, 480px); }
.pc-rail::-webkit-scrollbar { display: none; }
.pc-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; scroll-snap-stop: always; display: block; background: #18181b; }
.pc-img-empty { background: #18181b; }
.pc-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; pointer-events: none; display: flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 18px; color: #fff; background: rgba(18,18,20,0.34); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border: 1px solid rgba(255,255,255,0.22); box-shadow: 0 8px 30px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.28); text-shadow: 0 1px 6px rgba(0,0,0,0.25); transition: background 0.18s; }
.picker-card:hover .pc-bar { background: rgba(18,18,20,0.52); }
.pc-city { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.pc-count { font-size: 14px; color: rgba(255,255,255,0.85); white-space: nowrap; }
.pc-pick { font-size: 14px; color: rgba(255,255,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-sep { color: rgba(255,255,255,0.45); }
.pc-dots { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; padding-left: 12px; }
.pc-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.85); transition: background 0.18s; }
.pc-dot.on { background: var(--yellow); }
.pc-op { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pc-op-artist { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-op-sub { font-size: 13px; color: rgba(255,255,255,0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-bar .status-pill { flex-shrink: 0; }

/* Coming-soon city card: greyed, non-clickable, lock + "Bald verfügbar / Coming soon". */
.picker-card-soon { cursor: default; }
.picker-card-soon .pc-rail { background: repeating-linear-gradient(135deg, #1b1b1e, #1b1b1e 22px, #161619 22px, #161619 44px); }
.picker-card-soon .pc-city { color: rgba(255,255,255,0.92); }
.picker-card-soon .pc-bar { background: rgba(18,18,20,0.5); }
.pc-soon { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.8); white-space: nowrap; }
.pc-lock { width: 13px; height: 13px; flex: 0 0 auto; opacity: 0.85; }

/* ── City discover feed (app-style big cards) ──────────────────────────── */
.city-head { max-width: 740px; margin: 0 auto; padding: 24px 20px 12px; }
.city-head h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 700; }
.feed-meta { color: var(--ink-2); font-size: 14px; margin-top: 8px; }
.feed { display: flex; flex-direction: column; gap: 18px; max-width: 740px; margin: 0 auto; padding: 0 20px; }
.feedcard { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff; transition: border-color 0.12s, transform 0.12s; }
.feedcard:hover { border-color: rgba(0,0,0,0.28); transform: translateY(-2px); }
.feedcard .media { position: relative; }
.feedcard img { width: 100%; height: clamp(230px, 44vw, 320px); object-fit: cover; display: block; }
.feed-info { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.feedcard .media .feed-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1) 65%, transparent); }
.feed-artist { display: block; font-weight: 700; font-size: 18px; }
.feed-name { display: block; font-size: 15px; margin-top: 2px; }
.feedcard .media .feed-name { opacity: 0.9; }
.status-pill.on-photo { background: rgba(255,255,255,0.92); border-color: transparent; color: #000; }

/* ── Entdecken: "Alle →" toggle + app-style all-galleries view ─────────────── */
/* .feed sets display:flex, which beats the UA [hidden] rule, so make it explicit. */
.feed[hidden], .feed-empty[hidden], .all-view[hidden], .all-empty[hidden], .all-row[hidden] { display: none !important; }
.city-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.city-head-row h1 { min-width: 0; }
.see-all-btn { flex: none; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-family: var(--font); font-size: 15px; font-weight: 600; color: var(--ink); background: var(--yellow); border: none; border-radius: var(--r-pill); padding: 10px 18px; line-height: 1; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.12s, box-shadow 0.12s, background 0.12s; }
.see-all-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.see-all-btn .sa-back { display: none; }
.see-all-btn[aria-pressed="true"] { background: rgba(0,0,0,0.06); box-shadow: none; }
.see-all-btn[aria-pressed="true"] .sa-all { display: none; }
.see-all-btn[aria-pressed="true"] .sa-back { display: inline; }

.feed-empty { max-width: 740px; margin: 6px auto 0; padding: 0 20px; color: var(--ink-2); }

.all-view { max-width: 740px; margin: 0 auto; padding: 4px 20px 0; }
.all-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.all-head h2 { font-size: 22px; font-weight: 700; }
.all-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.all-sort-btn { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; transition: color 0.12s, border-color 0.12s; }
.all-sort-btn:hover { color: var(--ink); }
.all-sort-btn.active { color: var(--ink); border-color: var(--ink); }
.all-search { margin-bottom: 6px; }
.all-search input { width: 100%; font-family: var(--font); font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 11px 16px; outline: none; transition: border-color 0.12s; }
.all-search input:focus { border-color: var(--ink); }
.all-search input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.all-list { list-style: none; }
.all-row { border-bottom: 1px solid var(--line-2); }
.all-row a { display: flex; flex-direction: column; gap: 3px; padding: 13px 2px; }
.ar-lead { font-weight: 700; font-size: 17px; }
.ar-lead .dist { font-weight: 400; color: var(--ink-2); }
.all-row a:hover .ar-lead { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ar-name { color: var(--ink-2); font-size: 14px; }
.all-empty { color: var(--ink-2); padding: 16px 2px; }

@media (max-width: 560px) {
  .city-head-row h1 { font-size: clamp(26px, 7vw, 34px); }
  .see-all-btn { font-size: 14px; padding: 9px 14px; }
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 18px; }
  .header-right { gap: 10px; }
  .site-header .nav-app { padding: 7px 12px; font-size: 14px; }
  .city-select { font-size: 13px; }
  /* Footer: drop the middot separators so links wrap cleanly (no orphaned dots). */
  .foot-line { gap: 6px 16px; }
  .foot-line .foot-sep { display: none; }
}

/* ── App bottom tab bar ────────────────────────────────────────────────── */
body.has-tabbar { padding-bottom: 74px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: rgba(255,255,255,0.93); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid var(--line); padding-left: max(20px, calc(50% - 435px)); padding-right: max(20px, calc(50% - 435px)); padding-bottom: env(safe-area-inset-bottom); }
.tabbar .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 0 8px; background: none; border: none; font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--ink-3); cursor: pointer; text-decoration: none; }
.tabbar .tab svg { width: 24px; height: 24px; }
.tabbar .tab.on { color: var(--ink); }
.tabbar .tab.on svg { color: var(--yellow); }

/* ── "Get the app" modal (map gate) ────────────────────────────────────── */
body.modal-open { overflow: hidden; }
.app-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,0.45); padding: 16px; }
@media (min-width: 560px) { .app-modal { align-items: center; } }
.app-modal[hidden] { display: none; }
.app-modal-card { width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 16px 50px rgba(0,0,0,0.25); }
.app-modal-emoji { font-size: 40px; }
.app-modal-card h3 { font-size: 21px; font-weight: 700; margin-top: 10px; }
.app-modal-card p { color: var(--ink-2); font-size: 15px; margin-top: 10px; line-height: 1.5; }
.app-modal-cta { display: block; margin-top: 20px; background: var(--ink); color: #fff; font-weight: 700; padding: 14px; border-radius: var(--r-pill); }
.app-modal-cta:hover { opacity: 0.85; }
.app-modal-no { display: block; width: 100%; margin-top: 10px; background: none; border: none; font-family: var(--font); color: var(--ink-3); font-size: 14px; padding: 10px; cursor: pointer; }
.app-modal-no:hover { color: var(--ink); }

/* ── Showcase ──────────────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.sc { max-width: 910px; margin: 0 auto; padding: 24px 20px 0; }
.sc-sec { margin-bottom: 30px; }
.sc-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 12px; }
.sc-empty { color: var(--ink-2); text-align: center; padding: 40px 0; }

.ourpick { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; border: 2px solid var(--yellow); background: #fff; }
.ourpick .media { position: relative; }
.ourpick img { width: 100%; height: clamp(240px, 46vw, 320px); object-fit: cover; display: block; }
.ourpick.noimg { min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.op-info { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.05) 70%, transparent); }
.ourpick.noimg .op-info { position: static; color: var(--ink); background: none; padding: 0; margin-top: auto; }
.op-artist { display: block; font-weight: 700; font-size: 20px; }
.op-sub { display: block; font-size: 14px; margin-top: 2px; opacity: 0.92; }

.sc-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.sc-row:hover { border-color: rgba(0,0,0,0.25); }
.sc-thumb { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: #fafafa; }
.sc-thumb.empty { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); }
.sc-thumb.empty .hero-bar { width: 18px; }
.sc-row-main { flex: 1; min-width: 0; }
.sc-row-artist { display: block; font-weight: 700; font-size: 15px; }
.sc-row-gal { display: block; color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.days { flex: none; font-size: 12px; font-weight: 600; color: #6b5800; border: 1px solid var(--yellow); border-radius: var(--r-pill); padding: 3px 9px; white-space: nowrap; }

.gem-scroll { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0; padding: 2px 0 6px; }
.gem-scroll::-webkit-scrollbar { display: none; }
.gem { flex: 1 0 160px; max-width: 240px; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gem img, .gem-empty { width: 100%; height: 110px; object-fit: cover; display: block; }
.gem-empty { display: flex; align-items: center; justify-content: center; background: #fafafa; }
.gem-artist { display: block; font-weight: 600; font-size: 14px; padding: 8px 10px 0; }
.gem-name { display: block; color: var(--ink-2); font-size: 12px; padding: 0 10px 10px; }

.column-card { padding: 0; }
.column-date { color: var(--ink-3); font-size: 13px; text-align: right; }
.column-title { font-size: 21px; font-weight: 700; margin-top: 4px; }
.column-text { margin-top: 10px; }
.column-text p { color: rgba(0,0,0,0.8); margin-bottom: 10px; line-height: 1.6; }
.column-text p:last-child { margin-bottom: 0; }

.dist { opacity: 0.85; font-size: 0.92em; }

/* ── Root entry (city picker) ──────────────────────────────────────────── */
.entry { max-width: 760px; margin: 0 auto; padding: clamp(36px, 9vh, 100px) 20px; text-align: center; }
.entry-word { font-size: clamp(60px, 16vw, 120px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.entry-tag { color: var(--ink-2); font-size: clamp(16px, 3vw, 20px); margin-top: 16px; }
.entry .city-picker { padding: 44px 0 0; }

/* ── Shared Art Walk (/walk/<id>) ──────────────────────────────────────── */
/* Server-rendered page for a walk someone shared. Deliberately map-less like the
   rest of the site — the route + guided mode are the app's job (.walk-cta). */
.walk-cover { border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; background: #fafafa; }
.walk-cover img { display: block; width: 100%; height: auto; }

/* No cover (own walks never have one) → a strip built from the stops' own images. */
.walk-strip { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 3px; border-radius: var(--r-img); overflow: hidden; border: 1px solid var(--line); margin-bottom: 24px; }
.walk-strip.s1 { --n: 1; } .walk-strip.s2 { --n: 2; } .walk-strip.s3 { --n: 3; } .walk-strip.s4 { --n: 4; }
.walk-strip img { display: block; width: 100%; height: clamp(120px, 26vw, 200px); object-fit: cover; }
.walk-strip.s1 img { height: clamp(200px, 42vw, 340px); }

.walk-badge { flex: none; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; padding: 4px 10px; border-radius: var(--r-pill); background: #FFF6D6; color: #6b5800; }
.walk-badge.shared { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

.walk-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.ws-dot { color: var(--ink-3); margin: 0 7px; }

.walk-stops { list-style: none; margin: 0; padding: 0; }
.walk-stop { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.walk-stop:last-child { border-bottom: 1px solid var(--line); }
.ws-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: #000; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.ws-body { min-width: 0; flex: 1; }
.ws-lead { color: var(--ink-2); font-size: 14px; margin-bottom: 2px; }
.ws-name { display: block; font-size: 18px; font-weight: 600; color: var(--ink); }
a.ws-name:hover { text-decoration: underline; }
.ws-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.ws-meta .status-pill { font-size: 13px; padding: 4px 10px; }
.ws-addr { color: var(--ink-2); }
.ws-route { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ws-leg { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.walk-cta { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px; text-align: center; }
.walk-cta h2 { font-size: 20px; font-weight: 700; }
.walk-cta p { color: var(--ink-2); font-size: 15px; margin: 8px auto 18px; max-width: 44ch; }
.walk-cta-btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 13px 26px; border-radius: var(--r-pill); }
.walk-cta-btn:hover { opacity: 0.85; }

.walk-missing { color: var(--ink-2); max-width: 46ch; }

@media (max-width: 520px) {
  .walk-stop { gap: 11px; }
  .ws-name { font-size: 17px; }
}
