.map-grid {
    display: flex;
    gap: 5px;
}

.panel {
    flex: 1;
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 460px;
    border: 2px solid #5d4037;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
}

.map-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-bottom: 2px solid #5d4037;
}

.map-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    height: 60px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    padding: 0 10px;
}

.ref-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.map-footer a {
    color: #5d4037;
    font-weight: 600;
    text-decoration: none;
}

.map-footer a:hover {
    text-decoration: underline;
}

/* Cursor con lupa */
.zoomable {
    cursor: zoom-in;
}

/* Fondo gris pantalla completa */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Imagen ampliada */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    border-radius: 6px;
}

/* Botón cerrar */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsivo en móvil */
@media screen and (max-width: 768px) {
    .map-grid {
        flex-direction: column;
    }

    .map-wrapper {
        height: auto;
    }

    .map-img {
        height: auto;
    }

    .map-footer {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 8px;
    }
}