/* =========================================================
   SECCIÓN MAPA COMPACTO (Ajustado para Laptop/PC)
   ========================================================= */

.anera-map-section {
    position: relative;
    width: 100%;
    /* Reducimos altura mínima y padding para laptop */
    min-height: 600px;
    background-color: #f3eee8;
    display: flex;
    align-items: center;
    padding: 40px 0;
    overflow: hidden;
}

/* Layout General */
.anera-map-layout {
    position: relative;
    width: 100%;
    max-width: 1300px;
    /* Un poco más estrecho para compactar */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Contenedor del Mapa (Derecha) */
.anera-map-container {
    width: 65%;
    height: 500px;
    /* Reducido de 600px a 500px */
    position: relative;
    right: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Identificador específico del mapa */
#aneraMap {
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}

.anera-map-embed {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

.anera-map-embed img {
    max-width: none !important;
    height: auto !important;
}

/* Tarjeta Flotante Compacta (Izquierda) */
.anera-map-card {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 42%;
    /* Ajustado ancho */
    min-width: 450px;
    /* Un poco menos ancho mínimo */
    background-color: #ffffff;
    /* Padding reducido para ahorrar espacio */
    padding: 40px 32px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Sombra un poco más suave */
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Gap reducido */
}

/* Tipografía Compacta */
.map-card-title {
    font-family: "Brygada 1918", serif !important;
    /* Reducido tamaño para encajar mejor en laptop sin perder impacto */
    font-size: 36px !important;
    font-weight: 500 !important;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
}

.map-card-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    /* Ligeramente más pequeño */
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* GRID DE ICONOS (Nuevo Layout) */
.map-stats-grid {
    display: grid;
    /* 2 columnas */
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    /* Espacio vertical y horizontal */
    margin-top: 8px;
    margin-bottom: 8px;
}

.map-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-stat-item i {
    font-size: 18px;
    color: #d0c29b;
    /* Gold accent */
    width: 24px;
    /* Ancho fijo para alineación */
    text-align: center;
}

.map-stat-item span {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

/* Botón Compacto */
.btn-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    background: transparent;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: 5px;
}

.btn-map-link:hover {
    background: #1a1a1a;
    color: #fff;
}


/* RESPONSIVE */
@media (max-width: 1100px) {
    .anera-map-container {
        width: 60%;
        height: 450px;
    }

    .anera-map-card {
        width: 50%;
        min-width: 0;
        padding: 32px;
    }

    .map-card-title {
        font-size: 32px !important;
    }
}

@media (max-width: 900px) {
    .anera-map-section {
        padding: 0;
        min-height: auto;
        display: block;
    }

    .anera-map-layout {
        display: flex;
        flex-direction: column;
        /* Mapa arriba, tarjeta abajo (o al revés si se prefiere) */
        /* Para mobile, usualmente queremos ver el mapa y luego el detalle */
        /* Pero en el diseño anterior era Column (normal) = Tarjeta luego Mapa */
        /* Vamos a poner Mapa luego Tarjeta para variar o mantener orden lógico */
    }

    .anera-map-container {
        width: 100%;
        height: 350px;
        position: relative;
        right: auto;
        border-radius: 0;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .anera-map-card {
        position: relative;
        width: 100%;
        min-width: 0;
        transform: none;
        left: auto;
        top: auto;
        box-shadow: none;
        padding: 32px 24px;
        border-radius: 0;
        gap: 24px;
    }

    /* En móvil, los iconos pueden ir en 1 col si el texto es largo, o mantenerse en 2 si cabe */
    .map-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}