/* ============================================================
   BRANDED INTERACTIVE WAREHOUSE MAP (LEAFLET + MONOCHROME STYLE)
   Strict Brand Palette: #121316, #FFFFFF, #F6F7F9, #B81028
   ============================================================ */

.mps-map-wrap {
    position: relative;
    isolation: isolate;
    min-height: 290px;
}

.contacts-map-card .mps-map-wrap {
    min-height: 360px;
}

.mps-map-wrap .mps-map-canvas,
.mps-map-wrap .mps-map-canvas.leaflet-container {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    background: #F6F7F9;
    font-family: var(--font-body);
}

/* Monochrome architectural styling over OSM tiles */
.mps-map-canvas .leaflet-tile-pane {
    filter: grayscale(100%) contrast(1.06) brightness(1.03);
}

.mps-map-controls {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mps-map-ctrl-btn {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    color: #121316;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(18, 19, 22, 0.08);
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.mps-map-ctrl-btn:hover {
    background: #121316;
    border-color: #121316;
    color: #FFFFFF;
}

.mps-map-ctrl-btn.is-center svg {
    color: #B81028;
}

.mps-map-ctrl-btn.is-center:hover svg {
    color: #FFFFFF;
}

/* Custom Brand Pin & Popup */
.mps-map-pin-icon {
    background: transparent;
    border: 0;
}

.mps-map-popup .leaflet-popup-content-wrapper {
    background: #FFFFFF;
    color: #121316;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    box-shadow: 0 8px 22px rgba(18, 19, 22, 0.14);
    padding: 0;
}

.mps-map-popup .leaflet-popup-content {
    margin: 11px 14px;
    font-family: var(--font-body);
    line-height: 1.4;
    min-width: 195px;
}

.mps-map-popup .leaflet-popup-tip {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: none;
}

.mps-map-popup .leaflet-popup-close-button {
    top: 6px;
    right: 7px;
    color: #6B7280;
    font-size: 16px;
}

.mps-popup-brand {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: #121316;
    margin-bottom: 2px;
}

.mps-popup-addr {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.mps-popup-meta {
    font-size: 11px;
    color: #6B7280;
    margin-top: 2px;
}

.mps-popup-link {
    display: inline-block;
    margin-top: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: #B81028 !important;
    text-decoration: none;
}

.mps-popup-link:hover {
    text-decoration: underline;
}

.mps-map-canvas .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.85);
    color: #6B7280;
    font-size: 10px;
    padding: 1px 6px;
    border-top-left-radius: 4px;
}

.mps-map-canvas .leaflet-control-attribution a {
    color: inherit;
}

@media (max-width: 600px) {
    .mps-map-controls {
        right: 8px;
        top: 8px;
    }
    .mps-map-ctrl-btn {
        width: 30px;
        height: 30px;
    }
}
