.detail-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 500px;
    gap: 10px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.main-img-wrapper { height: 100%; width: 100%; }
.side-imgs-wrapper {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.gallery-img:hover { transform: scale(1.02); }

.property-header { margin-bottom: 2rem; }

.optype-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    backdrop-filter: blur(4px);
    background-color: var(--sni-primary);
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--sni-primary);
}

.feature-badge-lg {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border-color);
}
.feature-badge-lg i { font-size: 1.5rem; color: var(--sni-primary); display: block; margin-bottom: 0.5rem; }

.sticky-contact-card {
    position: sticky;
    top: 100px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.amenity-item {
    background: var(--surface-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-container {
    height: 473.6px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .detail-gallery-grid { grid-template-columns: 1fr; grid-template-rows: 350px; }
    .side-imgs-wrapper { display: none; }
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    
    display: flex;
    align-items: center;
    gap: 6px;
    
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.main-img-wrapper:hover .gallery-counter {
    background-color: rgba(var(--sni-primary-rgb), 0.9);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .gallery-counter {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

.full-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.mobile-carousel {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    align-items: flex-start;
    -ms-overflow-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.mobile-carousel::-webkit-scrollbar {
    display: none;
}

.mobile-carousel-item {
    width: 100%; 
    height: 100vw;
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always !important;
}

.gallery-img-mobile {
    width: 100%;
    height: 100vw;
    object-fit: cover;
    display: block;
}