/* ============================================================
   Dzieje się — system wizualny (festiwalowy plakat × produkt)
   Projekt demonstracyjny (portfolio GroDev)
   ============================================================ */

:root {
    --ink: #15103A;          /* granat-fiolet: tekst, hero */
    --ink-soft: #3B3563;
    --magenta: #FF2D6E;      /* główny akcent marki */
    --amber: #FFB627;
    --mint: #2BD9B4;
    --fog: #F6F4FB;          /* lawendowy off-white: tło */
    --white: #FFFFFF;
    --line: #E7E3F2;
    --muted: #6B6685;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(21, 16, 58, .06);
    --shadow-md: 0 10px 30px rgba(21, 16, 58, .10);
    --shadow-lg: 0 24px 60px rgba(21, 16, 58, .18);

    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--fog);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0 0 .4em; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

.font-num { font-variant-numeric: tabular-nums; }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
    background: repeating-linear-gradient(45deg, var(--ink), var(--ink) 14px, #1d1850 14px, #1d1850 28px);
    color: #fff;
    font-size: .72rem;
    letter-spacing: .04em;
    text-align: center;
    padding: 5px 12px;
    font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.brand__name--sm { font-size: 1.1rem; color: #fff; }
.brand__dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--magenta);
    box-shadow: 0 0 0 0 rgba(255, 45, 110, .55);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 45, 110, .5); }
    70% { box-shadow: 0 0 0 12px rgba(255, 45, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 45, 110, 0); }
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }
.site-nav__link:hover { background: var(--fog); color: var(--ink); }
.site-nav__link.is-active { color: var(--magenta); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px;
    font-family: var(--font-body); font-weight: 600; font-size: .95rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--magenta); color: #fff; box-shadow: 0 6px 18px rgba(255, 45, 110, .35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 45, 110, .45); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Flash ---------- */
.flash { margin: 18px 0; padding: 16px 20px; border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.flash--success { background: #E7FBF4; border: 1px solid #BFEFE0; color: #0C5B47; }

/* ---------- Hero (home) ---------- */
.hero {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(255, 45, 110, .5), transparent 60%),
        radial-gradient(700px 380px at 8% 120%, rgba(43, 217, 180, .35), transparent 60%),
        var(--ink);
    color: #fff;
    padding: 46px 0 26px;
}
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; max-width: 16ch; }
.hero p.lead { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 56ch; margin: 0 0 22px; }

/* ---------- Filtry: oś czasu + kategorie ---------- */
.filters { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .55); margin-right: 4px; font-weight: 600; }

.chip {
    --chip-color: #fff;
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 15px; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .08); color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .16);
    font-weight: 600; font-size: .9rem; line-height: 1;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
    user-select: none;
}
.chip:hover { background: rgba(255, 255, 255, .16); }
.chip .ico { width: 15px; height: 15px; }
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--chip-color); }
.chip.is-active { background: #fff; color: var(--ink); border-color: #fff; }
.chip--time.is-active { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.results-line { margin-top: 18px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.results-line strong { color: #fff; }

/* ---------- Discover: split mapa ↔ lista ---------- */
.discover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 0; align-items: start; }
.discover__list { padding: 22px 0 60px; }
.discover__map-col { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); min-height: 520px; }
#map { width: 100%; height: 100%; background: #e9e6f2; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-head h2 { font-size: 1.15rem; margin: 0; }
.list-head .count { color: var(--muted); font-weight: 600; font-size: .9rem; }

.cards { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Karta wydarzenia (lista) ---------- */
.ev-card {
    display: grid; grid-template-columns: 92px 1fr; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 12px; box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .2s ease, border-color .15s ease;
    cursor: pointer; position: relative; overflow: hidden;
}
.ev-card:hover, .ev-card.is-hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.ev-card.is-hover { outline: 2px solid var(--magenta); outline-offset: -1px; }
.ev-card__media { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: var(--fog); flex-shrink: 0; }
.ev-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-card__body { min-width: 0; }
.ev-card__cat { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ev-card__cat .ico { width: 13px; height: 13px; }
.ev-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 4px 0 4px; line-height: 1.2; color: var(--ink); }
.ev-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .85rem; }
.ev-card__meta b { color: var(--ink); font-weight: 600; }
.ev-card__when { color: var(--ink); font-weight: 600; }
.ev-card.is-hidden { display: none; }

.badge-today { background: var(--mint); color: #06352a; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.price-tag { font-weight: 700; }
.price-tag--free { color: #0C8C6C; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.empty svg { width: 46px; height: 46px; opacity: .4; margin-bottom: 10px; }

/* ---------- Leaflet markery ---------- */
.dz-marker { background: none !important; border: none !important; }
.dz-marker__pin {
    --c: var(--magenta);
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--c);
    display: grid; place-items: center;
    box-shadow: 0 4px 10px rgba(21, 16, 58, .35); border: 2.5px solid #fff;
    transition: transform .15s ease, box-shadow .15s ease;
}
.dz-marker__pin svg { width: 18px; height: 18px; color: #fff; }
.dz-marker.is-active .dz-marker__pin, .dz-marker:hover .dz-marker__pin {
    transform: scale(1.28); z-index: 600;
    box-shadow: 0 0 0 4px rgba(255, 45, 110, .3), 0 8px 18px rgba(21, 16, 58, .4);
}
.dz-cluster { background: none; }
.dz-cluster div {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--ink); color: #fff; border: 2px solid #fff;
    display: grid; place-items: center; font-family: var(--font-display);
    font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-md);
}

/* Leaflet popup w stylu marki */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 0; width: 230px !important; }
.map-pop { padding: 0; }
.map-pop__media { height: 96px; background: var(--fog); }
.map-pop__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-pop__body { padding: 10px 12px 12px; }
.map-pop__cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.map-pop__title { font-family: var(--font-display); font-weight: 600; font-size: .98rem; margin: 3px 0 5px; line-height: 1.2; }
.map-pop__when { color: var(--muted); font-size: .82rem; }
.map-pop a.map-pop__link { display: inline-block; margin-top: 8px; color: var(--magenta); font-weight: 700; font-size: .85rem; }

/* ---------- Strona szczegółów ---------- */
.detail { padding: 0 0 70px; }
.detail__cover { height: clamp(220px, 38vw, 420px); background: var(--ink); position: relative; }
.detail__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 38px; margin-top: -60px; position: relative; }
.detail__card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 30px; }
.detail__cat { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; color: #fff; }
.detail h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 16px 0 10px; }
.detail__desc { font-size: 1.06rem; color: #2c2747; }
.detail__params { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.detail__params li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail__params li:last-child { border-bottom: 0; }
.detail__params .k { color: var(--muted); width: 120px; flex-shrink: 0; font-size: .9rem; }
.detail__params .v { font-weight: 600; }
.detail__aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.aside-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 22px; }
.aside-card + .aside-card { margin-top: 18px; }
.aside-price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
#mini-map { height: 200px; border-radius: var(--r-md); margin-top: 12px; }

.section-title { font-size: 1.3rem; margin: 50px 0 18px; }

/* ---------- Formularz dodawania ---------- */
.form-page { padding: 36px 0 70px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.form-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--magenta); }
.input, .textarea, .select {
    width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    font-family: var(--font-body); font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(255, 45, 110, .15); }
.textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.help { font-size: .82rem; color: var(--muted); margin-top: 5px; }
.error { color: #D92D54; font-size: .82rem; margin-top: 5px; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: #D92D54; }
.check { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--magenta); }

.picker-card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.picker-card h3 { font-size: 1.05rem; }
#pick-map { height: 360px; border-radius: var(--r-md); margin-top: 10px; cursor: crosshair; }
.coords { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.coords b { color: var(--ink); }

/* ---------- Archiwum „Było — minęło" ---------- */
.archive { padding: 40px 0 70px; }
.archive__head { text-align: center; margin-bottom: 30px; }
.archive__head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.archive__head p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.arch-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.arch-card__media { height: 140px; filter: grayscale(.65) contrast(.95); }
.arch-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-card__stamp { position: absolute; top: 12px; right: 12px; background: rgba(21, 16, 58, .82); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; transform: rotate(4deg); }
.arch-card__body { padding: 14px 16px 16px; }
.arch-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; margin: 6px 0; }
.arch-card__meta { color: var(--muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); margin-top: 30px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 30px; padding: 36px 0; flex-wrap: wrap; }
.site-footer p { margin: 6px 0; font-size: .9rem; max-width: 46ch; }
.site-footer a { color: var(--mint); }
.site-footer__meta { text-align: right; }

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
    .discover { grid-template-columns: 1fr; }
    .discover__map-col { position: relative; top: 0; height: 56vh; min-height: 380px; order: -1; border-radius: var(--r-md); overflow: hidden; margin-top: 18px; box-shadow: var(--shadow-md); }
    .detail__grid { grid-template-columns: 1fr; gap: 22px; }
    .detail__aside { position: relative; top: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .picker-card { position: relative; top: 0; }
}
@media (max-width: 640px) {
    .site-header__inner { height: auto; flex-wrap: wrap; justify-content: center; padding: 10px 0; gap: 6px 12px; }
    .site-nav { flex-wrap: wrap; justify-content: center; gap: 6px; }
    .site-nav .btn { padding: 8px 14px; font-size: .85rem; }
    .site-nav__link { padding: 6px 10px; font-size: .88rem; }
}

@media (max-width: 560px) {
    .site-footer__meta { text-align: left; }
    .field-row { grid-template-columns: 1fr; }
    .ev-card { grid-template-columns: 72px 1fr; }
    .ev-card__media { width: 72px; height: 72px; }
}

/* ============================================================
   SEANS — tryb kinowy (player osi czasu + mapa dzień/noc + lot kamery)
   ============================================================ */
.leaflet-tile-pane { transition: filter .6s ease; }

.map-vignette {
    position: absolute; inset: 0; pointer-events: none; z-index: 450;
    box-shadow: inset 0 0 120px 24px rgba(8, 5, 26, 0);
    transition: box-shadow 1s ease;
}
.discover__map-col.is-night .map-vignette { box-shadow: inset 0 0 150px 40px rgba(6, 4, 22, .58); }

/* --- stany pinezek w czasie --- */
.dz-marker__pin { transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease, filter .25s ease; }
.dz-marker.s-upcoming .dz-marker__pin { opacity: .42; transform: scale(.72); filter: saturate(.55); }
.dz-marker.s-soon .dz-marker__pin { opacity: .95; animation: dz-soon 1.1s ease-in-out infinite; }
.dz-marker.s-live .dz-marker__pin { opacity: 1; transform: scale(1.16); animation: dz-live 1.5s ease-in-out infinite; }
.dz-marker.s-past .dz-marker__pin { opacity: .26; filter: grayscale(1); transform: scale(.66); box-shadow: none; }
@keyframes dz-soon { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.08); } }
@keyframes dz-live {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .22), 0 0 16px 2px var(--c), 0 6px 14px rgba(0, 0, 0, .35); }
    50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0), 0 0 34px 10px var(--c), 0 6px 14px rgba(0, 0, 0, .35); }
}
.discover__map-col.is-night .dz-marker.s-live .dz-marker__pin,
.discover__map-col.is-night .dz-marker.s-soon .dz-marker__pin { border-color: #fff; }

/* --- stany kart listy --- */
.ev-card { transition: opacity .3s ease, outline-color .2s ease, transform .12s ease, box-shadow .2s ease, border-color .15s ease; }
.ev-card.s-live { outline: 2px solid var(--magenta); outline-offset: -1px; }
.ev-card.s-past { opacity: .45; }
.ev-card.s-live .ev-card__when::after { content: " · trwa"; color: var(--magenta); font-weight: 800; }

/* --- pasek transportu --- */
.seans {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 500;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 12px; color: #fff;
    background: rgba(21, 16, 58, .84); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
}
.seans__badge { font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--magenta); align-self: center; }
.seans__play {
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; flex-shrink: 0;
    background: var(--magenta); color: #fff; font-size: 1.05rem; line-height: 1; display: grid; place-items: center;
    box-shadow: 0 6px 18px rgba(255, 45, 110, .55); transition: transform .12s ease;
}
.seans__play:hover { transform: scale(1.07); }
.seans__track { flex: 1 1 220px; min-width: 160px; display: flex; flex-direction: column; gap: 5px; }
.seans__scrub { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); cursor: pointer; }
.seans__scrub::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 45, 110, .55); cursor: grab; }
.seans__scrub::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 45, 110, .55); }
.seans__clock { font-size: .8rem; color: rgba(255, 255, 255, .82); display: flex; gap: 8px; align-items: baseline; }
.seans__clock #seans-time { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; }
.seans__live { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.seans__live .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(43, 217, 180, .6); animation: pulse 1.8s infinite; }
.seans__scenes { display: flex; gap: 6px; }
.seans__speed { display: flex; gap: 4px; }
.seans__scenes button, .seans__speed button {
    background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 11px; border-radius: 999px; font-weight: 600; font-size: .8rem; cursor: pointer; transition: background .15s ease;
}
.seans__scenes button:hover, .seans__speed button:hover { background: rgba(255, 255, 255, .22); }
.seans__speed button.is-active { background: var(--amber); color: var(--ink); border-color: var(--amber); }

@media (max-width: 560px) {
    .seans { gap: 8px; padding: 9px 10px; }
    .seans__badge { display: none; }
    .seans__scenes { order: 4; }
}

/* ============================================================
   Narzędzia mapy: heatmapa pulsu / wokół mnie / trasa wieczoru
   ============================================================ */
.map-tools { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.map-tool {
    background: rgba(255, 255, 255, .95); color: var(--ink); border: 1px solid var(--line);
    border-radius: 999px; padding: 8px 13px; font-weight: 600; font-size: .85rem; cursor: pointer;
    box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, background .15s ease, color .15s ease; white-space: nowrap;
}
.map-tool:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.map-tool[aria-pressed="true"] { background: var(--magenta); color: #fff; border-color: var(--magenta); box-shadow: 0 6px 16px rgba(255, 45, 110, .4); }
.map-tool.is-loading { opacity: .65; cursor: wait; }

.geo-here { background: none !important; border: none !important; }
.geo-here__dot { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(37, 99, 235, .5); animation: pulse 2s infinite; }

.ev-card__dist { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); background: var(--fog); padding: 1px 8px; border-radius: 999px; font-size: .78rem; }

.route-panel {
    position: absolute; left: 14px; bottom: 86px; z-index: 500; width: 248px; max-width: calc(100% - 28px);
    background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 14px;
}
.route-panel[hidden] { display: none; }
.route-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.route-panel__head strong { font-family: var(--font-display); font-size: .98rem; }
.route-panel__head button { background: none; border: none; color: var(--magenta); font-weight: 600; cursor: pointer; font-size: .82rem; }
.route-stops { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 170px; overflow: auto; }
.route-stops li { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; }
.route-stops .n { width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: var(--magenta); color: #fff; font-weight: 700; font-size: .72rem; display: grid; place-items: center; }
.route-stops .t { font-weight: 600; line-height: 1.25; }
.route-panel__foot { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.route-panel__foot b { color: var(--ink); }

@media (max-width: 560px) {
    .map-tools { top: 10px; right: 10px; }
    .map-tool { padding: 7px 10px; font-size: .78rem; }
    .route-panel { bottom: 98px; width: 210px; }
}

/* ---------- Strona plakatu ---------- */
.poster-page { padding: 40px 0 70px; text-align: center; }
.poster-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.poster-head p { color: var(--muted); max-width: 50ch; margin: 0 auto; }
.poster-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 26px; }
.poster-img { width: min(420px, 92vw); border-radius: 18px; box-shadow: var(--shadow-lg); display: block; }
.poster-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Konsjerż „Zaplanuj mi wieczór" ---------- */
.concierge {
    display: flex; align-items: center; gap: 8px; margin-top: 18px; max-width: 680px;
    background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: 999px; padding: 6px 6px 6px 16px; backdrop-filter: blur(6px);
    transition: border-color .15s ease, background .15s ease;
}
.concierge:focus-within { border-color: var(--magenta); background: rgba(255, 255, 255, .14); }
.concierge__spark { font-size: 1.1rem; }
.concierge__input { flex: 1; min-width: 0; background: none; border: none; color: #fff; font-family: var(--font-body); font-size: .95rem; padding: 9px 4px; outline: none; }
.concierge__input::placeholder { color: rgba(255, 255, 255, .55); }
.concierge__btn { flex-shrink: 0; background: var(--magenta); color: #fff; border: none; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .92rem; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease; }
.concierge__btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 45, 110, .45); }
.concierge__btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .concierge { flex-wrap: wrap; border-radius: 18px; padding: 10px 12px; } .concierge__btn { width: 100%; } }

/* ---------- Panel planu wieczoru (wynik konsjerża) ---------- */
.plan-panel {
    position: absolute; top: 14px; left: 14px; z-index: 520; width: 300px; max-width: calc(100% - 28px);
    max-height: calc(100% - 110px); overflow: auto; color: #fff; padding: 16px 16px 14px;
    background: rgba(21, 16, 58, .93); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px;
    box-shadow: var(--shadow-lg); backdrop-filter: blur(10px);
}
.plan-panel[hidden] { display: none; }
.plan-panel__close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: rgba(255, 255, 255, .7); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.plan-panel__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding-right: 22px; }
.plan-panel__head strong { font-family: var(--font-display); font-size: 1.05rem; }
.plan-panel__badge { font-size: .62rem; font-weight: 800; letter-spacing: .1em; padding: 3px 8px; border-radius: 999px; background: var(--magenta); color: #fff; flex-shrink: 0; }
.plan-panel__badge.is-rules { background: var(--amber); color: var(--ink); }
.plan-panel__narration { font-size: .9rem; color: rgba(255, 255, 255, .86); margin: 0 0 12px; line-height: 1.5; }
.plan-stops { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-stops li { display: flex; gap: 9px; align-items: flex-start; }
.plan-stops .n { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: #fff; color: var(--ink); font-weight: 800; font-size: .74rem; display: grid; place-items: center; }
.plan-stops a { color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.25; }
.plan-stops a:hover { color: var(--mint); }
.plan-stops small { display: block; color: rgba(255, 255, 255, .6); font-weight: 500; margin-top: 1px; }
.plan-panel__foot { font-size: .8rem; color: rgba(255, 255, 255, .7); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 8px; }
@media (max-width: 560px) { .plan-panel { width: calc(100% - 20px); top: 10px; left: 10px; } }
