/* Custom styling for search form */
.rld-main-search .input-group {
    height: 42px;
}

.main-search .input-group-text {
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 0px;
    padding: 0.75rem 0.75rem;
    background-color: #fff;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
}

.main-search .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    height: 43px;
    /*    padding: 0.75rem;*/
    font-size: 0.9rem;
    transition: all 0.15s ease-in-out;
}
/*
.rld-main-search .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.rld-main-search .form-control:focus + .input-group-text,
.rld-main-search .form-control:focus ~ .input-group-text {
    border-color: #0d6efd;
}
*/
/* Fix hover border alignment - target the entire input group
.rld-main-search .input-group:hover .input-group-text,
.rld-main-search .input-group:hover .form-control {
    border-color: #0d6efd;
}
 */
/* Search button styling */
.main-search .search-btn {
    height: 42px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    min-width: 100px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius:12px;
}

.main-search .input-group {
    margin-bottom: 0px;
}

.main-search .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.main-search .search-btn i {
    flex-shrink: 0;
}

.main-search .search-btn span {
    flex-shrink: 0;
}

/* Ensure the datepicker overlays above hero overlays and isn't clipped */
.datepicker {
    z-index: 2000;
}

/* Hide second month and divider line on homepage datepicker 
.datepicker__month--month2 {
    display: none !important;
}

.datepicker__months:before {
    display: none !important;
}
*/
.banner-search-wrap,
.rld-main-search {
    overflow: visible;
}

    /* Ensure consistent height across all elements */
    .rld-main-search .col-lg-3 {
        display: flex;
        align-items: stretch;
    }

    .rld-main-search .input-group {
        flex: 1;
    }

    .rld-main-search .search-btn {
        flex: 1;
    }

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .rld-main-search .row {
        gap: 1rem !important;
    }

    .rld-main-search .col-md-6 {
        margin-bottom: 0px;
    }

        .rld-main-search .col-md-6:last-child {
            margin-bottom: 0;
        }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .rld-main-search .search-btn {
        min-width: 80px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

        .rld-main-search .search-btn span {
            display: none; /* Hide text on very small screens, show only icon */
        }
}

/* Properties listing flexbox layout */
.properties-flex-container {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

    .properties-flex-container .property-item {
        flex: 0 0 calc(50% - 1.5rem) !important;
        max-width: calc(50% - 1.5rem) !important;
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        box-sizing: border-box;
    }

        .properties-flex-container .property-item .agents-grid {
            width: 100% !important;
            max-width: 100% !important;
            padding-left: 0px;
            padding-right: 0px;
        }

/* Mobile: 1 column */
@media (max-width: 767.98px) {
    .properties-flex-container .property-item {
        flex: 0 0 calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
    }
}


.page-link:hover {
    background: #000;
    color: #fff;
}

.listing-title-bar h5 {
    font-weight: 600 !important;
}

    .listing-title-bar h5 span {
        color: #f55d2c !important;
    }

.pro-wrapper .detail-wrapper-body {
    padding: 5px;
}

@media (min-width: 320px) {
    #datepicker-date-range-mobile .datepicker {
        width: 350px;
    }
}

/*datepicker__month {
    font-size:14px;
}
*/
.btn-outline-primary {
    color: #f55d2c;
    border-color: #f55d2c;
}

    .btn-outline-primary:hover {
        background-color: #6c757d !important;
        border-color: #6c757d !important;
    }

@media screen and (max-width: 767px) {
    .inner-pages .blog .item {
        padding-bottom: 0rem !important;
    }
}

#listingDetailsSlider .slick-dots li button {
    background: none !important;
}

.slick-slide-container {
    position: relative;
    width: 100%; /* Or a specific width if not already defined by Slick */
    padding-bottom: 420px;
    /*padding-bottom: calc(100% / (16/9)); /* Calculate height based on desired aspect ratio */
    overflow: hidden; /* Hide any overflowing image parts */
}

    .slick-slide-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 410px;
        object-fit: cover; /* Or 'contain' depending on desired behavior */
        object-position: center center; /* Adjust as needed */
    }


@media (max-width: 767px) {
    .slick-slide-container {
        position: relative;
        width: 100%; /* Or a specific width if not already defined by Slick */
        padding-bottom: 260px;
        /*padding-bottom: calc(100% / (16/9)); /* Calculate height based on desired aspect ratio */
        overflow: hidden; /* Hide any overflowing image parts */
    }

        .slick-slide-container img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 260px;
            object-fit: cover; /* Or 'contain' depending on desired behavior */
            object-position: center center; /* Adjust as needed */
        }

    .listing-slider-main {
        margin-left: -15px;
        margin-right: -15px;
    }
}

/* Center navigation in header */
.container-header {
    display: flex;
    /*    align-items: center;*/
    justify-content: space-between;
    position: relative;
}

    .container-header .left-side {
        flex-shrink: 0;
    }

    .container-header #navigation {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        float: none !important;
    }

    .container-header .header-user-menu {
        flex-shrink: 0;
        margin-left: auto;
    }

/* Mobile: stack navigation below logo */
@media (max-width: 991px) {
    .container-header {
        flex-wrap: wrap;
    }

        .container-header #navigation {
            position: static;
            transform: none;
            width: 100%;
            order: 3;
            margin-top: 10px;
        }
}

#header {
    position: relative;
    z-index: 999;
    padding: 10px 0 10px 0 !important;
}

@media (max-width: 767px) {
    #header {
        position: relative;
        z-index: 999;
        padding: 10px 0 10px 0 !important;
    }
}

@media only screen and (max-width: 575px) {
    #logo img {
        margin-right: 0px;
    }
}

.mmenu-trigger {
    margin: 0px !important
}

.user-menu {
    margin-right: 0px;
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

@media only screen and (max-width: 1024px) {
    #logo {
        margin-top: 0px;
    }
}

/*@media (min-width: 320px) {
    .datepicker {
        width: 350px;
    }
}*/


#navigation.style-1 ul li:hover a {
    color: #f55d2c;
    background: none;
}


#navigation.style-1 ul li:hover {
    background: none;
}

.homepage-23 #navigation.style-1 ul li:hover {
    background: none;
}

.show-lang:hover {
    color: #f55d2c;
}

.homepage-23 #header .show-lang a {
    color: #fff;
}

#header .show-lang a {
    color: #707070
}

    #header .show-lang a:hover {
        color: #f55d2c
    }

.show-lang a {
    color: #707070
}

    .show-lang a:hover {
        color: #f55d2c;
    }


.inner-pages .blog .hvr-bounce-to-right {
    border-radius: 12px;
    padding: 12px 0px;
}

section.portfolio {
    padding-top: 6rem;
    background: #f7f7f7;
}

@media (max-width: 991px) {
    section.portfolio {
        padding-top: 14rem;
        background: #f7f7f7;
    }

}

.portfolio .sec-title h2 span {
    font-weight: 600;
    color: #f55d2c;
}

.bg-all {
    margin-top: 0rem;
}

.homepage-23 .hero-main {
    padding: 0px;
}



@media (min-width: 991px) {


    .hero-spacing {
        margin-top: 216px;
    }
}



@media only screen and (max-width: 575px) {
    .hero-spacing {
        margin-top: 95px;
    }
}
