/* ===================================================
   GALERÍA ESTILO AIRBNB (SECCIÓN REAL-ESTATE-2)
=================================================== */

.airbnb-gallery-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.airbnb-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 220px);
    gap: 8px;
    background-color: #ffffff;
}

.airbnb-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f0f0f0;
}

.airbnb-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.3s ease;
}

.airbnb-grid-item:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

.airbnb-grid-item.main-featured {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.btn-show-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #222222;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: all 0.2s ease;
    z-index: 10;
}

.btn-show-all-photos:hover {
    background-color: #f7f7f7;
    color: #000000;
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

@media (max-width: 992px) {
    .airbnb-grid {
        grid-template-rows: repeat(2, 180px);
    }
}

@media (max-width: 768px) {
    .airbnb-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 300px;
    }

    .airbnb-grid-item:not(.main-featured) {
        display: none;
    }

    .airbnb-grid-item.main-featured {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
    }

    .btn-show-all-photos {
        bottom: 15px;
        right: 15px;
        padding: 7px 14px;
        font-size: 13px;
    }
}

/* ===================================================
   MODAL DE GALERÍA COMPLETA
=================================================== */

.airbnb-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 10000;
    flex-direction: column;
    overflow: hidden;
}

.airbnb-modal-overlay.show {
    display: flex;
}

.airbnb-modal-header {
    padding: 15px 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.airbnb-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    color: #222222;
    line-height: 1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.airbnb-modal-close:hover {
    background-color: #f0f0f0;
}

.airbnb-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.airbnb-full-gallery {
    max-width: 740px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 40px;
}

.full-gallery-item {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f4f4f9;
}

.full-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===================================================
   RESPONSIVIDAD (Móviles y Tablets)
=================================================== */

@media (max-width: 768px) {
    .airbnb-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 280px;
    }

    /* En móviles solo se muestra la foto principal destacada */
    .airbnb-grid-item:not(.main-featured) {
        display: none;
    }

    .airbnb-grid-item.main-featured {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
    }

    .btn-show-all-photos {
        bottom: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }
}