/* CSS Específico para Locales */
/* Importamos styles generales si se desea, o simplemente añadimos overrides aquí.
   Como ya vinculamos style.css en el HTML, aquí solo ponemos lo específico. */

.locales-page-container {
    padding-top: 20px;
}

/* Banner Principal */
.locales-banner {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.locales-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Override Blue Button */
.local-card .btn-blue {
    background-color: #1d277c;
    /* Nuevo color solicitado */
    color: #fff;
    border: none;
}

.local-card .btn-blue:hover {
    background-color: #151b54;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(29, 39, 124, 0.4);
}

/* WhatsApp Button */
.local-card .btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.local-card .btn-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* WhatsApp Icon Button (Top Right) */
.local-card {
    position: relative;
    /* Ensure absolute positioning works for children */
}

/* NEW: Inline WhatsApp Icon for H3 */
.local-card h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1d277c;
    /* Ensure title color matches design */
}

.local-card-whatsapp-icon-inline {
    background-color: #25D366;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Prevent squishing */
}

.local-card-whatsapp-icon-inline:hover {
    background-color: #128C7E;
    transform: scale(1.1) rotate(10deg);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
}

/* Ajuste de botones en la tarjeta */
.local-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.local-card .btn {
    flex: 1;
    white-space: nowrap;
    min-width: 120px;
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* ==================== MAP MODAL STYLES ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    max-width: 90%;
    width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease forwards;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-red, #e63946);
    color: white;
    transform: rotate(90deg);
}

/* Ensure map container inside modal has height */
#nearbyMap {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    z-index: 1;
}

@media (max-width: 768px) {
    #nearbyMap {
        height: 350px;
    }

    .modal-content {
        padding: 15px;
        width: 95%;
    }
}