* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background:
    radial-gradient(circle at top left, rgba(0, 153, 255, 0.45), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 80, 80, 0.25), transparent 30%),
    linear-gradient(180deg, #06111f, #071827 45%, #05080d);
  min-height: 100vh;
}

.app {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 14px 100px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.logo {
  font-size: 23px;
  font-weight: 800;
}

.location {
  margin-top: 4px;
  font-size: 14px;
  color: #b8d8f5;
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 12px;
  color: #cce6ff;
}

.card {
  margin-top: 16px;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 20px 55px rgba(0,0,0,0.24);
  backdrop-filter: blur(14px);
}

.card h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero {
  padding: 26px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(34,184,255,0.35), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -80px;
  right: -90px;
  border-radius: 50%;
  background: rgba(33, 150, 243, 0.22);
}

.hero * {
  position: relative;
  z-index: 1;
}

.small-label {
  font-size: 13px;
  color: #9fd3ff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.temp {
  font-size: 78px;
  font-weight: 900;
  line-height: 1;
  margin: 10px 0;
}

.desc {
  font-size: 18px;
  color: #e3f2fd;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-top: 20px;
}

.stat {
  padding: 14px 10px;
  border-radius: 20px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.09);
  text-align: center;
}

.stat span {
  display: block;
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 5px;
}

.stat b {
  font-size: 15px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

p {
  color: #c9d7e6;
  line-height: 1.45;
}

.warning {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 152, 0, 0.18);
  border: 1px solid rgba(255, 152, 0, 0.28);
}

.warning-icon {
  font-size: 28px;
}

.hour-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.hour {
  min-width: 76px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
  text-align: center;
}

.hour .time {
  color: #a7bdd3;
  font-size: 12px;
}

.hour .icon {
  font-size: 25px;
  margin: 7px 0;
}

.radar-box {
  height: 430px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 63% 40%, rgba(255,0,0,0.75), transparent 8%),
    radial-gradient(circle at 56% 47%, rgba(255,230,0,0.72), transparent 14%),
    radial-gradient(circle at 45% 52%, rgba(0,220,80,0.55), transparent 23%),
    radial-gradient(circle at 30% 70%, rgba(0,120,255,0.35), transparent 18%),
    #102133;
  border: 1px solid rgba(255,255,255,0.14);
}

.radar-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.radar-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  font-size: 12px;
}

.fire-map {
  height: 280px;
  border-radius: 26px;
  background:
    linear-gradient(120deg,
      rgba(46,125,50,0.9) 0 30%,
      rgba(249,168,37,0.9) 30% 55%,
      rgba(216,67,21,0.9) 55% 78%,
      rgba(127,0,0,0.9) 78% 100%);
  position: relative;
  overflow: hidden;
}

.fire-map::before {
  content: "Zgornja Savinjska";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  font-size: 12px;
}

.fire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.fire-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.fire-item span {
  display: block;
  color: #9fb5c9;
  font-size: 12px;
  margin-bottom: 6px;
}

.level {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.low { background: #2e7d32; }
.mid { background: #f9a825; color: #151515; }
.high { background: #d84315; }
.extreme { background: #7f0000; }

.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.setting span {
  color: #9fb5c9;
  font-size: 13px;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 11px 14px;
  background: rgba(33,150,243,0.25);
  color: white;
  font-weight: bold;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(430px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 9px;
  border-radius: 24px;
  background: rgba(5,12,20,0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.13);
}

.nav-btn {
  border: none;
  border-radius: 16px;
  padding: 8px 2px;
  background: transparent;
  color: #b9cce0;
  font-size: 18px;
}

.nav-btn span {
  display: block;
  font-size: 10px;
  margin-top: 3px;
}

.nav-btn.active {
  background: rgba(33,150,243,0.25);
  color: white;
}

.daily-list {
  display: grid;
  gap: 9px;
}

.daily-item {
  display: grid;
  grid-template-columns: 1fr 42px 70px 70px;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.daily-day {
  text-transform: capitalize;
  color: #d7ecff;
  font-weight: bold;
}

.daily-icon {
  font-size: 24px;
  text-align: center;
}

.daily-temp {
  display: flex;
  gap: 6px;
  align-items: center;
}

.daily-temp span {
  color: #9fb5c9;
}

.daily-rain {
  color: #9fd3ff;
  font-size: 13px;
  text-align: right;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 8px;
  margin-bottom: 14px;
}

.search-card input,
.search-card button {
  border: none;
  border-radius: 16px;
  padding: 13px;
  font-size: 15px;
}

.search-card input {
  background: rgba(255,255,255,0.12);
  color: white;
  outline: none;
}

.search-card input::placeholder {
  color: #9fb5c9;
}

.search-card button {
  background: rgba(33,150,243,0.35);
  color: white;
  font-weight: bold;
}

.windy-frame {
  width: 100%;
  height: 430px;
  border: none;
  border-radius: 22px;
  overflow: hidden;
}

.layer-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.layer-buttons button {
  border: none;
  border-radius: 18px;
  padding: 14px 10px;
  background: rgba(0,0,0,0.18);
  color: white;
  font-weight: bold;
}

.layer-buttons button.active-layer {
  background: rgba(33,150,243,0.35);
  border: 1px solid rgba(33,150,243,0.6);
}

.danger-list {
  display: grid;
  gap: 9px;
}

.danger-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.danger-item span {
  color: #d7ecff;
  font-weight: bold;
}

.danger-item b {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(33,150,243,0.25);
  font-size: 12px;
}

.warning {
  margin-top: 10px;
}

.warning-green {
  background: rgba(46,125,50,0.20);
  border: 1px solid rgba(46,125,50,0.35);
}

.warning-yellow {
  background: rgba(251,192,45,0.20);
  border: 1px solid rgba(251,192,45,0.42);
}

.warning-orange {
  background: rgba(245,124,0,0.22);
  border: 1px solid rgba(245,124,0,0.45);
}

.warning-red {
  background: rgba(211,47,47,0.25);
  border: 1px solid rgba(211,47,47,0.55);
}

.weather-visual {
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
}

.sun-icon,
.cloudy-icon,
.rain-icon,
.storm-icon {
  position: relative;
  width: 130px;
  height: 105px;
}

.sun {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff176 0%, #ffca28 45%, #ff9800 100%);
  box-shadow:
    0 0 22px rgba(255,193,7,0.8),
    0 0 55px rgba(255,152,0,0.45);
  position: absolute;
  left: 26px;
  top: 12px;
  animation: sunPulse 2.4s ease-in-out infinite;
}

.sun::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255,193,7,0.9) 0deg 8deg,
      transparent 8deg 22deg
    );
  z-index: -1;
  animation: sunRotate 8s linear infinite;
}

.small-sun {
  width: 58px;
  height: 58px;
  left: 8px;
  top: 8px;
  opacity: 0.95;
}

.cloud {
  width: 88px;
  height: 34px;
  background: linear-gradient(180deg, #f5f7fa, #aebdcc);
  border-radius: 30px;
  position: absolute;
  left: 25px;
  top: 48px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
  animation: cloudFloat 3s ease-in-out infinite;
}

.cloud::before {
  content: "";
  width: 42px;
  height: 42px;
  background: #dce6ef;
  border-radius: 50%;
  position: absolute;
  left: 12px;
  top: -22px;
}

.cloud::after {
  content: "";
  width: 52px;
  height: 52px;
  background: #c7d3df;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  top: -28px;
}

.rain {
  position: absolute;
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #40c4ff;
  top: 82px;
  animation: rainFall 0.75s linear infinite;
}

.rain1 {
  left: 44px;
}

.rain2 {
  left: 66px;
  animation-delay: 0.15s;
}

.rain3 {
  left: 88px;
  animation-delay: 0.3s;
}

.bolt {
  position: absolute;
  left: 56px;
  top: 70px;
  font-size: 36px;
  color: #ffd600;
  text-shadow: 0 0 18px rgba(255,214,0,0.9);
  animation: lightning 1.2s infinite;
}

@keyframes sunPulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.07);
    filter: brightness(1.18);
  }
}

@keyframes sunRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes cloudFloat {
  0%, 100% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(6px);
  }
}

@keyframes rainFall {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(18px);
    opacity: 0;
  }
}

@keyframes lightning {
  0%, 80%, 100% {
    opacity: 0.15;
    transform: scale(0.92);
  }
  84%, 90% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.map-layer-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.map-layer-buttons button {
  border: none;
  border-radius: 18px;
  padding: 14px 10px;
  background: rgba(0,0,0,0.18);
  color: white;
  font-weight: bold;
}

.map-layer-buttons button.active-layer {
  background: rgba(33,150,243,0.35);
  border: 1px solid rgba(33,150,243,0.6);
}

.demo-map {
  height: 330px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  margin-bottom: 12px;
}

.demo-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.fire-demo-map {
  background:
    linear-gradient(120deg,
      rgba(46,125,50,0.95) 0 28%,
      rgba(249,168,37,0.95) 28% 55%,
      rgba(216,67,21,0.95) 55% 78%,
      rgba(127,0,0,0.95) 78% 100%);
}

.flood-demo-map {
  background:
    radial-gradient(circle at 45% 45%, rgba(0,188,212,0.8), transparent 20%),
    radial-gradient(circle at 65% 60%, rgba(33,150,243,0.7), transparent 18%),
    linear-gradient(135deg, #0b2338, #082033);
}

.arso-demo-map {
  background:
    radial-gradient(circle at 50% 42%, rgba(255,152,0,0.9), transparent 18%),
    radial-gradient(circle at 70% 60%, rgba(211,47,47,0.82), transparent 16%),
    linear-gradient(135deg, #1a1f2e, #101820);
}

.spin-demo-map {
  background:
    radial-gradient(circle at 40% 50%, rgba(33,150,243,0.45), transparent 18%),
    linear-gradient(135deg, #102133, #071827);
}

.map-label {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.42);
  font-size: 12px;
  z-index: 2;
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.map-info {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.map-info span {
  display: block;
  color: #9fb5c9;
  font-size: 12px;
  margin-bottom: 7px;
}

.spin-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff5252;
  box-shadow: 0 0 0 8px rgba(255,82,82,0.18);
  z-index: 2;
  animation: spinPulse 1.6s infinite;
}

.dot1 { left: 42%; top: 43%; }
.dot2 { left: 60%; top: 55%; animation-delay: .35s; }
.dot3 { left: 30%; top: 65%; animation-delay: .7s; }

@keyframes spinPulse {
  0% {
    transform: scale(0.8);
    opacity: .7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: .7;
  }
}


/* Pravi zemljevid požarne ogroženosti */

.real-fire-map-wrap {
  width: 100%;
  height: 430px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(33,150,243,0.16), transparent 30%),
    rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.13);
  touch-action: pan-x pan-y;
}

.real-fire-map {
  width: 100%;
  height: 100%;
  display: block;
}

.fire-municipality {
  stroke: rgba(8, 18, 35, 0.95);
  stroke-width: 1.15;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.fire-municipality:hover,
.fire-municipality.selected {
  filter: brightness(1.18);
  stroke: #ffffff;
  stroke-width: 2;
}

.fire-low {
  fill: #43a047;
}

.fire-mid {
  fill: #fbc02d;
}

.fire-high {
  fill: #f57c00;
}

.fire-very-high {
  fill: #d32f2f;
}

.fire-extreme {
  fill: #7f0000;
}

.fire-map-info {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
}

.fire-map-info p {
  margin: 6px 0 0;
}

.fire-legend {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.fire-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d7ecff;
  font-size: 13px;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}


.arso-warning-frame {
  width: 100%;
  height: 520px;
  border: none;
  border-radius: 20px;
  background: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.brand-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.brand-white {
  color: #ffffff;
}

.brand-blue {
  color: #22b8ff;
}

.brand-subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #dbeafe;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.icon-btn:active {
  transform: scale(0.96);
}

@media (max-width: 600px) {
  .top-bar {
    padding: 14px;
  }

  .top-actions {
    gap: 6px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

.fire-risk-card {
  background:
    radial-gradient(circle at top right, rgba(255,120,0,0.32), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.07));
}

.fire-risk-card p {
  margin: 8px 0;
  font-size: 16px;
}

.warning {
  border-radius: 20px;
  padding: 14px;
  background: rgba(255,180,0,0.14);
  border: 1px solid rgba(255,180,0,0.25);
}

.current-location {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.3px;
    color: #ffffff;
}
.warning-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,0.12);
}

.warning-icon-red {
  background: rgba(255, 40, 40, 0.25);
  border: 1px solid rgba(255, 40, 40, 0.55);
}

.warning-icon-orange {
  background: rgba(255, 140, 0, 0.25);
  border: 1px solid rgba(255, 140, 0, 0.55);
}

.warning-icon-yellow {
  background: rgba(255, 220, 0, 0.25);
  border: 1px solid rgba(255, 220, 0, 0.55);
}

.warning-icon-green {
  background: rgba(0, 200, 100, 0.22);
  border: 1px solid rgba(0, 200, 100, 0.45);
}

/* =========================
   ARSO opozorila minimalist
========================= */

.arso-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.arso-alert {
  padding: 16px;
  border-radius: 22px;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 10px 24px rgba(0,0,0,.24);
}

.arso-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.arso-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.arso-content {
  flex: 1;
  min-width: 0;
}

.arso-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.arso-title {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
}

.arso-expand {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  transition: transform .25s ease;
}

.arso-level {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
}

.arso-info {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.20);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.arso-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(255,255,255,0);
  transition: all .3s ease;
  line-height: 1.45;
  font-size: 15px;
}

.arso-alert.open .arso-details {
  max-height: 260px;
  opacity: 1;
  margin-top: 14px;
  padding-top: 14px;
  border-top-color: rgba(255,255,255,.22);
}

.arso-alert.open .arso-expand {
  transform: rotate(180deg);
}

.arso-orange {
  background:
    linear-gradient(135deg, rgba(255,138,0,.88), rgba(125,58,0,.55)),
    rgba(20,20,20,.55);
  border-color: rgba(255,138,0,.75);
}

.arso-red {
  background:
    linear-gradient(135deg, rgba(220,0,18,.88), rgba(80,0,0,.58)),
    rgba(20,20,20,.55);
  border-color: rgba(255,60,60,.75);
}

.arso-yellow {
  background:
    linear-gradient(135deg, rgba(246,199,0,.86), rgba(100,75,0,.55)),
    rgba(20,20,20,.55);
  border-color: rgba(246,199,0,.75);
}

.arso-green {
  background:
    linear-gradient(135deg, rgba(36,161,72,.82), rgba(10,70,30,.55)),
    rgba(20,20,20,.55);
  border-color: rgba(36,161,72,.7);
}

.arso-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
}

.arso-empty-icon {
  font-size: 32px;
}

/* =========================
   POŽARNA OGROŽENOST MAP
========================= */

.fire-screen {
  background: #07111f;
  color: #fff;
  padding: 14px;
  border-radius: 22px;
}

.fire-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.fire-title {
  font-size: 22px;
  font-weight: 800;
}

#refreshFireBtn {
  background: #111b2b;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 8px 13px;
  font-size: 20px;
}

.fire-tabs,
.fire-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.fire-tabs button,
.fire-mode-tabs button {
  background: #121c2b;
  color: #c7ced9;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 15px;
  padding: 10px 18px;
  white-space: nowrap;
}

.fire-tabs button.active,
.fire-mode-tabs button.active {
  background: #0572b8;
  color: #fff;
}

.real-fire-map-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #101927;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
}

.real-fire-map {
  width: 100%;
  height: auto;
  display: block;
}

.fire-municipality {
  stroke: rgba(255,255,255,0.35);
  stroke-width: 1;
  cursor: pointer;
  transition: 0.15s ease;
}

.fire-municipality:hover {
  opacity: 0.85;
  stroke: #ffffff;
  stroke-width: 2;
}

.fire-municipality.selected {
  stroke: #ffffff;
  stroke-width: 3;
  filter: brightness(1.25);
}

.fire-low {
  fill: #43a047;
  background: #43a047;
}

.fire-mid {
  fill: #fbc02d;
  background: #fbc02d;
}

.fire-high {
  fill: #f57c00;
  background: #f57c00;
}

.fire-very-high {
  fill: #d32f2f;
  background: #d32f2f;
}

.fire-extreme {
  fill: #7f0000;
  background: #7f0000;
}

.fire-legend-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(7,17,31,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(12px);
}

.legend-colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 12px 0 7px;
}

.legend-colors span {
  height: 28px;
  border-radius: 8px;
}

.legend-colors .low { background: #43a047; }
.legend-colors .mid { background: #fbc02d; }
.legend-colors .high { background: #f57c00; }
.legend-colors .very-high { background: #d32f2f; }
.legend-colors .extreme { background: #7f0000; }

.legend-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  text-align: center;
  color: #c7ced9;
  font-size: 11px;
}

.fire-map-info {
  margin-top: 14px;
  background: #0d1726;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,.25);
}

.fire-details-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #121d2d;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.fire-details-head h2 {
  margin: 0;
  font-size: 23px;
}

.fire-details-head p {
  margin: 4px 0 0;
  color: #aeb7c5;
}

.fire-level-badge {
  min-width: 92px;
  text-align: center;
  padding: 13px 10px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
}

.fire-level-badge.low { background: #2e7d32; }
.fire-level-badge.mid { background: #b58b00; }
.fire-level-badge.high { background: #ef6c00; }
.fire-level-badge.very-high { background: #b71c1c; }
.fire-level-badge.extreme { background: #7f0000; }

.fire-card {
  background: #121d2d;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.07);
}

.fire-card h3 {
  margin: 0 0 10px;
}

.fire-big-score {
  font-size: 38px;
  color: #ff3344;
  font-weight: 900;
  margin: 4px 0;
}

.fire-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fire-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 8px;
  color: #cfd6e2;
}

.fire-row strong {
  color: #fff;
  text-align: right;
}

.fire-score {
  margin-top: 10px;
  opacity: 0.95;
}

.fire-source {
  opacity: 0.75;
  font-size: 13px;
}

.fire-legend {
  display: none;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
}

.fire-level {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0 0;
}

@media (max-width: 600px) {
  .fire-screen {
    padding: 10px;
    border-radius: 18px;
  }

  .fire-title {
    font-size: 19px;
  }

  .fire-tabs button,
  .fire-mode-tabs button {
    padding: 9px 14px;
    font-size: 13px;
  }

  .fire-legend-bottom {
    padding: 10px;
  }

  .legend-colors span {
    height: 22px;
  }

  .legend-labels {
    font-size: 9px;
  }

  .fire-details-head {
    align-items: flex-start;
  }

  .fire-details-head h2 {
    font-size: 20px;
  }

  .fire-big-score {
    font-size: 34px;
  }
}
