/**
 * Property Detail Page Styles
 * Styles for individual property viewing and booking interface
 * Created for rental booking portal implementation
 */

/* Property Gallery Images */
.property-gallery-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

#propertyGallery {
    position: relative;
    overflow: visible;
    isolation: isolate;
    --gallery-backdrop: none;
}

#propertyGallery .carousel-inner {
    position: relative;
    z-index: 1;
}

#propertyGallery .carousel-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--gallery-backdrop, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(32px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

#propertyGallery.has-backdrop .carousel-inner::before {
    opacity: 0.45;
}

#propertyGallery .carousel-control-prev,
#propertyGallery .carousel-control-next,
#propertyGallery .carousel-indicators {
    position: relative;
    z-index: 2;
}

#propertyGallery .carousel-control-prev,
#propertyGallery .carousel-control-next {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 8%;
}

#propertyGallery .carousel-control-prev-icon,
#propertyGallery .carousel-control-next-icon {
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

#propertyGallery .carousel-item {
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

#propertyGallery .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--item-image, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(24px);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

#propertyGallery .carousel-item .property-gallery-img {
    position: relative;
    z-index: 1;
}

#propertyGallery .carousel-item.active::before,
#propertyGallery .carousel-item.carousel-prev::before,
#propertyGallery .carousel-item.carousel-next::before {
    opacity: 0.55;
}

@media (min-width: 992px) {
    #propertyGallery .carousel-inner {
        overflow: visible;
        min-height: 360px;
    }

    #propertyGallery .carousel-item {
        display: block;
        position: absolute;
        top: 0;
        left: 50%;
        float: none;
        margin-right: 0;
        width: 65%;
        transform: translateX(-50%) scale(0.85);
        opacity: 0;
        transition: transform 0.6s ease, opacity 0.6s ease;
        z-index: 0;
        pointer-events: none;
    }

    .property-gallery-img {
        max-height: 360px;
        border-radius: 12px;
    }

    #propertyGallery .carousel-item.active {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        z-index: 3;
        pointer-events: auto;
    }

    #propertyGallery .carousel-item.active .property-gallery-img {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }

    #propertyGallery .carousel-item.carousel-prev {
        opacity: 0.9;
        transform: translateX(-120%) scale(0.9);
        z-index: 2;
    }

    #propertyGallery .carousel-item.carousel-next {
        opacity: 0.9;
        transform: translateX(20%) scale(0.9);
        z-index: 2;
    }

    #propertyGallery .carousel-control-prev,
    #propertyGallery .carousel-control-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 17.5%;
    }

    #propertyGallery .carousel-control-prev {
        left: 0;
    }

    #propertyGallery .carousel-control-next {
        right: 0;
    }
}

/* Booking Widget Sticky Positioning */
.booking-widget-sticky {
    top: 20px;
}

/* Pricing Breakdown */
.pricing-breakdown-hidden {
    display: none;
}

/* Availability Calendar Container */
#availabilityCalendar {
    margin-bottom: 1rem;
}

/* Property Detail Section */
#property-detail {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 992px) {
    #property-detail {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #property-detail .container {
        max-width: 1400px;
    }

    /* Desktop: Display address inline without line breaks */
    .property-card-details .card-body strong br {
        display: none;
    }

    .property-card-details .card-body strong {
        display: block;
    }

    /* Desktop: Display amenities inline with proper spacing */
    .property-card-details .card-body p.small br {
        display: none;
    }

    .property-card-details .card-body p.small {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        align-items: center;
    }

    .property-card-details .card-body p.small i {
        margin-right: 0.25rem;
    }

    /* Desktop: Remove line breaks from Features & Amenities lists */
    .property-card-details .card-body .list-unstyled li {
        display: inline-block;
        margin-right: 1.5rem;
    }
}

/* Booking Confirmation Icons */
.confirmation-icon {
    font-size: 4rem;
}
