/* Letecká / dronová mapa (VFR Manual LPS SR) */

.content.content-map {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.map-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100vh - 4.25rem);
  background: #e8eef3;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: #0f2435;
  color: #dce8f2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.map-toolbar h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-right: 0.5rem;
}

.map-toolbar .map-search {
  display: flex;
  gap: 0.35rem;
  flex: 1;
  min-width: 200px;
  max-width: 420px;
}

.map-toolbar input[type="search"] {
  flex: 1;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.map-toolbar input[type="search"]::placeholder {
  color: #9bb0c2;
}

.map-toolbar button {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 8px;
  margin: 0;
}

.map-toolbar button.secondary {
  background: transparent;
  color: #dce8f2;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.map-toolbar button.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.map-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  flex: 1;
  min-height: 0;
}

.map-legend {
  background: #fff;
  border-right: 1px solid #d3dde6;
  padding: 0.85rem 0.9rem;
  overflow: auto;
  font-size: 0.86rem;
}

.map-legend h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6d7e;
}

.map-legend label {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  margin: 0.35rem 0;
  cursor: pointer;
  line-height: 1.35;
}

.map-legend .swatch {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-top: 0.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.map-legend .hint {
  margin-top: 0.85rem;
  color: #5a6d7e;
  font-size: 0.78rem;
  line-height: 1.4;
}

.map-canvas-wrap {
  position: relative;
  min-height: 0;
}

#drone-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #cfd8e0;
}

.map-fallback {
  position: absolute;
  z-index: 900;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #f5c2c0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 36, 51, 0.12);
  color: #b42318;
}

.leaflet-container {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

.leaflet-popup-content {
  margin: 0.65rem 0.85rem;
  min-width: 180px;
  max-width: 320px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.leaflet-popup-content h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #0f4c6e;
}

.leaflet-popup-content dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
}

.leaflet-popup-content dt {
  color: #5a6d7e;
  font-weight: 500;
}

.leaflet-popup-content dd {
  margin: 0;
}

.map-coords {
  margin-left: auto;
  font-size: 0.75rem;
  color: #9bb0c2;
  font-variant-numeric: tabular-nums;
}

.map-toolbar button.active-pick {
  background: var(--accent, #0d8f7a) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.map-pick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background: #e6f7f3;
  border-bottom: 1px solid #b7e4da;
  font-size: 0.86rem;
}

.map-pick-bar label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.map-pick-bar input[type="range"] {
  width: 140px;
}

.map-pick-bar .map-pick-info {
  color: #0f4c6e;
  font-weight: 600;
}

#drone-map.map-pick-mode {
  cursor: crosshair;
}

@media (max-width: 900px) {
  .map-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .map-legend {
    border-right: 0;
    border-bottom: 1px solid #d3dde6;
    max-height: 140px;
  }
  .map-shell {
    min-height: calc(100dvh - 3.5rem);
  }
  .map-toolbar {
    gap: 0.4rem;
    padding: 0.55rem 0.65rem;
  }
  .map-toolbar h2 {
    width: 100%;
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
  }
  .map-toolbar .map-search {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .map-toolbar button {
    flex: 1 1 auto;
    min-width: calc(50% - 0.4rem);
  }
  .map-coords {
    width: 100%;
    font-size: 0.75rem;
    opacity: 0.85;
  }
  .map-pick-bar {
    flex-direction: column;
    align-items: stretch;
  }
  #drone-map {
    min-height: 320px;
  }
}

/* GEO zóny (Dopravný úrad) */
.geo-map-body {
  grid-template-columns: minmax(260px, 320px) 1fr;
}
#geo-zones-map {
  height: 100%;
  min-height: 420px;
  width: 100%;
  background: #1a3044;
}
.geo-disclaimer {
  margin: 0;
  padding: 0.65rem 0.9rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5a6d7e;
  background: #f4f8fb;
  border-top: 1px solid #d5e3ee;
}
.geo-layer-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #dce8f2;
  margin: 0;
  white-space: nowrap;
}
.geo-detail h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}
.geo-props {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.geo-prop dt {
  margin: 0;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8fa3;
}
.geo-prop dd {
  margin: 0.1rem 0 0;
  font-size: 0.88rem;
  color: #1a3044;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .geo-map-body {
    grid-template-columns: 1fr;
  }
}
