/* ═══════════════════════════════════════════════════════
    FRY KHANA — CART MAP  (public/css/fk-location.css)
    Tokens layouts/website.blade.php se
   ═══════════════════════════════════════════════════════ */

.fk-map-wrap {
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.fk-map {
    flex: 1;
    min-height: 300px;
    background: var(--card2);
    z-index: 1;
}

/* Leaflet ka apna chrome dark theme ke sath mila do */
.fk-map .leaflet-control-attribution {
    background: rgba(15, 9, 4, .78);
    color: rgba(253, 246, 236, .3);
    font-size: .6rem;
    padding: 1px 6px;
}
.fk-map .leaflet-control-attribution a { color: rgba(239, 159, 39, .5); }
.fk-map .leaflet-control-zoom a {
    background: var(--card);
    color: var(--amber);
    border-color: var(--border);
}
.fk-map .leaflet-control-zoom a:hover { background: var(--card2); }

/* ── Markers ── */
.fk-cart-marker { background: none; border: none; }
.fk-cart-pin {
    position: relative;
    width: 46px; height: 46px;
    display: grid; place-items: center;
}
.fk-cart-pin img {
    width: 34px; height: 34px;
    object-fit: contain;
    position: relative; z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
}
.fk-cart-pulse {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(239, 159, 39, .22);
    animation: fk-pulse 2.2s ease-out infinite;
}
@keyframes fk-pulse {
    0%   { transform: scale(.5); opacity: .9; }
    100% { transform: scale(1.9); opacity: 0; }
}

.fk-me-marker { background: none; border: none; }
.fk-me-dot {
    width: 16px; height: 16px; border-radius: 50%;
    background: #4ade80;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .2);
}

/* ── Animated route line ──
   Sirf ek dafa "draw" hoti hai (point A se B tak), phir solid line ban
   ke ruk jati hai — hamesha chalne wali marching-ants animation nahi.
   Real ORS route ke liye dashArray:null (JS se) → mukammal solid line.
   Fallback (seedhi simat) ke liye chhota static dash → "ye andaza hai"
   wala ehsaas, lekin wo bhi hilti nahi. */
.fk-route-draw {
    animation: fk-route-in .9s ease-out forwards;
}
@keyframes fk-route-in {
    from { stroke-dashoffset: 1200; stroke-dasharray: 1200; }
    to   { stroke-dashoffset: 0;    stroke-dasharray: 1200; }
}

/* ── Mode chips — Paidal / Bike-Car ── */
.fk-mode-row {
    display: flex; gap: .4rem; margin-bottom: .75rem;
}
.fk-mode-chip {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: .4rem;
    background: var(--card2); border: 1px solid var(--border);
    color: rgba(253, 246, 236, .5);
    border-radius: 8px; padding: .5rem .6rem;
    font-family: inherit; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: all .18s;
}
.fk-mode-chip i { font-size: .75rem; }
.fk-mode-chip:hover { border-color: var(--border-h); color: var(--cream); }
.fk-mode-chip.selected {
    border: 2px solid var(--amber); color: var(--amber);
    font-weight: 700;
}

/* ── Distance badge ── */
.fk-map-badge {
    position: absolute; top: .85rem; left: .85rem; z-index: 500;
    background: rgba(15, 9, 4, .9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--amber);
    border-radius: var(--radius);
    padding: .55rem .85rem;
    animation: fk-badge-in .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes fk-badge-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fk-map-badge-dist { font-size: 1.05rem; font-weight: 800; color: var(--amber); line-height: 1.1; }
.fk-map-badge-time { font-size: .68rem; color: rgba(253, 246, 236, .45); margin-top: .1rem; }

/* ── Bottom panel ── */
.fk-map-panel {
    padding: .9rem 1rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--card);
    position: relative; z-index: 400;
}
.fk-map-status {
    display: flex; align-items: center; gap: .5rem;
    font-size: .82rem; font-weight: 600; color: var(--cream);
    margin-bottom: .75rem;
}
.fk-map-status i { color: var(--amber); font-size: .8rem; flex-shrink: 0; }
.fk-map-status.is-error i { color: var(--red); }

.fk-map-actions { display: flex; gap: .5rem; }
.fk-map-btn { flex: 1; justify-content: center; font-size: .82rem; }
.fk-map-btn:disabled { opacity: .5; cursor: not-allowed; }
.fk-map-btn i { font-size: .78rem; }

.fk-map-note {
    font-size: .68rem; color: rgba(253, 246, 236, .26);
    margin-top: .65rem; line-height: 1.6;
}
.fk-map-note.is-warn { color: var(--brown); }
.fk-map-note.is-error { color: var(--red); }

@media (max-width: 520px) {
    .fk-map-wrap { min-height: 340px; }
    .fk-map { min-height: 240px; }
    .fk-map-actions { flex-direction: column; }
    .fk-map-btn span { display: inline; }
}
