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

.panel {
    flex: 1;
    display: flex;
}

.map-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 2px solid #5d4037;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
    height: 520px;
    /* altura total igual en ambos paneles */
}

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

/* Pie inferior */
.map-footer {
    width: 100%;
    flex: 1;
    background-color: #f9f9f9;
    padding: 10px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Referencias en dos columnas con grid */
.refs-footer .refs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* dos columnas iguales */
    gap: 20px;
    width: 100%;
}

.refs-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ref-group-title {
    font-weight: bold;
    margin-top: 8px;
}

/* Vínculo centrado */
.link-footer {
    text-align: center;
}

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

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

/* Zoom */
.zoomable {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

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

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

.panel-left .map-wrapper {
    margin-bottom: 10px;
    /* ajustá el valor hasta que se nivele */
}

.gmaps-frame iframe {
    height: 390px;
    /* bajá este valor respecto al mapa JPG (que está en 400px) */
}

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

    .map-wrapper {
        height: auto;
    }

    .map-img,
    .gmaps-frame iframe {
        height: auto;
    }

    .map-footer {
        flex-wrap: wrap;
    }
}