* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
}
body {
  background-color: #ffffff;
  color: #09090b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 64px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.app-card {
  position: relative;
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Fejléc: letisztult, határozott tipográfia (logó balra, demó felirat jobbra egy szinten) */
header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #09090b;
  line-height: 1.15;
}
.subtitle {
  color: #71717a;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: right;
  line-height: 1.35;
}

/* Szűrősáv: címkék nélkül, tágas padding, sötétebb keret, 0 shadow */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 4px;
}
.selector-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.custom-select {
  background-color: #ffffff;
  color: #09090b;
  border: 1px solid #d4d4d8;
  padding: 10px 42px 10px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: border-color 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 15px;
}
.custom-select:hover {
  border-color: #71717a;
}
.custom-select:focus {
  border-color: #09090b;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #3f3f46;
  cursor: pointer;
  user-select: none;
}
.form-check input[type="checkbox"] {
  cursor: pointer;
  accent-color: #09090b;
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

/* Finom határoló vonal a térkép fölött és alatt */
.divider-line {
  width: 100%;
  height: 1px;
  background-color: #f4f4f5;
}

/* Térkép konténer: 0 border, 0 shadow, tiszta fehér alapon */
.map-container {
  width: 100%;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  aspect-ratio: 1000 / 631;
}
#mapCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
#overlaySvg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Vektoros határok */
.county-boundary {
  fill: transparent;
  stroke-linejoin: round;
  stroke-linecap: round;
  pointer-events: visibleStroke;
  transition: stroke 0.15s ease, stroke-width 0.15s ease;
  cursor: pointer;
}
.county-boundary:hover {
  stroke: #09090b !important;
  stroke-width: 2.2px !important;
}
.country-outline {
  fill: none;
  stroke: #333;
  stroke-width: 1px;
  stroke-linejoin: round;
  filter: none;
  box-shadow: none;
  pointer-events: none;
}

/* Mérési pontok */
.marker-group {
  cursor: pointer;
  transition: transform 0.12s ease;
}
.marker-circle {
  stroke: #ffffff;
  stroke-width: 1.5px;
  transition: r 0.15s ease, stroke-width 0.15s ease;
  box-shadow: none;
}
.marker-group:hover .marker-circle {
  r: 8.5px;
  stroke-width: 2.5px;
  stroke: #ffffff;
}

/* Tooltip */
#tooltip {
  position: absolute;
  display: none;
  pointer-events: none;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(8px);
  color: #fafafa;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  border: 1px solid #27272a;
  z-index: 100;
  transform: translate(-50%, -125%);
  white-space: nowrap;
}
#tooltip .tt-title {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  font-size: 0.95rem;
}
#tooltip .tt-meta {
  color: #a1a1aa;
  font-size: 0.8125rem;
  margin-bottom: 6px;
}
#tooltip .tt-value {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
#tooltip .tt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
#tooltip .tt-action {
  font-size: 0.8125rem;
  color: #38bdf8;
  margin-top: 4px;
  font-weight: 500;
}

/* Alsó sáv: Skála és Statisztika */
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 6px;
}
.legend-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}
.legend-bar {
  height: 12px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.08);
  width: 100%;
}
.legend-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #3f3f46;
  font-weight: 600;
}
.legend-ticks span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #71717a;
  margin-top: 2px;
}

/* Vercel-stílusú statisztikai sor (pötty + címke + fekete szám, 0 border, 0 shadow) */
.stats-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.stats-header {
  font-size: 0.95rem;
  font-weight: 500;
  color: #71717a;
  letter-spacing: -0.01em;
}
.stats-header strong {
  color: #09090b;
  font-weight: 700;
}
.stats-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.925rem;
  color: #3f3f46;
  font-weight: 500;
}
.stat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #09090b;
  letter-spacing: -0.02em;
}

/* Szezonális grafikon: minimál Vercel-stílus */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.timeline-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #09090b;
  letter-spacing: -0.01em;
}
.timeline-legend-hint {
  font-size: 0.8125rem;
  color: #71717a;
  font-weight: 500;
}
.timeline-first-date {
  font-size: 0.875rem;
  font-weight: 600;
  color: #71717a;
  white-space: nowrap;
}
.timeline-first-date strong {
  color: #09090b;
}
.timeline-chart-wrap {
  width: 100%;
  height: 68px;
  position: relative;
  cursor: crosshair;
}
.timeline-chart-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.timeline-bar {
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.timeline-bar:hover,
.timeline-bar.active {
  opacity: 1 !important;
  filter: brightness(1.2) drop-shadow(0 0 3px rgba(0,0,0,0.25));
}
.timeline-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #71717a;
  font-weight: 500;
  padding: 0 4px;
}


