/* ─────────────────────────────────────────────────────────────
   Gavidet · Concept B — where · when · what
   White, ink and one pomegranate red (the colours of the Georgian
   flag, used quietly). Inter Tight / Inter cover Latin + Cyrillic
   (Belarusian later); Noto Sans Georgian covers Mkhedruli.
   The page bottom is a procession of figures in Pirosmani's manner.
   ───────────────────────────────────────────────────────────── */
:root{
  --bg:#ffffff;
  --surface:#f5f4f1;
  --surface-2:#ecebe7;
  --ink:#111111;
  --ink-2:#3b3b3b;
  --muted:#777673;
  --faint:#adaba6;
  --line:#ebeae7;
  --line-2:#dcdad6;
  --accent:#e0312b;
  --accent-hover:#c4241f;
  --accent-wash:#fdeeec;
  --radius:20px;
  --maxw:1280px;
  --gutter:clamp(16px,4vw,48px);
  --hdr:58px;
  --display:'Inter Tight','Noto Sans Georgian',system-ui,sans-serif;
  --ui:'Inter','Noto Sans Georgian',system-ui,-apple-system,sans-serif;
  --ka:'Noto Sans Georgian',system-ui,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  --shadow-lg:0 2px 4px rgba(17,17,17,.03),0 24px 56px -20px rgba(17,17,17,.2);
}

*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:140px}
body{background:var(--bg);color:var(--ink);font-family:var(--ui);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button,input,select{font:inherit;color:inherit}
button{background:none;border:0;cursor:pointer}
ul{list-style:none}
h1,h2,h3,h4{font-weight:600;text-wrap:balance}
p{text-wrap:pretty}
[hidden]{display:none!important}
svg.lucide{width:18px;height:18px;stroke-width:1.75;flex:none}
::selection{background:var(--accent);color:#fff}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ka{font-family:var(--ka)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:999px;font-size:15px;font-weight:600;white-space:nowrap;transition:background .2s,border-color .2s,color .2s}
.btn-sm{height:40px;padding:0 18px;font-size:14px}
.btn-accent{background:var(--accent);color:#fff}
.btn-accent:hover{background:var(--accent-hover)}
.btn-ghost{background:#fff;border:1px solid var(--line-2)}
.btn-ghost:hover{border-color:var(--ink)}
.link-btn{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:500;color:var(--ink-2)}
.link-btn:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ── header: quiet ──────────────────────────────────────── */
.hdr{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px)}
.hdr-in{display:flex;align-items:center;gap:20px;height:var(--hdr)}
.brand{display:inline-flex;align-items:center;gap:9px}
/* the mascot: a pomegranate on its way out (made through the image hub); it sways when you point at the logo */
.brand-mark{display:block;width:auto;height:32px;transform-origin:50% 90%;transition:transform .3s var(--ease)}
.brand:hover .brand-mark{transform:rotate(-8deg)}
.brand-word{font-family:var(--display);font-size:18px;font-weight:700;letter-spacing:-.03em}
.nav{display:flex;align-items:center;gap:22px;margin-left:auto}
.nav a{display:inline-flex;align-items:center;gap:6px;height:32px;font-size:14px;font-weight:500;color:var(--muted);transition:color .2s}
.nav a:hover,.nav a[aria-current="page"]{color:var(--ink)}
.nav svg.lucide{display:none}
.badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}

.lang{position:relative}
.lang summary{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 4px;font-size:13.5px;font-weight:600;color:var(--muted);list-style:none;cursor:pointer;transition:color .2s}
.lang summary::-webkit-details-marker{display:none}
.lang summary:hover,.lang[open] summary{color:var(--ink)}
.lang .chev{width:14px;height:14px;transition:transform .2s}
.lang[open] .chev{transform:rotate(180deg)}
.menu{position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:flex;flex-direction:column;min-width:214px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-lg)}
.menu a,.menu .soon{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;font-size:14.5px}
.menu a:hover{background:var(--surface)}
.menu a.on{font-weight:600}
.menu a.on svg.lucide{width:16px;height:16px;color:var(--accent)}
.menu .soon{color:var(--muted);cursor:default}
.menu .soon em{padding:2px 8px;border-radius:999px;background:var(--surface);font-size:11px;font-style:normal;font-weight:600}

/* ── filter bar: where · when · what (sticky) ───────────── */
.filterbar{position:sticky;top:var(--hdr);z-index:30;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fb-in{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;padding-top:12px;padding-bottom:12px}
.cities{display:flex;gap:6px;flex:1 1 0;min-width:0;overflow-x:auto;scrollbar-width:none}  /* shrinks and scrolls, so the date + Free filters keep their place */
.cities::-webkit-scrollbar{display:none}
.cities.fade-end{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 56px),transparent)}
.cities.fade-start{-webkit-mask-image:linear-gradient(to right,transparent,#000 56px);mask-image:linear-gradient(to right,transparent,#000 56px)}
.cities.fade-start.fade-end{-webkit-mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent);mask-image:linear-gradient(to right,transparent,#000 56px,#000 calc(100% - 56px),transparent)}
.city{flex:none;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 6px 0 15px;border:1px solid var(--line-2);border-radius:999px;background:#fff;font-size:14px;font-weight:500;transition:border-color .2s,background .2s,color .2s}
.city .n{display:inline-grid;place-items:center;min-width:26px;height:28px;padding:0 8px;border-radius:999px;background:var(--surface);font-size:12px;font-weight:600;color:var(--ink-2);font-variant-numeric:tabular-nums}
.city:hover{border-color:var(--ink)}
.city.is-empty,.city.is-empty .n{color:var(--faint)}
.city[aria-current="page"]{background:var(--ink);border-color:var(--ink);color:#fff}
.city[aria-current="page"] .n{background:rgba(255,255,255,.16);color:#fff}

.fb-right{display:flex;gap:6px;margin-left:auto;flex:none}
.dd{position:relative}
.dd-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;background:#fff;font-size:14px;font-weight:500;white-space:nowrap;transition:border-color .2s,background .2s,color .2s}
.dd-btn svg.lucide{width:16px;height:16px}
.dd-btn .chev{width:14px;height:14px;color:var(--muted)}
.dd-btn:hover,.dd-btn[aria-expanded="true"]{border-color:var(--ink)}
.dd-btn.is-set,.dd-btn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.dd-btn.is-set .chev{color:rgba(255,255,255,.6)}
/* Big Chances, Lifestyle: one button in two halves that switch on independently and add up;
   none on = everything. The halves share the border in the middle. */
.cats{display:inline-flex;flex:none}
.fb-right .cats .dd-btn{width:auto;justify-content:center}
.cats .dd-btn{position:relative;border-radius:0}
.cats .dd-btn:first-child{border-radius:999px 0 0 999px;padding-right:12px}
.cats .dd-btn:last-child{margin-left:-1px;border-radius:0 999px 999px 0;padding-left:12px}
.cats .dd-btn:hover{z-index:1}
.cats .dd-btn.is-set{z-index:2}
.cats .dd-btn.is-set+.dd-btn.is-set{box-shadow:inset 1px 0 0 rgba(255,255,255,.22)}  /* both on: a hairline keeps them two */
.dd-btn.cat .lucide-sparkles{color:var(--accent)}
.dd-btn.cat.is-set svg.lucide{color:inherit}

/* popovers */
.pop{position:absolute;right:0;top:calc(100% + 10px);z-index:50;padding:20px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-lg)}
.pop-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px;border-top:1px solid var(--line)}
.pop-sum{font-size:14px;color:var(--muted)}
.pop-sum b{font-weight:600;color:var(--ink)}
.pop-actions{display:flex;align-items:center;gap:16px}
.scrim{position:fixed;inset:0;z-index:42;background:transparent}
.filterbar.has-pop{z-index:45}  /* the open popover sits above the click-catching scrim */

/* when: presets + two-month range calendar */
.pop-when{display:grid;grid-template-columns:148px minmax(0,1fr);gap:0 24px;width:min(820px,calc(100vw - 32px))}
.presets{display:flex;flex-direction:column;gap:2px;padding-right:20px;border-right:1px solid var(--line)}
.preset{height:38px;padding:0 12px;border-radius:10px;font-size:14px;font-weight:500;color:var(--ink-2);text-align:left;white-space:nowrap;transition:background .2s}
.preset:hover{background:var(--surface)}
.preset[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600}
.months{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:28px}
.mnav{position:absolute;top:-4px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;color:var(--ink-2);transition:background .2s}
.mnav:hover{background:var(--surface)}
.mnav:disabled{opacity:.25;cursor:default;background:none}
.mnav.prev{left:-4px}
.mnav.next{right:-4px}
.month-h{height:26px;font-size:15px;font-weight:600;text-align:center}
.dow{display:grid;grid-template-columns:repeat(7,1fr);margin-top:10px;font-size:11.5px;font-weight:500;color:var(--faint);text-align:center}
.cal{display:grid;grid-template-columns:repeat(7,1fr);row-gap:2px;margin-top:4px}
.cd{position:relative;display:grid;place-items:center;height:42px;font-size:14px;color:#8d8b87}
.cd .num{position:relative;z-index:1;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;transition:background .15s,color .15s}
.cd:hover .num{background:var(--surface)}
.cd:focus-visible{outline:none}
.cd:focus-visible .num{box-shadow:0 0 0 2px var(--accent)}
.cd.has-ev{color:var(--ink);font-weight:600}
.cd .dot{position:absolute;z-index:2;bottom:5px;left:50%;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--accent)}
.cd.is-today .num{box-shadow:inset 0 0 0 1px var(--line-2)}
.cd:disabled{color:#dad8d4;cursor:default}
.cd:disabled .num{background:none}
.cd.in-range::before{content:"";position:absolute;inset:2px 0;background:var(--surface)}
.cd.in-range.is-start::before{left:50%}
.cd.in-range.is-end::before{right:50%}
.cd.is-start .num,.cd.is-end .num{background:var(--ink);color:#fff}
.cd.is-start .dot,.cd.is-end .dot{background:#fff}
.pop-when .pop-foot{grid-column:1/-1;margin-top:16px}

/* ── results ────────────────────────────────────────────── */
.res-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding-top:36px}
.greet{margin-bottom:6px;font-size:14px;color:var(--muted)}
.greet .ka{margin-right:4px;font-weight:600;color:var(--accent)}
.res-title{font-family:var(--display);font-size:clamp(24px,2.4vw,30px);font-weight:600;line-height:1.15;letter-spacing:-.025em}
.res-title .where{color:var(--muted);font-weight:500}
.res-title .where-ka{margin-left:8px;font-size:.5em;font-weight:400;color:var(--faint);letter-spacing:0;vertical-align:.3em}
.res-sub{margin-top:4px;font-size:14px;color:var(--muted)}
.clear{flex:none;display:inline-flex;align-items:center;height:34px;padding:0 14px;border-radius:999px;background:var(--surface);font-size:13.5px;font-weight:500;transition:background .2s}
.clear:hover{background:var(--surface-2)}
.results>.grid{margin-top:28px}
.group{margin-top:40px}
.group-h{display:flex;align-items:baseline;gap:10px;margin-bottom:18px;font-family:var(--display);font-size:20px;letter-spacing:-.02em}
.group-h small{font-family:var(--ui);font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px}

/* card */
.card{position:relative;display:flex;flex-direction:column;transition:opacity .25s,transform .25s}
.card.is-leaving{opacity:0;transform:scale(.98)}
.card-media{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius);background:var(--surface)}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.card:hover .card-media img{transform:scale(1.035)}
.card-date{position:absolute;left:12px;top:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;width:50px;height:54px;border-radius:14px;background:rgba(255,255,255,.95);font-size:11px;font-weight:600;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:var(--accent)}
.card-date b{margin-bottom:3px;font-family:var(--display);font-size:22px;letter-spacing:-.02em;color:var(--ink)}
.save-btn{position:absolute;right:12px;top:12px;z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--ink);transition:transform .2s,color .2s}
.save-btn:hover{transform:scale(1.07)}
.save-btn[aria-pressed="true"]{color:var(--accent)}
.save-btn[aria-pressed="true"] svg{fill:currentColor}
.save-btn::before{content:"";position:absolute;inset:-6px;border-radius:50%}  /* larger hit area than it looks */
.card-body{flex:1;display:flex;flex-direction:column;padding:14px 2px 0}
.card-meta{overflow:hidden;font-size:13px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis}
.card-type{position:relative;z-index:2;transition:color .2s}  /* above the card-wide link, so the type opens its own page */
.card-type:hover{color:var(--accent)}
.sep{display:inline-block;width:3px;height:3px;margin:0 7px;border-radius:50%;background:var(--faint);vertical-align:middle}
.card-title{margin-top:6px;font-family:var(--display);font-size:19px;line-height:1.2;letter-spacing:-.015em}
.card-title a::after{content:"";position:absolute;inset:0;z-index:1}
.card-place{display:flex;margin-top:4px;font-size:14px;color:var(--ink-2);white-space:nowrap}
.card-place>*{flex:none}
.card-place .v{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.card-place>*+*::before{content:"·";margin:0 .4em}
.card-place b{font-weight:600;color:var(--ink)}
.card-price{margin-top:auto;padding-top:8px;font-size:14px;font-weight:600}  /* prices line up across a row */
.card-price.is-free{color:var(--accent)}

/* thin city → the rest of Georgia */
.elsewhere{margin-top:64px;padding:clamp(22px,3vw,40px);border-radius:32px;background:var(--surface)}
.elsewhere-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:26px}
.elsewhere-h h2{font-family:var(--display);font-size:clamp(22px,2.2vw,28px);letter-spacing:-.025em}
.elsewhere-h p{margin-top:4px;font-size:14px;color:var(--muted)}
.elsewhere .card-media{background:var(--surface-2)}

.empty{margin-top:28px;padding:clamp(40px,6vw,72px) 24px;border-radius:32px;background:var(--surface);text-align:center}
.empty-ka{font-family:var(--ka);font-size:clamp(40px,6vw,76px);font-weight:600;line-height:1.1;color:#e1dfda}
.empty h2{margin-top:14px;font-family:var(--display);font-size:clamp(22px,2.4vw,30px);letter-spacing:-.025em}
.empty p{max-width:470px;margin:10px auto 0;color:var(--ink-2)}
.empty p a{font-weight:600;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.empty-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:24px}

/* ── event page ─────────────────────────────────────────── */
.crumbs{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:24px 0;font-size:14px;color:var(--muted)}
.crumbs a:hover{color:var(--ink)}
.crumbs svg.lucide{width:14px;height:14px;color:var(--faint)}
.ev-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:start}
.ev-media{position:sticky;top:calc(var(--hdr) + 24px);margin:0}
.ev-photo{aspect-ratio:4/5;overflow:hidden;border-radius:28px;background:var(--surface)}
.ev-photo img{width:100%;height:100%;object-fit:cover}
/* whose picture: as in a glossy magazine, the credit sits in a small tab of page white cut into the
   photo's bottom-right corner, with soft inner curves where paper meets picture. Dark caps on white,
   so it reads the same on every photo. The tab takes the corner, so the photo's own rounding goes. */
.ev-media.has-credit .ev-photo{border-bottom-right-radius:0}
.ev-credit{--r:14px;position:absolute;z-index:1;right:0;bottom:0;max-width:calc(100% - 56px);padding:9px 2px 0 16px;border-top-left-radius:var(--r);background:var(--bg);font-size:10px;font-weight:600;line-height:1.3;letter-spacing:.18em;text-transform:uppercase;color:var(--ink)}
.ev-credit::before,.ev-credit::after{content:"";position:absolute;width:var(--r);height:var(--r);background:radial-gradient(circle at 0 0,transparent calc(var(--r) - .5px),var(--bg) var(--r));pointer-events:none}
.ev-credit::before{right:0;top:calc(-1 * var(--r))}   /* the photo's corner above the tab */
.ev-credit::after{left:calc(-1 * var(--r));bottom:0}  /* the photo's corner left of the tab */
.ev-credit .in{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-credit .lbl{font-weight:500;color:var(--muted)}
.ev-credit a{border-bottom:1px solid transparent;transition:border-color .2s}
.ev-credit a:hover{border-bottom-color:currentColor}
.ev-type{display:inline-flex;align-items:center;height:30px;padding:0 12px;border-radius:999px;background:var(--accent-wash);font-size:13px;font-weight:600;color:var(--accent);transition:box-shadow .2s}
.ev-type:hover{box-shadow:inset 0 0 0 1px currentColor}
.ev-title{margin-top:18px;font-family:var(--display);font-size:clamp(36px,4.2vw,58px);line-height:1;letter-spacing:-.04em}
.ev-lede{margin-top:14px;font-size:17px;color:var(--ink-2)}
.ev-lede .ka{margin-left:6px;font-size:15px;color:var(--faint)}
.ev-facts{margin-top:30px;border-top:1px solid var(--line)}
.ev-facts li{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}
.ic{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--surface)}
.ev-facts b{display:block;font-size:16px;font-weight:600}
.ev-facts span:not(.ic){font-size:14px;color:var(--muted)}
/* the type on the left, Save · Share on the right: small labelled tools instead of icon circles */
.ev-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ev-tools{display:flex;gap:2px;margin-right:-10px}
.tool{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px;border-radius:999px;font-size:14px;font-weight:500;color:var(--ink-2);transition:background .2s,color .2s}
.tool:hover{background:var(--surface);color:var(--ink)}
.tool svg.lucide{width:16px;height:16px}
.tool .on,.tool[aria-pressed="true"] .off{display:none}
.tool[aria-pressed="true"] .on{display:inline}
.tool[aria-pressed="true"]{color:var(--accent)}
.tool[aria-pressed="true"] svg{fill:currentColor}
/* where the event itself lives: the photo credit's tab, in red. The facts end on a red rule and the tab
   hangs from its right end, growing out of it through a concave curve, the way the credit grows out of the
   photo. White caps on it; the whole tab is the link. */
.ev-facts li:last-child{border-bottom:2px solid var(--accent)}
.ev-source{--r:14px;--tab:var(--accent);position:relative;display:grid;grid-template-columns:minmax(0,auto) auto;align-items:center;gap:3px 14px;width:fit-content;max-width:calc(100% - var(--r));margin-left:auto;padding:11px 16px 13px 20px;border-bottom-left-radius:var(--r);background:var(--tab);color:#fff;text-align:right;transition:background .2s}
.ev-source::before{content:"";position:absolute;top:0;left:calc(-1 * var(--r));width:var(--r);height:var(--r);background:radial-gradient(circle at 0 100%,transparent calc(var(--r) - .5px),var(--tab) var(--r));transition:background .2s}
.ev-source:hover{--tab:var(--accent-hover)}
.ev-source .lbl{grid-column:1;font-size:10px;font-weight:600;line-height:1.3;letter-spacing:.18em;text-transform:uppercase;opacity:.82}
.ev-source b{grid-column:1;font-size:14px;font-weight:700;line-height:1.3;letter-spacing:.12em;text-transform:uppercase;overflow-wrap:anywhere}
.ev-source svg.lucide{grid-column:2;grid-row:1/3;width:20px;height:20px;transition:transform .2s var(--ease)}
.ev-source:hover svg.lucide{transform:translate(2px,-2px)}
/* Showtimes: every date of a show that runs many times, one tile per day */
.ev-times{margin-top:44px;scroll-margin-top:calc(var(--hdr) + 20px)}
.ev-times h2{display:flex;align-items:baseline;gap:10px;font-family:var(--display);font-size:22px;letter-spacing:-.02em}
.ev-times h2 span{font-family:var(--ui);font-size:14px;font-weight:500;letter-spacing:0;color:var(--muted);font-variant-numeric:tabular-nums}
.ev-times ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px;margin-top:14px}
.ev-times li{display:flex;flex-direction:column;gap:3px;padding:11px 14px;border:1px solid var(--line);border-radius:16px}
.ev-times li b{font-size:14px;font-weight:600}
.ev-times li span{font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.ev-times li.is-today{border-color:var(--ink)}
/* links inside a fact's second line: "19 more showings", "Tickets on the organiser's site" */
.fact-link{color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px;transition:text-decoration-color .2s}
.fact-link:hover{text-decoration-color:currentColor}
.ev-about{margin-top:44px}
.ev-about h2{font-family:var(--display);font-size:22px;letter-spacing:-.02em}
.ev-about p{margin-top:12px;font-size:16.5px;line-height:1.7;color:var(--ink-2)}
.ev-org,.ev-map{display:flex;align-items:center;gap:14px;padding:14px;border-radius:18px}
.ev-org{margin-top:28px;border:1px solid var(--line)}
.ev-map{margin-top:10px;background:var(--surface)}
.ev-map .ic{background:#fff}
.ev-org div,.ev-map div{flex:1;min-width:0}
.ev-org span:not(.avatar),.ev-map div span{display:block;font-size:13px;color:var(--muted)}
.ev-org b,.ev-map b{font-size:15px;font-weight:600}
.ev-map a{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--accent);white-space:nowrap}
.ev-map a svg.lucide{width:16px;height:16px}
.avatar{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;font-size:14px;font-weight:600}
.more{margin-top:clamp(72px,9vw,120px)}
.more-h{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px}
.more-h h2{font-family:var(--display);font-size:clamp(24px,2.6vw,32px);letter-spacing:-.03em}
.more-h a{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600}
.more-h a:hover{color:var(--accent)}

/* ── settings page ──────────────────────────────────────── */
.page-head{padding:clamp(36px,5vw,56px) 0 24px}
.page-head h1{font-family:var(--display);font-size:clamp(32px,3.6vw,44px);line-height:1.05;letter-spacing:-.035em}
.page-head p{margin-top:10px;font-size:15.5px;color:var(--muted)}
.page-head .proverb{max-width:620px;margin-top:14px;font-size:17px;line-height:1.5;color:var(--ink-2)}
.page-head .proverb .ka{margin:0 2px 0 0;font-size:17px;font-weight:600;vertical-align:baseline;color:var(--accent)}
.page-head .proverb+p{margin-top:6px;font-size:14px}
.page-head h1 .ka{margin-left:10px;font-size:.42em;font-weight:400;letter-spacing:0;color:var(--faint);vertical-align:.35em}
.settings{display:grid;gap:14px;max-width:820px}
.set-card{padding:clamp(22px,3vw,32px);border:1px solid var(--line);border-radius:28px}
.set-card h2{font-family:var(--display);font-size:20px;letter-spacing:-.02em}
.set-card>p{margin-top:4px;font-size:14px;color:var(--muted)}
.opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.opt{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;border:1px solid var(--line-2);border-radius:999px;background:#fff;font-size:14.5px;font-weight:500;transition:border-color .2s,background .2s,color .2s}
.opt .ka{font-size:12.5px;font-weight:400;color:var(--faint)}
.opt:hover{border-color:var(--ink)}
/* settings options are real radio inputs inside labels */
label.opt{cursor:pointer}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt:has(input:checked),.opt.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.opt:has(input:checked) .ka,.opt.is-on .ka{color:rgba(255,255,255,.6)}
.opt:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.opt.is-off{border-style:dashed;color:var(--faint);cursor:default}
.opt.is-off:hover{border-color:var(--line-2)}
.opt em{padding:2px 8px;border-radius:999px;background:var(--surface);font-size:11px;font-style:normal;font-weight:600;color:var(--muted)}
.set-actions{display:flex;align-items:center;gap:10px;max-width:820px;margin-top:6px;padding:18px 0}

/* ── one figure per page, in Pirosmani's manner ───────────
   Fixed to the bottom-right corner of the screen, faint, under the
   cards and text, like a watermark. JS picks it by city and fades it. */
body{position:relative}
/* pinned to the very bottom of the page: it appears as you reach the footer */
.bg-figure{position:absolute;right:0;bottom:0;z-index:0;pointer-events:none;user-select:none;opacity:0;transition:opacity .6s var(--ease)}
.bg-figure.is-on{opacity:.3}
/* the figure's name, set vertically in the right margin like a label on a frame */
.bg-label{position:absolute;right:clamp(10px,1.4vw,22px);bottom:28px;z-index:2;display:flex;align-items:center;gap:10px;writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;pointer-events:none;opacity:0;transition:opacity .6s var(--ease)}
.bg-label.is-on{opacity:1}
.bg-label b{font-size:13px;font-weight:600;color:var(--accent)}
.bg-label span{font-size:11px;letter-spacing:.04em;color:var(--muted)}
.bg-figure.is-tall{width:auto;height:min(78vh,820px)}
.bg-figure.is-wide{width:min(38vw,540px);height:auto}
.bg-figure.f-cow{bottom:calc(min(38vw,540px) * -.07)}   /* empty strip under the hooves */
.bg-figure.f-bear{bottom:calc(min(38vw,540px) * -.15)}
main,.foot{position:relative;z-index:1}

/* ── footer ─────────────────────────────────────────────── */
.foot{margin-top:clamp(40px,5vw,64px);padding:32px 0 28px}
.foot-top{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.6fr;gap:40px}  /* the empty 4th column is where the figure stands */
.foot-tag{max-width:360px;margin-top:14px;font-size:14.5px;color:var(--muted)}
.foot-tag .ka{color:var(--ink);font-weight:500}
.foot-col{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.foot-col h4{margin-bottom:10px;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.foot-col a{padding:4px 0;font-size:14.5px;color:var(--ink-2)}
.foot-col a:hover{color:var(--ink)}
.foot-col a[aria-disabled="true"]{color:var(--faint)}
.foot-base{display:flex;justify-content:space-between;gap:16px;margin-top:44px;font-size:12.5px;color:var(--muted)}

.toast{position:fixed;left:50%;bottom:28px;z-index:60;padding:12px 18px;border-radius:999px;background:var(--ink);color:#fff;font-size:14px;font-weight:500;opacity:0;pointer-events:none;transform:translate(-50%,16px);transition:opacity .25s,transform .25s var(--ease)}
.toast.is-on{opacity:1;transform:translate(-50%,0)}

/* ── responsive ─────────────────────────────────────────── */
@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:860px){
  .nav{gap:16px}
  .cities{flex-basis:100%;margin:0 calc(-1*var(--gutter));padding:0 var(--gutter)}
  .fb-right{margin-left:0;width:100%}
  .fb-right .dd{flex:1}
  .fb-right .dd-btn{width:100%;justify-content:flex-start}
  .fb-right .dd-btn .chev{margin-left:auto}
  .fb-right>.dd-btn{flex:none;width:auto}
  /* tablet: the calendar spans the filter bar and shows one month, so it never leaves the screen */
  .fb-in{position:relative}
  .dd{position:static}
  .pop{left:var(--gutter);right:var(--gutter);top:calc(100% - 2px);width:auto}
  .months{grid-template-columns:minmax(0,1fr)}
  .month+.month{display:none}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
  .ev-grid{grid-template-columns:minmax(0,1fr)}
  .ev-media{position:relative;top:0}
  .ev-photo{aspect-ratio:5/4}
  .foot-top{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:1/-1}
}
@media (max-width:640px){
  /* icon-only on phones: labels stay for screen readers, targets are 44px */
  .nav a .lbl{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .nav svg.lucide{display:block;width:19px;height:19px}
  .nav a{justify-content:center;min-width:44px;height:44px;color:var(--ink-2)}
  .nav{gap:0}
  .lang summary{height:44px}
  .fb-in{gap:10px}
  .city{height:38px}
  .dd-btn{height:40px;padding:0 12px}
  .cats .dd-btn.cat{padding:0 11px}
  .dd-btn.cat svg.lucide{display:none}  /* words only, so both fit next to the dates */
  /* popovers become bottom sheets; backdrop-filter would trap position:fixed inside the bar */
  .filterbar{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}
  .scrim{background:rgba(17,17,17,.28)}
  .pop{position:fixed;left:8px;right:8px;bottom:8px;top:auto;width:auto;max-height:calc(100vh - 72px);overflow-y:auto;padding:16px;border-radius:26px}
  .pop-when{grid-template-columns:minmax(0,1fr);width:auto}
  .presets{flex-direction:row;gap:6px;margin:0 -16px 14px;padding:0 16px 14px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
  .preset{flex:none;height:36px;border:1px solid var(--line-2);border-radius:999px}
  .preset[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
  .months{grid-template-columns:minmax(0,1fr)}
  .month+.month{display:none}
  .pop-foot{flex-wrap:wrap}
  .res-head{flex-direction:column;align-items:flex-start;padding-top:28px}
  .card-title{font-size:16px}
  .card-meta{font-size:12px}
  .card-place,.card-price{font-size:13px}
  .card-date{left:8px;top:8px;width:42px;height:46px;border-radius:12px;font-size:10px}
  .card-date b{font-size:18px}
  .save-btn{right:8px;top:8px;width:34px;height:34px}
  .save-btn svg.lucide{width:16px;height:16px}
  .elsewhere-h{flex-direction:column;align-items:flex-start}
  .ev-map{flex-wrap:wrap}
  /* phones: the figure stands beside the copyright line, clear of the footer links */
  .bg-figure.is-on{opacity:.3}
  .bg-label{display:none}
  .bg-figure.is-tall{height:200px}
  .bg-figure.is-wide{width:46vw}
  .bg-figure.f-cow{bottom:-3.2vw}
  .bg-figure.f-bear{bottom:-6.9vw}
  .foot-base{flex-direction:column;justify-content:flex-end;min-height:190px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}
