/**
 * jp-jobs-map.css
 * WP ATS Jobs Manager — Carte Leaflet
 * Style Ideal Profeel : marqueurs circulaires, tooltip, responsive.
 */

/* ── Variables couleurs (surchargeables par le thème) ────────── */
:root {
    --jp-map-default : #1e4080;      /* couleur des marqueurs inactifs */
    --jp-map-active  : #fd5320;      /* couleur primaire JP Jobs */
    --jp-map-empty   : #aaa;         /* marqueurs à 0 résultat */
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.jp-map-wrap {
    margin: 24px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .1);
}

/* ── Carte ───────────────────────────────────────────────────── */
.jp-map {
    height: 420px;
    width: 100%;
    background: #f0f0f0;
}

/* ── Marqueur custom : cercle plein avec compteur ────────────── */
.jp-map-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
    transition: transform .15s, box-shadow .15s;
    border: 2px solid rgba(255, 255, 255, .6);
    font-family: inherit;
    user-select: none;
}

.jp-map-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.jp-map-marker--active {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--jp-map-active, #fd5320),
                0 4px 12px rgba(0, 0, 0, .3);
}

/* ── Tooltip Leaflet ─────────────────────────────────────────── */
.leaflet-tooltip {
    font-family: inherit;
    font-size: .82rem;
    border-radius: 6px;
    padding: 6px 10px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    line-height: 1.4;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .jp-map {
        height: 280px;
    }
}
