@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

/* ===== Defined ==== */
:root {
    /* Color */
    --primary-color: #39bee0;
    --white-color: #fff;
    --text-color: #333;

    /* Border radius */
    --border-radius-1: 6px;
    --border-radius-2: 10px;
    --border-radius-3: 12px;
    --border-radius-4: 20px;
    --border-radius-5: 0.75rem;

    /* Font size */

    /* Font weight */

    /* Box shadow */
    --box-shadow-1: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    --box-shadow-2: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;;

    /* Transition */
    --transition-1: all 0.25s ease-in;
    --transition-2: all 0.5s ease-in-out;

    /* Index */
    --z-index-1: 1;
    --z-index-2: 10;
    --z-index-3: 100;
    --z-index-4: 1000;
}
/* ===== ./end Defined ==== */


/* === Scroll bar === */
::-webkit-scrollbar {
    height: 8px;
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 16px;
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    width: 10px;
}
/* === ./end Scroll bar === */
.hidden-lg {
    display: none;
}

.pd-sm {
    padding: 0 5px;
}

body {
    font-family: "Quicksand", sans-serif;
    font-size: 16px;
    background-color: #fefefe;
}

header {
    width: 100%;
    background-color: var(--white-color);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.header-top {
    height: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-top .container {
    position: relative;
    height: 100%;
}

.header-top .logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--z-index-2);
}

.navbar-nav .nav-item {
    padding: 0 10px;
    margin: 0 12px;
    transition: var(--transition-1);
    border-radius: var(--border-radius-4);
}

.navbar-nav .nav-item.active,
.navbar-nav .nav-item:hover {
    background-color: var(--primary-color);
}

.navbar-nav .nav-item:hover .nav-link {
    color: var(--white-color);
}

.navbar-nav .nav-item.active .nav-link {
    color: var(--white-color);
}

.logo a img {
    max-width: 70px;
}

.navbar-top-logo img {
    max-width: 70px;
}

.swiper {
    z-index: -1;
}

.swiper-slides .swiper-wrapper {
    margin-top: 20px;
}

.swiper-slides .swiper-wrapper .swiper-slide {
    height: 395px;
    border-radius: 32px;
    overflow: hidden;
}

.swiper-slides .swiper-wrapper .swiper-slide .swiper-link {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.swiper-slides .swiper-wrapper .swiper-slide .swiper-link img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--primary-color);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: var(--border-radius-3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-1);
    z-index: var(--z-index-3);
}

.content-wrap {
    margin-top: -45px;
}

.background-overlay.active {
    opacity: 1;
    visibility: visible;
}

.room-container {
    padding: 0 70px;
}

.searchbox {
    height: 90px;
    background-color: var(--white-color);
    box-shadow: var(--box-shadow-1);
    border-radius: var(--border-radius-4);
}

.searchbox {
    display: flex;
    padding: 1.5rem;
}

.searchbox .row {
    width: 100%;
    height: 100%;
    align-items: center;
    padding: 0;
}

.searchbox-inner {
    position: relative;
}

.searchbox-inner input {
    padding-left: 40px;
    border-radius: var(--border-radius-5);
    color: rgb(153 165 178/1);
    font-size: 15px;
    border-color: #eee;
}

.searchbox-inner input:active,
.searchbox-inner input:focus,
.searchbox-inner input:hover {
    outline: none;
    box-shadow: none;
    border-color: var(--primary-color);
}

.icon-search {
    position: absolute;
    top: 4px;
    left: 10px;
}
.picklist {
    position: relative;
}

.picklist .label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
    height: 40px;
    width: 100%;
    padding: 0 12px;
    border-radius: var(--border-radius-5);
    cursor: pointer;
    transition: var(--transition-1);
    color: rgb(153 165 178/1);
    font-size: 15px;
    text-wrap: nowrap;
    overflow: hidden;
}

.picklist .picklist-option {
    transition: var(--transition-1);
}

.picklist-option.active {
    opacity: 1;
    visibility: visible;
}

.picklist-option {
    position: absolute;
    top: 42px;
    left: 0;
    min-width: 200px;
    background-color: #fff;
    z-index: var(--z-index-3);
    box-shadow: var(--box-shadow-2);
    border-radius: var(--border-radius-2);
    list-style: none;
    padding: 8px;
    margin: 0;
    border: 1px solid #f9f9f9;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-index-2);
}

.picklist-option .option {
    padding: 5px 10px;
    border-radius: var(--border-radius-2);
    margin-bottom: 5px;
    cursor: pointer;
    transition: var(--transition-1);
    font-size: 14px;
}

.picklist-option .option:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.filter-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.filter-search {
    width: 30%;
}

.filter-option {
    width: 57%;
}

.filter-action {
    width: 13%;
}

.search-group {
    display: flex;
    position: relative;
}

.btn-reset {
    position: absolute;
    top: -2px;
    right: -40px;
    color: rgb(102 121 139/1);
}

.btn-search-realeastate {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transition: var(--transition-1);
    font-weight: 600;
    border-radius: var(--border-radius-5);
}

.btn-search-realeastate:active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-search-realeastate:hover,
.btn-search-realeastate:focus-visible {
    opacity: 0.8;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: none;
}

section.room {
    margin-top: 1.5rem;
    margin-bottom: 50px;
}

.room-heading {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.room-heading .room-title {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0;
}

.room-heading .room-title svg {
    color: var(--primary-color);
    margin-right: 0.75rem;
}

.room-heading .room-view-all {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.room-heading .room-view-all span {
    margin-right: 0.5rem;
}

.room-item {
    border: none;
    box-shadow: 0 4px 8px #0000000d;
    border-radius: 1.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.room-item .card-header {
    padding: 0;
    height: 170px;
    overflow: hidden;
    position: relative;
}

.room-item .card-header .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-index-2);
    transition: var(--transition-2);
}

.room-item:hover .card-header .card-overlay {
    background-color: rgba(0, 0, 0, 0.45);
}

.room-item .card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-1);
}

.room-item:hover .card-header img {
    transform: scale(1.1);
}

.card-title {
    margin-bottom: 0;
    height: 64px;
}

.card-title a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: bold;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    height: 50px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.card-address {
    display: flex;
}

.card-address svg {
    color: rgb(102 121 139/1);
    margin-right: 5px;
}

.card-address span {
    color: rgb(102 121 139/1);
    font-size: 0.75rem;
    line-height: 1rem;
    margin-bottom: 0.25rem;
}

.card-info .card-info-item {
    display: flex;
    align-items: center;
}

.card-info .card-info-item svg {
    margin-right: 5px;
}

.card-info .card-info-item-text {
    font-weight: bold;
    font-size: 16px;
}

.card-info .card-info-item-text span {
    margin-right: 12px;
}

.card-info .card-info-item .price-text {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 2rem;
}

.card-info .card-info-item .price-text.sub-price {
    color: rgb(233 98 0/1);
}

.card-info .card-info-item .price-text.main-price {
    color: #ed1d11;
}

.room-item.room-lg .card-header {
    height: 195px;
}

.swiper-hot .swiper-wrapper .swiper-slide {
    width: 29.1%;
}

.swiper-hot .swiper-wrapper .swiper-slide:nth-child(2n) {
    width: 20%;
}

.swiper-hot .swiper-wrapper .swiper-slide:nth-child(3n) {
    width: 40%;
}

.card-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.card-buttons .btn {
    border-radius: var(--border-radius-5);
    width: calc(50% - 5px);
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 15px;
    padding: 8px 12px;
}

.btn.btn-view {
    text-align: center;
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    gap: 0.5rem;
}

.btn.btn-view:hover {
    background-color: #2a98b4;
}

.btn.btn-view img {
    width: 16px;
}

.btn.btn-zalo {
    background-color: #0068ff;
    color: #fff;
    display: flex;
    gap: 0.5rem;
}

.btn.btn-zalo:hover {
    background-color: #0356ce;
}

.owl-hot .owl-nav {
    position: absolute;
    top: 40%;
    left: -20px;
    width: calc(100% + 40px);
    display: flex;
    justify-content: space-between;
}

.owl-hot .owl-nav button.owl-next, 
.owl-hot .owl-nav button.owl-prev {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 0 9px #00000026;
    background-color: #fff;
}

.owl-hot .owl-nav button.owl-next i,
.owl-hot .owl-nav button.owl-prev i {
    transition: var(--transition-1);
}

.owl-hot .owl-nav button.owl-next:hover i, 
.owl-hot .owl-nav button.owl-prev:hover i {
    color: var(--primary-color);
}

footer {
    border-top-right-radius: 25px;
    border-top-left-radius: 25px;
    background-color: #0F254E;
    padding-top: 2rem;
    padding-bottom: 4rem;
    position: relative;
}

.footer-logo {
    padding: 0.625rem;
}

.footer-logo img {
    max-width: 100px;
}

.footer-info {
    margin-top: 2rem;
}

.footer-icon {
    position: absolute;
    top: 42px;
    right: 60px;
    z-index: var(--z-index-1);
}

.footer-icon svg path {
    fill: var(--primary-color);
}

.footer-heading {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    margin-bottom: 1rem;
}

.footer-description p,
.footer-description p span {
    font-size: 16px;
    color: #f1f1f1;
}

.footer-line {
    margin-bottom: 1rem;
    color: #f9f9f9;
    display: flex;
    align-items: center;
}

.footer-line svg {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-line span.bold {
    font-weight: bold;
}

.social-lists {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.social-lists li {
    margin-right: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links li a {
    text-decoration: none;
    color: #f1f1f1;
    font-size: 16px;
}

.footer-links li a:hover {
    color: #fff;
}

.footer-links li a svg {
    color: var(--primary-color);
    margin-right: 10px;
}

.post-detail {
    padding-bottom: 50px;
}

.breadcrumb {
    padding: 1.5rem 0;
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item a {
    text-decoration: none;
    color: var(--text-color);
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumb .breadcrumb-item.active {
    font-weight: bold;
}

.card.slide {
    padding: 1rem;
    box-shadow: 0 0 8px #0000001a;
    border-radius: 1.5rem;
}

.card.slide {
    border: none;
}

.card.slide .carousel-inner .carousel-item img {
    border-radius: 0.5rem;
}

.card.post-info {
    margin-bottom: 1.5rem;
    border: none;
    box-shadow: 0 0 8px #0000001a;
    border-radius: 1.5rem;
    padding: 16px;
}

.card.post-info .card-heading {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.main-info-item {
    display: flex;
    margin-bottom: 15px;
}

.main-info-item span {
    width: 50%;
}

.post-detail-title {
    margin-top: 20px;
    font-weight: bold;
    font-size: 24px;
    line-height: 2rem;
}

.post-detail-desc {
    font-size: 15px;
}

.post-detail-price {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-detail-price .price,
.post-detail-price .type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-detail-price .price {
    font-size: 24px;
    font-weight: bold;
}

.post-detail-price .price span:last-child {
    color: rgb(237, 29, 17);
}

.post-detail-address {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card.user-contact {
    border: none;
    box-shadow: 0 0 8px #0000001a;
    border-radius: 1.5rem;
    padding: 10px 12px;
}

.card.user-contact .card-header {
    font-size: 20px;
    border-bottom: 1px solid #f1f1f1;
    font-weight: bold;
    background-color: transparent;
}

.post-info-map iframe {
    max-width: 100%;
}

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
    transition: all 0.3s ease-out;
}

.loading.active {
    opacity: 1;
    visibility: visible;
    z-index: var(--z-index-4);
}

.loading img {
    max-width: 250px;
}

.loading span {
    font-size: 16px;
}
/* End loading */


/* Filters */
.filter-right,
.filter-left {
    margin: 30px 0;
}
.card.selectbox {
    border: 1px solid #eee;
    box-shadow: 0 0 8px #0000001a;
}
.card.selectbox .card-header {
    background-color: transparent;
    border-bottom: 0;
    padding: 10px 15px;
}
.card.selectbox h2 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}
.selectbox-inner {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.selectbox__item {
    width: 50%;
}
.selectbox__link {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 5px;
    color: #252525;
    font-size: 15px;
}
/* End filters */


.room-item.horizontal {
    flex-direction: row;
    padding: 15px;
}

.room-item.horizontal .card-header {
    width: 35%;
    border-radius: 0.75rem;
}

.room-item.horizontal .card-body {
    width: 65%;
    padding: 0 0 0 12px;
}

@media (max-width: 768px) {
    .hidden-lg {
        display: block;
    }

    .mb-fuild {
        padding: 0;
    }

    .mb-mb-1 {
        margin-bottom: 10px;
    }

    .header-top {
        height: 75px;
        padding-left: 15px;
    }

    .swiper-slides .swiper-wrapper {
        margin-top: 0;
    }

    .autoplay-progress {
        display: none;
    }

    .swiper-slides .swiper-wrapper .swiper-slide {
        height: 120px;
        border-radius: 0;
    }

    .navbar-toggler {
        border: none;
        padding: 0;
        position: absolute;
        right: 10px;
        top: 18px;
    }

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .collapse:not(.show) {
        display: block;
    }

    .navbar-collapse {
        position: fixed;
        display: flex;
        flex-direction: column;
        background-color: var(--white-color);
        z-index: var(--z-index-4);
        width: 76%;
        height: 100vh;
        top: 0;
        left: -76%;
        box-shadow: var(--box-shadow-1);
        visibility: hidden;
        opacity: 0;
        transition: var(--transition-2) !important;
    }

    .navbar-collapse.open {
        left: 0;
        opacity: 1;
        visibility: visible;
    }

    .navbar-top {
        border-bottom: 1px solid #eee;
        width: 100%;
        height: 70px;
        padding: 0 15px;
    }

    .navbar-top .logo {
        display: block;
    }

    .navbar-nav {
        position: relative;
        width: 100%;
        margin-top: 30px !important;
    }

    .navbar-nav .nav-item {
        margin: 0 0 10px 0;
        padding: 0;
    }

    .navbar-nav .nav-item.active {
        background-color: transparent;
    }

    .navbar-nav .nav-item.active .nav-link {
        color: #0000008c;
    }

    .content-wrap {
        margin-top: 0;
    }

    .room-container {
        padding: 0;
        margin-top: 1.5rem;
    }

    .room-container .searchbox {
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        height: auto;
    }

    .filter-box {
        flex-direction: column;
    }

    .filter-box .filter-search,
    .filter-box .filter-option,
    .filter-box .filter-action {
        width: 95%;
    }

    .filter-box .filter-option {
        display: none;
        width: 102%;
    }

    .searchbox-inner {
        width: 100%;
    }

    .searchbox-inner input {
        height: 40px;
        font-size: 16px;
    }

    .icon-search {
        top: 6px;
    }

    .filter-search .form-group {
        position: relative;
        display: flex;
    }
    .filter-toggle {
        position: absolute;
        top: 6px;
        right: -40px;
    }

    .filter-action,
    .filter-option {
        margin-top: 0.75rem;
    }

    .btn-search-realeastate {
        height: 40px;
        width: 100%;
        font-size: 16px;
    }

    .btn-reset {
        top: -1px;
        right: -53px;
    }

    .picklist-option {
        min-width: 180px;
    }

    .picklist-option .option {
        font-size: 15px;
        padding: 5px 15px;
    }

    .room-heading .room-title {
        font-size: 20px;
    }

    .room-item {
        margin-bottom: 30px;
    }

    .room-item .card-header {
        max-height: 125px;
    }
    
    .card-title {
        height: 40px;
    }

    .card-title a {
        font-size: 14px;
        height: 40px;
        line-height: 20px;
    }

    .card-address {
        margin-top: 12px;
    }
    
    .card-info .card-info-item-text {
        font-size: 13px;
    }

    .card-info .card-info-item-text span {
        margin-right: 5px;
    }

    .card-info .card-info-item .price-text {
        display: flex;
        flex-direction: column;
        font-size: 18px;
        line-height: 25px;
    }

    .card-info .card-info-item {
        margin-bottom: 5px;
    }

    .card-buttons {
        flex-direction: column;
    }

    .card-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }

    .owl-hot .owl-nav {
        display: none;
    }

    .room-item.room-lg .card-header {
        height: 155px;
        max-height: 155px;
    }

    .room-item.horizontal { 
        padding: 10px;
    }
}