/**
 * FACT — Carte Collecte Déchets (frontend iframe)
 *
 * @package FACT
 * @since   3.0.0
 */

/* =========================================================================
   Markers
   ========================================================================= */

.fact-collecte-marker {
    background: none !important;
    border: none !important;
}

.fact-collecte-marker__inner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
}

.fact-collecte-marker__inner span {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}

.fact-collecte-marker__inner:hover {
    transform: scale(1.15);
}

/* =========================================================================
   Popup
   ========================================================================= */

.fact-collecte-popup-wrapper .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.fact-collecte-popup-wrapper .leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.fact-collecte-popup-wrapper .leaflet-popup-tip {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.fact-collecte-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.fact-collecte-popup__img-wrap {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.fact-collecte-popup__img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.fact-collecte-popup__body {
    padding: 10px 12px 12px;
}

.fact-collecte-popup__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.fact-collecte-popup__title strong {
    font-size: 14px;
    color: #222;
}

.fact-collecte-popup__badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fact-collecte-popup__info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}

.fact-collecte-popup__info svg {
    flex-shrink: 0;
}

/* =========================================================================
   Zoom control
   ========================================================================= */

.leaflet-control-zoom {
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
    color: #333 !important;
}

.leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* =========================================================================
   Attribution
   ========================================================================= */

.leaflet-control-attribution {
    opacity: 0.6;
    font-size: 10px !important;
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 480px) {
    .fact-collecte-marker__inner {
        width: 30px;
        height: 30px;
    }

    .fact-collecte-marker__inner span {
        font-size: 12px;
    }

    .fact-collecte-popup-wrapper .leaflet-popup-content {
        min-width: 160px;
    }

    .fact-collecte-popup__img {
        height: 90px;
    }

    .fact-collecte-popup__body {
        padding: 8px 10px 10px;
    }

    .fact-collecte-popup__title strong {
        font-size: 13px;
    }

    .fact-collecte-popup__info {
        font-size: 12px;
    }
}
