/* Δημόσια σελίδα «Χάρτης κινδύνου πυρκαγιάς» (GET /live/firemap) — scope: .firemap-pub. Tokens: block «Public shell» του app.css.
   Απαιτεί και το /vendor/leaflet/leaflet.css (το περνά ο controller στο $styles). */

.firemap-pub .fm-page { padding-top: 28px; }
.firemap-pub .fm-head { margin-bottom: 14px; }

.firemap-pub .fm-disclaimer {
  margin: 0 0 16px; padding: 10px 14px; border-radius: var(--pub-radius-sm);
  background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(217, 119, 6, 0.35);
  color: var(--pub-ink); font-size: 0.92rem;
}
.firemap-pub .fm-disclaimer a { color: var(--pub-brand-2); font-weight: 600; }

.firemap-pub .fm-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 12px;
}
.firemap-pub .fm-days { display: flex; gap: 6px; overflow-x: auto; max-width: 100%; padding-bottom: 2px; }
.firemap-pub .fm-day {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  min-height: 40px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: var(--pub-card); border: 1px solid var(--pub-border);
  color: var(--pub-ink-soft); font: 600 0.9rem/1.2 var(--pub-font); white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.firemap-pub .fm-day:hover { border-color: var(--pub-brand-2); color: var(--pub-brand); }
.firemap-pub .fm-day[aria-pressed="true"] { background: var(--pub-brand); border-color: var(--pub-brand); color: #fff; }
.firemap-pub .fm-day:focus-visible { outline: 2px solid var(--pub-brand-2); outline-offset: 2px; }
.firemap-pub .fm-day__tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; background: rgba(15, 39, 66, 0.08);
}
.firemap-pub .fm-day[aria-pressed="true"] .fm-day__tag { background: rgba(255, 255, 255, 0.2); }
.firemap-pub .fm-updated { margin: 0; font-size: 0.85rem; }

/* Χάρτης: δικό του stacking context ώστε τα panes/controls του Leaflet (z-index 400–1000) να μη
   σκεπάζουν το topbar ή το drawer του μενού. */
.firemap-pub .fm-mapwrap { position: relative; z-index: 0; isolation: isolate; }
.firemap-pub .fm-map {
  height: calc(100vh - var(--pub-topbar-h) - 140px); min-height: 440px; max-height: 820px;
  border: 1px solid var(--pub-border); border-radius: var(--pub-radius);
  box-shadow: var(--pub-shadow); background: #dbe7f0;
}
.firemap-pub .fm-empty {
  position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 1000;
  width: min(92%, 440px); padding: 14px 18px; text-align: center;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--pub-border);
  border-radius: var(--pub-radius-sm); box-shadow: var(--pub-shadow);
}
.firemap-pub .fm-empty[hidden] { display: none; }
.firemap-pub .fm-empty p { margin: 0; font-size: 0.9rem; }
.firemap-pub .fm-empty__title { font-weight: 700; color: var(--pub-ink); margin-bottom: 4px !important; }

.firemap-pub .fm-legend { margin-top: 16px; }
.firemap-pub .fm-legend__title { margin: 0 0 10px; font-size: 1rem; font-weight: 700; color: var(--pub-ink); }
.firemap-pub .fm-legend__list {
  list-style: none; margin: 0 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: var(--pub-ink);
}
.firemap-pub .fm-legend__list li { display: inline-flex; align-items: center; gap: 6px; }
.firemap-pub .fm-legend__num { font-weight: 700; }
.firemap-pub .fm-legend__note { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.5; }
.firemap-pub .fm-swatch {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%; vertical-align: -3px;
  border: 1.5px solid #0f172a; flex: 0 0 auto;
}
.firemap-pub .fm-swatch--official { background: #94a3b8; }
.firemap-pub .fm-swatch--forecast { background: rgba(148, 163, 184, 0.5); border-style: dashed; margin-left: 10px; }

.firemap-pub .fm-official { margin: 16px 0 0; }
.firemap-pub .fm-official figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px;
}
.firemap-pub .fm-official h2 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--pub-ink); }
.firemap-pub .fm-official figcaption a { font-size: 0.88rem; color: var(--pub-brand-2); }
.firemap-pub .fm-official img {
  display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto;
  border: 1px solid var(--pub-border); border-radius: var(--pub-radius-sm);
}
.firemap-pub .fm-official img[hidden] { display: none; }
.firemap-pub .fm-official__missing, .firemap-pub .fm-official__src { margin: 10px 0 0; font-size: 0.82rem; }

.firemap-pub .leaflet-container { font-family: var(--pub-font); }

@media (max-width: 899.98px) {
  .firemap-pub .fm-page { padding-top: 20px; }
  .firemap-pub .fm-head .pub-lead { font-size: 0.95rem; }
  /* Κινητό: χάρτης από άκρη σε άκρη, σχεδόν όλο το ύψος της οθόνης. */
  .firemap-pub .fm-mapwrap { margin-left: calc(-1 * var(--pub-gutter)); margin-right: calc(-1 * var(--pub-gutter)); }
  .firemap-pub .fm-map {
    height: calc(100vh - var(--pub-topbar-h));
    height: calc(100svh - var(--pub-topbar-h));
    min-height: 360px; max-height: none;
    border-radius: 0; border-left: 0; border-right: 0; box-shadow: none;
  }
}
