/* Property Image Banner */
.property-image-banner {
    padding: 0;
    margin-top: -1px;
}

.image-banner-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5px;
    max-height: 600px;
    margin: 30px auto;
    border-radius: 16px;
    overflow: hidden;
}

/* Main Large Image */
.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.3s ease;
}

.main-image-wrapper::before {
    background: rgba(0, 0, 0, 0.3);
}



.main-property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Claro Badge */
.claro-badge {
    position: absolute;
    bottom: -7px;
    right: 0px;
    z-index: 2;
}

.claro-badge img {
    width: 100px;
    height: auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    height: 100%;
}

.grid-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 290px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.grid-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    transition: background 0.3s ease;
}

.grid-image-wrapper:hover::before {
    background: rgba(0, 0, 0, 0.3);
}



.grid-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More Photos Tile */
.more-photos-tile {
    position: relative;
}

.more-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.more-photos-tile:hover .more-photos-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.more-photos-content {
    text-align: center;
    color: var(--color-white);
}

.more-photos-number {
    display: block;
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin-bottom: 8px;
}

.more-photos-text {
    display: block;
    font-size: 1.125rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
}

/* Full Screen Slider Popup */
.image-slider-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.image-slider-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.popup-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Container */
.slider-container {
    width: 100%;
    max-width: 1400px;
    height: 80vh;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Claro Badge in Slider */
.slider-claro-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
}

.slider-claro-badge img {
    width: 120px;
    height: auto;
}

/* Slider Counter */
.slider-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: var(--font-size-body);
    font-weight: var(--font-weight-medium);
    z-index: 3;
}

/* Responsive Design */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .image-banner-grid {
        max-height: 550px;
    }
    
    .main-image-wrapper {
        min-height: 550px;
    }
    
    .grid-image-wrapper {
        min-height: 265px;
    }
    
    .popup-content {
        padding: 60px 60px;
    }
}

/* Tablet Portrait (900px and below) */
@media (max-width: 900px) {
    .image-banner-grid {
        gap: 10px;
        max-height: 500px;
    }
    
    .main-image-wrapper {
        min-height: 500px;
    }
    
    .grid-image-wrapper {
        min-height: 240px;
    }
    
    .more-photos-number {
        font-size: 2rem;
    }
    
    .more-photos-text {
        font-size: 1rem;
    }
    
    .claro-badge {
        padding: 10px 14px;
    }
    
    .claro-badge img {
        width: 80px;
    }
    
    .slider-claro-badge img {
        width: 100px;
    }
}

/* Mobile Landscape (768px and below) */
@media (max-width: 768px) {
    .image-banner-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        max-height: none;
        gap: 8px;
    }
    
    .main-image-wrapper {
        min-height: 400px;
    }
    
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        gap: 8px;
        height: auto;
    }
    
    .grid-image-wrapper {
        min-height: 160px;
    }
    
    .more-photos-number {
        font-size: 1.5rem;
    }
    
    .more-photos-text {
        font-size: 0.875rem;
    }
    
    .popup-content {
        padding: 40px 20px;
    }
    
    .slider-nav {
        width: 48px;
        height: 48px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-container {
        height: 70vh;
    }
    
    .slider-claro-badge {
        bottom: 15px;
        right: 15px;
    }
    
    .slider-claro-badge img {
        width: 90px;
    }
}

/* Mobile Portrait (640px and below) */
@media (max-width: 640px) {
    .property-image-banner {
        padding: 0;
    }
    
    .main-image-wrapper {
        min-height: 350px;
        border-radius: 12px;
    }
    
    .bento-grid {
           grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(1, 1fr);
    }
    
    .grid-image-wrapper {
        min-height: 140px;
        border-radius: 12px;
    }
    
    .claro-badge {
        bottom: 12px;
        right: 12px;
        padding: 8px 12px;
    }
    
    .claro-badge img {
        width: 70px;
    }
    
    .more-photos-number {
        font-size: 1.25rem;
    }
    
    .more-photos-text {
        font-size: 0.75rem;
    }
    
    .popup-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .popup-close svg {
        width: 24px;
        height: 24px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .slider-claro-badge img {
        width: 80px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .main-image-wrapper {
        min-height: 300px;
    }
    
    .grid-image-wrapper {
        min-height: 120px;
    }
    
    .more-photos-number {
        font-size: 1.125rem;
        margin-bottom: 4px;
    }
    
    .more-photos-text {
        font-size: 0.6875rem;
    }
    
    .claro-badge img {
        width: 60px;
    }
    
    .slider-container {
        height: 60vh;
    }
    
    .slider-claro-badge {
        bottom: 12px;
        right: 12px;
    }
    
    .slider-claro-badge img {
        width: 70px;
    }
}

/* Extra Small Mobile (380px and below) */
@media (max-width: 380px) {
    .main-image-wrapper {
        min-height: 280px;
    }
    
    .grid-image-wrapper {
        min-height: 50px;
    }
}
