/* Meteolab 2027 – Dnevni grafi postaj */

.ml-station-charts-section {
  padding-top: 0;
}

.ml-station-chart-controls,
.ml-station-map-card,
.ml-station-results-head,
.ml-parameter-card,
.ml-chart-card,
.ml-station-chart-note {
  margin-bottom: 22px;
}

.ml-station-chart-controls {
  padding: 22px;
}

.ml-date-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ml-date-control h2,
.ml-parameter-head h2 {
  margin: 3px 0 0;
  font-size: 1.28rem;
  font-weight: 700;
}

.ml-date-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ml-date-select-wrap select {
  height: 42px;
  min-width: 170px;
  padding: 0 38px 0 13px;
  border: 1px solid rgba(21, 130, 199, .24);
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: .91rem;
  font-weight: 650;
  cursor: pointer;
}

.ml-date-nav,
.ml-today-btn,
.ml-reset-params {
  min-height: 42px;
  border: 1px solid rgba(21, 130, 199, .24);
  border-radius: 12px;
  background: #eaf5fc;
  color: #0d5f9c;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ml-date-nav {
  width: 42px;
  padding: 0;
  font-size: 1.45rem;
  line-height: 1;
}

.ml-today-btn,
.ml-reset-params {
  padding: 0 14px;
  font-size: .84rem;
}

.ml-date-nav:hover,
.ml-today-btn:hover,
.ml-reset-params:hover {
  background: #002050;
  border-color: #002050;
  color: #fff;
}

.ml-date-nav:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.ml-selected-station {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.ml-selected-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #002050;
  box-shadow: 0 0 0 5px rgba(21, 130, 199, .12);
}

.ml-selected-station strong,
.ml-selected-station small {
  display: block;
}

.ml-selected-station strong {
  color: #0f172a;
  font-size: .94rem;
  font-weight: 700;
}

.ml-selected-station small {
  margin-top: 2px;
  color: #64748b;
  font-size: .8rem;
}

.ml-station-map-card {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.ml-station-map {
  width: 100%;
  height: 560px;
  min-height: 480px;
  background: #e7eff6;
}

.ml-map-status {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 800;
  transform: translateX(-50%);
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: #526176;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  font-size: .78rem;
  font-weight: 700;
  pointer-events: none;
}

.ml-map-status[hidden] {
  display: none;
}

.ml-station-point {
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #002050;
  box-shadow: 0 1px 6px rgba(15, 23, 42, .34);
}

.ml-station-point.is-active {
  width: 15px;
  height: 15px;
  background: #e54835;
  box-shadow: 0 0 0 5px rgba(229, 72, 53, .17), 0 2px 8px rgba(15, 23, 42, .32);
}

.ml-station-name-label {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #243447;
  font-size: 10px;
  font-weight: 750;
  text-shadow:
    -1px -1px 0 rgba(255,255,255,.96),
     1px -1px 0 rgba(255,255,255,.96),
    -1px  1px 0 rgba(255,255,255,.96),
     1px  1px 0 rgba(255,255,255,.96);
}

.ml-station-results-head {
  padding: 22px;
}

.ml-station-results-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
}

.ml-station-results-head p:last-child {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
}

.ml-parameter-card {
  padding: 22px;
}

.ml-parameter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ml-parameter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.ml-param-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.ml-param-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ml-param-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(21, 130, 199, .22);
  border-radius: 12px;
  background: #eaf5fc;
  color: #0d5f9c;
  font-size: .82rem;
  font-weight: 750;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ml-param-chip.is-active span,
.ml-param-chip input:checked + span {
  border-color: #002050;
  background: #002050;
  color: #fff;
}

.ml-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.ml-chart-card {
  min-width: 0;
  padding: 20px 20px 14px;
}

.ml-chart-card[hidden] {
  display: none !important;
}

.ml-chart-card-head {
  margin-bottom: 10px;
}

.ml-chart-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.04rem;
  font-weight: 700;
}

.ml-chart-card-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: .8rem;
}

.ml-chart-canvas {
  position: relative;
  width: 100%;
  height: 290px;
}

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

.ml-station-chart-note {
  padding: 22px;
}

@media (max-width: 800px) {
  .ml-date-control,
  .ml-parameter-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ml-date-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ml-date-select-wrap {
    flex: 1 1 170px;
  }

  .ml-date-select-wrap select {
    width: 100%;
  }

  .ml-today-btn {
    flex: 1 1 auto;
  }

  .ml-station-map {
    height: 62vh;
    min-height: 470px;
  }

  .ml-parameter-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-param-chip,
  .ml-param-chip span {
    width: 100%;
  }

  .ml-param-chip span {
    justify-content: center;
    text-align: center;
  }

  .ml-reset-params {
    align-self: flex-start;
  }

  .ml-chart-canvas {
    height: 260px;
  }
}

@media (max-width: 520px) {
  .ml-station-chart-controls,
  .ml-station-results-head,
  .ml-parameter-card,
  .ml-chart-card,
  .ml-station-chart-note {
    padding: 16px;
  }

  .ml-date-actions {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .ml-today-btn {
    grid-column: 1 / -1;
  }

  .ml-selected-station {
    align-items: flex-start;
  }

  .ml-station-map {
    height: 65vh;
    min-height: 430px;
  }

  .ml-parameter-options {
    grid-template-columns: 1fr;
  }

  .ml-chart-canvas {
    height: 245px;
  }
}


/* Interaktivne točke meteoroloških postaj */
.ml-station-map .leaflet-interactive {
  cursor: pointer;
  transition: stroke-width .14s ease, fill-opacity .14s ease;
}

.ml-station-map .leaflet-interactive:hover {
  stroke-width: 4;
  fill-opacity: 1;
}

.ml-station-name-label {
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .97);
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
  font-size: 11px;
  font-weight: 750;
  text-shadow: none;
}

.ml-station-name-label::before {
  border-top-color: rgba(255, 255, 255, .97);
}


/* Viri podatkov na zemljevidu */
.ml-map-sources {
  padding: 5px 8px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 7px;
  background: rgba(255, 255, 255, .92);
  color: #526176;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .10);
  font-size: 10px;
  line-height: 1.15;
}

.ml-map-sources strong {
  color: #0f172a;
  font-weight: 700;
}

/* Izvoz posameznega grafa */
.ml-chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ml-chart-export {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.ml-chart-export button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(21, 130, 199, .24);
  border-radius: 9px;
  background: #eaf5fc;
  color: #0d5f9c;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ml-chart-export button:hover {
  border-color: #002050;
  background: #002050;
  color: #fff;
}

@media (max-width: 520px) {
  .ml-chart-card-head {
    gap: 10px;
  }

  .ml-chart-export {
    gap: 4px;
  }

  .ml-chart-export button {
    min-height: 30px;
    padding: 4px 7px;
    font-size: .66rem;
  }

  .ml-map-sources {
    font-size: 9px;
  }
}


/* Izbor datuma: vidna oznaka pred navigacijo */
.ml-date-inline-label {
  margin-right: 2px;
  color: #334155;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .ml-date-inline-label {
    flex: 0 0 100%;
    margin: 0 0 2px;
  }
}

@media (max-width: 520px) {
  .ml-date-actions {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .ml-date-inline-label {
    grid-column: 1 / -1;
  }
}


/* Parametri brez podatkov za izbrano postajo in dan */
.ml-param-chip.is-unavailable {
  cursor: not-allowed;
}

.ml-param-chip.is-unavailable span {
  border-color: rgba(100, 116, 139, .18) !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  opacity: .78;
  cursor: not-allowed;
}

.ml-param-chip.is-unavailable input:checked + span {
  border-color: rgba(100, 116, 139, .18) !important;
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
}


/* ============================================================
   Meteolab 2027 – poenoten videz grafov postaj in dnevni ekstremi
   ============================================================ */

.ml-station-charts-section {
  --station-blue: #002050;
  --station-blue-dark: #0c6fa7;
  --station-text: #0f172a;
  --station-muted: #64748b;
  --station-border: rgba(15, 23, 42, .10);
  --station-shadow: 0 12px 34px rgba(41, 72, 98, .075);
}

.ml-station-chart-controls,
.ml-station-map-card,
.ml-station-results-head,
.ml-parameter-card,
.ml-chart-card,
.ml-station-chart-note,
.ml-station-daily-stat {
  border: 1px solid var(--station-border);
  border-radius: 20px;
  box-shadow: var(--station-shadow);
}

.ml-station-chart-controls,
.ml-station-results-head,
.ml-parameter-card {
  background: rgba(255, 255, 255, .97);
}

.ml-date-control {
  justify-content: center;
  flex-wrap: wrap;
}

.ml-date-control > div:first-child {
  text-align: center;
}

.ml-date-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.ml-date-select-wrap select,
.ml-date-nav,
.ml-today-btn,
.ml-reset-params {
  border-radius: 11px;
}

.ml-selected-station {
  justify-content: center;
  text-align: left;
}

.ml-station-results-head {
  text-align: center;
}

.ml-station-results-head > div {
  margin-inline: auto;
}

/* Pet kartic: enaka tipografija in proporci kot v arhivu */
.ml-station-daily-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.ml-station-daily-summary[hidden] {
  display: none !important;
}

.ml-station-daily-stat {
  min-width: 0;
  min-height: 245px;
  padding: 19px 14px 17px;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  display: grid;
  grid-template-rows: 48px 78px 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  overflow: hidden;
}

.ml-station-daily-stat h3 {
  width: 100%;
  min-height: 48px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #334155;
  font-size: .84rem;
  line-height: 1.28;
  font-weight: 650;
  text-wrap: balance;
}

.ml-station-daily-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--station-blue-dark);
}

.ml-station-daily-icon svg {
  width: 60px;
  height: 60px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ml-station-daily-stat strong {
  width: 100%;
  min-width: 0;
  margin: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #050505;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.ml-station-daily-primary {
  display: block;
  width: 100%;
  color: #050505;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.05;
  font-weight: 860;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.ml-station-daily-secondary {
  display: block;
  width: 100%;
  color: #4e5e6c;
  font-size: .78rem;
  line-height: 1.22;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

/* Parametri kot enaki ovalni zavihki arhivske strani */
.ml-parameter-head {
  align-items: center;
}

.ml-parameter-options {
  gap: 9px 11px;
}

.ml-param-chip span {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border-color: rgba(21, 130, 199, .14);
  background: #f8fbfd;
  color: #405669;
  box-shadow: none;
  font-size: .80rem;
}

.ml-param-chip.is-active span,
.ml-param-chip input:checked + span {
    border-color: #002050;
    background: #002050;
    color: #fff;
    box-shadow: none;
}

/* Grafične kartice enakega vizualnega jezika */
.ml-chart-card {
  padding: 18px 18px 14px;
  background: rgba(255, 255, 255, .98);
  overflow: hidden;
}

.ml-chart-card-head {
  padding: 0 2px 10px;
  align-items: flex-start;
}

.ml-chart-card-head h3 {
  color: var(--station-text);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.ml-chart-card-head p {
  color: var(--station-muted);
}

.ml-chart-export button,
.ml-reset-params {
  border: 1px solid rgba(21, 130, 199, .24);
  border-radius: 11px;
  background: #eef7fc;
  color: var(--station-blue-dark);
  box-shadow: none;
}

.ml-chart-export button:hover,
.ml-reset-params:hover {
  border-color: rgba(21, 130, 199, .42);
  background: #dff0fa;
  color: var(--station-blue-dark);
}

.ml-chart-canvas {
  height: 320px;
}

@media (max-width: 1100px) {
  .ml-station-daily-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ml-station-daily-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-station-daily-stat {
    min-height: 225px;
  }

  .ml-date-control > div:first-child {
    width: 100%;
  }

  .ml-parameter-head {
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .ml-station-daily-summary {
    grid-template-columns: 1fr;
  }

  .ml-station-daily-stat {
    min-height: 220px;
  }

  .ml-chart-canvas {
    height: 270px;
  }
}
