#listing-page .listing-main-swiper .listing-gallery-image {
    width: 100%;
    object-fit: cover;
    min-height: 225px;
    max-height: 225px;
    background: #f5f5f5;
}

/* Edit Button - Circular */
#listing-page .listing-edit-btn,
#listing-sticky-bottom .listing-edit-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #000000;
    background: #fff;
    color: #000000;
    text-decoration: none;
}

#listing-page .listing-thumbs-swiper .listing-gallery-image {
    width: 100%;
    object-fit: contain;
    background: #f5f5f5;
}

@media (min-width: 768px) {

    #listing-page .listing-main-swiper .listing-gallery-image {
        object-fit: contain;
        min-height: 475px;
        max-height: 475px;
    }

}

@media (min-width: 768px) {

    #listing-page .listing-thumbs-swiper .listing-gallery-image {
        min-height: 132px;
        max-height: 132px;
    }

}

@media (max-width: 768px) {
    #listing-page .responsive-gallery {
        padding-left: 0;
        padding-right: 0;
    }
}

#listing-page .featurd-attribute-icon {
    width: 28px;
    height: 28px;
    margin: 0px;
    object-fit: contain;
}

#listing-page .slider-count {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    border-radius: 25px;
    padding: 4px 12px;
    background: #fff;
    z-index: 1;
}

#listing-page .nav.nav-pills {
    border-bottom: 2px solid #D3D3D3;
}

#listing-page .nav.nav-pills .btn.btn-tab-link {
    border-bottom: 2px solid transparent;
}

#listing-page .nav.nav-pills .btn.btn-tab-link.active {
    border-bottom: 2px solid var(--bs-primary);
}

#listing-page .listing-grid-icon {
    width: 10px;
    height: 8px;
    object-fit: contain;
}

#listing-page .slider-button-prev {
    left: 15px;
}

#listing-page .slider-button-next {
    right: 15px;
}

#listing-page .swiper-slide-thumb-active {
    border-radius: 5px;
    border: 1px solid #F06022;
    box-sizing: border-box;
    overflow: hidden;
}

#listing-page .btn.btn-primary-gradient span {
    color: #000;
    transition: all 0.3s ease-in-out;
}

#listing-page .btn.btn-primary-gradient:hover span {
    color: #fff;
    transition: all 0.3s ease-in-out;
}

#listing-page .btn.btn-primary-gradient:hover img {
    filter: invert(1);
    transition: all 0.3s ease-in-out;
}

#listing-page .btn.btn-primary-gradient:before {
    background: transparent !important;
    border: 1px solid #d3d3d3;
}

#listing-page .featured-features .border-start {
    width: 1px;
    max-width: 1px;
    flex: 0 0 1px;
    height: 50px;
}

#listing-page #read-more-btn {
    display: flex;
}

#listing-page .bottom-fade-overlay::after {
    content: '\A0';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    border-bottom: 1px solid rgba(211, 211, 211, 1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 6%, #FFFFFF 94.5%);
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

#listing-page .no-overlay::after {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

/* Chevron animation for expand/collapse */
#listing-page .chevron-icon {
    transition: transform 0.3s ease-in-out;
}

#listing-page .chevron-up img,
#expand-collapse-btn.chevron-up img {
    transform: scaleY(-1) !important;
    transition: transform 0.3s ease-in-out;
}

/* Expand/collapse transition */
#listing-page .expand-collapse-content {
    transition: max-height 0.3s ease-in-out;
}

#listing-page .title-border-bottom {
    border-bottom: 1px solid #D3D3D3;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    #listing-page .title-border-bottom {
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
}

#listing-sticky-bottom .container {
    max-height: 75vh;
    overflow-y: auto;
}

#listing-sticky-bottom .listing-overlay-image {
    width: 100%;
    max-height: 80px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    #listing-sticky-bottom .listing-overlay-image {
        max-height: 150px;
    }
}

@media (min-width: 1024px) {
    #listing-page .desktop-sticky-sidebar {
        position: sticky;
        top: 150px;
        z-index: 1;
    }
}

#listing-sticky-bottom {
    transform: translate3d(0,0,0);
    inset-block-end: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 51;
}

/* Custom backdrop for togglable content */
.notched-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    opacity: 0;
    transition: opacity 0.15s linear;
    pointer-events: none;
}

.notched-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* Hide swiper navigation when only one slide */
#listing-page .listing-main-swiper:has(.swiper-wrapper:not(:has(.swiper-slide:nth-child(2))))~.gallery-slider-button-next,
#listing-page .listing-main-swiper:has(.swiper-wrapper:not(:has(.swiper-slide:nth-child(2))))~.gallery-slider-button-prev {
    display: none !important;
}

/* Hide thumbnails when only one slide - target the parent container */
#listing-page .position-relative:has(.listing-main-swiper .swiper-wrapper:not(:has(.swiper-slide:nth-child(2))))+.position-relative .listing-thumbs-swiper {
    display: none !important;
}

.btn.btn-primary-gradient {
    border: none !important;
    outline: none !important;
}

.btn:disabled.btn.btn-primary-gradient,
.btn:active.btn.btn-primary-gradient,
.btn:focus.btn.btn-primary-gradient {
    border: none !important;
    outline: none !important;
}