/* ═══════════════════════════════════════════════════════════════════
 * Elefen Carte Succursales — Leaflet + OpenStreetMap
 * Couleurs McDonald's : #FFBC0D (doré), #DB0007 (rouge), #292929 (noir), #F7F7F7 (gris)
 * ═══════════════════════════════════════════════════════════════════ */

.elefen-carte {
    font-family: 'Speedee', Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ── Map container ─────────────────────────────────────────────── */
.elefen-carte__map {
    width: 100%;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════════
 * CUSTOM PIN — M doré sur fond rouge
 * ═══════════════════════════════════════════════════════════════════ */
.elefen-carte__marker {
    background: none !important;
    border: none !important;
}

.elefen-carte__pin {
    width: 40px;
    height: 40px;
    background: #DB0007;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(219, 0, 7, 0.4);
    transition: transform 0.2s;
    position: relative;
}

.elefen-carte__pin:hover {
    transform: rotate(-45deg) scale(1.15);
}

.elefen-carte__pin-m {
    transform: rotate(45deg);
    font-size: 20px;
    font-weight: 900;
    color: #FFBC0D;
    font-family: 'Speedee', Arial, sans-serif;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════════════
 * POPUP
 * ═══════════════════════════════════════════════════════════════════ */
.elefen-carte__popup-wrap .leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.elefen-carte__popup-wrap .leaflet-popup-content {
    margin: 0 !important;
    width: 260px !important;
}

.elefen-carte__popup-wrap .leaflet-popup-tip {
    background: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.elefen-carte__popup {
    padding: 20px;
    font-family: 'Speedee', Arial, sans-serif;
}

.elefen-carte__popup-title {
    font-size: 17px;
    font-weight: 700;
    color: #292929;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 3px solid #FFBC0D;
}

.elefen-carte__popup-adresse {
    font-size: 13px;
    color: #666;
    margin: 0 0 6px;
    line-height: 1.5;
}

.elefen-carte__popup-tel {
    margin: 0 0 8px;
    font-size: 14px;
}

.elefen-carte__popup-tel a {
    color: #DB0007;
    text-decoration: none;
    font-weight: 600;
}

.elefen-carte__popup-tel a:hover {
    text-decoration: underline;
}

.elefen-carte__popup-badge {
    display: inline-block;
    background: #FFBC0D;
    color: #292929;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    padding-top:8px;
    line-height: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

.elefen-carte__popup-btn {
    display: block;
    background: #DB0007;
    color: #fff !important;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
    margin-top: 8px;
}

.elefen-carte__popup-btn:hover {
    background: #b00006;
}

/* ── Close button ──────────────────────────────────────────────── */
.elefen-carte__popup-wrap .leaflet-popup-close-button {
    color: #999 !important;
    font-size: 20px !important;
    top: 8px !important;
    right: 10px !important;
}

.elefen-carte__popup-wrap .leaflet-popup-close-button:hover {
    color: #DB0007 !important;
}

/* ═══════════════════════════════════════════════════════════════════
 * LISTE DES SUCCURSALES (sous la carte)
 * ═══════════════════════════════════════════════════════════════════ */
.elefen-carte__liste {
    background: #292929;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.elefen-carte__item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #3a3a3a;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1 1 auto;
    min-width: 250px;
    border: 2px solid transparent;
    box-sizing: border-box;
    max-width: 100%;
}

.elefen-carte__item:hover {
    background: #444;
    border-color: #FFBC0D;
    transform: translateY(-1px);
}

.elefen-carte__item-pin {
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.elefen-carte__item-pin svg,
.elefen-carte__item-pin .fa-solid {
    display: block;
}

.elefen-carte__item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.elefen-carte__item-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFBC0D;
}

.elefen-carte__item-adresse {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.elefen-carte__item-tel {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.elefen-carte__item-tel:hover {
    color: #FFBC0D;
}

.elefen-carte__item-badge {
    flex-shrink: 0;
    background: #FFBC0D;
    color: #292929;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    line-height: 100%;
    padding-top: 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
 * LEAFLET OVERRIDES — Style de la carte
 * ═══════════════════════════════════════════════════════════════════ */

/* Zoom controls */
.elefen-carte .leaflet-control-zoom a {
    background: #292929 !important;
    color: #FFBC0D !important;
    border: none !important;
    font-weight: 700;
}

.elefen-carte .leaflet-control-zoom a:hover {
    background: #DB0007 !important;
    color: #fff !important;
}

/* Attribution */
.elefen-carte .leaflet-control-attribution {
    background: rgba(41, 41, 41, 0.8) !important;
    color: #999 !important;
    font-size: 10px;
}

.elefen-carte .leaflet-control-attribution a {
    color: #FFBC0D !important;
}

/* ═══════════════════════════════════════════════════════════════════
 * RESPONSIVE
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .elefen-carte__liste {
        flex-direction: column;
    }

    .elefen-carte__item {
        min-width: 0;
    }

    .elefen-carte__map {
        height: 350px !important;
    }
}
