/* PropSavvy Solutions - Property Page Responsive Fixes */

/* Property Gallery Container */
.property-gallery {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Main Property Images */
.property-main-image {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.property-main-image:hover {
    transform: scale(1.02);
}

/* Thumbnail Images */
.property-thumbnail {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.property-thumbnail:hover,
.property-thumbnail.active {
    opacity: 1;
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Carousel Controls */
.property-gallery .carousel-control-prev,
.property-gallery .carousel-control-next {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.property-gallery .carousel-control-prev:hover,
.property-gallery .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
    transform: scale(1.1);
}

.property-gallery .carousel-control-prev-icon,
.property-gallery .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* Property Information Layout */
.property-info {
    padding: 1rem 0;
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
}

.property-location {
    color: var(--text-light);
    font-size: 1.1rem;
}

.property-price-large {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--secondary-color);
    line-height: 1.2;
}

/* Feature Items */
.feature-item {
    background: var(--accent-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Responsive Breakpoints */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .property-main-image {
        height: 500px;
    }
    
    .property-thumbnail {
        height: 80px;
    }
    
    .property-title {
        font-size: 2.5rem;
    }
    
    .property-price-large {
        font-size: 2rem;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 20px;
    }
    
    .property-gallery .carousel-control-next {
        right: 20px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .property-main-image {
        height: 450px;
    }
    
    .property-thumbnail {
        height: 75px;
    }
    
    .property-title {
        font-size: 2.2rem;
    }
    
    .property-price-large {
        font-size: 1.8rem;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 18px;
    }
    
    .property-gallery .carousel-control-next {
        right: 18px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .property-main-image {
        height: 400px;
    }
    
    .property-thumbnail {
        height: 70px;
    }
    
    .property-title {
        font-size: 2rem;
    }
    
    .property-location {
        font-size: 1rem;
    }
    
    .property-price-large {
        font-size: 1.6rem;
    }
    
    .feature-item {
        padding: 0.8rem;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 42px;
        height: 42px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 15px;
    }
    
    .property-gallery .carousel-control-next {
        right: 15px;
    }
    
    .property-gallery .carousel-control-prev-icon,
    .property-gallery .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .property-main-image {
        height: 350px;
    }
    
    .property-thumbnail {
        height: 60px;
    }
    
    .property-title {
        font-size: 1.8rem;
    }
    
    .property-location {
        font-size: 0.95rem;
    }
    
    .property-price-large {
        font-size: 1.4rem;
    }
    
    .feature-item {
        padding: 0.7rem;
    }
    
    .feature-item i {
        font-size: 1.5rem !important;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 38px;
        height: 38px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 12px;
    }
    
    .property-gallery .carousel-control-next {
        right: 12px;
    }
    
    .property-gallery .carousel-control-prev-icon,
    .property-gallery .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
}

/* Mobile Medium (480px - 575px) */
@media (max-width: 575px) and (min-width: 480px) {
    .property-main-image {
        height: 300px;
    }
    
    .property-thumbnail {
        height: 50px;
    }
    
    .property-title {
        font-size: 1.5rem;
    }
    
    .property-location {
        font-size: 0.9rem;
    }
    
    .property-price-large {
        font-size: 1.2rem;
    }
    
    .feature-item {
        padding: 0.6rem;
    }
    
    .feature-item i {
        font-size: 1.3rem !important;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 35px;
        height: 35px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 10px;
    }
    
    .property-gallery .carousel-control-next {
        right: 10px;
    }
    
    .property-gallery .carousel-control-prev-icon,
    .property-gallery .carousel-control-next-icon {
        width: 14px;
        height: 14px;
        background-size: 14px 14px;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .property-main-image {
        height: 250px;
    }
    
    .property-thumbnail {
        height: 45px;
    }
    
    .property-title {
        font-size: 1.3rem;
    }
    
    .property-location {
        font-size: 0.85rem;
    }
    
    .property-price-large {
        font-size: 1.1rem;
    }
    
    .feature-item {
        padding: 0.5rem;
    }
    
    .feature-item i {
        font-size: 1.2rem !important;
    }
    
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 32px;
        height: 32px;
    }
    
    .property-gallery .carousel-control-prev {
        left: 8px;
    }
    
    .property-gallery .carousel-control-next {
        right: 8px;
    }
    
    .property-gallery .carousel-control-prev-icon,
    .property-gallery .carousel-control-next-icon {
        width: 12px;
        height: 12px;
        background-size: 12px 12px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.7);
        border: 3px solid rgba(255, 255, 255, 0.5);
    }
    
    .property-thumbnail {
        min-height: 50px;
    }
    
    .feature-item {
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .property-main-image,
    .property-thumbnail {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Loading States */
.property-main-image,
.property-thumbnail {
    background-color: #f8f9fa;
    background-image: linear-gradient(45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(-45deg, #f8f9fa 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #f8f9fa 75%), 
                      linear-gradient(-45deg, transparent 75%, #f8f9fa 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.property-main-image[src],
.property-thumbnail[src] {
    background: none;
}

/* Accessibility Improvements */
.property-gallery .carousel-control-prev:focus,
.property-gallery .carousel-control-next:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.property-thumbnail:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Smooth Transitions */
.property-gallery,
.property-main-image,
.property-thumbnail,
.feature-item {
    transition: all 0.3s ease;
}

/* Print Optimizations */
@media print {
    .property-gallery .carousel-control-prev,
    .property-gallery .carousel-control-next {
        display: none !important;
    }
    
    .property-main-image {
        height: auto !important;
        max-height: 400px;
    }
    
    .property-thumbnail {
        height: 60px !important;
    }
}






