.carousel-inner {
    touch-action: pan-y;
    /* Enable vertical touch actions, to prevent interference with swipe gesture */
}

.carousel-item {
    transition: transform 0.5s ease;
    /* Smooth transition between items */
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
}
.row.scroll-row .carousel-img{height:224px;}
.school-catchment .text-muted:not(.school-catchment-heading) {
    text-align: right;
    margin-right: 13%;
}

.tooltip-link {
    position: relative !important;
    /* Ensure proper positioning */
    display: inline-block;
    /* Keep tooltip aligned */
}

.fw-bold {
    margin-bottom: 6px !important;
    color: #000;
    font-weight: 500;
}

.card li {
    padding: 5px 0 6px 0;
    color: #696c70;
}

.header {
    box-shadow: none !important;
    position: relative !important;
}

.card-title {
    font-size: 1.25rem
}

.image-container {
    max-height: 500px;
    /* Set the maximum height */
    overflow-y: auto;
    /* Enable vertical scrolling if needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnail-container {
    width: 100%;
    overflow-x: auto;
    /* Enables horizontal scrolling */
    white-space: nowrap;
    /* Prevents wrapping */
    padding: 10px 0;
}

.thumbnails-wrapper {

    justify-content: center;
    gap: 10px;
    /* Space between thumbnails */
    max-width: 81%;
    /* Maximum width of the wrapper */
    margin: auto;
    /* Center the wrapper */
    overflow-x: auto;
    /* Allow horizontal scrolling if needed */
}

.thumbnail-img {
    width: 100%;padding:2px;
    /* Adjust width to account for gap */
    height: auto;
    /* Maintain intrinsic aspect ratio */
    aspect-ratio: 4 / 3;
    /* Maintain 4:3 aspect ratio */
    object-fit: cover;
    /* Ensure the image covers the area */
    border-radius: 5px;
    /* Rounded corners */
    max-height: 200px;
    /* Set a maximum height for thumbnails */
    flex-shrink: 0;
    /* Prevent shrinking of thumbnails */
}

.thumbnail-img:hover {
    border-color: gold;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}


.property-images-main img {
    padding: 6px;
    width: 100%;aspect-ratio: 4/3;
    border-radius: 0px;
    height: 100%;
    object-fit: cover;
}

.property-images-main .col-md-8 img {
    max-height:100%;
}

.property-images-secondary img {
    padding: 5px;
    width: 100%;
    border-radius: 0px;
    max-height: 180px;
    object-fit: cover;
}

.property-images-thumbnails .col-2 {
    width: 20%;
    /* Manually set to 20% to ensure 5 equal columns */

    padding: 5px;
}

.property-images-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* Aligns images to the left */
}

.property-images-thumbnails .image-col {
    width: 19%;
    /* Ensures 5 images fit in one row */
    min-width: 180px;
    /* Increased min-width to balance row spacing */
    max-width: 240px;
    /* Prevents images from getting too big */
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.property-images-thumbnails img {
    width: 100%;
    border-radius: 0px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    /* Maintains correct ratio */
    height: auto;
    
    /* Slightly increased for better visibility */
}

.property-images-thumbnails .empty-space {
    width: 19%;
    /* Matches image width */
    visibility: hidden;
    /* Ensures consistent spacing */
}

.property-images .col-6 {
    padding: 2px;
}

.rounded-circle {
    border-radius: 50% !important;
}

body {
    padding-top: 0 !important
}

@media (min-width: 991px) {#thumbnailSidebar{max-height:90vh;overflow-y:auto}
    .rightside {
        max-height: 500px
    }
}
#mobilePreviewCarousel .carousel-control-next, #mobilePreviewCarousel .carousel-control-prev{display: block!important;}
@media (max-width: 768px) {.container.start-content{padding:0}.tabb {display:none}#rm-carousel{display: none;}
    .property-images-main img {
        padding: 2px;
    }

    .property-images-thumbnails .col-2 {

        padding: 3px;
    }

    .card li {
        font-size: 12px
    }

    .homefooter {
        display: none;
    }

    .header {
        display: none
    }

    .property-images-main .col-md-8 img {
        max-height: 300px;
        height: 100%
    }

    .property-images-thumbnails img {
        max-height: 80px;
    }

    .btn-group-container .btn-custom {
        font-size: 12px;
        padding: 4px 8px;
    }

    .card-title.price {
        font-size: 1.2rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .property-detail {
        font-size: 10px;
    }

    .property-price {
        font-size: 16px;
    }

    .property-address {
        font-size: 10px;
    }

    .property-details {
        gap: 5px;
    }

    .property-detail i {
        margin-right: 2px;
    }

    .right-sidebar-map {
        width: 100%;
        position: relative;
        top: 0;
        right: 0;
    }

    .stop-fixed {
        position: relative !important;
    }
}

.map-container {
    width: 100%;
    position: relative;
    max-height: 452px !important;
}

.map-container iframe {
    width: 100%;
    border: none;
}