/* ---------- Vietos: the list and the map together (point 8, design/vietos-zemelapis.html, layout A chosen 2026-10-21) ----------
   .has-map is set by venue-map.js once the map works; without it the page is the plain list. Loaded after MapLibre's own
   stylesheet (only on Vietos), so these rules win over it. */
.vm { --max: 420px; --min: 170px; --cut: 0px; }
.vm-map-wrap { position: relative; z-index: 5; }
.vm-map { position: absolute; inset: 0; background: #FAFAF9; }
.vm-frame { position: absolute; left: 0; right: 0; top: 0; height: calc(100% - var(--cut)); border: 1.5px solid var(--ink); border-radius: 16px; pointer-events: none; z-index: 3; }
.vr-pin { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: 8px; vertical-align: 4px; }
.vr-pin.is-none { background: none; border: 1.5px solid var(--faint); }
/* computers: beside the list, from the top of the page, staying in view */
.vm.is-side { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); grid-template-areas: "head map" "list map"; gap: 0 32px; align-items: start; }
.vm.is-side .vm-head { grid-area: head; }
.vm.is-side .vm-list { grid-area: list; }
.vm.is-side .vm-map-wrap { grid-area: map; position: sticky; top: calc(16px + var(--abh, 0px)); height: min(calc(100vh - 32px - var(--abh, 0px)), 820px); border-radius: 16px; overflow: hidden; }
.vm.is-side .city-group { grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
.vm.is-side .city-name { padding-top: 0; font-size: 32px; }
.vm.is-side .venue-row { grid-template-columns: minmax(0, 1fr) 192px 24px; grid-template-areas: "name next arr" "addr next arr"; gap: 3px 14px; }
.vm.is-side .vr-name { grid-area: name; font-size: 24px; }
.vm.is-side .vr-addr { grid-area: addr; }
.vm.is-side .vr-next { grid-area: next; }
.vm.is-side .vr-arr { grid-area: arr; }
/* phones and narrow screens: on top; it gets lower as the page scrolls and the list slides under it */
.vm.is-top .vm-map-wrap { margin-top: 32px; position: sticky; top: var(--abh, 0px); height: var(--max); margin-bottom: calc(var(--min) - var(--max)); clip-path: inset(0 0 var(--cut) 0 round 16px); background: var(--paper); }
.vm.is-top .vm-map { transform: translateY(calc(var(--cut) / -2)); }
.vm.is-top .vm-list { padding-top: calc(var(--max) - var(--min)); }
@media (max-width: 760px) {
  .vm.has-map { --max: 46vh; --min: 150px; }
  .vm.is-top .vm-map-wrap { margin-left: calc(-1 * var(--pad) + 8px); margin-right: calc(-1 * var(--pad) + 8px); }
}
/* a venue row and its pin light up together */
.vm.has-map .venue-row { transition: background-color .25s; border-radius: 10px; }
.venue-row.is-on .vr-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.venue-row.is-flash { background: color-mix(in srgb, var(--accent) 16%, var(--paper)); }
/* pins: a blue dot with a white ring (hollow: no gigs coming up); the name shows on hover or on the lit row */
.pin { width: 0; height: 0; cursor: pointer; }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { outline: 3px solid var(--accent); outline-offset: 2px; }
.pin-dot { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 35%, transparent); transition: transform .2s, background-color .2s; }
.pin.is-quiet .pin-dot { background: #fff; border-color: var(--accent); border-width: 3px; box-shadow: none; }
.pin-label { position: absolute; left: 14px; top: -15px; white-space: nowrap; padding: 3px 11px 4px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.15; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.pin.label-left .pin-label { left: auto; right: 14px; transform: translateX(4px); }
.pin:hover, .pin.is-on, .pin:focus-visible { z-index: 4; }
.pin:hover .pin-dot, .pin.is-on .pin-dot { transform: scale(1.35); }
.pin:hover .pin-label, .pin.is-on .pin-label, .pin:focus-visible .pin-label { opacity: 1; transform: none; }
/* far out (all of Lithuania): one pill per town instead of the pins */
.town { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 13px 5px 9px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink);
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.1; color: var(--ink); transition: background-color .15s; }
.town::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.town:hover { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }
.vm-map.is-far .pin, .vm-map:not(.is-far) .town { display: none; }
/* the town buttons on the map */
.vm-towns { position: absolute; left: 12px; top: 12px; z-index: 4; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.vm-towns button { padding: 6px 13px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.vm-towns button:hover { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }
.vm-towns button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.vm.is-top .vm-towns { top: auto; bottom: calc(var(--cut) + 12px); }
/* the map's own buttons and credits, in the site's style */
.vm .maplibregl-ctrl-group { border-radius: 999px; border: 1.5px solid var(--ink); box-shadow: none; overflow: hidden; }
.vm .maplibregl-ctrl-group button { width: 34px; height: 34px; }
.vm .maplibregl-ctrl-attrib { font-family: var(--sans); font-size: 11px; }
.vm .maplibregl-ctrl-top-right { top: 4px; right: 4px; }
.vm.is-top .maplibregl-ctrl-bottom-right { bottom: calc(var(--cut) / 2); }            /* the map is drawn half a "cut" higher */
.vm.is-top .maplibregl-ctrl-top-right { top: calc(var(--cut) / 2 + 4px); }
.vm .maplibregl-cooperative-gesture-screen { font-family: var(--sans); font-size: 18px; border-radius: 16px; }
@media (max-width: 760px) {
  .vm-towns { left: 8px; flex-wrap: nowrap; overflow-x: auto; max-width: calc(100% - 16px); scrollbar-width: none; }
  .vm-towns button { flex: none; padding: 5px 11px; font-size: 12px; }
  .vm.is-top .vm-towns { bottom: calc(var(--cut) + 8px); }
  .vm .maplibregl-ctrl-top-right .maplibregl-ctrl-group { display: none; }        /* two fingers zoom on phones */
}
@media (prefers-reduced-motion: reduce) { .pin-dot, .pin-label, .vm.has-map .venue-row { transition: none; } }
