/* ================================================
   Listing Gallery — Image gallery grid
   ================================================ */

.listing-gallery {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
}

/* ── Row 1 : Main image ── */
.listing-gallery__main {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.listing-gallery__image--main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.listing-gallery__main:hover .listing-gallery__image--main {
    transform: scale(1.03);
}

/* ── Row 2 : 4 small images ── */
.listing-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.listing-gallery__cell {
    height: 100px;
    overflow: hidden;
    position: relative;
    border-radius: 0;
}

.listing-gallery__cell .listing-gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    cursor: pointer;
}

.listing-gallery__cell:hover .listing-gallery__image {
    transform: scale(1.05);
}

/* ── More button overlay ── */
.listing-gallery__cell--more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(55, 36, 28, 0.4);
    pointer-events: none;
    transition: background 0.2s ease;
}

.listing-gallery__cell--more:hover::after {
    background: rgba(55, 36, 28, 0.55);
}

.listing-gallery__more-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.listing-gallery__more-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.listing-gallery__more-btn i {
    font-size: 20px;
    color: var(--dark1);
}

.listing-gallery__more-btn span {
    color: var(--dark1);
    font-family: var(--font-rubik);
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    line-height: 32px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .listing-gallery__main {
        height: 280px;
    }

    .listing-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .listing-gallery__cell {
        height: 120px;
    }

    .listing-gallery__more-btn span {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .listing-gallery__main {
        height: 220px;
    }

    .listing-gallery__cell {
        height: 100px;
    }
}
