:root {
    --seor-red: var(--wp--preset--color--primary, #8B1D22);
    --seor-gold: var(--wp--preset--color--secondary, #C5A059);
    --seor-dark: var(--wp--preset--color--contrast, #1A1A1A);
    --glass-bg: rgba(255, 255, 255, 0.98);
    --content-width: 1200px;
}

/* ─── MAP CONTAINER ─── */
.seor-map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.contenedor_mapa {
    aspect-ratio: 1/1;
    position: relative;
    width: 100%;
    height: auto;
    background: transparent;
}

.contenedor_mapa text { display: none; }

#markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

#mapwrapper {
    width: 100%;
    height: 100%; /* Aumentado del 80% */
}

#map_base svg {
    width: 100%; /* Aumentado del 80% */
    height: 100%;
    display: block;
}

/* ─── MAP PROVINCE COLORS ─── */
#map_base path {
    fill: #d8dde6;
    stroke: #fff;
    stroke-width: 0.8;
    transition: fill 0.25s ease;
    cursor: default;
    pointer-events: auto;
}

/* Provinces WITH data: SEOR red, clickable */
#map_base path.has-data {
    fill: var(--seor-red);
    cursor: pointer;
}

#map_base path.has-data:hover,
#map_base path.has-data.active {
    fill: var(--seor-gold);
    filter: brightness(1.05);
}

/* ─── EXTRANJERO BUTTON WRAPPER ─── */
.seor-btn-extranjero-wrapper {
    position: absolute !important;
    top: 15px;
    right: 15px;
    z-index: 100;
    margin: 0 !important;
}

#seor-btn-extranjero {
    cursor: pointer;
    text-decoration: none !important;
}

/* ─── STICKY BOTTOM PANEL ─── */
.seor-mapa-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    max-height: 85vh;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border-top: 4px solid var(--seor-red);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 999999;
    transform: translateY(105%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.seor-mapa-panel.visible {
    transform: translateY(0);
    visibility: visible;
}

.panel-titles {
    width: calc(100% - 50px);
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 25px 20px 5px;
    flex-shrink: 0;
    z-index: 10;
    position: relative;
}

.panel-titles hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 15px 0 0;
}

#seor-panel-provincia-name {
    display: block !important;
    margin: 0 !important;
    color: var(--seor-red) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -1px !important;
    text-transform: uppercase;
}

.panel-subtext {
    margin: 5px 0 0 0 !important;
    color: #555 !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
}

.panel-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 10px 20px 80px;
    scrollbar-width: thin;
}

/* ─── MÉDICOS LIST ─── */
.medicos-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    columns: 2;
    column-gap: 50px;
}

.medicos-list li {
    break-inside: avoid;
    margin-bottom: 10px;
    padding-left: 0;
}

.medicos-list li strong {
    display: block;
    color: var(--seor-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1rem !important;
}

.medicos-list li .centro {
    display: block;
    color: var(--seor-red);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.85;
}

.medicos-list li.country-header {
    column-span: all;
    width: 100%;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--seor-red);
    padding-bottom: 5px;
    list-style: none !important;
}

.medicos-list li.country-header h4 {
    margin: 0 !important;
    color: var(--seor-red) !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.medicos-list li.country-header:first-child {
    margin-top: 0;
}

.panel-loader {
    padding: 30px;
    text-align: center;
    color: var(--seor-red);
    font-weight: bold;
}

.panel-no-results {
    padding: 20px;
    color: #999;
    font-weight: 500;
}

/* ─── CLOSE NOTCH (identical to seor-centros) ─── */
.seor-mapa-close-notch {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
}

.close-notch-bg {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-color: var(--seor-red);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transition: all 0.4s;
    z-index: 2;
}

.seor-mapa-close-notch:hover .close-notch-bg {
    width: 80px;
    height: 80px;
    background-color: var(--seor-gold);
}

.close-notch-layer-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: color-mix(in srgb, var(--seor-red) 30%, transparent);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: scale(0);
    transform-origin: bottom right;
    transition: 0.5s all;
    opacity: 0;
    z-index: 1;
}

.seor-mapa-close-notch:hover .close-notch-layer-2 {
    transform: scale(1);
    opacity: 1;
}

.seor-mapa-close-notch .close-icon {
    position: absolute;
    bottom: 2px;
    right: 8px;
    color: #fff;
    font-size: 26px;
    font-weight: 400;
    z-index: 10;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .medicos-list {
        columns: 1;
    }

    #seor-panel-provincia-name {
        font-size: 1.3rem !important;
    }

    .seor-btn-extranjero-wrapper {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-bottom: 20px;
        display: flex !important;
        justify-content: flex-end !important;
    }

    #seor-btn-extranjero {
        width: auto !important;
        box-sizing: border-box !important;
    }
}

/* ─── PROVINCE MARKER POINTS (legacy, kept for compatibility) ─── */
.BNZ_point {
    position: absolute;
    pointer-events: auto;
    width: 20px;
    height: 20px;
    background-color: transparent;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── MARKER POSITIONS ─── */
#marker-coruna { top: 10%; left: 10%; }
#marker-albacete { top: 52%; left: 56%; }
#marker-alicante { top: 54%; left: 66%; }
#marker-almeria { top: 65%; left: 54%; }
#marker-asturias { top: 6%; left: 27%; }
#marker-alava { top: 12%; left: 50%; }
#marker-avila { top: 31%; left: 35%; }
#marker-badajoz { top: 54%; left: 24%; }
#marker-barcelona { top: 21%; left: 85%; }
#marker-burgos { top: 21%; left: 44%; }
#marker-cantabria { top: 10%; left: 40%; }
#marker-castellon { top: 36%; left: 71%; }
#marker-ciudad_real { top: 52%; left: 42%; }
#marker-cuenca { top: 38%; left: 55%; }
#marker-caceres { top: 41%; left: 25%; }
#marker-cadiz { top: 71%; left: 26%; }
#marker-cordoba { top: 56%; left: 34%; }
#marker-gipuzkoa { top: 9%; left: 54%; }
#marker-girona { top: 19%; left: 91%; }
#marker-granada { top: 68%; left: 44%; }
#marker-guadalajara { top: 29%; left: 48%; }
#marker-huelva { top: 61%; left: 18%; }
#marker-huesca { left: 71%; top: 16%; }
#marker-baleares { top: 40%; left: 89%; }
#marker-jaen { top: 58%; left: 47%; }
#marker-la_rioja { top: 16%; left: 50%; }
#marker-las_palmas { top: 91%; left: 30%; }
#marker-leon { top: 16%; left: 28%; }
#marker-lleida { top: 22%; left: 77%; }
#marker-lugo { top: 8%; left: 17%; }
#marker-madrid { top: 33%; left: 43%; }
#marker-murcia { top: 57%; left: 61%; }
#marker-malaga { top: 68%; left: 36%; }
#marker-navarra { top: 15%; left: 58%; }
#marker-ourense { top: 19%; left: 15%; }
#marker-palencia { top: 15%; left: 37%; }
#marker-pontevedra { top: 14%; left: 8%; }
#marker-salamanca { top: 33%; left: 26%; }
#marker-tenerife { top: 92%; left: 14%; }
#marker-segovia { top: 29%; left: 40%; }
#marker-sevilla { top: 62%; left: 27%; }
#marker-soria { left: 53%; top: 22%; }
#marker-tarragona { top: 27%; left: 78%; }
#marker-teruel { top: 31%; left: 65%; }
#marker-toledo { top: 40%; left: 40%; }
#marker-valencia { top: 47%; left: 65%; }
#marker-valladolid { top: 25%; left: 35%; }
#marker-bizkaia { top: 8%; left: 50%; }
#marker-zamora { top: 24%; left: 28%; }
#marker-zaragoza { top: 22%; left: 62%; }
