/* Community app. Mobile first. Blue #0057B7 and yellow #FFD700, yellow only as a background or
   accent behind dark text, never yellow text on white. */

:root {
  --blue: #0057B7;
  --blue-d: #00418A;
  --blue-dd: #002F66;
  --blue-50: #EAF2FC;
  --blue-100: #D3E4F8;
  --yellow: #FFD700;
  --yellow-d: #F2C200;
  --yellow-50: #FFF8D1;
  --ink: #0E1A2B;
  --muted: #536173;
  --line: #E2E7EE;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --ok: #157A3E;
  --err: #B42318;
  --r: 20px;
  --r-s: 14px;
  --shadow: 0 1px 2px rgb(14 26 43 / 6%), 0 6px 20px rgb(14 26 43 / 6%);
  --head: "Unbounded", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tab-h: 62px;
  /* the home-indicator area, a bit tighter than the full inset so the bar does not look lifted */
  --tab-pad: max(6px, calc(var(--safe-b) - 12px));
  --tabbar-h: calc(var(--tab-h) + var(--tab-pad));
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* No rubber-band bounce: on iPhone it dragged the fixed bars along while scrolling. */
html, body { overscroll-behavior: none; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--text);
  /* room for the bar and the round button that rises above it */
  padding-bottom: calc(var(--tabbar-h) + 40px);
  -webkit-tap-highlight-color: transparent; overflow-x: hidden;
}
a { color: var(--blue); }
a, button, select, label.check, .chips a, [data-share] { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 10px; }
.ic { flex: none; }
button { font: inherit; }
[hidden] { display: none !important; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }

/* ---- loading screen ---------------------------------------------------------------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 50% 0%, #0A6AD6 0%, var(--blue) 45%, var(--blue-dd) 100%);
  color: #fff; transition: opacity .35s ease, visibility .35s;
}
html.booted .splash { display: none; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-in { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.splash .mark { animation: pop .7s cubic-bezier(.2, .9, .3, 1.3) both, bob 2.4s ease-in-out .7s infinite; border-radius: 26px; box-shadow: 0 18px 40px rgb(0 0 0 / 25%); }
.splash .mark rect { fill: #0B5FC4; }
.splash-name { font: 800 34px/1.1 var(--head); margin: 18px 0 0; animation: rise .6s .15s both; }
.splash-tag { font-size: 16px; opacity: .85; margin: 0; animation: rise .6s .25s both; }
.splash-bar { width: 140px; height: 6px; border-radius: 6px; background: rgb(255 255 255 / 22%); overflow: hidden; margin-top: 22px; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 6px; background: var(--yellow); animation: slide 1.1s ease-in-out infinite; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.navbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 90; background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.navbar.go { width: 85%; transition: width 4s cubic-bezier(.1, .7, .2, 1); }
@media (prefers-reduced-motion: reduce) { .splash *, .navbar { animation: none !important; transition: none !important; } }

/* ---- top --------------------------------------------------------------------------- */
.demo-strip { position: sticky; top: 0; z-index: 21; margin: 0; padding: calc(var(--safe-t) + 4px) 16px 4px; background: var(--yellow); color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 18px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* In the app installed on an iPhone the page runs under the clock and the camera: the header starts
   below them (safe area), also while it stays at the top during a scroll. On the test copy the yellow
   strip is the one under the clock, and the header stays right below it. The header is the same
   height on every page, with or without «Додати» (42 px) or the back arrow (44 px): with only the
   language switch it was 8 px shorter on Профіль and Мапа, and jumped between tabs (Hugo, 24 Nov). */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; min-height: calc(var(--safe-t) + 60px); padding: calc(var(--safe-t) + 8px) 16px 8px; background: var(--blue); color: #fff; }
.demo-strip + .top { top: calc(var(--safe-t) + 26px); padding-top: 8px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px/1 var(--head); }
.brand .mark { border-radius: 10px; box-shadow: 0 0 0 2px rgb(255 255 255 / 25%); }
.lang-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 20px; background: rgb(255 255 255 / 18%); }
.top-inner .lang-toggle { background: var(--blue-50); }
.flag { display: block; width: 28px; height: 28px; border-radius: 50%; overflow: hidden; opacity: .45; transform: scale(.82); transition: opacity .2s, transform .2s; }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-toggle:not(.is-en) .flag-ua, .lang-toggle.is-en .flag-gb { opacity: 1; transform: none; box-shadow: 0 0 0 2px #fff; }
.lang-toggle + .top-add { margin-left: 8px; }
.top:has(.admin-badge) .admin-badge + * { margin-left: auto; }
.admin-badge { padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--blue-dd); font: 800 12px var(--text); letter-spacing: .04em; text-transform: uppercase; }
.top-inner { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); }
.top-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 50%; color: var(--ink); }
.top-back:active { background: var(--blue-50); }
.top-title { font: 700 18px/1.2 var(--head); }

/* ---- home -------------------------------------------------------------------------- */
.hero { background: var(--blue); color: #fff; padding: 6px 16px 56px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: var(--yellow); opacity: .14; }
.hero-hi { font-weight: 700; color: var(--yellow); margin: 4px 0 6px; position: relative; }
.hero-t { font-size: clamp(26px, 7.6vw, 34px); font-weight: 800; max-width: 15ch; position: relative; }
.search { display: flex; align-items: center; gap: 10px; margin-top: 18px; background: #fff; color: var(--muted); border-radius: 16px; padding: 0 14px; min-height: 54px; box-shadow: 0 8px 24px rgb(0 0 0 / 15%); position: relative; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 17px var(--text); color: var(--ink); background: transparent; padding: 14px 0; }
.search-in { margin: 0; box-shadow: none; border: 1.5px solid var(--line); }
.search-in:focus-within { border-color: var(--blue); }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; position: relative; }
.quick a { display: grid; justify-items: center; gap: 8px; padding: 12px 6px; border-radius: 16px; background: rgb(255 255 255 / 12%); color: #fff; text-decoration: none; font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.quick a:active { background: rgb(255 255 255 / 22%); }
.q-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--blue-dd); }
.sheet { margin-top: -32px; position: relative; background: var(--bg); border-radius: 28px 28px 0 0; padding-top: 8px; }

.sec { padding: 18px 16px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { font-size: 20px; font-weight: 700; }
.sec-head a { display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; font-size: 15px; padding: 6px 0; }
.stack { display: grid; gap: 10px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.fresh { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; display: grid; padding-bottom: 14px; }
.fresh .fresh-img { width: 100%; height: 118px; border-radius: 0; font-size: 36px; }
.fresh-k { display: flex; align-items: center; gap: 6px; margin: 12px 14px 2px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.fresh-t { margin: 0 14px; font-weight: 800; font-size: 17px; line-height: 1.25; }
.fresh-m { margin: 4px 14px 0; font-size: 14px; color: var(--muted); }
.cta { margin: 22px 16px 8px; padding: 20px; border-radius: var(--r); background: var(--yellow); color: var(--ink); display: grid; gap: 14px; }
.cta-t { font: 700 19px/1.25 var(--head); margin-bottom: 6px; }
.cta p:last-child { margin: 0; }

/* ---- cards ------------------------------------------------------------------------- */
.ecard, .bcard { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); overflow: hidden; }
.ecard:active, .bcard:active { transform: scale(.985); }
.ecard { flex-direction: column; align-items: stretch; gap: 0; }
.ecover { position: relative; display: block; }
.ecard .ecover-img { width: 100%; height: 150px; border-radius: 0; }
.echip { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgb(0 0 0 / 18%); }
.echip b { font: 800 22px/1 var(--head); }
.echip small { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--blue); margin-top: 2px; }
.ecard .ebody { padding: 12px 14px 14px; }
.bcard { padding: 10px; }
.bcard .bthumb { width: 92px; height: 92px; border-radius: 16px; }
.ebody, .bbody { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ecat, .bcat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.etitle, .btitle { font-weight: 800; font-size: 17px; line-height: 1.25; }
.emeta, .bmeta { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); }
.emeta .ic, .bmeta .ic { color: var(--blue); }
.thumb { flex: none; width: 66px; height: 66px; border-radius: 16px; object-fit: cover; }
.ph { display: grid; place-items: center; font: 800 20px var(--head); }
.bgo { color: var(--muted); }
.badge-ex { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--yellow-50); color: #6B5400; border: 1px solid #F0D96B; font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: none; }

/* category tones: soft background, dark text */
.t1 { background: var(--blue-100); color: var(--blue-dd); }
.t2 { background: #FBDDE6; color: #7A1E3D; }
.t3 { background: #D2F0EA; color: #0D5A4C; }
.t4 { background: #FFE2C7; color: #7A3A05; }
.t5 { background: #FFF0A6; color: #5C4800; }
.t6 { background: #E7DEFB; color: #432483; }

/* ---- pages ------------------------------------------------------------------------- */
.page { padding: 18px 16px 8px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 800; }
.lead { font-size: 17px; color: var(--muted); margin-bottom: 16px; }
.seg { display: inline-flex; background: var(--blue-50); border-radius: 14px; padding: 4px; gap: 2px; }
.seg a, .seg button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; border: 0; background: transparent; color: var(--blue-d); font-weight: 700; font-size: 15px; text-decoration: none; min-height: 40px; }
.seg .on { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgb(0 87 183 / 30%); }
.filters { display: grid; gap: 10px; margin-bottom: 12px; }
.sel { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--blue); }
.sel select { flex: 1; border: 0; background: transparent; font: 600 16px var(--text); color: var(--ink); min-height: 50px; outline: 0; appearance: none; -webkit-appearance: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.chips a.on { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.hint { font-size: 15px; color: var(--muted); }
.count { font-size: 14px; color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.day-h { font: 700 16px var(--text); color: var(--muted); margin: 18px 0 10px; text-transform: none; }
.day-h::first-letter { text-transform: uppercase; }
.daygroup:first-of-type .day-h { margin-top: 4px; }

.cal { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font: 700 17px var(--head); }
.cal-head a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--blue); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-wd { font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-d { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.cal-d.past { color: #A3ADBA; }
.cal-d.has::after { content: ""; position: absolute; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.cal-d.today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-d.sel { background: var(--yellow); }
.cal-d.sel.has::after { background: var(--blue-dd); }

/* ---- detail ------------------------------------------------------------------------ */
.detail .cover { height: 200px; display: grid; place-items: center; }
.detail .cover .ic { opacity: .85; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 4px; background: #000; scrollbar-width: none; }
.gallery img { flex: 0 0 100%; height: 260px; object-fit: cover; scroll-snap-align: start; cursor: pointer; }
.gallery-wrap { position: relative; }
.gallery-open { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border: 0; border-radius: 14px; background: rgb(0 0 0 / 55%); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gallery-n { position: absolute; right: 10px; top: 10px; padding: 3px 10px; border-radius: 12px; background: rgb(0 0 0 / 55%); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
/* Photos full screen: whole (not cropped), one after another with a swipe or the arrows (Hugo, 24 Nov) */
.lb { position: fixed; inset: 0; z-index: 120; background: #000; animation: fade .2s ease; }
.lb-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; scroll-snap-align: center; padding: calc(var(--safe-t) + 60px) 0 calc(var(--safe-b) + 56px); }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb button { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 16%); color: #fff; }
.lb button:active { background: rgb(255 255 255 / 30%); }
.lb-close { top: calc(var(--safe-t) + 10px); right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb button[hidden] { display: none; }
.lb-n { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 18px); color: #fff; font-size: 14px; font-weight: 700; }
.detail-body { position: relative; margin-top: -22px; background: var(--bg); border-radius: 24px 24px 0 0; padding: 20px 16px 8px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.detail-t { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.detail-place { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.detail-place .ic { color: var(--blue); }
.facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 2px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.facts li { display: flex; gap: 14px; padding: 14px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.4; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { color: var(--ink); font-size: 16.5px; }
.f-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); }
.prose { font-size: 17px; line-height: 1.6; margin: 14px 0; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.actions .btn-yellow:first-child { grid-column: 1 / -1; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.soc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: #fff; }
.soc-instagram { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.soc-facebook { background: #1877F2; }
.soc-telegram { background: #229ED9; }

/* ---- buttons, forms ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; border-radius: 15px; border: 0; font: 800 16px var(--text); text-decoration: none; text-align: center; line-height: 1.2; }
.btn:active { transform: scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-d); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 4px 0 var(--blue-dd); }
.btn-line { background: var(--card); color: var(--blue-d); border: 1.5px solid var(--blue-100); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-big { width: 100%; min-height: 56px; font-size: 17px; }
.btn-small { min-height: 40px; padding: 8px 14px; }
.btn[disabled] { opacity: .6; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field-l { font-weight: 800; font-size: 15px; }
.field-h { font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 500 17px var(--text); color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 14px; min-height: 52px; outline: 0; appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
.field input.code { font: 800 28px var(--head); letter-spacing: .3em; text-align: center; }
.group { border: 0; margin: 0; padding: 16px; background: var(--card); border-radius: var(--r); display: grid; gap: 14px; box-shadow: var(--shadow); }
.group legend { float: left; width: 100%; font: 700 17px var(--head); padding: 0; margin-bottom: 2px; }
.group legend + * { clear: both; }
.opt { font: 600 13px var(--text); color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.photos { display: grid; gap: 6px; }
.photos input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photos-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; border: 2px dashed var(--blue-100); border-radius: 16px; color: var(--blue); font-weight: 800; background: var(--blue-50); }
.photos input:focus-visible + .photos-btn { outline: 3px solid var(--blue); }
.photos-h { font-size: 13.5px; color: var(--muted); }
.photo-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 14px; font-size: 15.5px; margin: 0 0 14px; }
.n-ok { background: #E3F5EA; color: #0D4F27; }
.n-err { background: #FDE7E5; color: #7A1A12; }
.n-info { background: var(--blue-50); color: var(--blue-dd); }
.empty { text-align: center; padding: 28px 16px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); display: grid; gap: 4px; justify-items: center; }
.empty-t { font: 700 18px var(--head); }
.empty p { color: var(--muted); }

.choice { display: grid; gap: 12px; }
.choice-c { display: grid; gap: 4px; padding: 22px; border-radius: 24px; text-decoration: none; }
.choice-c b { font: 800 24px var(--head); }
.choice-c span:last-child { font-size: 16px; opacity: .9; }
.choice-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 10px; }
.c-blue { background: var(--blue); color: #fff; }
.c-blue .choice-ic { background: var(--yellow); color: var(--blue-dd); }
.c-yellow { background: var(--yellow); color: var(--ink); }
.c-yellow .choice-ic { background: var(--blue); color: #fff; }

.done, .auth { text-align: center; display: grid; justify-items: center; gap: 4px; padding-top: 32px; }
.auth .form, .done .actions { width: 100%; text-align: left; }
.auth h1, .done h1 { font-size: 28px; margin: 14px 0 6px; }
.auth .mark { border-radius: 18px; }
.done-ic { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--yellow); color: var(--blue-dd); }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; margin-bottom: 12px; display: grid; gap: 10px; }
.card-t { display: flex; align-items: center; gap: 8px; font: 700 18px var(--head); margin: 0; }
.card p { margin: 0; }
.hello { background: var(--blue); color: #fff; }
.hello .card-t { font-size: 22px; }
.card-link { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--ink); }
.pill { min-width: 32px; padding: 4px 10px; border-radius: 999px; background: var(--yellow); font-weight: 800; text-align: center; }
.mine { list-style: none; padding: 0; margin: 0; display: grid; }
.mine li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mine a { color: var(--ink); font-weight: 700; text-decoration: none; }
.st { flex: none; font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.st-pending { background: var(--yellow-50); color: #6B5400; }
.st-approved { background: #E3F5EA; color: #0D4F27; }
.st-rejected { background: #FDE7E5; color: #7A1A12; }
.madeby { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px auto 8px; width: max-content; max-width: 100%; color: var(--muted); font-size: 14px; text-decoration: none; cursor: pointer; }
.madeby-pill { display: flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgb(14 26 43 / 8%); }
.madeby b { color: var(--ink); font-weight: 800; }
.madeby img { border-radius: 6px; }
.madeby:hover .madeby-pill, .madeby:active .madeby-pill { border-color: var(--blue); }
.madeby-tap { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 700; }
/* the hand taps toward the button: up, a press with the little rays, back, then a rest */
.tap-hand { flex: none; transform-origin: 50% 80%; animation: tap 2.4s ease-in-out infinite; }
.tap-hand .tap-rays { opacity: 0; animation: tap-rays 2.4s ease-in-out infinite; }
@keyframes tap { 0%, 40%, 100% { transform: none; } 12% { transform: translateY(-3px); } 20% { transform: translateY(-2px) scale(.88); } 30% { transform: translateY(-3px); } }
@keyframes tap-rays { 0%, 16%, 34%, 100% { opacity: 0; } 22% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tap-hand, .tap-hand .tap-rays { animation: none; } .tap-hand .tap-rays { opacity: 1; } }
.links { display: flex; gap: 16px; justify-content: center; margin: 14px 0; font-size: 14.5px; }
.mod .mod-img { border-radius: 12px; max-height: 200px; object-fit: cover; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal h1 { font-size: 26px; margin: 8px 0; }
.legal h2 { font: 700 18px var(--head); margin: 22px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; }
.legal ul { padding-left: 20px; }

/* ---- round 2: sign-ups, owners, editing ---------------------------------------- */
.etags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-dd); font-size: 13px; font-weight: 800; }
.tag-free { background: #E3F5EA; color: #0D4F27; }
.tag-donation { background: #FFF6CC; color: #5C4600; }
.tag-going { background: var(--yellow-50); color: #5C4800; }
.rsvp { display: grid; gap: 10px; margin: 14px 0 6px; padding: 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 2px solid var(--blue-100); }
.rsvp form { display: grid; gap: 8px; margin: 0; }
.rsvp-n { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; }
.rsvp-n .ic { color: var(--blue); }
.rsvp-cap { color: var(--muted); }
.rsvp-me { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 12px; border-radius: 14px; background: #E3F5EA; color: #0D4F27; font-weight: 800; }
.rsvp-full { margin: 0; padding: 12px; border-radius: 14px; background: var(--bg); color: var(--muted); font-weight: 800; text-align: center; }
.owner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; padding: 14px; border-radius: var(--r); background: var(--yellow-50); border: 1.5px dashed #E8C84A; }
.owner-t { grid-column: 1 / -1; margin: 0; font-weight: 800; }
.photo-have { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-old { display: grid; gap: 4px; justify-items: center; font-size: 14px; font-weight: 700; }
.photo-old img { width: 96px; height: 72px; object-fit: cover; border-radius: 12px; }
.photo-old input { width: 20px; height: 20px; vertical-align: -4px; accent-color: var(--err); }
.danger { margin: 18px 0 0; text-align: center; }
.btn-danger { color: var(--err); }
.btn-danger-solid { background: var(--err); color: #fff; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; }
.radios input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.mine-main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.mine-edit { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--blue); background: var(--blue-50); }
.st-going { background: var(--blue-50); color: var(--blue-dd); text-decoration: none; }
.bye { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.bye form { margin: 0; }
.plain { margin: 0; padding-left: 20px; }
.people { margin: 0; padding-left: 24px; display: grid; gap: 6px; font-size: 17px; font-weight: 700; }
.page-title { font-size: 24px; font-weight: 800; margin: 4px 0 14px; }

/* ---- round 3 ----------------------------------------------------------------- */
.msgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 4px 0 14px; }
.msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 15px; color: #fff; font-weight: 800; text-decoration: none; }
.msg-wa { background: #1FA855; }
.msg-viber { background: #7360F2; }
.msg-tg { background: #229ED9; }
.fav { margin: 0; display: contents; }
.btn-fav { background: var(--card); color: var(--blue-d); border: 1.5px solid var(--blue-100); width: 100%; }
.btn-fav.on { background: #FDE7EE; color: #A3184A; border-color: #F6B9CC; }
.btn-fav.on .ic path { fill: currentColor; }
.report { text-align: center; margin: 22px 0 6px; }
.report a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; padding: 8px; }
.hours { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.open-state { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 800; }
.open-state.st-open { color: #157A3E; }
.open-state.st-closed { color: #B42318; }
.open-state.st-appointment { color: var(--blue-d); margin: 0; }
.hours table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.hours th { text-align: left; font-weight: 600; color: var(--muted); padding: 5px 0; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding: 5px 0; }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 800; }
.tag-open { background: #E3F5EA; color: #0D4F27; }
.tag-closed { background: #F1F3F6; color: var(--muted); }
.tag-appointment { background: var(--blue-50); color: var(--blue-dd); }
.tag-rep { background: #E7DEFB; color: #432483; }
.tag-spot { display: inline-flex; align-items: center; gap: 4px; background: var(--yellow); color: var(--blue-dd); }
.spotbox { margin: 18px 0 8px; padding: 14px; border-radius: var(--r); background: #fff; border: 1.5px solid var(--yellow); }
.spotbox-t { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 800; }
.spotbox-now { margin: 0 0 4px; font-weight: 700; }
.spotbox-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.spotbox-f select { grid-column: 1 / -1; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 12px; font: 600 16px var(--text); background: #fff; color: var(--ink); }
.spotbox-f .btn:only-of-type { grid-column: 1 / -1; }
.spots { margin-top: 18px; }
.spots-find { margin: 12px 0; }
.badge-rep { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #E7DEFB; color: #432483; font-size: 11px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.dist { color: var(--ink); }
.dates { margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.dates-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 800; }
.dates-t .ic { color: var(--blue); }
.dates-list { display: flex; flex-wrap: wrap; gap: 8px; }
.dates-list a { padding: 8px 12px; border-radius: 12px; background: var(--blue-50); color: var(--blue-dd); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.series-info p { margin: 0 0 6px; }
.owner-wide { grid-column: 1 / -1; margin: 0; }
.owner-wide .btn { width: 100%; }
.near-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin: 0 0 12px; border-radius: 14px; border: 1.5px dashed var(--blue-100); background: var(--blue-50); color: var(--blue-d); font-weight: 800; font-size: 15.5px; }
.near-btn.on { border-style: solid; background: var(--yellow-50); border-color: #E8C84A; color: var(--ink); }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chk { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 700; }
.chk input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.chk:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.hours-days { display: none; gap: 8px; }
.hoursf:has(input[name=hours_mode][value=hours]:checked) .hours-days { display: grid; }
.hday { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 6px; }
.hday-l { display: flex; align-items: center; gap: 8px; font-weight: 700; min-height: 44px; }
.hday-l input { width: 22px; height: 22px; margin: 0; accent-color: var(--blue); }
.hday input[type=time] { width: 92px; min-height: 44px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 12px; font: 600 15px var(--text); background: var(--card); color: var(--ink); }
.hday:has(.hday-l input:not(:checked)) input[type=time], .hday:has(.hday-l input:not(:checked)) .hday-dash { opacity: .35; }
.hday-dash { color: var(--muted); font-size: 14px; }
.show-s { display: none; }
@media (max-width: 380px) { .hide-s { display: none; } .show-s { display: inline; } .hday input[type=time] { width: 84px; } }

.where-online { display: none; }
fieldset:has(.online-toggle input:checked) .where-online { display: block; }
fieldset:has(.online-toggle input:checked) .where-place { display: none; }
.where-place, .where-online { display: grid; gap: 14px; }
fieldset:has(.online-toggle input:not(:checked)) .where-online { display: none; }

.claim { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); color: var(--blue-dd); text-decoration: none; line-height: 1.35; }
.claim span { flex: 1; }

/* the printable poster */
.poster-page { background: #fff; padding: 0; }
.poster { max-width: 720px; margin: 0 auto; padding: 32px 28px; display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--ink); }
.poster-top { display: flex; align-items: center; gap: 14px; font: 800 30px var(--head); color: var(--blue); }
.poster-top .mark { border-radius: 16px; }
.poster-h { font: 800 34px/1.2 var(--head); margin: 6px 0 0; }
.poster-name { font: 800 26px/1.25 var(--text); margin: 0; padding: 10px 22px; border-radius: 16px; background: var(--yellow); }
.poster-qr { width: min(80vw, 360px); padding: 18px; border-radius: 24px; border: 6px solid var(--blue); background: #fff; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-url { font: 700 18px var(--text); color: var(--muted); word-break: break-all; margin: 0; }
.poster-s { font-size: 19px; margin: 0; }
.poster-print { margin-top: 10px; }
@media print {
  .poster-print, .demo-strip { display: none !important; }
  .poster { padding: 0; }
  @page { size: A4; margin: 18mm; }
}

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.kpi { display: grid; gap: 2px; padding: 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.kpi span { font-weight: 700; font-size: 14px; }
.kpi b { font: 800 26px var(--head); color: var(--blue); }
.kpi small { color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 150px; }
.bar-col { flex: 1; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 2px; }
.bar-n { font-size: 10.5px; color: var(--muted); }
.bar { align-self: end; width: 100%; max-width: 22px; height: 2px; border-radius: 6px 6px 2px 2px; background: var(--blue-100); }
.bar.today { background: var(--yellow); }
.bar-d { font-size: 11px; color: var(--muted); }
.mine li span { min-width: 0; overflow-wrap: anywhere; }
/* statistics (admin) */
.stats .kpi small.up { color: #0D6B35; font-weight: 700; }
.stats .kpi small.down { color: #B42318; font-weight: 700; }
.hints ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.barlist, .funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.barlist li, .funnel li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: baseline; }
.bl-k { min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.bl-n { font-size: 15px; white-space: nowrap; }
.bl-n small, .funnel b small { color: var(--muted); font-weight: 600; }
.bl-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bl-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--blue); }
.bars2 { gap: 2px; }
.bars2 .bar-col { min-width: 0; }
.bars2 .bar-pair { position: relative; align-self: end; display: flex; justify-content: center; width: 100%; height: 100%; }
.bars2 .bar { position: absolute; bottom: 0; }
.bars2 .bar-v { max-width: 12px; background: var(--blue); }
.stbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.stbl th { text-align: right; font-weight: 700; color: var(--muted); padding: 6px 4px; }
.stbl th:first-child, .stbl td:first-child { text-align: left; }
.stbl td { text-align: right; padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.stbl td:first-child { overflow-wrap: anywhere; }
.stbl a { color: var(--ink); font-weight: 700; text-decoration: none; }
.stbl .tag-spot { margin-left: 6px; padding: 0 6px; }

/* the install sheet */
/* A window in the middle of the screen, on iPhone and Android alike (Hugo, 24 Nov). */
.sheet-bg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(14 26 43 / 50%); animation: fade .2s ease; }
.sheet-bg[hidden] { display: none; }
.isheet { width: 100%; max-width: 420px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px 18px; border-radius: 26px; background: var(--card); box-shadow: 0 20px 60px rgb(0 0 0 / 30%); animation: modal-in .24s cubic-bezier(.2, .9, .3, 1); display: grid; gap: 14px; }
@keyframes modal-in { from { transform: translateY(12px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.isheet-grab { display: none; }
.isheet-head { display: flex; gap: 14px; align-items: center; }
.isheet-head .mark { flex: none; border-radius: 16px; }
.isheet-t { font: 700 19px/1.25 var(--head); margin: 0 0 4px; }
.isheet-s { margin: 0; color: var(--muted); font-size: 15px; }
.isheet-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.isheet-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: var(--bg); font-size: 16px; line-height: 1.45; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); font-weight: 800; }
.ios-share { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: -4px 2px; border-radius: 8px; background: var(--blue-50); color: #0A84FF; vertical-align: middle; }
.noscroll { overflow: hidden; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- tab bar, add button ----------------------------------------------------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: var(--tabbar-h); padding: 4px 4px var(--tab-pad); transform: translateZ(0);
  background: #fff; box-shadow: 0 -4px 16px rgb(14 26 43 / 6%);
  border-top: 1px solid var(--line);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; }
.tab-ic { display: grid; place-items: center; width: 58px; height: 32px; border-radius: 16px; transition: background .2s; }
.tabbar a.on { color: var(--ink); }
.tabbar a.on .tab-ic { background: var(--yellow); color: var(--blue-dd); }
.tab-label { white-space: nowrap; }
/* Події: the main tab, a raised round button in the middle */
.tabbar a.main { position: relative; color: var(--blue-d); }
.tabbar a.main .tab-ic {
  width: 66px; height: 66px; border-radius: 50%; margin-top: -30px; background: var(--blue); color: var(--yellow);
  box-shadow: 0 0 0 5px #fff, 0 8px 18px rgb(0 65 138 / 35%);
}
.tabbar a.main.on .tab-ic { background: var(--yellow); color: var(--blue-dd); box-shadow: 0 0 0 5px #fff, 0 8px 18px rgb(242 194 0 / 45%); }
.tabbar a.main .tab-label { font-weight: 800; }
.top-add { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 21px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 15.5px; text-decoration: none; }
.top-add .ic { color: var(--blue-dd); }
.top-add:active { transform: scale(.97); }

/* ---- map --------------------------------------------------------------------------- */
.is-map { padding-bottom: 0; }
/* The map page itself never scrolls: on an iPhone the whole screen dragged up with the bar (24 Nov). */
html:has(body.is-map), body.is-map { height: 100%; overflow: hidden; }
/* In the app installed on an iPhone, a page shorter than the screen ends the screen early: the bar,
   fixed to the bottom, sits at the end of the page and floats above an empty strip. On the map it was
   59 points (100% there is the screen without the status bar, 793 of 852 on an iPhone 16) and on
   «Вхід» 34 (Hugo's screenshots of the map, 24 Nov). 100vh is the whole screen, so no page is shorter. */
@media (display-mode: standalone) {
  html { min-height: 100vh; }
  html:has(body.is-map), body.is-map { height: 100vh; }
}
.mapwrap { position: fixed; left: 0; right: 0; top: var(--map-top, 88px); bottom: var(--tabbar-h); }
.mapwrap .map, .mapwrap .maplibregl-map { position: absolute; inset: 0; background: #F2EFE9; }
/* the picture of the map while swisstopo's map loads (app.js puts it in place) */
.map-ph { position: absolute; left: 0; top: 0; display: block; transform-origin: 0 0; opacity: 0; pointer-events: none; user-select: none; -webkit-user-select: none; transition: opacity .35s ease; }
.map-ph img { width: 100%; height: 100%; max-width: none; -webkit-user-drag: none; }
.map-ph.on { opacity: 1; transition: none; }
.map-top { position: absolute; top: 12px; left: 0; right: 0; display: flex; justify-content: center; z-index: 500; pointer-events: none; }
.seg-float { pointer-events: auto; background: #fff; box-shadow: var(--shadow); }
.locate { position: absolute; right: 12px; bottom: 16px; z-index: 500; display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 16px; border-radius: 24px; border: 0; background: #fff; color: var(--blue-d); font-weight: 800; box-shadow: var(--shadow); }
.pin { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 4px 10px rgb(0 0 0 / 25%); }
.pin > span { transform: rotate(45deg); width: 10px; height: 10px; border-radius: 50%; }
.pin-biz { background: var(--blue); }
.pin-biz > span { background: var(--yellow); }
.pin-ev { background: var(--yellow); }
.pin-ev > span { background: var(--blue); }
.pinimg { position: relative; width: 52px; height: 52px; border-radius: 50%; padding: 3px; box-shadow: 0 6px 14px rgb(0 0 0 / 30%); }
.pinimg::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: inherit; }
.pinimg img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.pinimg-biz { background: var(--blue); border-color: var(--blue); }
.pinimg-ev { background: var(--yellow); border-color: var(--yellow); }
.me { width: 18px; height: 18px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(26 115 232 / 25%); }
.cluster { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 15px var(--text); border: 3px solid var(--yellow); box-shadow: 0 4px 12px rgb(0 0 0 / 25%); }
.maplibregl-map { font: 500 15px var(--text); }
.maplibregl-popup-content { border-radius: 18px; padding: 14px 16px; min-width: 220px; box-shadow: 0 10px 30px rgb(0 0 0 / 20%); }
.maplibregl-popup-close-button { width: 36px; height: 36px; font-size: 22px; color: var(--muted); border-radius: 50%; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-bottom-left { bottom: 6px; }
.map-fallback { margin: 80px 16px; }
.pin, .pinimg, .cluster { cursor: pointer; }
.pop-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--blue); }
.pop-t { display: block; font: 700 16px/1.25 var(--head); margin: 4px 0; color: var(--ink); text-decoration: none; }
.pop-img { display: block; margin: -2px -4px 10px; }
.pop-img img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; }
.pop-m { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pop a.btn { min-height: 42px; width: 100%; color: var(--ink); }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* ---- wider screens ----------------------------------------------------------------- */
@media (min-width: 720px) {
  main, .demo-strip, .top > * { max-width: 720px; margin-left: auto; margin-right: auto; }
  .top { justify-content: center; }
  .top > * { margin: 0; }
  .tabbar { left: 50%; transform: translateX(-50%); max-width: 560px; bottom: 12px; border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); padding-bottom: 6px; height: var(--tab-h); }
  .actions { grid-template-columns: repeat(3, 1fr); }
  .choice { grid-template-columns: 1fr 1fr; }
}

/* the admin top bar keeps only the icon of «Застосунок», so it never runs off the screen */
.top:has(.admin-badge) .top-add span { display: none; }
.top:has(.admin-badge) .top-add { padding: 0 11px; }

/* "send the code again" on the code page */
.resend { display: grid; margin: 6px 0 4px; }
.resend .btn[disabled] { opacity: .65; }

/* iPhone app: a full-screen-height element used to make WebKit measure the screen again (app.js) */
.vh-probe { position: fixed; top: 0; left: 0; width: 1px; height: 100vh; pointer-events: none; visibility: hidden; }
.demo-strip[data-vh]::after { content: attr(data-vh); }
/* if the screen still comes up short, the strip under the bar is white like the bar */
html:has(body.is-map) { background: #fff; }

/* Stats: the detail folded under «More numbers» (24 Nov) */
.stats details.more { margin-top: 18px; }
.stats details.more > summary { cursor: pointer; font-weight: 700; padding: 12px 0; color: var(--ink, #1A1A1A); }
.stats details.more[open] > summary { margin-bottom: 6px; }

/* Businesses: sort by name or nearest first (24 Nov) */
.sortseg { display: flex; width: 100%; margin: 0 0 12px; }
.sortseg > * { flex: 1; justify-content: center; }
.fresh { position: relative; }
.spot-on { position: absolute; top: 10px; left: 10px; }
.spot-on .tag-spot { white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / 18%); }
/* events: price and format side by side (24 Nov) */
.filters-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filters-2 .sel { min-width: 0; }
.filters-2 select { min-width: 0; width: 100%; text-overflow: ellipsis; }
