/* ==========================================================================
   bz-map.css — BozankayaATS map widget styling
   --------------------------------------------------------------------------
   MapViewComponent (Views/Shared/Components/Map/Default.cshtml) bu CSS'i
   sayfa başına 1 kere yükler. SDK'nın kendi CSS'i ayrı; bu dosya yalnızca
   kendi marker / popup / legend / tracking elementlerimizi stillendirir.
   ========================================================================== */

/* --- Container ---------------------------------------------------------- */
.bz-map-container {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #e9ecef;
}

.bz-map-container.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 5;
}

.bz-map-container.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #cbd5e1;
    border-top-color: #0d6efd;
    border-radius: 50%;
    z-index: 6;
    animation: bz-map-spin 0.8s linear infinite;
}

@keyframes bz-map-spin {
    to { transform: rotate(360deg); }
}

.bz-map-container.is-error {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    font-size: 13px;
    font-family: system-ui, -apple-system, sans-serif;
    background: #fef2f2;
}

/* --- Markers ---------------------------------------------------------- */
/* ÖNEMLİ: marker container'ına `position` veya `transform` UYGULAMA — MapLibre
   element üstüne `position: absolute` + `transform: translate(...)` setler;
   override edersek zoom/pan sırasında marker kayar. Stilleme tamamen
   child element / pseudo-element üstünde. */

/* Common marker reset */
.bz-map-vehicle-marker,
.bz-map-station-marker {
    cursor: pointer;
    pointer-events: auto;
    /* Hover sırasında tile capture'ı kaybetmemek için will-change verme. */
}

/* --- Vehicle marker --------------------------------------------------- */
/* Tasarım: SVG path tek-parça tear-drop (daire + sivri uç smooth transition).
   Önceki "::after triangle" yaklaşımı görsel olarak iki ayrı parça gibi
   duruyordu — bu sürüm tek smooth shape kullanır. İç beyaz silüet ikon (mask)
   korunmuştur. --pin-color CSS variable'ı + currentColor ile parked/tracked
   varyantları tek kuralda renk yönetir. */
.bz-map-vehicle-marker {
    --pin-color: #ef4444;
    /* Wrapper'a position vermiyoruz (üstteki uyarı). MapLibre marker DOM'una
       inline `position: absolute` setlediği için child SVG/span absolute'lar
       zaten bu wrapper'a relative konumlanır. */
    width: 28px;
    height: 36px;
    color: var(--pin-color); /* SVG path fill="currentColor" bunu kullanır */
}

.bz-map-vehicle-pin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    /* drop-shadow path'in alpha kanalını takip eder → tear-drop kenarına
       yapışık doğal gölge (box-shadow rectangular wrapper'a değil) */
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.28))
            drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
    transition: filter 200ms ease, transform 150ms ease;
}

.bz-map-vehicle-pin > path {
    fill: currentColor;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: round;
}

.bz-map-vehicle-pin-icon {
    /* Wrapper 28×36; daire merkezi yaklaşık (14, 14). Icon 18×18, klasik pin
       look için hafif üst-yarımda (icon center y ≈ 12, daire center y = 14). */
    position: absolute;
    top: 3px;
    left: 5px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    -webkit-mask-image: url('/assets/img/marker-bus.svg');
            mask-image: url('/assets/img/marker-bus.svg');
    -webkit-mask-size: 16px 16px;
            mask-size: 16px 16px;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    pointer-events: none;
}

/* Tracking pulse — SVG <circle> elementi, normalde gizli; .is-tracked modifier
   ile animasyon çalışır. SVG halkası rectangular box-shadow'dan daha temiz —
   pin'in dairesine yapışık ring oluşur. */
.bz-map-vehicle-pin-pulse {
    fill: var(--bs-primary, #0d6efd);
    opacity: 0;
    transform-origin: 16px 16px;
}

.bz-map-vehicle-marker:hover .bz-map-vehicle-pin {
    transform: scale(1.06);
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.35))
            drop-shadow(0 2px 3px rgba(15, 23, 42, 0.2));
}

.bz-map-vehicle-marker.is-parked {
    --pin-color: #6b7280;
}

.bz-map-vehicle-marker.is-tracked .bz-map-vehicle-pin-pulse {
    animation: bz-map-pulse-svg 1.6s ease-out infinite;
}

/* SVG <circle> r ve opacity animation — modern browser destekli (FF, Chromium,
   Safari 14+). r animation Safari'de bazen sorunlu; transform: scale fallback
   gerekirse eklenebilir. */
@keyframes bz-map-pulse-svg {
    0%   { opacity: 0.45; r: 14; }
    100% { opacity: 0;    r: 22; }
}

/* --- Station marker --------------------------------------------------- */
/* Vehicle ile aynı SVG path yaklaşımı — tek-parça tear-drop. */
.bz-map-station-marker {
    --pin-color: #7c3aed;
    width: 28px;
    height: 36px;
    color: var(--pin-color);
}

.bz-map-station-pin {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.28))
            drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
    transition: filter 200ms ease, transform 150ms ease;
}

.bz-map-station-pin > path {
    fill: currentColor;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: round;
}

.bz-map-station-pin-icon {
    position: absolute;
    top: 3px;
    left: 5px;
    width: 18px;
    height: 18px;
    background-color: #fff;
    -webkit-mask-image: url('/assets/img/marker-bus-stop.svg');
            mask-image: url('/assets/img/marker-bus-stop.svg');
    -webkit-mask-size: 16px 16px;
            mask-size: 16px 16px;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    pointer-events: none;
}

.bz-map-station-marker:hover .bz-map-station-pin {
    transform: scale(1.06);
    filter: drop-shadow(0 5px 10px rgba(15, 23, 42, 0.35))
            drop-shadow(0 2px 3px rgba(15, 23, 42, 0.2));
}

.bz-map-station-marker.is-pair {
    --pin-color: #2563eb;
}

.bz-map-station-marker.is-inactive {
    --pin-color: #94a3b8;
}

/* --- Popup -------------------------------------------------------------- */
/* MapLibre popup container'ı override — rounded card, derin shadow, padding sıfır
   (içerik bloğu kendi padding'ini yönetir). */
.maplibregl-popup-content,
.mapboxgl-popup-content {
    padding: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18),
                0 2px 6px rgba(15, 23, 42, 0.08) !important;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.maplibregl-popup-close-button,
.mapboxgl-popup-close-button {
    width: 24px !important;
    height: 24px !important;
    line-height: 22px !important;
    text-align: center;
    border-radius: 50% !important;
    color: #6b7280 !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 2;
    transition: background 150ms ease, color 150ms ease;
}

.maplibregl-popup-close-button:hover,
.mapboxgl-popup-close-button:hover {
    background: #f3f4f6 !important;
    color: #111827 !important;
}

.maplibregl-popup-tip,
.mapboxgl-popup-tip {
    border-top-color: #fff !important;
    border-bottom-color: #fff !important;
}

/* Bizim içerik bloğu — header + body + footer kompozisyonu */
.bz-map-popup-content {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #1f2937;
    min-width: 220px;
    max-width: 320px;
}

/* Compact varyant — vehicle popup için daha minimal, veri-odaklı yoğunluk.
   Padding'ler ve font'lar küçülür; veri tile'ları görünürlüğünü kaybetmez. */
.bz-map-popup-content.is-compact {
    min-width: 240px;
    max-width: 300px;
    font-size: 12px;
    line-height: 1.4;
}

.bz-map-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 36px 8px 10px;   /* sağ padding kapatma butonuna yer açar */
    background: #f8fafc;          /* solid — gradient kaldırıldı */
    border-bottom: 1px solid #e5e7eb;
}

/* Compact / no-icon header — vehicle popup veri-odaklı varyantı için */
.bz-map-popup-content.is-compact .bz-map-popup-header {
    padding: 7px 30px 7px 10px;
    gap: 8px;
}

.bz-map-popup-header.is-no-icon {
    /* Icon yok → title flex genişliği tüm header'ı doldurur */
}

.bz-map-popup-header.is-vehicle {
    background: #fef2f2;          /* solid pastel kırmızı */
    border-bottom-color: #fecaca;
}

.bz-map-popup-header.is-vehicle.is-parked {
    background: #f3f4f6;
    border-bottom-color: #d1d5db;
}

.bz-map-popup-header.is-station {
    background: #f5f3ff;
    border-bottom-color: #ddd6fe;
}

.bz-map-popup-header.is-station.is-pair {
    background: #eff6ff;
    border-bottom-color: #bfdbfe;
}

.bz-map-popup-header.is-station.is-inactive {
    background: #f3f4f6;
    border-bottom-color: #d1d5db;
}

/* Marker ile birebir aynı tasarım: renkli daire + 2px white border + içte
   beyaz silüet ikon (mask). Popup başlığında küçük (32px). */
.bz-map-popup-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: #ef4444;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.bz-map-popup-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #fff;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: 18px 18px;
            mask-size: 18px 18px;
}

.bz-map-popup-icon.is-vehicle::before {
    -webkit-mask-image: url('/assets/img/marker-bus.svg');
            mask-image: url('/assets/img/marker-bus.svg');
}

.bz-map-popup-icon.is-vehicle.is-parked { background-color: #6b7280; }

.bz-map-popup-icon.is-station { background-color: #7c3aed; }
.bz-map-popup-icon.is-station::before {
    -webkit-mask-image: url('/assets/img/marker-bus-stop.svg');
            mask-image: url('/assets/img/marker-bus-stop.svg');
}

.bz-map-popup-icon.is-station.is-pair { background-color: #2563eb; }

.bz-map-popup-title {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bz-map-popup-content.is-compact .bz-map-popup-title {
    font-size: 13px;
    line-height: 1.3;
}

.bz-map-popup-subtitle {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Compact: subtitle uppercase / letter-spacing'siz — plaka okunabilir kalır */
.bz-map-popup-content.is-compact .bz-map-popup-subtitle {
    margin-top: 1px;
    font-size: 10px;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
}

.bz-map-popup-body {
    padding: 10px 12px;
}

.bz-map-popup-content.is-compact .bz-map-popup-body {
    padding: 8px 10px;
}

.bz-map-popup-body:empty {
    display: none;
}

.bz-map-popup-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f5f9;
}

.bz-map-popup-content.is-compact .bz-map-popup-row {
    padding: 3px 0;
}

.bz-map-popup-row:last-child {
    border-bottom: 0;
}

.bz-map-popup-row > .bz-map-popup-key {
    color: #6b7280;
    font-size: 12px;
    flex-shrink: 0;
}

.bz-map-popup-content.is-compact .bz-map-popup-row > .bz-map-popup-key {
    font-size: 11px;
}

.bz-map-popup-row > .bz-map-popup-val {
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}

.bz-map-popup-content.is-compact .bz-map-popup-row > .bz-map-popup-val {
    font-size: 12px;
}

.bz-map-popup-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.bz-map-popup-content.is-compact .bz-map-popup-status {
    padding: 1px 6px;
    font-size: 10px;
}

.bz-map-popup-status.is-active { background: #d1fae5; color: #047857; }
.bz-map-popup-status.is-parked { background: #f3f4f6; color: #4b5563; }

/* Mini badge — durak popup'ında bağlantılı rotalar / istasyon türleri için.
   Bootstrap'ın badge'leri yerine kendi minimal pill style. */
.bz-map-popup-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: flex-end;
    max-width: 180px;
}

.bz-map-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
}

/* Koordinat satırı — tabular-nums ile rakamlar hizalı, monospace gibi okunur */
.bz-map-popup-coord {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 11px;
    color: #475569;
}

/* --- Default station popup template -------------------------------- */
/* bz-map.js buildStationPopupHtml çıktısı için stiller. business-station.css'te
   eskiden tanımlıydı; merkezileşmesi için buraya taşındı — artık tüm sayfalar
   ViewComponent default'unu yüklediğinde bu stilleri otomatik alır. */
.station-popup {
    font-family: Arial, sans-serif;
    min-width: 220px;
    max-width: 280px;
}

.station-popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 6px;
    line-height: 1.25;
}

.station-popup-meta {
    background: #f9f9f9;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 12px;
    color: #495057;
    margin-bottom: 8px;
}

.station-popup-meta + .station-popup-meta {
    margin-top: -2px;
}

.station-popup-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 8px 0 4px;
}

.station-popup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.station-popup-badges .badge {
    font-size: .68rem;
    font-weight: 500;
    padding: 3px 7px;
}

.station-popup-badges .material-symbols-rounded {
    font-size: 13px;
    line-height: 1;
    vertical-align: middle;
}

.station-popup-empty {
    font-size: .72rem;
    color: #adb5bd;
}

/* --- Vehicle highlight grid (Hız + SOC) ----------------------------- */
.bz-map-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.bz-map-popup-content.is-compact .bz-map-popup-grid {
    gap: 6px;
    margin-bottom: 6px;
}

.bz-map-popup-tile {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bz-map-popup-content.is-compact .bz-map-popup-tile {
    padding: 6px 8px;
    min-height: 48px;
    border-radius: 6px;
}

.bz-map-popup-tile-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    font-weight: 600;
}

.bz-map-popup-content.is-compact .bz-map-popup-tile-label {
    font-size: 9px;
    letter-spacing: 0.04em;
}

.bz-map-popup-tile-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-top: 2px;
}

.bz-map-popup-content.is-compact .bz-map-popup-tile-value {
    font-size: 16px;
    margin-top: 1px;
}

.bz-map-popup-tile-value .unit {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    margin-left: 2px;
}

.bz-map-popup-content.is-compact .bz-map-popup-tile-value .unit {
    font-size: 10px;
}

.bz-map-popup-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}

.bz-map-popup-content.is-compact .bz-map-popup-bar {
    height: 4px;
    margin-top: 4px;
}

.bz-map-popup-bar-fill {
    height: 100%;
    background: #22c55e;
    transition: width 250ms ease;
}

.bz-map-popup-bar-fill.is-mid { background: #f59e0b; }
.bz-map-popup-bar-fill.is-low { background: #ef4444; }

/* --- Connection dot (online / offline / warning) -------------------- */
.bz-map-popup-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}

.bz-map-popup-dot.is-on  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.bz-map-popup-dot.is-off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }
.bz-map-popup-dot.is-warn{ background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }

/* --- Subtitle pieces (title altı meta info) ------------------------- */
.bz-map-popup-meta {
    margin-top: 3px;
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bz-map-popup-content.is-compact .bz-map-popup-meta {
    margin-top: 4px;
    font-size: 10px;
    gap: 6px;
}

.bz-map-popup-meta-sep {
    width: 3px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 50%;
}

.bz-map-popup-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 12px 10px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.bz-map-popup-content.is-compact .bz-map-popup-actions {
    padding: 6px 10px 8px;
    gap: 4px;
}

.bz-map-popup-actions:empty {
    display: none;
}

.bz-map-popup-btn {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    transition: background 150ms ease, border-color 150ms ease;
}

.bz-map-popup-content.is-compact .bz-map-popup-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 5px;
}

.bz-map-popup-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Primary butonu site theme'ine bağla — Bootstrap 5 var(--bs-primary) kullanılır.
   Bootstrap yüklü olmayan sayfalarda bile çalışsın diye fallback default değerle. */
.bz-map-popup-btn.is-primary {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
}

.bz-map-popup-btn.is-primary:hover {
    /* Bootstrap'ın "primary-text-emphasis" değişkeni dark variant — hover için
       uygun; eski sürümlerde fallback olarak %10 daha koyu sabit kullan. */
    background: var(--bs-primary-text-emphasis, #0b5ed7);
    border-color: var(--bs-primary-text-emphasis, #0b5ed7);
}

/* --- Legend ------------------------------------------------------------- */
.bz-map-legend {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1f2937;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: auto;
}

.bz-map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bz-map-legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.bz-map-legend-swatch.is-line {
    height: 3px;
    border-radius: 1px;
}

.bz-map-legend-swatch.is-circle {
    border-radius: 50%;
}

/* --- Tracking banner --------------------------------------------------- */
/* Sol-üst köşede aktif takip göstergesi. startTracking/stopTracking
   tarafından toggle edilir. Pulse dot ile aktif izleme görsel olarak
   vurgulanır; × butonu ile takip iptal edilebilir. */
.bz-map-tracking-banner {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 55;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.18),
                0 1px 3px rgba(15, 23, 42, 0.12);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 12px;
    color: #1f2937;
    max-width: calc(100% - 24px);
    pointer-events: auto;
}

.bz-map-tracking-banner.is-visible {
    display: inline-flex;
}

.bz-map-tracking-banner-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    flex-shrink: 0;
    animation: bz-map-tracking-pulse 1.4s ease-out infinite;
}

@keyframes bz-map-tracking-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(var(--bs-primary-rgb, 13, 110, 253), 0.7); }
    70%  { box-shadow: 0 0 0 7px rgba(var(--bs-primary-rgb, 13, 110, 253), 0); }
    100% { box-shadow: 0 0 0 0   rgba(var(--bs-primary-rgb, 13, 110, 253), 0); }
}

.bz-map-tracking-banner-text {
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

.bz-map-tracking-banner-name {
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.bz-map-tracking-banner-stop {
    margin-left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms ease, color 150ms ease;
}

.bz-map-tracking-banner-stop:hover {
    background: #f3f4f6;
    color: #111827;
}

/* --- Toast (info / error) ----------------------------------------------- */
.bz-map-toast {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-family: system-ui, -apple-system, sans-serif;
    background: #fff;
    color: #1f2937;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    z-index: 60;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: none;
}

.bz-map-toast.is-visible {
    opacity: 1;
}

.bz-map-toast.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border-left: 3px solid #ef4444;
}

.bz-map-toast.is-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}
