/* Contenedor del mapa de Cesium y Leaflet */
.map-container {
    border: none;
    border-radius: 0;
    opacity: 0;
    transform: scale(0.98);
    visibility: hidden;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1), transform 2s cubic-bezier(0.4, 0, 0.2, 1), visibility 2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}

/* Específico para Cesium */
#mapa.map-container {
    /* Center the globe vertically without offset */
    margin-top: 0;
}

/* Específico para Leaflet */
#mapa2d.map-container {
    margin-top: 0; /* Asegurar que el mapa de Leaflet no tenga margin-top */
}

#mapa {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
}

/* Ocultar el logo y los iconos de Cesium */
#mapa .cesium-viewer-bottom,
#mapa .cesium-credit-container,
#mapa .cesium-widget-credits {
    display: none !important;
}

/* Clase para ocultar con desvanecimiento */
.map-container.hidden {
    opacity: 0;
    transform: scale(0.98);
    visibility: hidden;
    pointer-events: none;
}

/* Clase para mostrar con desvanecimiento */
.map-container.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Botón "Ver Alojamiento" */
#verAlojamientoBtn {
    position: absolute;
    bottom: 80px;
    transform: translateX(-50%);
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

#verAlojamientoBtn:hover {
    background: #1e4fc1;
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

#verAlojamientoBtn:active {
    transform: translateX(-50%) scale(0.95);
}

#verAlojamientoBtn .title-text {
    color: #fff;
}

#verAlojamientoBtn .modal-icon {
    display: none;
}

/* Sección de contenido (Leaflet y tarjetas) */
.content-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 50px;
    background: #0c0c0c url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    scroll-snap-align: start;
    color: #333;
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 50px; /* Añadir margen inferior para separarlo del footer */
}

@media (max-width: 767px) {
    #mapa2d {
        width: 100%;
        height: 55vh;
    }
}

@media (min-width: 992px) {
    #verAlojamientoBtn { bottom: 120px; }
}

