/* fleet.css — Canlı Filo Takibi bölümü (Leaflet kamyon haritası)
   #harita bölümüyle aynı tasarım dilini izler. */

.fleet-section { padding: 40px 0 130px; background: var(--surface); }
.fleet-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
    display: flex; flex-direction: column; gap: 40px;
}

/* ── Üst başlık ─────────────────────────────────────────────────────────── */
.fleet-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.fleet-top-left { display: flex; flex-direction: column; }
.fleet-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700; color: var(--muted);
    letter-spacing: 2.4px; text-transform: uppercase; margin-bottom: 22px;
}
.fleet-eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--red); }
.fleet-section h2 {
    font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em;
    font-weight: 700; color: var(--ink); margin: 0;
}
.fleet-section h2 em { font-style: normal; color: var(--red); }
.fleet-top-right { padding-bottom: 8px; }
.fleet-top-right p { color: var(--muted); font-size: 15px; line-height: 1.65; margin: 0; max-width: 440px; }

/* ── Harita ────────────────────────────────────────────────────────────── */
.fleet-map-wrap { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 50px rgba(30,42,58,0.10); }
.fleet-map { width: 100%; height: 520px; background: #e8edf0; z-index: 1; }
.fleet-map:focus { outline: none; }

/* ── Kamyon marker'ı (Leaflet divIcon) ──────────────────────────────────── */
.fleet-marker { background: none; border: none; }
.fleet-marker-pin {
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); transform-origin: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3); border: 2px solid #fff;
}
.fleet-marker-pin i { transform: rotate(45deg); color: #fff; font-size: 13px; }
.fleet-marker.is-moving .fleet-marker-pin { background: var(--orange); }
.fleet-marker.is-idle   .fleet-marker-pin { background: #5B6B7B; }

/* ── Popup ──────────────────────────────────────────────────────────────── */
.fleet-popup { font-family: var(--font-body); min-width: 180px; }
.fp-plate { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: 0.4px; }
.fp-model { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.fp-status { margin: 8px 0 6px; }
.fp-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-full); }
.fp-badge.is-moving { background: #FFF0E6; color: #C2410C; }
.fp-badge.is-idle   { background: #EEF2F5; color: #475569; }
.fp-addr { font-size: 12px; color: var(--text); line-height: 1.5; }
.fp-ts { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Leaflet popup kutusunu temaya uydur */
.fleet-map .leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: 0 8px 26px rgba(0,0,0,0.18); }
.fleet-map .leaflet-popup-content { margin: 14px 16px; }

/* OSM kredisi — lisans gereği kalır ama silik ve küçük gösterilir */
.fleet-map .leaflet-control-attribution {
    background: rgba(255,255,255,0.6);
    font-size: 10px; color: var(--muted); padding: 1px 6px;
}
.fleet-map .leaflet-control-attribution a { color: var(--muted); }

/* ── Legend + sayaç ─────────────────────────────────────────────────────── */
.fleet-legend { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.fleet-legend-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.fleet-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fleet-dot.is-moving { background: var(--orange); }
.fleet-dot.is-idle   { background: #5B6B7B; }
.fleet-legend-meta { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .fleet-section { padding: 20px 0 90px; }
    .fleet-inner { padding: 0 22px; gap: 28px; }
    .fleet-top { grid-template-columns: 1fr; gap: 18px; }
    .fleet-top-right { padding-bottom: 0; }
    .fleet-map { height: 420px; }
    .fleet-legend-meta { margin-left: 0; width: 100%; }
}
