.map-section h2.title-section {
    margin-bottom: var(--margin-section);
}

.map-section.et_pb_section  {
    padding-bottom: 0 !important;
}

.is-hidden {
display: none !important;
}

.map-section .hc-map-component {
    position: relative;
    left: -15%;
    margin-top: -10%;
}

/* INTERACCIÓN SVG */
.hc-map-container svg [id] {
    pointer-events: all;
    transition: fill 0.3s ease;
}

/* Solo los países con datos tienen hover y cursor */
.hc-interactive-element {
    cursor: pointer;
}

.hc-interactive-element:hover, .hc-interactive-element:hover path {
    fill: var(--primary) !important;
    fill-opacity: 0.7;
}

/* LA TARJETA (Diseño según imagen) */
.hc-map-card {
    display: none;
    position: absolute;
    top: 50%; 
    right: -15%; 
    transform: translateY(-50%);
    width: 700px; 
    background: var(--blanco);
    border-radius: var(--radius);
    box-shadow: 0 19px 24px -5px rgba(0, 0, 0, 0.1);
    z-index: 100; 
    overflow: hidden;
}

.hc-map-card.is-active { 
    display: flex; /* Cambiado a flex para diseño lateral */
}

.hc-map-card__inner { 
    display: flex; 
    width: 100%;
}

.hc-map-card__content { 
    flex: 1.2; 
    padding: var(--padding-int); 
    display: flex; 
    flex-direction: column; 
}

.hc-map-card__image { 
    flex: 0.8;
    background-size: cover; 
    background-position: center; 
}

/* Hace que el contenedor desaparezca visualmente y sus hijos participen en el grid padre */
.is-contents {
    display: contents !important;
}

.hc-map-card__header .use-case {
    padding-bottom: 0;
}

/* Títulos y Etiquetas */
.hc-map-card__header .title-card {
    margin-bottom: 0;
    color: var(--primary);
    font-family: var(--font-title);
    font-size: var(--size-30);
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.381px;
    padding-bottom: 0;
}

.country-label {
    font-size: var(--size-24);
    color: var(--text-color);
    margin-bottom: var(--padding-small);
    font-family: var(--font-body);
    font-size: var(--size-24);
    font-style: normal;
    font-weight: 300;
    letter-spacing: -0.381px;
    margin-bottom: var(--padding-int);
}

.country-label::after {
    display: block;
    margin-top: 10px;
    content: "";
    width: 120px;
    max-width: 100%;
    height: 1px;
    background-color: var(--primary);
}

.hc-map-card__content .asset-info .text-label {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: var(--size-18);
    font-style: normal;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.334px;
}

.hc-map-card__content .asset-info .text-body {
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--size-18);
    font-style: normal;
    font-weight: 400;
    margin-top: 0;
}

.room-icon::before {
    content: "";
    background-image: url(../images/room.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.beds-icon::before {
    content: "";
    background-image: url(../images/bed.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.servides-icon::before {
    content: "";
    background-image: url(../images/services.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.coverage-icon::before {
    content: "";
    background-image: url(../images/coverageratio.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.operator-icon::before {
    content: "";
    background-image: url(../images/operador.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

.meta-label img {
    width: 19px;
    height: 19px;
    display: inline-block;
}

.sector-icon::before {
    content: "";
    background-image: url(../images/sectorizacion.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 19px;
    height: 19px;
    display: inline-block;
}

/* Grid de Metadatos */
.hc-map-card__grid {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: var(--padding-int); 
    margin: var(--padding-int) 0;
}

.meta-label {
    display: flex;
    align-items: center;
    gap: var(--padding-small);
    padding-bottom: var(--padding-small);
    margin-bottom: var(--padding-small);
    border-bottom: 1px solid var(--primary); 
    color: var(--primary);
    font-family: var(--font-title);
    font-size: var(--size-16);
    font-style: normal;
    font-weight: 400;
    text-transform: capitalize;
 
}

.block-operator img, 
#map-card-operator img, #asset-card-operator img,
#op-card-operator img{
    max-height: 70px;
    width: 100%;
    object-fit: contain;
    object-position: center;
}

/* Navegación y Cierre */
.hc-map-card__nav { 
    display: none;
    margin-bottom: 0; 
    margin-top: var(--margin-section);
    display: flex; 
    gap: var(--padding-int);
}

.hc-map-card__close { 
    position: absolute; 
    top: var(--padding-int); 
    right: var(--padding-int); 
    border: none; 
    width: 27px;
    height: 27px;
    cursor: pointer; 
    z-index: 10;
    padding: 0;
    background-color: transparent;
    background-image: url(../images/close_square_white.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    
}

.hc-map-card__certifications {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--padding-int); /* 17px  */
    margin-top: auto; /* Empuja al fondo de la card */
    padding-top: var(--padding-int);
    border-top: 1px solid var(--primary); /* Línea sutil [cite: 32] */
}

.hc-map-card__certifications .cert-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Estilo para el elemento marcado en el SVG */
.asset-typology-component svg [id].active-asset {
    fill: var(--primary-05) !important;
    fill-opacity: 1;
    transition: fill 0.3s ease;
}

/* Opcional: un suave hover para los que son interactivos pero no están activos */
.asset-typology-component  .hc-interactive-element:hover:not(.active-asset) {
    fill: var(--blanco);
    fill-opacity: 0.4;
}

.asset-typology-component .hc-map-card__close {
    display: none;
}

.asset-typology-component  .hc-map-card {
    right: 0
}

.asset-typology-component .hc-map-card__nav {
    display: none;
}

.hc-map-component.asset-typology-component {
    display: flex;
    align-items: center;
    gap: var(--margin-section);
    justify-content: space-between;
    min-height: 695px;
}

.asset-typology-component .hc-map-card.is-active {
    position: relative;
    top: auto;
    right: auto;
    transform:none;
}

/* =================================================
   TYPE OF OPERATION (Specific Styles)
   ================================================= */

/* Ajuste del contenedor general para que se vea como la imagen */
.operation-type-component {
    display: flex;
    align-items: flex-start;
    gap: var(--margin-section);
    justify-content: space-between;
    margin-top: var(--padding-int);
}

/* El SVG de la izquierda */
.operation-type-component .hc-map-container svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* El SVG de la izquierda */
.operation-type-component .hc-map-container .svg-mobile {
    display: none;
}

/* --- INTERACTIVIDAD SVG --- */

/* Base: cursor puntero */
.operation-type-component svg g[id] {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ACTIVE: Background se pone en --primary */
.operation-type-component svg g[id].active-operation path:first-child,
.operation-type-component svg g[id].active-operation circle,
.operation-type-component svg g[id].active-operation rect {
    fill: var(--primary) !important;
    fill-opacity: 1;
}

.operation-type-component svg g[id].active-operation {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.10), 0 8px 10px -6px rgba(0, 0, 0, 0.10);
}

/* ACTIVE: Icono interior se pone BLANCO */
/* Asumimos que el icono es el segundo path o un path con clase específica dentro del grupo */
.operation-type-component svg g[id].active-operation path:not(:first-child),
.operation-type-component svg g[id].active-operation g path {
    stroke: #FFFFFF !important; /* Por si acaso es stroke */
}

.section-planos .text-subtitle.et_pb_module   {
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--size-24);
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.334px;
    margin-bottom: var(--margin-section) !important;
    margin-top: var(--margin-section);
}

.asset-typology-component .hc-map-card.is-active {
    min-width: 450px;
}

/* Media query 1200px */
@media (max-width: 1400px) { 
    .asset-typology-component .hc-map-container svg {
        width: 100%;
    }

    .asset-typology-component .meta-label {
        min-height: 60px;
    }
}


/* media queries */
@media screen and (max-width: 980px) {
    .map-section h2.title-section {
        text-align: center;
    }

    .asset-typology-component .hc-map-card.is-active {
        min-width: auto;
    }

    .title-section {
        text-align: center;
    }

    .meta-label {
        min-height: 52px;
    }

    .subtitle-section, .subtitle-section p,
    .map-section .text-body p, .map-section .text-body .et_pb_text_inner {
        text-align: center;
    }

    .subtitle-section br {
            display: none;
        }

    .map-section .hc-map-component svg, .hc-map-container svg {
        width: 100%;
        height: auto;
    }

    .map-section .hc-map-component {
        left: 0;    
        margin-top: 0;
    }

    .hc-map-card.is-active {
        position: relative;
        top: auto;
        right: auto;
        transform:none;
        width: 100%;
    }

    .hc-map-card__image {
        display: none;
    }

    .hc-map-component.asset-typology-component, .operation-type-component {
        min-height: auto !important;
        flex-direction: column;
    }

    .operation-type-component .hc-map-container .svg-desktop {
        display: none;
    }

    .operation-type-component .hc-map-container .svg-mobile {
        display: block;
    }

    .hc-map-card {
        width: 100%;
        margin-top: var(--margin-section);
    }

}

