/* Estilo para el modal de distancias */
#distancesModal {
    display: none;
    position: fixed;
    left: 10px;
    top: 80px;
    width: clamp(200px, 30vw, 240px);
    max-height: calc(100% - 90px);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: grab;
    touch-action: none;
}

#distancesModal:active {
    cursor: grabbing;
}

#distancesModal.visible {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

#distancesModal:not(.visible) {
    transform: translateY(10px);
    opacity: 0;
}

#distancesModal .modal-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 -15px 12px;
    padding: 10px 15px;
    text-transform: uppercase;
    cursor: grab;
    touch-action: none;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 1;
}

#distancesModal .modal-title:active {
    cursor: grabbing;
}

#distancesModal .title-text {
    color: #2563eb;
}

#distancesModal .modal-subtitle {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: inherit;
}

#distancesModal #toggleLocationsBtn {
    margin-bottom: 8px;
}

#distancesModal #destinationsList {
    display: none;
    cursor: default;
}

#distancesModal #destinationsList.show {
    display: block;
}

#distancesModal .modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#distancesModal .modal-icon .eye-icon {
    width: 18px;
    height: 18px;
    animation: pulse 1.5s infinite ease-in-out;
}

#distancesModal ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#distancesModal li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    border-radius: 6px;
}

#distancesModal li:hover {
    background: #e7f1ff;
    transform: translateX(5px);
}

#distancesModal li.selected {
    background: #d0e3ff;
    transform: translateX(5px);
}

#distancesModal li:last-child {
    border-bottom: none;
}

#distancesModal .eye-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

#distancesModal .eye-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

#distancesModal .eye-icon.active {
    transform: scale(1.2);
    filter: brightness(1.5) drop-shadow(0 0 5px rgba(0, 123, 255, 0.5));
    animation: pulse 1.5s infinite ease-in-out;
}

#distancesModal .destination-name {
    font-weight: 600;
    font-size: 12px;
    color: #222;
    flex: 1;
}

#distancesModal .destination-details {
    font-size: 10px;
    color: #555;
}

/* Estilo para el modal de alojamientos */
#alojamientoModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 15px;
    border-radius: 12px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}

.modal-content:hover {
    transform: translateY(-5px);
}

.modal-content .close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.modal-content .close:hover {
    color: #333;
}

.modal-content h2 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.modal-content .carousel {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 12px;
}

.modal-content .carousel-images {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; /* Necesario para posicionar los indicadores dentro */
}

.modal-content .carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.modal-content .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 20px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;    
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

.modal-content .carousel-btn.prev { left: 5px; }
.modal-content .carousel-btn.next { right: 5px; }

.modal-content .carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.modal-content .carousel-btn:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
    opacity: 0.3;
}

.modal-content .modal-price {
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    text-align: center;
}

.modal-content .carousel-indicators {
    position: absolute;
    bottom: 12px;                 /* Altura desde el borde inferior de la imagen */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;                  /* Haz que ocupe todo el ancho del carrusel */
    margin: 0 auto;               /* Centrado horizontal */
    z-index: 2;
    pointer-events: none;         /* Opcional: para que los clics pasen a la imagen */
}

.modal-content .carousel-dot {
    width: 8px;
    height: 8px;
    background-color: #bbb;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-content .carousel-dot.active {
    background-color: #2563eb;
}

.modal-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.modal-content .amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.95rem;
    color: #666;
    align-items: center;
    justify-content: center;
}

.modal-content .amenity {
    display: flex;
    flex-direction: row; /* Icono y texto en línea */
    align-items: center;
    gap: 4px;
}

.modal-content .amenity i {
    font-size: 1rem;
    color: #2563eb;
    display: inline-block; /* Asegurar que el icono sea visible */
    visibility: visible; /* Asegurar visibilidad */
    opacity: 1; /* Asegurar que no esté oculto */
}

/* Forzar visibilidad del icono fa-washer en el modal */
.modal-content .amenity i.fa-washer {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.modal-content .rooms-container {
    margin: 8px 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.modal-content .rooms-icons {
    display: flex;
    gap: 4px;
}

.modal-content .room-icon {
    width: 16px;
    height: 16px;
}

.modal-content .btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 10px;
}

.modal-buttons #verHabitacionesBtn {
    background: #2563eb;
}

.modal-buttons #mapsBtn {
    background: #28a745;
    color: #fff;
}

.modal-buttons #mapsBtn:hover {
    background: #218838;
}

.modal-buttons #closeModalBtn {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #2563eb; /* ← Color y grosor igual al botón principal */
    margin-top: 16px;
    transition: border-color 0.2s;
}
.modal-buttons #closeModalBtn:hover {
    border-color: #1e4fc1; /* tono hover igual que el hover del botón principal */
}


.modal-content .btn:hover {
    background: #1e4fc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.modal-content .btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8); /* Igual que el header */
    color: #ffffff;
    padding: 10px 30px; /* Igual que el header */
    font-family: 'Playfair Display', serif; /* Igual que el header */
    position: relative; /* Mantener como footer estándar */
    z-index: 1000; /* Igual que el header */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Usar flex para alinear el logo y las secciones */
    justify-content: space-between;
    align-items: center; /* Alinear verticalmente el logo y las secciones */
    flex-wrap: wrap;
}

/* Logo */
.footer-logo {
    margin: 0; /* Eliminar margen para alinear con las secciones */
}

.logo-img {
    height: 150px; /* Ajustar tamaño para que coincida con el header */
    width: 150px;
    border-radius: 0; /* Marco cuadrado */
    border: 2px solid #00d4ff;
    object-fit: cover;
    transition: transform 0.3s ease, border-width 0.3s ease;
    cursor: pointer;
}

.logo-img:hover {
    transform: scale(1.1);
    border-width: 4px;
}

/* Contenido del footer */
.footer-content {
    display: flex;
    justify-content: flex-end; /* Alinear las secciones a la derecha */
    align-items: center;
    gap: 20px; /* Igual que el gap del nav-menu en el header */
    flex-wrap: wrap;
}

.footer-section {
    min-width: 200px;
    text-align: left; /* Alinear texto a la izquierda para consistencia con el header */
}

.footer-section h5 {
    font-family: 'Playfair Display', serif; /* Igual que el header */
    font-size: 1.3rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Igual que el header */
}

.footer-section p {
    font-family: 'Poppins', sans-serif; /* Igual que los enlaces del header */
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.footer-link {
    font-family: 'Poppins', sans-serif; /* Igual que los enlaces del header */
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #cccccc; /* Igual que el hover del header */
}

.social-links {
    display: flex;
    gap: 10px; /* Ajustar espaciado entre enlaces sociales */
}

/* Separador */
.footer-divider {
    border: 0;
    height: 1px;
    background: #00d4ff;
    margin: 1rem 0; /* Reducir margen para un diseño más compacto */
    box-shadow: 0 0 10px #00d4ff;
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

/* Copyright */
.footer-copyright {
    font-family: 'Poppins', sans-serif; /* Igual que los enlaces del header */
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
    color: #ffffff;
    width: 100%; /* Asegurar que ocupe todo el ancho */
}

/* Animaciones */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 rgba(0, 123, 255, 0.5); }
    50% { transform: scale(1.2); opacity: 0.7; box-shadow: 0 0 15px rgba(0, 123, 255, 0.6); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 rgba(0, 123, 255, 0.5); }
}

@keyframes point-right {
    0% { transform: translateY(-50%) translateX(0); opacity: 1; }
    50% { transform: translateY(-50%) translateX(4px); opacity: 0.8; }
    100% { transform: translateY(-50%) translateX(0); opacity: 1; }
}

@keyframes point-left {
    0% { transform: translateY(-50%) translateX(0); opacity: 1; }
    50% { transform: translateY(-50%) translateX(-4px); opacity: 0.8; }
    100% { transform: translateY(-50%) translateX(0); opacity: 1; }
}

/* Estilo para el nombre de los marcadores en Leaflet (sin tooltip) */
.alojamiento-label {
    background: none !important; /* Eliminar fondo */
    border: none !important; /* Eliminar borde */
    box-shadow: none !important; /* Eliminar sombra */
    color: #333;
    font-family: 'Playfair Display', serif; /* Misma tipografía que el header */
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 !important; /* Eliminar padding */
    transition: color 0.3s ease;
}

.alojamiento-label .tooltip-content {
    display: inline-block;
    animation: pulse 1.5s infinite ease-in-out; /* Efecto de pulsación constante para el nombre */
}

.alojamiento-label .leaflet-tooltip-top:before,
.alojamiento-label .leaflet-tooltip-bottom:before,
.alojamiento-label .leaflet-tooltip-left:before,
.alojamiento-label .leaflet-tooltip-right:before {
    display: none !important;
}

.alojamiento-label.highlighted {
    color: #2563eb;
}

.leaflet-tooltip {
    position: absolute !important;
    top: unset !important;
    left: unset !important;
}

/* Efecto de pulsación para todos los marcadores de alojamiento y sus nombres */
.pulsating-marker img.marker-icon {
    animation: pulse 1.5s infinite ease-in-out; /* Efecto de pulsación para el marcador */
    transition: transform 0.3s ease, filter 0.3s ease; /* Transición suave para hover */
}

/* Efecto hover para marcadores cuando se pasa el cursor sobre una tarjeta */
.pulsating-marker img.marker-icon.highlighted {
    transform: scale(1.2); /* Aumentar tamaño */
    filter: brightness(1.5) drop-shadow(0 0 5px rgba(0, 123, 255, 0.5)); /* Aumentar brillo y añadir sombra */
}

/* Efecto de escala de grises para marcadores no seleccionados */
.marker-icon.deselected-marker {
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 767px) {
    #distancesModal {
        position: relative;
        top: auto;
        left: auto;
        margin-top: 0;
        width: 100%;
        height: 100%;
    }
}
#distancesModal ul[style*="display: block"] {
  display: block !important;
  height: auto !important;
  max-height: 240px;
  overflow-y: auto;
  padding-bottom: 12px;
  opacity: 1 !important;
  visibility: visible !important;
}
#distancesModal ul#destinationsList {
    width: 100%;
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    /* NO display: none aquí, deja que el JS lo controle */
}


