/*
 * RumahLelongMalaya.com - responsive mobile corrections
 * Loaded after style.css so these targeted rules take precedence.
 */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

#page-wrapper {
    width: 100%;
    max-width: 100%;
}

/* Keep the logo from making the navigation excessively tall. */
#header .navbar-brand {
    display: inline-flex;
    align-items: center;
    max-width: 45%;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-right: 15px;
}

#header .nav-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

#header .navbar {
    align-items: center;
}

#header .navbar-toggler {
    margin-left: auto;
}

#header .navbar-collapse {
    min-width: 0;
}

#header .top-contact ul,
#header .top-contact {
    max-width: 100%;
}

#header .top-contact li {
    overflow-wrap: anywhere;
}

/* Property cards and images */
.featured-thumb,
.featured-thumb-data {
    min-width: 0;
    max-width: 100%;
}

.featured-thumb .overlay-black img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.featured-thumb h5,
.featured-thumb .location {
    overflow-wrap: anywhere;
}

.featured-thumb .quantity ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.featured-thumb .quantity li {
    float: none;
    min-width: 0;
    overflow-wrap: anywhere;
}

.featured-thumb .quantity li span {
    white-space: normal;
}

.featured-thumb .featured-thumb-data > .p-4 {
    overflow-wrap: anywhere;
}

/* Make controls use available space without exceeding the viewport. */
input,
select,
textarea,
button,
.btn,
.form-control {
    max-width: 100%;
}

@media (max-width: 991.98px) {
    #header .top-header .row {
        align-items: center;
    }

    #header .top-header .col-md-4 .top-contact {
        float: none !important;
    }

    #header .main-nav .navbar {
        flex-wrap: wrap;
    }

    #header .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        padding-top: 10px;
    }

    #header .navbar-nav {
        width: 100%;
    }

    #header .navbar-nav .nav-link {
        padding: 10px 0;
    }

    #header .navbar-collapse .btn {
        display: inline-block !important;
        margin: 8px 0 12px;
        white-space: normal;
    }
}

@media (max-width: 767.98px) {
    #page-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Let the hero grow naturally as form controls stack. */
    .slider-banner1 {
        height: auto;
        min-height: 0;
        padding-top: 55px;
        padding-bottom: 45px;
        background-position: center;
    }

    .slider-banner1 h1 {
        font-size: 30px;
        line-height: 1.25;
        margin-bottom: 22px !important;
    }

    .slider-banner1 form .form-group {
        margin-bottom: 12px;
    }

    .slider-banner1 form .form-control,
    .slider-banner1 form .btn {
        min-height: 44px;
        width: 100%;
    }

    .full-row {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .featured-thumb .overlay-black img {
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    .featured-thumb .quantity {
        padding: 18px 16px !important;
    }

    .featured-thumb .quantity ul {
        gap: 10px 14px;
    }

    .featured-thumb .featured-thumb-data > .p-4 {
        padding: 16px !important;
    }

    .featured-thumb .featured-thumb-data > .p-4 .float-left,
    .featured-thumb .featured-thumb-data > .p-4 .float-right {
        float: none !important;
        display: block;
        margin-bottom: 7px;
    }

    footer .copyright {
        padding: 15px 0;
    }

    footer .copyright .col-sm-6 {
        width: 100%;
        max-width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    footer .copyright .line-menu {
        float: none !important;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-left: 0;
        margin: 0;
    }
}

@media (max-width: 400px) {
    #header .navbar-brand {
        max-width: 70%;
        margin-right: 5px;
    }

    #header .nav-logo {
        max-width: 145px;
        max-height: 58px;
    }

    #header .top-contact li {
        margin-right: 8px;
        font-size: 12px;
    }

    .slider-banner1 h1 {
        font-size: 26px;
    }

    .featured-thumb .quantity ul {
        gap: 8px 10px;
    }
}
