/**
 * Archive map view — vraie carte Leaflet OSM avec pins des pros.
 * v2.13.0 — remplace l'ancien SVG stylisé.
 */

.apb-archive-map {
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    border: 1px solid #E2E8F0;
    background: #EAF1F7;
    position: relative;
}

.apb-archive-map__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
    background: #F8FAFC;
}

/* ───── Pins ───── */
.apb-mp-icon {
    background: transparent !important;
    border: none !important;
}

.apb-mp-pin {
    color: #1F4574;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    transition: transform 0.15s;
    cursor: pointer;
}

.apb-mp-pin:hover {
    transform: translateY(-3px) scale(1.1);
}

.apb-mp-pin.is-premium {
    color: #F59E0B;
}

/* ───── Popup interno ───── */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.18) !important;
}

.leaflet-popup-content {
    margin: 14px 16px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}

.apb-mp-pop {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}

.apb-mp-pop__title {
    font-size: 15px;
    font-weight: 700;
    color: #0F172A !important;
    text-decoration: none !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.apb-mp-pop__title:hover {
    color: #185FA5 !important;
    text-decoration: underline !important;
}

.apb-mp-pop__commune {
    font-size: 12.5px;
    color: #64748B;
}

.apb-mp-pop__rating {
    font-size: 12px;
    color: #F59E0B;
    font-weight: 600;
}

.apb-mp-pop__rating--new {
    color: #10B981;
}

.apb-mp-pop__btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 8px;
    background: #185FA5;
    color: #FFFFFF !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s;
}

.apb-mp-pop__btn:hover {
    background: #0C447C;
    color: #FFFFFF !important;
}

/* ───── Responsive ───── */
@media (max-width: 980px) {
    .apb-archive-map {
        height: 480px;
    }
}

@media (max-width: 640px) {
    .apb-archive-map {
        height: 380px;
        border-radius: 12px;
    }
}
