: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);
    --glass-border: rgba(0, 0, 0, 0.1);
    --content-width: 1200px;
}

/* HIDE PROVINCE NAMES ON MAP */
svg #text-abb {
    display: none !important;
}

/* SEARCH BAR ABOVE MAP */
.seor-centros-search {
    max-width: 600px;
    margin: 0 auto 30px;
}

.seor-centros-search .wp-block-search__inside-wrapper {
    display: flex;
    border: 1px solid var(--seor-red);
    overflow: hidden;
}

.seor-centros-search .wp-block-search__input {
    flex: 1;
    border: none !important;
    /* Initial bottom border */
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.seor-centros-search .wp-block-search__input:focus,
.seor-centros-search .wp-block-search__input:focus-visible {
    border: 3px solid var(--wp--preset--color--primary) !important;
    border-radius: 0px !important;
    padding: 8px 15px 7px 10px !important;
    outline: none !important;
}

.seor-centros-search .wp-block-search__button {
    background-color: var(--wp--preset--color--primary) !important;
    border: none !important;
    padding: 8px 15px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.seor-centros-search .wp-block-search__button:hover {
    background-color: var(--wp--preset--color--secondary) !important;
}

.seor-centros-search .wp-block-search__button svg {
    width: 20px;
    height: 20px;
}

/* MAP CONTAINER */
.seor-centros-map-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 30px auto;
}

.seor-centros-map-container {
    position: relative;
    background: #fff;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-svg-wrapper {
    width: 100%;
}

.map-svg-wrapper svg {
    width: 100%;
    height: auto;
}

/* Map Interactivity */
.map-svg-wrapper path {
    fill: #f2f2f2;
    stroke: #fff;
    stroke-width: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-svg-wrapper path:hover,
.map-svg-wrapper path.active {
    fill: var(--seor-red);
}

/* STICKY BOTTOM PANEL */
.seor-centros-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-centros-panel.visible {
    transform: translateY(0);
    visibility: visible;
}

.panel-titles {
    width: 100%;
    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;
}

#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;
}

/* LISTA SEOR ICON */
.lista_seor_icon {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    columns: 2;
    column-gap: 50px;
}

.lista_seor_icon li {
    break-inside: avoid;
    margin-bottom: 15px;
}

.lista_seor_icon li a {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    color: var(--seor-dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.lista_seor_icon li a::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 12px;
    background-color: var(--seor-red);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
}

.lista_seor_icon li a:hover {
    color: var(--seor-gold);
}

.lista_seor_icon li a:hover::before {
    background-color: var(--seor-gold);
    transform: translate(2px, -1px);
}

/* CLOSE NOTCH */
.seor-centros-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-centros-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-centros-close-notch:hover .close-notch-layer-2 {
    transform: scale(1);
    opacity: 1;
}

.seor-centros-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) {
    .lista_seor_icon {
        columns: 1;
    }

    .seor-centros-search {
        padding: 0 20px;
    }

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

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

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