/* Doplnkové štýly, ktoré sa nedajú pohodlne zapísať utilitami Tailwindu */


/* Číslo kandidáta ako zakrúžkované číslo na hlasovacom lístku */
.ballot-num {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
}
.ballot-num::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent, #f3ba4b);
  border-radius: 50%;
  transform: rotate(-8deg) scale(1.02, .94);
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
}
.ballot-num.big { width: 3.75rem; height: 3.75rem; font-size: 1.6rem; background: #fff; border-radius: 50%; }
.ballot-num.big::before { border-width: 4px; }

/* Popisky v mape */
.obvod-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 800 22px/1 "Myriad Pro", "Source Sans 3", system-ui, sans-serif;
  color: var(--c);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff;
  white-space: nowrap;
}
.okrsok-label span {
  display: inline-block;
  transform: translate(-50%, -50%);
  font: 700 12px/1 "Myriad Pro", "Source Sans 3", system-ui, sans-serif;
  color: #1e293b;
  background: rgba(255,255,255,.85);
  border: 1px solid #94a3b8;
  border-radius: 999px;
  padding: 3px 6px;
}
.leaflet-div-icon.obvod-label,
.leaflet-div-icon.okrsok-label,
.leaflet-div-icon.room-icon,
.leaflet-div-icon.home-pin { background: none; border: 0; }

.room-icon span {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 2px solid #334155;
  font-size: 16px; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Špendlík domova */
.home-pin span {
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  background: var(--color-accent, #f3ba4b);
  border: 3px solid #0f172a;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
}
.home-pin span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  background: #0f172a; border-radius: 50%;
}

.leaflet-container { font: inherit; }
.leaflet-popup-content { font-size: 15px; line-height: 1.4; }

/* Väčšie ovládanie zoomu pre dotyk a starších používateľov */
.leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
.room-icon.legend span { width: 22px; height: 22px; border-width: 1.5px; }
.room-icon.legend svg { width: 13px; height: 13px; }

/* ---------- Hlasovacie lístky: mesto = biely, kraj = svetlomodrý s modrým pásikom ---------- */
.ballot {
  --paper: #ffffff;
  --edge: #cbd5e1;
  --stripe: transparent;
  --ink: #0f172a;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 6px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 6px 18px -8px rgba(15,23,42,.25);
}
.ballot-kraj {
  --paper: #e6f1fb;
  --edge: #9cc3e8;
  --stripe: #3b82c4;
  padding-top: 1.6rem;
}
.ballot-kraj::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: .7rem;
  background: var(--stripe);
  border-radius: 6px 6px 0 0;
}
.ballot-head { border-bottom: 2px solid var(--ink); padding-bottom: .6rem; }
.ballot-kicker { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #475569; font-weight: 700; }
.ballot-kraj .ballot-kicker { color: #1e5f9c; }
.ballot-title { font-size: 1.25rem; font-weight: 800; line-height: 1.2; margin-top: .15rem; text-wrap: balance; }
.ballot-sub { font-size: .95rem; color: #334155; margin-top: .2rem; }
.ballot-rule { margin-top: .7rem; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ballot-nums { display: inline-flex; flex-wrap: wrap; gap: .35rem; }

.cand-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem .6rem;
  background: rgba(255,255,255,.75);
  border: 1px dashed var(--edge);
  border-radius: 6px;
}
.ballot-mesto .cand-row { background: #fff; }
.cand-photo { width: 4.5rem; height: 4.5rem; border-radius: 10px; flex-shrink: 0; background: #e2e8f0; }
.cand-initials { display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; color: var(--color-brand, #0b4ea2); background: #e8eef8; }
@media (min-width: 640px) { .cand-photo { width: 5.25rem; height: 5.25rem; } }

.ballot-num.sm { width: 2.4rem; height: 2.4rem; font-size: 1.05rem; background: #fff; border-radius: 50%; }
.ballot-num.sm::before { border-width: 2.5px; }

/* Úvod "Ako voliť" s urnami */
.howto { background: #fff; border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.urn { display: flex; gap: .75rem; align-items: center; border-radius: .9rem; padding: .8rem; line-height: 1.3; font-size: .95rem; }
.urn-mesto { background: #fff; border: 2px solid #94a3b8; }
.urn-kraj  { background: #e6f1fb; border: 2px solid #3b82c4; }
.urn-label { font-weight: 700; }
.urn-kraj .urn-label { color: #1e5f9c; }
.urn-sheets { position: relative; width: 2.6rem; height: 3.2rem; flex-shrink: 0; }
.urn-sheets span {
  position: absolute; width: 2rem; height: 2.7rem; border-radius: 3px;
  border: 1.5px solid #64748b; background: #fff;
}
.urn-sheets span:nth-child(2) { left: .45rem; top: .4rem; }
.urn-kraj .urn-sheets span { background: #e6f1fb; border-color: #3b82c4; box-shadow: inset 0 5px 0 #3b82c4; }

/* Heslo ako na letákoch: biely tučný Myriad Pro na žltom páse */
.slogan {
  display: inline-block;
  background: var(--color-accent, #f3ba4b);
  color: #fff;
  font-family: "Myriad Pro", "Source Sans 3", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 5vw, 2rem);
  line-height: 1;
  letter-spacing: .01em;
  padding: .32em .5em .28em;
  white-space: nowrap;
}

/* ---------- Vizuál kampane: bledá fotka mesta, tmavomodrá, žltá, biela ---------- */
:root { --navy: #08275d; --gold: #f3ba4b; --pale: #eef3f9; }
body { background: var(--pale); }
.hero { background: var(--navy); }
.hero-top {
  position: relative;
  background:
    linear-gradient(90deg, rgba(244,248,252,.75) 0%, rgba(244,248,252,.35) 45%, rgba(244,248,252,0) 70%),
    var(--hero-bg, linear-gradient(180deg, #f4f8fc 0%, #dfe9f4 100%)) center 58% / cover no-repeat;
  color: var(--navy);
}
.hero-title { font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: .98; text-transform: uppercase; color: var(--navy); }
.hero-title span { display: block; }
.hero-title .light { font-weight: 400; }
.hero-title .bold { font-weight: 800; }
.hero-lead { font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.3rem); line-height: 1.3; color: var(--navy); }
.hero-wave { display: block; width: 100%; height: clamp(34px, 6vw, 70px); margin-top: calc(-1 * clamp(34px, 6vw, 70px)); position: relative; }
.hero-bottom { background: var(--navy); }

/* Čísla ako na plagáte: žltý kruh, biela výplň, tmavomodré číslo */
.ballot-num { color: var(--navy); }
.ballot-num::before { transform: none; border-color: var(--gold); background: #fff; z-index: -1; }
.ballot-num { isolation: isolate; }

@media (max-width: 639px) {
  .hero-top { --hero-bg: var(--hero-bg-m); background-position: 65% 55%; }
}
