/* ================================================================
   PROPERTY DETAILS PAGE - LARGER GALLERY
   ================================================================ */

/* ==============================================================
   COLLAPSE HERO SECTION
   ============================================================== */

body {
    padding: 0 !important;
    margin: 0 !important;
}

.detail-page {
    padding: 130px 0 0 !important;
    margin: 0 !important;
    background-color: #ffffff;
}

.detail-layout {
    display: flex !important;
    align-items: flex-start !important;
    gap: 3rem !important;
    width: 100% !important;
}

.detail-main {
    flex: 1 !important;
    min-width: 0 !important;
    /* Critical to prevent layout blown-outs */
}

.detail-sidebar {
    width: 380px !important;
    min-width: 380px !important;
}

.detail-container {
    padding: 0 !important;
    margin: 0 !important;
}

.detail-hero,
section.detail-hero {
    padding: 0.5rem 0 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background-color: #ffffff !important;
}

.hero-content,
.detail-hero .hero-content {
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.hero-header,
.detail-hero .hero-header {
    padding: 0 !important;
    margin: 0 0 0.5rem 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

.hero-title,
.detail-hero h1 {
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: #1a202c !important;
}

.hero-location,
.detail-hero address {
    margin: 0 0 0.5rem 0 !important;
    padding: 0 !important;
    font-size: 1.1rem !important;
    color: #718096 !important;
    font-weight: 500 !important;
}

.hero-rating,
.detail-hero .hero-rating {
    margin: 0 !important;
    padding: 0 !important;
}

.detail-gallery,
section.detail-gallery {
    margin: 1rem 0 3rem 0 !important;
    padding: 0 !important;
}

/* ==============================================================
   CAROUSEL - 600px HEIGHT (BIGGER)
   ============================================================== */

#carouselExample,
#carouselExample.carousel,
#carouselExample.carousel.slide,
div#carouselExample {
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
    background: #080808 !important;
    margin: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

#carouselExample .carousel-inner,
div#carouselExample .carousel-inner {
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
    border-radius: 20px !important;
}

#carouselExample .carousel-item,
#carouselExample .carousel-item.active,
div#carouselExample .carousel-item {
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
}

/* MAIN GALLERY IMAGES */
#carouselExample img,
#carouselExample .carousel-item img,
#carouselExample img.d-block,
#carouselExample img.w-100,
#carouselExample img.d-block.w-100,
.detail-gallery>div img,
.detail-gallery .carousel-item img,
div#carouselExample img,
div.detail-gallery>div img {
    width: 100% !important;
    height: 600px !important;
    max-height: 600px !important;
    min-height: 600px !important;
    object-fit: contain !important;
    display: block !important;
    background: transparent !important;
}

/* ==============================================================
   THUMBNAILS - Active highlight with red border
   ============================================================== */

.gallery-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)) !important;
    gap: 0.8rem !important;
    margin-top: 1rem !important;
}

.gallery-thumbnails .thumbnail-btn,
.gallery-thumbnails button {
    border: none !important;
    border-radius: 12px !important;
    padding: 0 !important;
    background: #f9f9f9 !important;
    cursor: pointer !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    width: 100% !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.6 !important;
}

.gallery-thumbnails .thumbnail-btn:hover,
.gallery-thumbnails button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
}

/* ACTIVE THUMBNAIL - Clean visual punch */
.gallery-thumbnails .thumbnail-btn.active,
.gallery-thumbnails button.active {
    border: 3px solid #b72626 !important;
    opacity: 1 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(221, 25, 0, 0.3) !important;
}

.gallery-thumbnails img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 9px !important;
    /* Slightly less than the wrapper to prevent clipping */
}

/* ==============================================================
   SECTIONS
   ============================================================== */

.detail-main {
    gap: 0.8rem !important;
}

.detail-section {
    padding: 2rem 2.5rem !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
}

.detail-section .section-title {
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    margin-bottom: 2rem !important;
    color: #1a202c !important;
    letter-spacing: -0.5px !important;
}

.section-content {
    padding: 0 !important;
    line-height: 1.9 !important;
    font-size: 1.05rem !important;
    color: #4a5568 !important;
}

/* ==============================================================
   CARDS
   ============================================================== */

.pgfor-item {
    padding: 1.5rem 2rem !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.pgfor-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
}

.room-card {
    padding: 2.5rem 2rem !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
}

.room-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.amenity-item {
    padding: 2rem !important;
    min-height: 140px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
}

.amenity-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08) !important;
    color: #b72626 !important;
}

.nearby-item {
    padding: 1.5rem !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s ease !important;
}

.nearby-item:hover {
    transform: translateX(5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    border-left: 4px solid #b72626 !important;
}

.sidebar-card {
    padding: 2.5rem !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
    position: sticky !important;
    top: 150px !important;
}

/* ==============================================================
   MOBILE
   ============================================================== */

@media (max-width: 1024px) {
    .detail-layout {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .detail-sidebar, .detail-main {
        width: 100% !important;
        min-width: 100% !important;
    }
}

@media (max-width: 768px) {

    #carouselExample,
    #carouselExample.carousel,
    div#carouselExample {
        height: 350px !important;
        max-height: 350px !important;
    }

    #carouselExample .carousel-inner,
    div#carouselExample .carousel-inner {
        height: 350px !important;
        max-height: 350px !important;
    }

    #carouselExample .carousel-item,
    div#carouselExample .carousel-item {
        height: 350px !important;
        max-height: 350px !important;
    }

    #carouselExample img,
    .detail-gallery img,
    div#carouselExample img {
        height: 350px !important;
        max-height: 350px !important;
        min-height: 350px !important;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
        gap: 0.4rem !important;
    }

    .gallery-thumbnails button {
        height: 50px !important;
    }

    .sidebar-card {
        position: static !important;
        margin-top: 2rem !important;
    }
}

/* ==============================================================
   CAROUSEL NAVIGATION ARROWS
   ============================================================== */
.carousel-control-prev,
.carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background-color: #b72626 !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.85 !important;
    box-shadow: 0 4px 15px rgba(183, 38, 38, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin: 0 20px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.05) !important;
    background-color: #dd1900 !important;
    box-shadow: 0 8px 25px rgba(221, 25, 0, 0.4) !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important;
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    border-top: 3px solid #ffffff !important;
}

.carousel-control-prev-icon {
    border-left: 3px solid #ffffff !important;
    border-right: none !important;
    transform: rotate(-45deg) !important;
    margin-left: 6px !important;
}

.carousel-control-next-icon {
    border-right: 3px solid #ffffff !important;
    border-left: none !important;
    transform: rotate(45deg) !important;
    margin-right: 6px !important;
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
        margin: 0 10px !important;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .detail-section {
        padding: 1.5rem 1.25rem !important;
    }
}