:root {
  --weather-bg: #f4f7f8;
  --weather-surface: #ffffff;
  --weather-text: #10212a;
  --weather-muted: #5f6f78;
  --weather-line: #dce5e8;
  --weather-header: #102f38;
  --weather-accent: #0f8b8d;
  --weather-accent-strong: #e4572e;
  --weather-good: #2f9e44;
  --weather-bad: #c92a2a;
}

* {
  box-sizing: border-box;
}

.weather-page {
  background: var(--weather-bg);
  color: var(--weather-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  padding-bottom: 54px;
}

.weather-page.weather-dark {
  --weather-bg: #0e1b22;
  --weather-surface: #172a32;
  --weather-text: #edf7f8;
  --weather-muted: #aac0c5;
  --weather-line: #2c454f;
  --weather-header: #07181f;
  --weather-accent: #39b8b5;
}

.weather-page.weather-dark .card,
.weather-page.weather-dark .panel-card,
.weather-page.weather-dark .accordion-item,
.weather-page.weather-dark .modal-panel,
.weather-page.weather-dark .stats-modal-panel {
  background: var(--weather-surface);
  color: var(--weather-text);
  border-color: var(--weather-line);
}

.weather-page.weather-dark .table,
.weather-page.weather-dark .weather-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--weather-text);
  --bs-table-border-color: var(--weather-line);
}

.weather-page.weather-dark .form-select {
  background-color: #10242c;
  border-color: var(--weather-line);
  color: var(--weather-text);
}

/* Bootstrap `text-muted` ima svoju boju i ne prati nase CSS varijable.
   U dark temi ga zato eksplicitno vezujemo za nasu prigusenu boju teksta,
   da tekstovi u accordion sekcijama ostanu citljivi. */
.weather-page.weather-dark .text-muted {
  color: var(--weather-muted) !important;
}
/* Gradijenti kartica koji sadrze hardkodovane bele vrednosti
   moraju se pregaziti za dark temu. */
.weather-page.weather-dark .temperature-card {
  background:
    linear-gradient(135deg, rgba(228, 87, 46, 0.13), rgba(23, 42, 50, 0.0) 42%),
    var(--weather-surface);
}

.weather-page.weather-dark .metric-card--ai {
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.15), rgba(23, 42, 50, 0.0)),
    var(--weather-surface);
}

.weather-page.weather-dark .metric-card--ai.is-not-configured {
  background:
    linear-gradient(135deg, rgba(91, 108, 143, 0.15), rgba(23, 42, 50, 0.0)),
    var(--weather-surface);
}

.weather-page.weather-dark .metric-card--ai.is-stale,
.weather-page.weather-dark .metric-card--ai.is-error {
  background:
    linear-gradient(135deg, rgba(230, 92, 0, 0.15), rgba(23, 42, 50, 0.0)),
    var(--weather-surface);
}

.weather-page.weather-dark .air-card.air-quality-excellent {
  background: linear-gradient(135deg, rgba(47, 158, 68, 0.12), rgba(23, 42, 50, 0.0));
}

.weather-page.weather-dark .air-card.air-quality-good {
  background: linear-gradient(135deg, rgba(116, 184, 22, 0.12), rgba(23, 42, 50, 0.0));
}

.weather-page.weather-dark .air-card.air-quality-acceptable {
  background: linear-gradient(135deg, rgba(245, 159, 0, 0.12), rgba(23, 42, 50, 0.0));
}

.weather-page.weather-dark .air-card.air-quality-polluted {
  background: linear-gradient(135deg, rgba(230, 92, 0, 0.15), rgba(23, 42, 50, 0.0));
}

.weather-page.weather-dark .air-card.air-quality-bad {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.15), rgba(23, 42, 50, 0.0));
}

.weather-page .btn-primary {
  --bs-btn-bg: var(--weather-accent);
  --bs-btn-border-color: var(--weather-accent);
  --bs-btn-hover-bg: #0c7274;
  --bs-btn-hover-border-color: #0c7274;
}

.weather-header {
  background: var(--weather-header);
  color: #fff;
  padding: 18px 0;
}

.weather-eyebrow {
  color: #9ed4d1;
  font-size: 13px;
  text-transform: uppercase;
}

.weather-title {
  font-size: 36px;
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-text {
  min-width: 0;
}

.device-label,
.header-summary {
  color: #b9d7d8;
  font-size: 14px;
}

.header-weather i {
  color: #8fc7ff;
  font-size: 44px;
  line-height: 1;
}

.header-temp {
  color: #fff;
  font-size: 32px;
  line-height: 1.1;
}

.air-badge {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  margin-top: 6px;
  padding: 3px 9px;
}

.forecast-strip {
  align-items: stretch;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.forecast-days {
  display: grid;
  flex: 1;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(92px, 1fr));
  min-width: 0;
}

.forecast-day {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  min-height: 98px;
  padding: 8px;
  text-align: left;
}

.forecast-day:hover,
.forecast-day:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(143, 199, 255, 0.55);
  outline: none;
}

.forecast-days.is-stale .forecast-day {
  background: rgba(120, 42, 42, 0.34);
  border-color: rgba(255, 170, 140, 0.42);
}

.forecast-days.is-stale .forecast-day:hover,
.forecast-days.is-stale .forecast-day:focus-visible {
  background: rgba(140, 50, 48, 0.44);
  border-color: rgba(255, 190, 160, 0.68);
}

.forecast-top {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.forecast-date {
  color: #b9d7d8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: capitalize;
}

.forecast-top i {
  color: #8fc7ff;
  font-size: 24px;
  line-height: 1;
}

.forecast-temp {
  display: block;
  font-size: 15px;
  line-height: 1.1;
  margin-bottom: 7px;
  white-space: nowrap;
}

.forecast-meta {
  display: grid;
  gap: 3px;
}

.forecast-meta span {
  align-items: center;
  color: #c2ddde;
  display: flex;
  font-size: 11px;
  gap: 4px;
  line-height: 1.15;
  white-space: nowrap;
}

.forecast-meta i {
  color: #9ed4d1;
  font-size: 12px;
}

.forecast-error {
  grid-column: span 2;
}

.forecast-extended {
  align-items: center;
  align-self: start;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dff7f7;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  padding: 0 7px;
}

.forecast-extended:hover,
.forecast-extended:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(143, 199, 255, 0.6);
  color: #fff;
  outline: none;
}

.forecast-extended.is-stale {
  background: rgba(120, 42, 42, 0.36);
  border-color: rgba(255, 170, 140, 0.48);
  color: #fff2ee;
}

.status {
  font-size: 16px;
  white-space: nowrap;
}

.dot {
  background: #adb5bd;
  border-radius: 50%;
  display: inline-block;
  height: 10px;
  width: 10px;
}

.dot.ok {
  background: var(--weather-good);
}

.dot.bad {
  background: var(--weather-bad);
}

.btn-icon {
  align-items: center;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.weather-header .icon-nav .btn-icon {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #dff7f7;
  height: 34px;
  width: 34px;
}

.weather-header .icon-nav .btn-icon:hover,
.weather-header .icon-nav .btn-icon:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(143, 199, 255, 0.6);
  color: #fff;
}

.weather-header .icon-nav .btn-icon i {
  font-size: 15px;
}

.action-square {
  background: rgba(15, 139, 141, 0.1);
  border: 1px solid rgba(15, 139, 141, 0.24);
  border-radius: 8px;
  color: #0f8b8d;
  height: 34px;
  width: 34px;
}

#refresh.action-square {
  width: 44px;
}

.action-square:hover,
.action-square:focus-visible {
  background: rgba(15, 139, 141, 0.16);
  border-color: rgba(15, 139, 141, 0.5);
  color: #0b7274;
}

.action-square i {
  font-size: 15px;
}

/* .header-last-reading {
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
} */

.header-last-reading span {
  color: #c2ddde;
  margin-right: 4px;
}

.weather-main {
  max-width: 1500px;
  width: 90vw;
}

.reading-card,
.panel-card {
  border-color: var(--weather-line);
  border-radius: 8px;
}

.weather-accordion {
  display: grid;
  gap: 10px;
}

.weather-accordion .accordion-item {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  overflow: hidden;
}

.weather-accordion-button {
  background: var(--weather-surface);
  color: var(--weather-text);
  font-size: 18px;
  font-weight: 700;
  padding: 13px 16px;
}

.weather-accordion-button:not(.collapsed) {
  background: var(--weather-surface);
  box-shadow: none;
  color: var(--weather-text);
}

.weather-accordion-button:focus {
  border-color: rgba(15, 139, 141, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.08);
}

.weather-accordion .accordion-body {
  padding: 16px;
}

.recent-meta {
  border-top: 1px solid var(--weather-line);
  color: var(--weather-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
}

.recent-meta strong {
  color: var(--weather-text);
}

.visit-analytics {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(210px, 280px) 1fr;
}

.visit-summary {
  border-right: 1px solid var(--weather-line);
  padding-right: 18px;
}

.visit-total strong {
  color: var(--weather-accent);
  display: block;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.visit-total-badge {
  background: rgba(15, 139, 141, 0.1);
  border: 1px solid rgba(15, 139, 141, 0.25);
  border-radius: 4px;
  color: var(--weather-accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 5px;
  padding: 2px 8px;
  text-transform: uppercase;
}

.visit-summary dl {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}

.visit-summary dl div {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.visit-summary dt {
  color: var(--weather-muted);
  font-size: 13px;
  font-weight: 500;
}

.visit-summary dd {
  color: var(--weather-text);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.visit-chart-wrap {
  min-width: 0;
}

.visit-chart-head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.visit-chart-head span {
  color: var(--weather-text);
  font-weight: 700;
}

.visit-chart-head small {
  color: var(--weather-muted);
}

.visit-chart {
  align-items: end;
  border-bottom: 1px solid var(--weather-line);
  display: flex;
  gap: 4px;
  height: 150px;
  min-width: 0;
  padding: 12px 0 0;
}

.visit-bar {
  background: linear-gradient(180deg, #40b4b1, #0f8b8d);
  border-radius: 4px 4px 0 0;
  flex: 1;
  min-width: 4px;
  position: relative;
}

.visit-bar i {
  color: transparent;
  font-size: 0;
}

.visit-stats-note {
  color: var(--weather-muted);
  font-size: 13px;
  margin-top: 12px;
}

.station-map {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  overflow: hidden;
}

.help-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.help-grid article {
  border-left: 3px solid rgba(15, 139, 141, 0.35);
  padding-left: 12px;
}

.help-grid h3 {
  color: var(--weather-text);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}

.help-grid p {
  color: var(--weather-muted);
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.reading-card {
  min-height: 86px;
  position: relative;
}

.weather-current-grid {
  display: grid;
  gap: 16px;
  grid-template-columns:
    minmax(300px, 1.2fr)
    minmax(155px, 0.7fr)
    minmax(155px, 0.7fr)
    minmax(200px, 0.84fr)
    minmax(180px, 0.76fr)
    minmax(130px, 0.52fr);
}

.metric-card {
  background: var(--weather-surface);
  border: 1px solid var(--weather-border);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 28px 1fr 18px;
  min-height: 190px;
  overflow: hidden;
}

.metric-card-stack {
  display: grid;
  gap: 16px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 190px;
}

.metric-card--small {
  min-height: 0;
}

.metric-card__head {
  align-items: center;
  border-bottom: 1px solid rgba(15, 139, 141, 0.14);
  display: flex;
  padding: 0 14px;
}

.metric-card__title {
  align-items: center;
  color: var(--weather-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 600;
  gap: 5px;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.metric-card__title .bi {
  color: var(--weather-accent);
  font-size: 13px;
}

.metric-card__body {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  min-width: 0;
  padding: 10px 14px;
}

.metric-card__foot {
  align-items: center;
  color: var(--weather-muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 0 14px;
  white-space: nowrap;
  margin-bottom: 5px; /*dodao mera-system*/
}

.metric-card--temperature .metric-card__body {
  padding: 8px 14px;
}

.metric-card--air .metric-card__body {
  /* justify-content: space-between; */
  padding-bottom: 6px;
  padding-top: 8px;
}

.metric-card--ai {
  border-color: rgba(15, 139, 141, 0.34);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.08), rgba(255, 255, 255, 0.92)),
    var(--weather-surface);
}

.metric-card--ai.is-not-configured {
  border-color: rgba(91, 108, 143, 0.28);
  background:
    linear-gradient(135deg, rgba(91, 108, 143, 0.08), rgba(255, 255, 255, 0.94)),
    var(--weather-surface);
}

.metric-card--ai.is-stale,
.metric-card--ai.is-error {
  border-color: rgba(230, 92, 0, 0.34);
  background:
    linear-gradient(135deg, rgba(230, 92, 0, 0.10), rgba(255, 255, 255, 0.94)),
    var(--weather-surface);
}

@media (max-width: 1399.98px) {
  .weather-current-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-card--temperature,
  .metric-card--air,
  .metric-card--ai {
    min-height: 180px;
  }
}

@media (max-width: 991.98px) {
  .weather-current-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .weather-current-grid {
    grid-template-columns: 1fr;
  }
}

.stats-card {
  cursor: pointer;
}

.stats-card:hover,
.stats-card:focus-visible {
  border-color: rgba(15, 139, 141, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.08), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
  outline: none;
}

.small-reading-card {
  height: 86px;
}

.external-mini-column {
  display: grid;
  gap: 8px;
  grid-template-rows: repeat(3, 1fr);
  height: 100%;
}

.weather-current-grid .small-reading-card,
.weather-current-grid .api-mini-card {
  height: auto;
}

.api-mini-card {
  min-height: 0;
}

.reading-card .card-body {
  padding: 16px;
}

.small-reading-card .card-body {
  padding: 15px;
}

.api-mini-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
}

.api-mini-card .reading-label {
  margin-bottom: 2px;
}

.api-mini-card .reading-value {
  font-size: 18px;
}

.inline-values {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.reading-label {
  color: var(--weather-muted);
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
}

.reading-value {
  color: var(--weather-text);
  display: block;
  font-size: 16px;/*font-size: 18px;*/
  font-weight: 700;
  line-height: 1.15;
}

.temperature-card {
  border-color: rgba(15, 139, 141, 0.42);
  background:
    linear-gradient(135deg, rgba(228, 87, 46, 0.11), rgba(255, 255, 255, 0.88) 42%),
    var(--weather-surface);
  overflow: hidden;
}

.temperature-card.temp-cold {
  background: linear-gradient(135deg, rgba(12, 68, 124, 0.18), rgba(255,255,255,0.88) 42%), var(--weather-surface);
  border-color: rgba(12, 68, 124, 0.4);
}
.temperature-card.temp-cool {
  background: linear-gradient(135deg, rgba(24, 95, 165, 0.13), rgba(255,255,255,0.88) 42%), var(--weather-surface);
  border-color: rgba(24, 95, 165, 0.35);
}
.temperature-card.temp-warm {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.11), rgba(255,255,255,0.88) 42%), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.3);
}
.temperature-card.temp-hot {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.22), rgba(255,255,255,0.88) 42%), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.5);
}
.temperature-card.temp-very-hot {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.28), rgba(255,255,255,0.88) 42%), var(--weather-surface);
  border-color: rgba(201, 42, 42, 0.6);
}

.weather-dark .temperature-card.temp-cold {
  background: linear-gradient(135deg, rgba(12, 68, 124, 0.22), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(133, 183, 235, 0.35);
}
.weather-dark .temperature-card.temp-cool {
  background: linear-gradient(135deg, rgba(24, 95, 165, 0.18), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(133, 183, 235, 0.25);
}
.weather-dark .temperature-card.temp-warm {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.15), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.3);
}
.weather-dark .temperature-card.temp-hot {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.28), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.5);
}
.weather-dark .temperature-card.temp-very-hot {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.35), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(240, 149, 149, 0.5);
}

.temperature-card-main {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.temperature-value {
  color: var(--weather-accent-strong);
  display: block;
  font-size: clamp(48px, 5vw, 62px);
  font-weight: 700;
  line-height: 1;
}

.temperature-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 4px;
}

.temperature-icon {
  align-items: center;
  background: rgba(228, 87, 46, 0.12);
  border: 1px solid rgba(228, 87, 46, 0.2);
  border-radius: 999px;
  color: var(--weather-accent-strong);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.temperature-icon i {
  font-size: 19px;
  line-height: 1;
}

.temperature-sparkline {
  align-items: end;
  display: flex;
  gap: 2px;
  height: 34px;
  margin-top: 14px;
  max-width: 220px;
}

.temperature-sparkline span {
  background: linear-gradient(180deg, #e4572e, #f2a36f);
  border-radius: 999px 999px 2px 2px;
  display: block;
  flex: 1;
  min-width: 3px;
  opacity: 0.9;
}

.temperature-mini-stats {
  border-left: 1px solid var(--weather-line);
  display: grid;
  gap: 7px;
  min-width: 96px;
  padding-left: 15px;
}

.temperature-mini-stats .reading-label {
  /* font-size: 12px; */
  font-weight: 600;
  margin-bottom: 2px;
}

.temperature-mini-stats .reading-value {
  font-size: 16px;
}

.reading-subvalue {
  color: var(--weather-muted);
  font-size: 14px;
  font-weight: 600;
}

.reading-label .bi {
  color: var(--weather-accent);
  font-size: 13px;
  margin-right: 5px;
}

.air-card {
  min-height: 185px;
}

.air-card.air-quality-excellent {
  background: linear-gradient(135deg, #f7fffb 0%, #eefaf2 100%);
}

.air-card.air-quality-good {
  background: linear-gradient(135deg, #fbfff4 0%, #f0f8df 100%);
}

.air-card.air-quality-acceptable {
  background: linear-gradient(135deg, #fffdf2 0%, #fff4cf 100%);
}

.air-card.air-quality-polluted {
  background: linear-gradient(135deg, #fff4e6 0%, #ffc078 100%);
  border-color: rgba(230, 92, 0, 0.4);
}

.air-card.air-quality-bad {
  background: linear-gradient(135deg, #ffecec 0%, #ffa8a8 100%);
  border-color: rgba(201, 42, 42, 0.45);
}

.weather-dark .air-card.air-quality-polluted {
  background: linear-gradient(135deg, rgba(230, 92, 0, 0.22), rgba(23,42,50,0.0));
  border-color: rgba(230, 92, 0, 0.4);
}

.weather-dark .air-card.air-quality-bad {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.28), rgba(23,42,50,0.0));
  border-color: rgba(240, 149, 149, 0.45);
}

.air-list {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.air-row {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.air-list .reading-label {
  font-size: 12px;
  margin-bottom: 0;
}

.air-list .reading-value {
  font-size: 16px;
  text-align: right;
}

.air-quality-status {
  align-items: center;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 999px;
  display: inline-flex;
  gap: 6px;
  margin-top: 15px; /* bilo 8px */
  padding: 5px 9px;
}

.air-quality-status i {
  color: #f2b705;
  font-size: 16px;
}

.air-quality-status strong {
  color: var(--weather-text);
  font-size: 16px;
  line-height: 1;
}

.air-last-seen {
  color: var(--weather-muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.metric-card.uv-low { background: var(--weather-surface); }

.metric-card.uv-moderate {
  background: linear-gradient(135deg, rgba(239, 159, 39, 0.15), rgba(255,255,255,0.88) 60%), var(--weather-surface);
  border-color: rgba(239, 159, 39, 0.4);
}
.metric-card.uv-high {
  background: linear-gradient(135deg, rgba(239, 159, 39, 0.28), rgba(255,255,255,0.88) 60%), var(--weather-surface);
  border-color: rgba(239, 159, 39, 0.55);
}
.metric-card.uv-very-high {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.32), rgba(255,255,255,0.88) 60%), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.6);
}
.metric-card.uv-extreme {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.38), rgba(255,255,255,0.88) 60%), var(--weather-surface);
  border-color: rgba(201, 42, 42, 0.65);
}

.weather-dark .metric-card.uv-moderate {
  background: linear-gradient(135deg, rgba(239, 159, 39, 0.1), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(239, 159, 39, 0.25);
}
.weather-dark .metric-card.uv-high {
  background: linear-gradient(135deg, rgba(239, 159, 39, 0.18), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(239, 159, 39, 0.35);
}
.weather-dark .metric-card.uv-very-high {
  background: linear-gradient(135deg, rgba(228, 87, 46, 0.22), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(228, 87, 46, 0.4);
}
.weather-dark .metric-card.uv-extreme {
  background: linear-gradient(135deg, rgba(201, 42, 42, 0.28), rgba(23,42,50,0.0)), var(--weather-surface);
  border-color: rgba(240, 149, 149, 0.45);
}

.sun-card .card-body,
.uv-card .card-body,
.rain-card .card-body {
  padding: 8px 14px;
}

.sun-card .reading-value {
  white-space: nowrap;
}

.section-title {
  font-size: 22px;
  letter-spacing: 0;
}

.trend-summary {
  color: var(--weather-muted);
  font-size: 13px;
}

.trend-range {
  min-width: 112px;
}

.chart-shell {
  height: 280px;
  min-height: 260px;
  position: relative;
}

.chart-shell canvas {
  height: 100% !important;
  width: 100% !important;
}

.weather-table th {
  color: var(--weather-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.weather-table tbody tr {
  transition: background 0.12s ease;
}

.weather-table tbody tr:hover {
  background: rgba(15, 139, 141, 0.06);
}

.weather-table td {
  white-space: nowrap;
}

.weather-footer {
  align-items: center;
  background: rgba(16, 47, 56, 0.98);
  border-top: 1px solid rgba(143, 199, 255, 0.18);
  bottom: 0;
  color: #cde8e8;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  margin-top: 0;
  padding: 10px max(16px, calc((100vw - 1500px) / 2 + 24px));
  position: fixed;
  right: 0;
  z-index: 20;
}

.weather-footer-left {
  justify-self: start;
}

.weather-footer-center {
  font-weight: 400;
  justify-self: center;
  text-align: center;
}

.weather-footer-links {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  justify-self: end;
}

.weather-footer-links a {
  align-items: center;
  border: 1px solid rgba(143, 199, 255, 0.28);
  border-radius: 8px;
  color: #dff8f8;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  text-decoration: none;
  width: 34px;
}

.weather-footer-links a:hover,
.weather-footer-links a:focus-visible {
  background: rgba(143, 199, 255, 0.12);
  border-color: rgba(143, 199, 255, 0.5);
  color: #fff;
}

.weather-footer strong {
  color: #fff;
}

.stats-modal {
  display: none;
  inset: 0;
  position: fixed;
  z-index: 1050;
}

.stats-modal.is-open {
  display: block;
}

.stats-modal-backdrop {
  background: rgba(13, 30, 36, 0.45);
  inset: 0;
  position: absolute;
}

.stats-modal-panel {
  background: var(--weather-surface);
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  left: 50%;
  max-width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  min-height: 360px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
}

.forecast-modal-panel {
  max-width: min(1180px, calc(100vw - 32px));
  width: min(1180px, calc(100vw - 32px));
}

#stats-modal .stats-modal-panel {
  max-width: min(1180px, calc(100vw - 32px));
  width: min(1180px, calc(100vw - 32px));
}

.stats-modal-head {
  align-items: center;
  border-bottom: 1px solid var(--weather-line);
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
}

.stats-modal-head h2 {
  font-size: 18px;
  margin: 0;
}

.stats-modal-head .btn-icon {
  height: 24px;
  width: 24px;
  border-radius: 4px;
}

.stats-modal-head .btn-icon i {
  font-size: 12px;
}

.stats-modal-body {
  flex: 1;
  padding: 16px;
  padding-bottom: 24px;
  overflow-y: auto;
}

.hourly-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(12, minmax(74px, 1fr));
}

.hourly-item {
  background: #eef7fa;
  border: 1px solid #c9dde3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
}

.hourly-time {
  color: var(--weather-muted);
  font-size: 12px;
  font-weight: 700;
}

.hourly-item > i {
  color: #0f8b8d;
  font-size: 22px;
  line-height: 1;
}

.hourly-item strong {
  color: var(--weather-text);
  font-size: 16px;
  line-height: 1.1;
}

.hourly-item span {
  align-items: center;
  color: var(--weather-muted);
  display: flex;
  font-size: 11px;
  gap: 5px;
  white-space: nowrap;
}

.hourly-item span i {
  color: #0f8b8d;
}

.forecast-extended-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(8, minmax(88px, 1fr));
}

.forecast-modal-heading {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.forecast-source {
  color: var(--weather-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.forecast-source.is-stale {
  color: #9b3a2f;
}

.forecast-extended-card {
  background: #173a43;
  border: 1px solid rgba(143, 199, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 5px;
  min-height: 98px;
  padding: 7px;
}

.forecast-extended-card.rain-focus {
  background: #163c47;
  border-color: rgba(158, 212, 209, 0.3);
}

.forecast-extended-card.agro-focus {
  background: #173f3c;
  border-color: rgba(127, 201, 127, 0.3);
}

.forecast-extended-grid.is-stale .forecast-extended-card {
  background: #4a2827;
  border-color: rgba(255, 170, 140, 0.38);
}

.forecast-extended-grid.is-stale .forecast-extended-card.rain-focus {
  background: #512d2b;
}

.forecast-extended-grid.is-stale .forecast-extended-card.agro-focus {
  background: #4b3028;
}

.forecast-extended-card .forecast-date {
  color: #b9d7d8;
}

.forecast-extended-card .forecast-top i {
  color: #8fc7ff;
  font-size: 21px;
}

.forecast-extended-main {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.forecast-extended-main strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.1;
}

.forecast-extended-main span,
.forecast-extended-card .forecast-meta span {
  color: #c2ddde;
}

.forecast-rain-total {
  color: #fff;
  font-size: 15px;
}

#forecast-modal.is-extended-forecast .stats-modal-head h2 {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: 14px;
  justify-content: flex-start;
}

.forecast-mode-toolbar {
  display: inline-flex;
  margin-left: 0;
  margin-right: 0;
}

.forecast-mode-toolbar .btn {
  border-radius: 0;
  font-size: 12px;
  line-height: 1.1;
  padding: 6px 10px;
}

.forecast-mode-toolbar .btn:first-child {
  border-bottom-left-radius: 6px;
  border-top-left-radius: 6px;
}

.forecast-mode-toolbar .btn:last-child {
  border-bottom-right-radius: 6px;
  border-top-right-radius: 6px;
}

.stats-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.stats-toolbar label {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.stats-toolbar label span {
  color: var(--weather-muted);
  font-size: 12px;
}

.stats-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stats-summary-grid article {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.stats-summary-grid span {
  color: var(--weather-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.stats-summary-grid strong {
  color: var(--weather-text);
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
}

.ai-nowcast-empty {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.ai-nowcast-empty span,
.ai-nowcast-note {
  color: var(--weather-muted);
}

.ai-nowcast-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.ai-nowcast-summary article {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  padding: 10px 12px;
}

.ai-nowcast-summary span {
  color: var(--weather-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.ai-nowcast-summary strong {
  color: var(--weather-text);
  display: block;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
}

.ai-nowcast-chart {
  border: 1px solid var(--weather-line);
  border-radius: 8px;
  padding: 14px 14px 10px;
}

.ai-nowcast-bars {
  align-items: end;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(auto-fit, minmax(3px, 1fr));
  height: 190px;
}

.ai-nowcast-bar {
  background: linear-gradient(180deg, #0f8b8d, #7bd8dd);
  border-radius: 999px 999px 0 0;
  min-height: 3px;
}

.ai-nowcast-axis {
  color: var(--weather-muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 8px;
}

.ai-nowcast-note {
  font-size: 13px;
  margin: 12px 0 0;
}

.stats-chart-shell {
  height: min(460px, 56vh);
  min-height: 300px;
  position: relative;
}

.stats-chart-shell canvas {
  height: 100% !important;
  width: 100% !important;
}

@media (max-width: 1199.98px) {
  .small-reading-card {
    height: auto;
    min-height: 86px;
  }

  .air-card {
    min-height: 150px;
  }

  .forecast-days {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .forecast-extended-grid {
    grid-template-columns: repeat(4, minmax(108px, 1fr));
  }

  .hourly-strip {
    grid-template-columns: repeat(8, minmax(82px, 1fr));
  }
}

@media (max-width: 991.98px) {
  .weather-main {
    width: 100%;
  }

  .weather-header {
    padding: 16px 0;
  }

  .header-actions {
    align-items: flex-start !important;
  }

  /* .header-last-reading {
    text-align: left;
  } */

  .hourly-strip {
    grid-template-columns: repeat(6, minmax(86px, 1fr));
  }

  .forecast-extended-grid {
    grid-template-columns: repeat(3, minmax(108px, 1fr));
  }

  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visit-analytics {
    grid-template-columns: 1fr;
  }

  .visit-summary {
    border-right: 0;
    border-bottom: 1px solid var(--weather-line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .stats-modal-body {
    padding-bottom: 42px;
  }
}

@media (max-width: 575.98px) {
  .weather-page {
    padding-bottom: 92px;
  }

  .weather-footer {
    gap: 6px;
    grid-template-columns: 1fr;
    padding: 8px 14px 10px;
    text-align: center;
  }

  .weather-footer-center {
    justify-self: center;
  }

  .weather-footer-left {
    justify-self: left;
    margin-left: 15px;
  }

  .weather-footer-links a {
    height: 30px;
    width: 30px;
  }

  .weather-footer-links {
    justify-content: right;
  }

  .weather-title {
    font-size: 30px;
  }

  .forecast-days {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
  }

  .weather-current-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 150px;
  }

  .metric-card-stack {
    min-height: 0;
  }

  .metric-card--small {
    min-height: 86px;
  }

  .temperature-card-main {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .temperature-value {
    font-size: clamp(42px, 14vw, 54px);
    white-space: nowrap;
  }

  .temperature-mini-stats {
    min-width: 86px;
  }

  .chart-shell {
    height: 320px;
  }

  .hourly-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .forecast-extended-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #forecast-modal.is-extended-forecast .stats-modal-head h2 {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .stats-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-chart-shell {
    min-height: 280px;
  }

  /* .header-last-reading {
    white-space: normal;
  } */

  .stats-modal-panel {
    max-height: calc(100vh - 20px);
    min-height: 0;
    top: 10px;
    transform: translateX(-50%);
  }

  .stats-modal-body {
    padding: 12px 12px 56px;
  }

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

  /* Forecast kartice - smanjene da stane svih 5 na ekran */
  .forecast-days {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forecast-day:nth-child(n+4) {
    display: none;
  }

  .forecast-day {
    min-height: 0;
    padding: 8px 6px;
  }

  .forecast-day .day-name,
  .forecast-day .day-date {
    font-size: 10px;
  }

  .forecast-day i {
    font-size: 16px;
  }

  .forecast-day .day-temps {
    font-size: 11px;
  }

  .forecast-day .day-precip,
  .forecast-day .day-wind,
  .forecast-day small {
    font-size: 9px;
  }

  /* Header drugi red - sve u jednu liniju */
  .header-actions {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    width: 100%;
  }

  .status {
    flex: 1;
  }

  .header-clock-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .header-clock-time {
    font-size: 20px;
  }

  .header-clock-date {
    font-size: 10px;
    padding: 1px 5px;
  }

  /* Footer - manji na mobilnom */
  .weather-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 12px;
    font-size: 11px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
  }

  .weather-footer-links a {
    height: 26px;
    width: 26px;
  }
}

.agro-block-section {
  background: rgba(15, 139, 141, 0.05);
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.weather-dark .agro-block-section {
  background: rgba(15, 139, 141, 0.08);
  border-color: rgba(15, 139, 141, 0.25);
}

.agro-block-inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.agro-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 16px; /*padding: 12px 16px;*/
  border-right: 1px solid var(--weather-border);
}

.agro-item:last-child {
  border-right: none;
}

.agro-item-label {
  align-items: center;
  color: var(--weather-muted);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(15, 139, 141, 0.14);
}

.agro-item-label .bi {
  color: var(--weather-accent);
  font-size: 12px;
}

.agro-item-val {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.agro-item-val--text {
  font-size: 14px;
}

.agro-item-sub {
  color: var(--weather-muted);
  font-size: 11px;
  line-height: 1.3;
}

.agro-item--frost-warn .agro-item-label,
.agro-item--frost-warn .agro-item-val {
  color: #1971c2;
}

.agro-item--frost-warn .agro-item-label .bi {
  color: #1971c2;
}

.agro-frost-badge {
  background: #e7f5ff;
  border: 1px solid #74c0fc;
  border-radius: 4px;
  color: #1864ab;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  width: fit-content;
}

.weather-dark .agro-item--frost-warn .agro-item-label,
.weather-dark .agro-item--frost-warn .agro-item-val {
  color: #74c0fc;
}

.weather-dark .agro-item--frost-warn .agro-item-label .bi {
  color: #74c0fc;
}

.weather-dark .agro-frost-badge {
  background: rgba(116, 192, 252, 0.12);
  border-color: rgba(116, 192, 252, 0.35);
  color: #74c0fc;
}

@media (max-width: 991.98px) {
  .agro-block-inner {
    grid-template-columns: repeat(3, 1fr);
  }

  .agro-item:nth-child(3) {
    border-right: none;
  }

  .agro-item:nth-child(4),
  .agro-item:nth-child(5),
  .agro-item:nth-child(6) {
    border-top: 1px solid var(--weather-border);
  }
}

@media (max-width: 575.98px) {
  .agro-block-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .agro-item:nth-child(3) {
    border-right: 1px solid var(--weather-border);
  }

  .agro-item:nth-child(2n) {
    border-right: none;
  }

  .agro-item:nth-child(3),
  .agro-item:nth-child(4),
  .agro-item:nth-child(5),
  .agro-item:nth-child(6) {
    border-top: 1px solid var(--weather-border);
  }
}

.header-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}

.header-clock-time {
  color: #f5c842;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.header-clock-date {
  background: rgba(245, 200, 66, 0.15);
  border: 1px solid rgba(245, 200, 66, 0.3);
  border-radius: 4px;
  color: #f5c842;
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
  padding: 1px 7px;
}

.header-clock-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.weather-page.weather-dark .weather-accordion-button,
.weather-page.weather-dark .weather-accordion-button:not(.collapsed) {
  background: var(--weather-surface);
  color: var(--weather-text);
  --bs-accordion-btn-color: var(--weather-text);
  --bs-accordion-btn-bg: var(--weather-surface);
  --bs-accordion-active-color: var(--weather-text);
  --bs-accordion-active-bg: var(--weather-surface);
}

.location-info-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px;
  align-items: start;
}

.location-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.location-tile {
  background: var(--weather-bg);
  border: 1px solid var(--weather-border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
}

.location-tile-label {
  color: var(--weather-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.location-tile-val {
  font-size: 14px;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .location-info-grid {
    grid-template-columns: 1fr;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-block {
  background: var(--weather-surface);
  border: 1px solid var(--weather-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}

.about-block-title {
  align-items: center;
  color: var(--weather-accent);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.about-list li {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 7px;
}

.about-list .bi-check2 {
  color: var(--weather-accent);
  font-size: 13px;
}

.about-list .bi-hourglass-split {
  color: var(--weather-muted);
  font-size: 13px;
}

.about-device-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-device-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.about-device-head {
  align-items: center;
  display: flex;
  gap: 8px;
}

.about-fw-badge {
  background: rgba(15, 139, 141, 0.1);
  border: 1px solid rgba(15, 139, 141, 0.25);
  border-radius: 4px;
  color: var(--weather-accent);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
}

@media (max-width: 767.98px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.location-tile--accent {
  border-color: rgba(15, 139, 141, 0.3);
  background: rgba(15, 139, 141, 0.05);
  grid-column: 1 / -1;
}

.location-tile-sub {
  color: var(--weather-muted);
  font-size: 11px;
}

.location-map-note {
  align-items: center;
  color: var(--weather-muted);
  display: flex;
  font-size: 11px;
  gap: 5px;
  margin: 4px 0 0;
}

.weather-alerts-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.weather-alert-card {
  align-items: center;
  border: 1px solid;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  transition: opacity 0.2s ease;
}

.weather-alert-card:hover {
  opacity: 0.85;
}

.weather-alert-card .alert-icon {
  flex-shrink: 0;
  font-size: 22px;
}

.weather-alert-card .alert-body {
  flex: 1;
}

.weather-alert-card .alert-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 2px;
}

.weather-alert-card .alert-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.weather-alert-card .alert-badge {
  border-radius: 4px;
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
}

.weather-alert-card .alert-desc {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  opacity: 0.9;
}

.weather-alert-card.alert-rain { background: #e6f1fb; border-color: #85b7eb; }
.weather-alert-card.alert-rain .alert-title { color: #0c447c; }
.weather-alert-card.alert-rain .alert-desc { color: #185fa5; }
.weather-alert-card.alert-rain .alert-badge { background: #b5d4f4; color: #042c53; }
.weather-alert-card.alert-rain .alert-icon { color: #185fa5; }

.weather-alert-card.alert-frost { background: #e1f5ee; border-color: #5dcaa5; }
.weather-alert-card.alert-frost .alert-title { color: #085041; }
.weather-alert-card.alert-frost .alert-desc { color: #0f6e56; }
.weather-alert-card.alert-frost .alert-badge { background: #9fe1cb; color: #04342c; }
.weather-alert-card.alert-frost .alert-icon { color: #0f6e56; }

.weather-alert-card.alert-heat { background: #fcebeb; border-color: #f09595; }
.weather-alert-card.alert-heat .alert-title { color: #501313; }
.weather-alert-card.alert-heat .alert-desc { color: #a32d2d; }
.weather-alert-card.alert-heat .alert-badge { background: #f7c1c1; color: #501313; }
.weather-alert-card.alert-heat .alert-icon { color: #a32d2d; }

.weather-alert-card.alert-uv { background: #faeeda; border-color: #ef9f27; }
.weather-alert-card.alert-uv .alert-title { color: #412402; }
.weather-alert-card.alert-uv .alert-desc { color: #854f0b; }
.weather-alert-card.alert-uv .alert-badge { background: #fac775; color: #412402; }
.weather-alert-card.alert-uv .alert-icon { color: #854f0b; }

.weather-alert-card.alert-pm { background: #eeedfe; border-color: #afa9ec; }
.weather-alert-card.alert-pm .alert-title { color: #26215c; }
.weather-alert-card.alert-pm .alert-desc { color: #534ab7; }
.weather-alert-card.alert-pm .alert-badge { background: #cecbf6; color: #26215c; }
.weather-alert-card.alert-pm .alert-icon { color: #534ab7; }

.weather-dark .weather-alert-card.alert-rain { background: rgba(24, 95, 165, 0.12); border-color: rgba(133, 183, 235, 0.35); }
.weather-dark .weather-alert-card.alert-rain .alert-title { color: #85b7eb; }
.weather-dark .weather-alert-card.alert-rain .alert-desc { color: #b5d4f4; }
.weather-dark .weather-alert-card.alert-rain .alert-badge { background: rgba(133, 183, 235, 0.2); color: #b5d4f4; }
.weather-dark .weather-alert-card.alert-rain .alert-icon { color: #85b7eb; }

.weather-dark .weather-alert-card.alert-frost { background: rgba(15, 110, 86, 0.12); border-color: rgba(93, 202, 165, 0.35); }
.weather-dark .weather-alert-card.alert-frost .alert-title { color: #5dcaa5; }
.weather-dark .weather-alert-card.alert-frost .alert-desc { color: #9fe1cb; }
.weather-dark .weather-alert-card.alert-frost .alert-badge { background: rgba(93, 202, 165, 0.2); color: #9fe1cb; }
.weather-dark .weather-alert-card.alert-frost .alert-icon { color: #5dcaa5; }

.weather-dark .weather-alert-card.alert-heat { background: rgba(163, 45, 45, 0.12); border-color: rgba(240, 149, 149, 0.35); }
.weather-dark .weather-alert-card.alert-heat .alert-title { color: #f09595; }
.weather-dark .weather-alert-card.alert-heat .alert-desc { color: #f7c1c1; }
.weather-dark .weather-alert-card.alert-heat .alert-badge { background: rgba(240, 149, 149, 0.2); color: #f7c1c1; }
.weather-dark .weather-alert-card.alert-heat .alert-icon { color: #f09595; }

.weather-dark .weather-alert-card.alert-uv { background: rgba(133, 79, 11, 0.12); border-color: rgba(239, 159, 39, 0.35); }
.weather-dark .weather-alert-card.alert-uv .alert-title { color: #ef9f27; }
.weather-dark .weather-alert-card.alert-uv .alert-desc { color: #fac775; }
.weather-dark .weather-alert-card.alert-uv .alert-badge { background: rgba(239, 159, 39, 0.2); color: #fac775; }
.weather-dark .weather-alert-card.alert-uv .alert-icon { color: #ef9f27; }

.weather-dark .weather-alert-card.alert-pm { background: rgba(83, 74, 183, 0.12); border-color: rgba(175, 169, 236, 0.35); }
.weather-dark .weather-alert-card.alert-pm .alert-title { color: #afa9ec; }
.weather-dark .weather-alert-card.alert-pm .alert-desc { color: #cecbf6; }
.weather-dark .weather-alert-card.alert-pm .alert-badge { background: rgba(175, 169, 236, 0.2); color: #cecbf6; }
.weather-dark .weather-alert-card.alert-pm .alert-icon { color: #afa9ec; }

.alert-toggle-wrap {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  height: 32px;
  width: 32px;
  gap: 4px;
}

.alert-toggle-wrap .bi-bell {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  padding-left: 2px;
}

#alert-toggle {
  cursor: pointer;
  height: 14px;
  margin: 0;
  width: 26px;
}

.ai-nowcast-map-wrap {
  margin-top: 16px;
}

.ai-nowcast-map-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ai-nowcast-map-header span {
  color: var(--weather-muted);
  font-size: 13px;
  font-weight: 600;
}

.ai-nowcast-forecast-btns {
  display: flex;
  gap: 4px;
}

.ai-nowcast-map {
  border-radius: 8px;
  height: 340px;
  overflow: hidden;
  width: 100%;
}