/* =========================================================
   OTIUM - MAPA
========================================================= */

.otium-map-section {
    padding: 72px 0;
}

.home-map-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border: 1px solid rgba(75, 111, 173, .25);
    border-radius: 22px;
    background: #07152d;
    box-shadow: 0 18px 50px rgba(3, 18, 45, .18);
}

#homeMap {
    width: 100%;
    height: 430px;
    z-index: 1;
}

.home-map-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    color: #eaf2ff;
    background: rgba(3, 12, 28, .88);
    backdrop-filter: blur(8px);
    font-size: 12px;
}


/* =========================================================
   MAPA COMPLETO
========================================================= */

.otium-map-page {
    min-height: 100vh;
    margin: 0;
    padding-top: 84px;
    background: #f5f7fb;
    color: #111a2f;
    font-family: Inter, Arial, sans-serif;
}

.map-page-main {
    padding: 58px 0 80px;
}

.map-page-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.map-page-heading {
    margin-bottom: 26px;
}

.map-page-heading .eyebrow {
    color: #19bdf5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.map-page-heading h1 {
    margin: 7px 0 8px;
    font-size: clamp(34px, 5vw, 54px);
    letter-spacing: -1.8px;
}

.map-page-heading p {
    margin: 0;
    color: #63708a;
    line-height: 1.7;
}

.map-page-card {
    position: relative;
    overflow: hidden;
    height: 620px;
    border-radius: 22px;
    border: 1px solid #dce4ef;
    background: white;
    box-shadow: 0 18px 50px rgba(21,45,86,.09);
}

#otiumMap {
    width: 100%;
    height: 100%;
}

.map-page-status {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 500;
    padding: 9px 13px;
    border-radius: 10px;
    color: #eaf2ff;
    background: rgba(3,12,28,.88);
    font-size: 12px;
}


/* =========================================================
   POPUP DEL MAPA COMPLETO
========================================================= */

/*
   Se utiliza .otium-map-page como selector padre para que
   estos estilos afecten únicamente a map.html.

   El popup mantiene el mismo lenguaje visual oscuro
   utilizado en el mapa del index.
*/

.otium-map-page .leaflet-popup-content-wrapper,
.otium-map-page .leaflet-popup-tip {
    background: #07152d !important;
    color: #ffffff !important;
}

.otium-map-page .leaflet-popup-content {
    margin: 14px;
    color: #ffffff !important;
    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    line-height: 1.55;
}


/* =========================================================
   TÍTULO DEL EVENTO
========================================================= */

.otium-map-page .map-popup-title {
    margin-bottom: 5px;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.35;
}


/* =========================================================
   INFORMACIÓN DEL EVENTO
========================================================= */

.otium-map-page .map-popup-meta {
    color: #b9c8df !important;
}

.otium-map-page .map-popup-meta div {
    color: #b9c8df !important;
}


/* =========================================================
   ENLACE VER EVENTO
========================================================= */

.otium-map-page .map-popup-link {
    display: inline-block;
    margin-top: 8px;
    color: #2bc7ff !important;
    font-weight: 700;
    text-decoration: none;
}

.otium-map-page .map-popup-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
}


/* =========================================================
   BOTÓN CERRAR DEL POPUP
========================================================= */

.otium-map-page .leaflet-popup-close-button {
    color: #b9c8df !important;
}

.otium-map-page .leaflet-popup-close-button:hover {
    color: #ffffff !important;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .otium-map-page {
        padding-top: 72px;
    }

    #homeMap {
        height: 360px;
    }

    .home-map-card {
        min-height: 360px;
    }

    .map-page-card {
        height: 500px;
    }
}


@media (max-width: 560px) {

    .otium-map-section {
        padding: 55px 0;
    }

    #homeMap {
        height: 320px;
    }

    .home-map-card {
        min-height: 320px;
        border-radius: 16px;
    }

    .map-page-container {
        width: calc(100% - 28px);
    }

    .map-page-card {
        height: 430px;
        border-radius: 16px;
    }

    /*
       Popup ligeramente más compacto en smartphone.
    */

    .otium-map-page .leaflet-popup-content {
        margin: 12px 14px;
        font-size: 12px;
    }

    .otium-map-page .map-popup-title {
        font-size: 14px;
    }

    .otium-map-page .map-popup-meta {
        font-size: 12px;
    }

}