/* ============================================================
   aastavahetus.eu — stiilileht
   ============================================================ */

:root {
  --bg: #060912;
  --bg-2: #0a0f1f;
  --panel: rgba(14, 22, 43, 0.72);
  --panel-solid: #0d1529;
  --line: rgba(148, 163, 184, 0.15);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e9effc;
  --muted: #94a3bd;
  --muted-2: #6b7a99;
  --gold: #f6c96b;
  --gold-2: #ffd98a;
  --pink: #f472b6;
  --teal: #5eead4;
  --green: #6ee7b7;
  --radius: 22px;
  --header-h: 70px;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow-lg: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(99, 79, 214, 0.22), transparent 62%),
    radial-gradient(900px 520px at 6% 2%, rgba(13, 148, 136, 0.16), transparent 60%),
    var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

::selection {
  background: rgba(246, 201, 107, 0.32);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1288px;
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #14100a;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------- nupud ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 65%, #eab14a);
  color: #171204;
  box-shadow: 0 12px 30px -14px rgba(246, 201, 107, 0.85);
}

.btn-gold:hover {
  box-shadow: 0 18px 40px -16px rgba(246, 201, 107, 0.9);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(246, 201, 107, 0.5);
  background: rgba(246, 201, 107, 0.07);
}

.btn-sm {
  padding: 10px 17px;
  font-size: 0.87rem;
}

/* ---------------- päis ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(6, 9, 18, 0.94);
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: #060912;
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(246, 201, 107, 0.22), rgba(244, 114, 182, 0.16));
  border: 1px solid rgba(246, 201, 107, 0.4);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 8px;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

/* ---------------- uuendusteade ---------------- */

.update-banner {
  border-bottom: 1px solid rgba(246, 201, 107, 0.25);
  background: linear-gradient(90deg, rgba(246, 201, 107, 0.14), rgba(244, 114, 182, 0.1));
}

.update-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding-top: 9px;
  padding-bottom: 9px;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.update-banner-inner p {
  margin: 0;
}

.update-banner-inner strong {
  color: var(--gold);
  font-weight: 700;
}

.update-banner-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.update-banner-icon svg {
  width: 100%;
  height: 100%;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 96px;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.hero-glow {
  position: absolute;
  z-index: 0;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.2), rgba(99, 79, 214, 0.12) 42%, transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-dark {
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(244, 114, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 114, 182, 0); }
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 .grad {
  background: linear-gradient(100deg, #ffe1a3 4%, var(--gold) 38%, var(--pink) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 590px;
  margin-top: 22px;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 620px;
  margin-top: 30px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 16, 32, 0.94);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-search:focus-within {
  border-color: rgba(246, 201, 107, 0.65);
  box-shadow: 0 0 0 4px rgba(246, 201, 107, 0.1), 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}

.hero-search .search-ico {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.hero-search input::placeholder {
  color: var(--muted-2);
}

.hero-search .btn {
  padding: 14px 24px;
}

.hero-quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

.quick-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.79rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.quick-chip:hover {
  color: var(--text);
  border-color: rgba(246, 201, 107, 0.45);
  background: rgba(246, 201, 107, 0.08);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-stats li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-stats li + li::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* kellaloendus */

.countdown-card {
  position: relative;
  overflow: hidden;
  align-self: center;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(246, 201, 107, 0.1), transparent 55%),
    linear-gradient(160deg, rgba(24, 34, 68, 0.94), rgba(9, 14, 28, 0.97));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.countdown-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.22), transparent 70%);
  pointer-events: none;
}

.countdown-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.countdown-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-kicker svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
}

.countdown-year {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
}

.countdown-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 20px 0 16px;
}

.countdown-grid > div {
  padding: 15px 4px 12px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.countdown-grid span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c8d3ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.countdown-grid em {
  display: block;
  margin-top: 7px;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.countdown-date {
  position: relative;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.countdown-snow {
  position: absolute;
  inset: 0 0 -220px;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 45% 80%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 22%, rgba(255, 255, 255, 0.45) 50%, transparent 51%);
  background-size: 220px 220px, 260px 220px, 180px 220px, 300px 220px;
  animation: drift 26s linear infinite;
  will-change: transform;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -220px, 0); }
}

/* ---------------- sündmuste sektsioon ---------------- */

.events {
  position: relative;
  padding: 26px 0 100px;
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
}

.section-lead {
  max-width: 560px;
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.results {
  text-align: right;
  flex-shrink: 0;
}

#resultCount {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.results-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  color: var(--muted-2);
}

/* tööriistariba */

.toolbar {
  position: sticky;
  top: 82px;
  z-index: 40;
  margin-bottom: 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #080d1b;
  box-shadow: 0 22px 50px -34px rgba(0, 0, 0, 0.95);
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 220px;
  min-width: 190px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-field:focus-within {
  border-color: rgba(246, 201, 107, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 201, 107, 0.09);
}

.search-field svg {
  width: 17px;
  height: 17px;
  color: var(--muted-2);
  flex-shrink: 0;
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  outline: none;
}

.search-field input::placeholder {
  color: var(--muted-2);
}

.search-clear {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.search-clear:hover {
  color: var(--text);
}

.select-wrap {
  position: relative;
  flex-shrink: 0;
}

.select-wrap select {
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.035);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3bd' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  font-size: 0.85rem;
  appearance: none;
  cursor: pointer;
  max-width: 220px;
  transition: border-color 0.2s ease;
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.select-wrap select:focus {
  border-color: rgba(246, 201, 107, 0.55);
}

.select-wrap option {
  background: #0d1529;
  color: var(--text);
}

.fav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fav-toggle svg {
  width: 16px;
  height: 16px;
}

.fav-toggle span {
  min-width: 19px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  text-align: center;
}

.fav-toggle:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.fav-toggle.is-active {
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.5);
  background: rgba(244, 114, 182, 0.1);
}

.fav-toggle.is-active svg {
  fill: currentColor;
}

.view-toggle {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
}

.view-toggle button {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-toggle button.is-active {
  background: var(--gold);
  color: #171204;
  font-weight: 600;
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chip.is-active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #171204;
  font-weight: 600;
}

.chip-free {
  margin-left: auto;
  color: var(--green);
  border-color: rgba(110, 231, 183, 0.3);
}

.chip-free.is-active {
  background: var(--green);
  color: #06251b;
}

/* aktiivsed filtrid */

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.active-filters[hidden],
.active-filters-clear[hidden] {
  display: none;
}

.active-filters-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(246, 201, 107, 0.32);
  border-radius: 999px;
  background: rgba(246, 201, 107, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.2;
}

.active-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.active-chip {
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

button.active-chip:hover {
  border-color: rgba(246, 201, 107, 0.6);
  background: rgba(246, 201, 107, 0.14);
}

.active-chip-x {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

button.active-chip:hover .active-chip-x {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.active-chip.is-locked {
  padding-right: 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.active-chip:focus-visible,
.active-filters-clear:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.active-filters-clear {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.active-filters-clear:hover {
  color: var(--gold);
}

/* ---------------- paigutus ---------------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: start;
}

.list-panel {
  min-width: 0;
}

.list-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.data-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--muted-2);
}

.data-note svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
  flex-shrink: 0;
}

.reset-link {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.reset-link:hover {
  color: var(--gold);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 18px;
}

/* ---------------- kaardid ---------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 27, 52, 0.88), rgba(10, 16, 32, 0.96));
  box-shadow: 0 18px 38px -32px rgba(0, 0, 0, 0.9);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card:hover,
.card.is-hovered {
  transform: translateY(-4px);
  border-color: rgba(246, 201, 107, 0.38);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(246, 201, 107, 0.06);
}

.card-cover {
  position: relative;
  height: 132px;
  overflow: hidden;
  background:
    radial-gradient(120% 150% at 8% 0%, var(--c1, #f6c96b), transparent 58%),
    radial-gradient(120% 150% at 100% 100%, var(--c2, #f472b6), transparent 60%),
    linear-gradient(160deg, #101a35, #090e1d);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 16px);
  opacity: 0.55;
  pointer-events: none;
}

.card-emoji {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 52px;
  line-height: 1;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  opacity: 0.92;
}

.card-date {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(6, 9, 18, 0.9);
  line-height: 1;
}

.card-date strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.card-date em {
  margin-top: 3px;
  font-size: 0.6rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.card-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(6, 9, 18, 0.9);
  color: #fff;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card-fav svg {
  width: 17px;
  height: 17px;
}

.card-fav:hover {
  transform: scale(1.08);
  border-color: rgba(244, 114, 182, 0.6);
}

.card-fav.is-fav {
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.6);
  background: rgba(244, 114, 182, 0.16);
}

.card-fav.is-fav svg {
  fill: currentColor;
}

.card-free {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 1;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(6, 9, 18, 0.9);
  border: 1px solid rgba(110, 231, 183, 0.35);
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 18px 17px;
}

.card-meta {
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-meta span {
  margin: 0 3px;
  color: var(--muted-2);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 0.83rem;
  line-height: 1.52;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.82rem;
}

.card-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card-time svg {
  width: 14px;
  height: 14px;
}

.card-price {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.card-price.is-free {
  color: var(--green);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.card-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
}

.card-open svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.card-open:hover svg {
  transform: translateX(3px);
}

.card-link {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card-link svg {
  width: 14px;
  height: 14px;
}

.card-link:hover {
  color: var(--gold);
  border-color: rgba(246, 201, 107, 0.5);
}

/* tühi olek */

.empty {
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.empty-emoji {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.empty h3 {
  font-size: 1.3rem;
}

.empty p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------- kaart ---------------- */

.map-panel {
  position: sticky;
  top: 210px;
  min-width: 0;
}

#map {
  height: calc(100vh - 240px);
  min-height: 470px;
  max-height: 730px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #0a0f1f;
}

.map-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: #070b17;
  color: var(--muted);
  font-size: 0.72rem;
  pointer-events: none;
}

.map-hint svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

.map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

/* Leaflet */

.leaflet-container {
  background: #0a0f1f;
  font-family: var(--font-body);
}

.leaflet-control-attribution {
  background: rgba(6, 9, 18, 0.94) !important;
  color: #94a3bd !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #c4cfe5 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.leaflet-bar a,
.leaflet-bar a:hover {
  background: #0e1730;
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.2);
}

.leaflet-bar a:hover {
  background: #16213e;
}

.leaflet-bar {
  border-color: rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.map-pin {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pin, var(--gold));
  box-shadow: 0 0 0 5px rgba(246, 201, 107, 0.16), 0 6px 14px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-pin i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0a0f1f;
}

.map-marker-wrap.is-active .map-pin,
.map-marker-wrap:hover .map-pin {
  transform: scale(1.28);
  box-shadow: 0 0 0 9px rgba(246, 201, 107, 0.22), 0 8px 18px rgba(0, 0, 0, 0.6);
}

.ev-cluster {
  background: transparent;
}

.ev-cluster span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-2), #e0a63e);
  color: #171204;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 0 7px rgba(246, 201, 107, 0.16), 0 10px 20px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #0d1529;
  color: var(--text);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9);
}

.leaflet-popup-content {
  margin: 13px 15px;
  line-height: 1.4;
}

.leaflet-popup-tip {
  background: #0d1529;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.leaflet-popup-close-button {
  color: var(--muted) !important;
  padding: 6px 6px 0 0 !important;
}

.map-pop {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.map-pop-kicker {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.map-pop strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.25;
}

.map-pop > span:not(.map-pop-kicker) {
  color: var(--muted);
  font-size: 0.76rem;
}

.map-pop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 5px;
}

.map-pop-foot em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--gold);
}

.map-pop-foot button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #171204;
  font-size: 0.72rem;
  font-weight: 600;
}

.map-tooltip {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #0d1529;
  color: var(--text);
  font-size: 0.74rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.map-tooltip::before {
  border-top-color: #0d1529;
}

/* ---------------- piirkonnad ---------------- */

.hero-region .hero-copy {
  max-width: 760px;
}

.region-back {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--muted);
}

.region-back a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.regions {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.region-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 30px;
}

.region-group h3 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.region-link:hover {
  border-color: rgba(246, 201, 107, 0.45);
  background: rgba(246, 201, 107, 0.08);
  color: var(--text);
}

.region-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------------- nõuanded ---------------- */

.guide {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(900px 400px at 80% 100%, rgba(246, 201, 107, 0.07), transparent 60%),
    transparent;
  scroll-margin-top: 70px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(18, 27, 52, 0.7), rgba(9, 14, 28, 0.55));
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.guide-card:hover {
  border-color: rgba(246, 201, 107, 0.3);
  transform: translateY(-3px);
}

.guide-num {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(246, 201, 107, 0.28);
}

.guide-card h3 {
  margin: 14px 0 8px;
  font-size: 1.16rem;
  font-weight: 600;
}

.guide-card p {
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------------- korraldaja vorm ---------------- */

.submit-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 500px at 12% 20%, rgba(13, 148, 136, 0.12), transparent 65%),
    radial-gradient(700px 500px at 88% 80%, rgba(244, 114, 182, 0.08), transparent 65%);
  scroll-margin-top: 70px;
}

.submit-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.submit-copy h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.12;
}

.submit-copy > p {
  max-width: 440px;
  margin-top: 16px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9rem;
  color: #c7d2e6;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(246, 201, 107, 0.15);
  border: 1px solid rgba(246, 201, 107, 0.45);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

.submit-note {
  margin-top: 24px;
  font-size: 0.8rem !important;
  color: var(--muted-2) !important;
}

.submit-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.submit-form {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(9, 15, 30, 0.95);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #b9c6dd;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(246, 201, 107, 0.55);
  box-shadow: 0 0 0 3px rgba(246, 201, 107, 0.09);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: rgba(244, 114, 182, 0.7);
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.form-foot p {
  font-size: 0.73rem;
  color: var(--muted-2);
}

.form-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.form-status.is-pending {
  background: rgba(246, 201, 107, 0.1);
  color: var(--gold);
  border: 1px solid rgba(246, 201, 107, 0.3);
}

.form-status.is-success {
  background: rgba(110, 231, 183, 0.1);
  color: var(--green);
  border: 1px solid rgba(110, 231, 183, 0.28);
}

.form-status.is-error {
  background: rgba(244, 114, 182, 0.1);
  color: var(--pink);
  border: 1px solid rgba(244, 114, 182, 0.3);
}

/* ---------------- jalus ---------------- */

.site-footer {
  padding: 60px 0 26px;
  border-top: 1px solid var(--line);
  background: #05070e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 42px;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-brand p {
  max-width: 320px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-mail {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--gold);
}

.footer-col h3 {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  margin: 9px 0;
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted-2);
}

.footer-disclaimer {
  max-width: 560px;
  text-align: right;
}

/* ---------------- modaal ---------------- */

dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

#eventModal {
  width: min(820px, 94vw);
  max-width: 820px;
  max-height: 92vh;
  margin: auto;
}

#eventModal::backdrop {
  background: rgba(3, 6, 14, 0.74);
  backdrop-filter: blur(7px);
}

.modal-card {
  position: relative;
  max-height: 90vh;
  overflow: hidden auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 26px;
  background: #0b1224;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95);
  animation: modalIn 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(6, 9, 18, 0.92);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(6, 9, 18, 0.85);
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: 168px;
  padding: 24px 30px;
  overflow: hidden;
}

.modal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
  opacity: 0.6;
}

.modal-icon {
  position: relative;
  z-index: 1;
  font-size: 64px;
  line-height: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.4));
}

.modal-hero-meta {
  position: absolute;
  right: 26px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.modal-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.modal-hero-meta svg {
  width: 14px;
  height: 14px;
}

.modal-body {
  padding: 26px 30px 30px;
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-kicker {
  margin-bottom: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.modal-body h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
}

.modal-fav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal-fav svg {
  width: 20px;
  height: 20px;
}

.modal-fav:hover {
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.5);
}

.modal-fav.is-fav {
  color: var(--pink);
  border-color: rgba(244, 114, 182, 0.55);
  background: rgba(244, 114, 182, 0.12);
}

.modal-fav.is-fav svg {
  fill: currentColor;
}

.modal-desc {
  margin: 14px 0 22px;
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--muted);
}

.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.info-item-wide {
  grid-column: 1 / -1;
}

.info-item > span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.info-item strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.info-item em {
  font-size: 0.76rem;
  font-style: normal;
  color: var(--muted);
}

.info-item em a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.modal-actions .btn {
  padding: 11px 17px;
  font-size: 0.84rem;
}

/* ---------------- toast ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: min(90vw, 460px);
  padding: 12px 20px;
  border: 1px solid rgba(246, 201, 107, 0.35);
  border-radius: 999px;
  background: rgba(13, 21, 41, 0.96);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-size: 0.85rem;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ---------------- kerimisriba ---------------- */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #070b16;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #070b16;
  border-radius: 999px;
  background: #22304f;
}

::-webkit-scrollbar-thumb:hover {
  background: #2f4066;
}

/* ---------------- responsiivsus ---------------- */

@media (min-width: 901px) {
  .view-toggle {
    display: none;
  }
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .hero-inner {
    gap: 40px;
  }
}

@media (max-width: 1080px) {
  .hero {
    padding: 66px 0 84px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .countdown-card {
    max-width: 460px;
  }

  .site-nav {
    gap: 20px;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8.4vw, 3.5rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .toolbar {
    position: static;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }

  .layout[data-view="nimekiri"] .map-panel {
    display: none;
  }

  .layout[data-view="kaart"] .list-panel {
    display: none;
  }

  #map {
    height: 64vh;
    min-height: 420px;
    max-height: none;
  }

  .map-hint {
    display: none;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .submit-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .section-head {
    align-items: flex-start;
  }

  .results {
    text-align: left;
  }

  .data-note {
    max-width: 70%;
  }

  .region-columns {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
  }

  .update-banner-inner {
    align-items: flex-start;
    font-size: 0.8rem;
    text-align: left;
  }

  .update-banner-icon {
    margin-top: 2px;
  }

  .hero {
    padding: 48px 0 66px;
  }

  .regions {
    padding: 62px 0;
  }

  .hero h1 {
    margin-top: 16px;
  }

  .hero-search {
    padding-left: 14px;
  }

  .hero-search .btn {
    padding: 13px 18px;
  }

  .hero-stats {
    gap: 18px;
    font-size: 0.78rem;
  }

  .hero-stats li + li::before {
    display: none;
  }

  .countdown-card {
    padding: 20px;
    border-radius: 22px;
  }

  .countdown-grid {
    gap: 6px;
  }

  .countdown-grid > div {
    padding: 12px 2px 10px;
    border-radius: 13px;
  }

  .countdown-grid span {
    font-size: 1.55rem;
  }

  .countdown-grid em {
    font-size: 0.54rem;
  }

  .section-head {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }

  .toolbar-row {
    gap: 8px;
  }

  .search-field {
    flex: 1 1 100%;
  }

  .select-wrap {
    flex: 1 1 140px;
  }

  .select-wrap select {
    width: 100%;
    max-width: none;
  }

  .fav-toggle {
    flex: 1 1 auto;
    justify-content: center;
  }

  .view-toggle {
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
  }

  .view-toggle button {
    flex: 1;
  }

  .chip-free {
    margin-left: 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .list-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .data-note {
    max-width: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-form {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-disclaimer {
    text-align: left;
  }

  #eventModal {
    width: 100vw;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
  }

  .modal-card {
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .modal-hero {
    height: 132px;
    padding: 20px 22px;
  }

  .modal-icon {
    font-size: 52px;
  }

  .modal-hero-meta {
    right: 18px;
    bottom: 14px;
    gap: 10px;
    font-size: 0.7rem;
  }

  .modal-body {
    padding: 20px 20px 28px;
  }

  .modal-info {
    grid-template-columns: 1fr;
  }

  .modal-actions .btn {
    flex: 1 1 45%;
    justify-content: center;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 400px) {
  .brand-name {
    font-size: 0.98rem;
  }

  .header-cta {
    padding: 9px 13px;
    font-size: 0.8rem;
  }

  .hero-search .btn {
    padding: 12px 14px;
    font-size: 0.86rem;
  }
}

/* ---------------- liikumise vähendamine ---------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .countdown-snow {
    animation: none;
  }

  .hero-canvas {
    display: none;
  }
}
