/* map.css — Harita sayfası (#mapOverlay): üstte büyük harita, altta görünen alandaki ilanlar.
   Kart görünümü dashboard.css'teki .dash-listing-card ile aynıdır; burada yalnız sayfa düzeni ve
   harita/liste eşleşme durumları tanımlanır. */

.map-board { gap: 16px; }
.map-stage {
  position: relative; height: 460px; overflow: hidden; isolation: isolate; z-index: 0;
  background: #e8ebe8; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.map-canvas { position: absolute; inset: 0; }
.map-stage .leaflet-container { width: 100%; height: 100%; font-family: inherit; background: #e8ebe8; }
.map-stage .leaflet-control-zoom { border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.map-stage .leaflet-control-zoom a { width: 36px; height: 36px; color: var(--ink); background: var(--surface); border-bottom: 1px solid var(--line); font: 600 20px/34px var(--font); }
.map-stage .leaflet-control-zoom a:last-child { border-bottom: 0; }
.map-stage .leaflet-control-attribution { padding: 2px 6px; color: var(--muted); background: rgba(255, 255, 255, .85); font-size: 10px; border-radius: 6px 0 0 0; }
.map-stage .leaflet-control-attribution a { color: var(--green-text); }
.map-stage .leaflet-marker-icon.dash-map-pin { animation: none; margin: 0; transition: box-shadow var(--dur-fast) ease; }
.map-stage .leaflet-marker-icon.dash-map-pin:hover, .map-stage .leaflet-marker-icon.dash-map-pin:focus-visible, .map-stage .leaflet-marker-icon.dash-map-pin.is-hover {
  transform: none; box-shadow: 0 0 0 5px rgba(29, 91, 75, .22), 0 2px 8px rgba(19, 32, 26, .28); outline: none;
}
.map-stage .leaflet-marker-icon.dash-map-pin.is-selected { transform: none; box-shadow: 0 0 0 7px rgba(29, 91, 75, .28), 0 2px 10px rgba(19, 32, 26, .3); z-index: 1000 !important; }
.map-stage-note {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; margin: 0; padding: 10px 14px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--line-2); border-radius: 10px; color: var(--ink-2); font-size: var(--text-13); line-height: 1.5;
}
.map-stage.is-plain { background: var(--green-tint); }
.map-stage.is-plain .map-canvas { display: none; }
.map-stage.is-plain .map-stage-note { position: static; margin: 0; height: 100%; display: grid; place-items: center; text-align: center; background: transparent; border: 0; }

.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-toolbar strong { font-size: var(--text-15); font-weight: 600; color: var(--ink); }
.map-toolbar strong small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-13); font-weight: 400; }
.map-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.map-list .dash-listing-card { position: relative; cursor: pointer; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
.map-list .dash-listing-card.is-selected { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft), var(--shadow-card); }
.map-list .dash-listing-card:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.map-list .dash-listing-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.map-list .dash-listing-actions .mini { min-height: 36px; text-decoration: none; }
.map-list .dash-listing-actions .mini.primary-mini { flex: 1 1 auto; }
.map-empty { grid-column: 1 / -1; }

.map-unlocated { display: flex; flex-direction: column; gap: 10px; }
.map-unlocated .section-title span { color: var(--muted); font-family: var(--font); font-size: var(--text-14); }
.map-unlocated-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.map-unlocated-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.map-unlocated-row:last-child { border-bottom: 0; }
.map-unlocated-row b { font-size: var(--text-14); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-unlocated-row small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--text-13); }
.map-unlocated-row .sbadge { justify-self: start; }
.map-unlocated-row .mini { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

@media (max-width: 1100px) { .map-stage { height: 400px; } }
@media (max-width: 760px) {
  .map-board { gap: 14px; }
  .map-stage { height: 320px; border-radius: var(--radius); }
  .map-list { grid-template-columns: 1fr; gap: 12px; }
  .map-toolbar { align-items: flex-start; }
  .map-toolbar-actions .btn { min-height: 44px; }
  .map-unlocated-row { grid-template-columns: minmax(0, 1fr); }
  .map-unlocated-row .mini { grid-column: 1; grid-row: auto; justify-self: start; min-height: 40px; }
}
@media (max-height: 560px) and (max-width: 900px) { .map-stage { height: 240px; } }
