/* Cố định menu trên cùng */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    /* Nền trong suốt */
    transition: background 0.3s, box-shadow 0.3s;
}

/* Khi cuộn xuống, menu đổi màu và có đổ bóng */
.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tăng độ nổi bật của menu */
.navbar .nav-link {
    font-weight: 600;
    color: #5c5c5c;
    /* Màu trắng khi menu trong suốt */
    transition: color 0.3s;
}

/* Khi cuộn xuống, đổi màu chữ để dễ đọc */
.navbar.scrolled .nav-link {
    color: #333;
}

/* Khi hover vào menu */
.navbar .nav-link:hover {
    color: #ff5722;
    /* Màu cam nổi bật */
}

/* Logo có hiệu ứng nhẹ */
.navbar-brand img {
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

#mainImage {
    height: 300px;
    width: 90%;
}

/* Hiệu ứng dropdown */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hiển thị dropdown khi hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    /* Để dropdown bám sát vào menu */
}

/* Căn chỉnh icon mũi tên */
.nav-link .dropdown-icon {
    margin-left: 2px;
    /* Tạo khoảng cách giữa chữ và icon */
    font-size: 8px;
    /* Điều chỉnh kích thước icon */
}

/* Tăng khoảng cách của menu khi ở chế độ mobile */
.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}


.navbar-nav .dropdown-menu {
    display: none;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
}


.search-container {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* background: rgba(255, 255, 255, 0.8); Nền mờ */
    padding: 10px;
    border-radius: 10px;
    z-index: 10;
}

.input-group {
    padding: 10px;
}

.carousel-container {
    position: relative;
}

.carousel img {
    height: 500px;
    /* Điều chỉnh chiều cao */
    object-fit: cover;
}


.search-bar {
    /* background: rgba(255, 255, 255, 0.9); */
    padding: 15px;
    border-radius: 8px;
}

.property-type {
    text-align: center;
}

.property-type .icon-box {
    padding: 20px;
    border-radius: 10px;
    transition: 0.3s;
    background-color: aliceblue;
}

.property-type .icon-box:hover,
.property-type .active {
    background: #28a745;
    color: white;
}

.fixed-social {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fixed-social a {
    display: block;
    background: #28a745;
    color: white;
    padding: 10px;
    border-radius: 50%;
    text-align: center;
    width: 40px;
    height: 40px;
}

.navbar-nav .dropdown-menu {
    display: none;
}

.navbar-nav .nav-item:hover .dropdown-menu {
    display: block;
}


.property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.badge-orange {
    background-color: #ff6600;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
}

.property-info {
    padding: 15px;
}

.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff7b00;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 30px;
}

.tag1 {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #757575;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 30px;
}

.tag2 {
    position: absolute;
    top: 10px;
    left: 60px;
    background: #f40000;
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 30px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #ff5733;
}

.icon {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    color: gray;
}


.tab-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Tùy chỉnh màu sắc tab */
.nav-pills .nav-link {
    font-weight: bold;
    color: #333;
}

.nav-pills .nav-link.active {
    background-color: #088e00;
    color: white;
}


.project .duan {
    color: orangered;
}


.project .name {
    color: rgb(0, 0, 0);
}

.property-card img {
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.property-card img:hover {
    transform: scale(1.1);
}

.info_room {
    border-top: 1px solid rgb(211, 210, 210);
    padding: 5px;
}

.info_room .rom {
    border-right: 1px solid rgb(211, 210, 210);
}




.news-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.news-image:hover {
    transform: scale(1.05);
}

.news-list img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}




.news-title {
    color: #ff6600;
    font-weight: bold;
}

.news-list .news-item {
    border-bottom: 1px solid #ddd;
    padding: 5px 0;
}

.news-item a {
    text-decoration: none;
    color: black;
}

.news-item a:hover {
    color: #ff6600;
}

.news-author {
    font-weight: bold;
    color: #ff6600;
}

.share-buttons {
    display: none;
    /* Mặc định ẩn */
    margin-top: 10px;
}

.share-icon {
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    color: black;
}

.share-icon:hover {
    color: #ff6600;
}

.card-img-top {
    height: 350px;
}

.card-img {
    width: 50px;
    height: 50px;
}

.share-btn a {
    color: white;
}


.footer-top {
    background-color: #515151;
    /* Màu xám */
    color: white;

}

.footer-bottom {
    background-color: white;
    color: black;

}

.footer-top a {
    color: #bbb;
    text-decoration: none;
}

.footer-top a:hover {
    color: #fff;
}

.footer-line {
    width: 35px;
    border: 2px solid #e3e3e3;
}



.img-tintuc {
    height: 200px;
    width: 100%;
    max-width: 100%;
    /* Hình ảnh sẽ không vượt quá chiều rộng của phần tử chứa */
    object-fit: cover;
    border-radius: 10px;
}






.lienhe {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Căn giữa theo chiều ngang */
    justify-content: center;
    /* Căn giữa theo chiều dọc */
    text-align: center;
    /* Căn giữa nội dung văn bản */


    border-radius: 30px;
    width: 170px;
    /* Điều chỉnh kích thước */
    border: 1px solid red;

    background-color: red;

}

.lienhe span,
i {
    color: white;
    font-weight: bold;
}


.contact-box {
    width: 220px;
    display: flex;
    align-items: center;
    background-color: #ff5a5f;
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    margin-top: 10px;
    text-align: center;
}

.contact-box i {
    font-size: 20px;
    margin-right: 10px;
}

.contact-box .phone-number {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
}

iframe {
    width: 100%;
    height: 100%;
    min-height: 150px;
    /* Chiều cao tối thiểu */
    max-height: 500px;
    /* Chiều cao tối đa */
}

.contact-box .contact-text {
    font-size: 14px;
}

.thumbnail-container img {
    width: 80px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    transition: border 0.3s;
}

.thumbnail-container img:hover,
.thumbnail-container img.active {
    border: 2px solid #28a745;
}

.section-header {
    background: linear-gradient(to right, #7bc379, #b8e6b8);
    color: white;
    padding: 10px;
    font-weight: bold;
}

.contact {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

.contact img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}


.boloc {
    border: 2px solid rgb(239, 239, 239);

}


.boloc .bolocin {
    border-bottom: 1px solid rgb(239, 239, 239);
    padding: 10px;
}




.property-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Giúp nội dung bên trong giãn đều */
    min-height: 100%;
    /* Giữ chiều cao cố định */
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.property-card img {
    width: 100%;
    height: 200px;
    /* Đảm bảo ảnh có chiều cao cố định */
    object-fit: cover;
    /* Giữ tỷ lệ ảnh mà không bị méo */
}

.p-3 {
    flex-grow: 1;
    /* Giúp phần nội dung bên trong phát triển để các card có cùng chiều cao */
    display: flex;
    flex-direction: column;
}




.info_room {
    margin-top: auto;
    /* Đẩy thông tin phòng xuống cuối cùng */
}


.image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-img {
    display: block;
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.btn-change {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.btn-change:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}




@media (max-width: 992px) {
    .nav-link {
        font-size: 12px;
        padding: 5px;
    }

    .news-item .col-md-9 {
        padding-left: 30px;
    }

}

@media (max-width: 923px) {
    .search-bar {
        width: 50%;
    }

    .input-group .form-select {
        font-size: 12px;
        padding: 0px;
    }

}

@media (max-width: 821px) {
    .search-container {
        display: none;
    }

    .carousel img {
        height: 400px;
        /* Điều chỉnh chiều cao */
        object-fit: cover;
    }



}

@media (max-width: 768px) {
    .col-md-6 .thumbnail-container img {
        display: none;
    }

    .nav-link {
        font-size: 10px;
        padding: 5px;
    }


    .col-md-4 {
        width: 50%;
        font-size: 14px;
    }

    .col-md-4 h5 {
        font-size: 14px;
    }

    .col-md-4 .position-relative img {
        height: 100px;
    }

    .col-md-4 .text-muted {
        font-size: 14px;
    }

    .col-md-4 .price,
    .rom {
        font-size: 14px;
    }

    .project .duan {
        font-size: 14px;
    }

    .project .name {
        font-size: 14px;
    }

    .info_room .col-md-4 {
        width: 33%;
    }

    .col-md-4 i {
        font-size: 10px;
    }

    .project .col-md-7 {
        width: 65%;
    }

    .project .col-md-5 {
        width: 35%;


    }

    .news-item .col-md-9 {
        padding-left: 0;
    }



}


@media (max-width: 420px) {
    .row .thongtinlienhe {
        width: 100%;
    }


    .nav-link {
        font-size:10px;
        padding: 2px;
    }

    .col-md-4 {
        width: 50%;
    }

    .col-md-4 h5 {
        font-size: 10px;
    }

    .col-md-4 .position-relative img {
        height: 100px;
    }

    .col-md-4 .text-muted {
        font-size: 11px;
    }

    .col-md-4 .price,
    .rom {
        font-size: 12px;
    }

    .col-md-4 h5 {
        font-size: 12px;
    }

    .col-md-4 .tag,
    .tag1,
    .tag2 {
        font-size: 10px;
    }

    .project .duan {
        font-size: 12px;
    }

    .project .name {
        font-size: 12px;
    }

    .info_room .col-md-4 {
        width: 33%;
        font-size: 10px;
    }

    .col-md-4 i {
        display: none;
    }

    .carousel img {
        height: 200px;
        /* Điều chỉnh chiều cao */
        object-fit: cover;
    }


    .tintuc .project h6 {
        font-size: 10px;
    }

    .tintuc .card .img-tintuc {
        height: 140px;
    }

    .tintuc .card-body span,
    i {
        font-size: 10px;
    }

    .tintuc .card-body .card-text {
        font-size: 10px;
    }

    .tintuc .text-orange {
        font-size: 10px;
    }

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        margin-top: 50px
    }

    .card-title {
        font-size: 10px;
    }

    /* .card p,
    span {
        font-size: 10px;
    } */
     .card-body p{
        font-size: 10px;
     }

    .card-img-top {
        height: 220px;
    }

    .project .col-md-7 {
        width: 70%;
    }

    .project .col-md-5 {
        width: 30%;

        font-size: 10px;
    }

    .tintuc .project .card-body span,
    h6 {
        font-size: 10px;
    }

    .tintuc .project .card-title {
        font-size: 10px;
    }

    .news-item:nth-child(n+4) {
        display: none;
    }

    .news-item a{
        font-size: 10px;
        padding: 0;
    }

    .news-item .col-md-3{
        padding-left: 0;
    }

    


}



@media (min-width: 501px) {
    .d-custom:nth-child(n+5) { 
        display: none; /* Ẩn danh mục thứ 5 trở đi trên màn hình lớn hơn 500px */
    }
}
@media (max-width: 500px) {

    .d-custom:nth-child(n+4) { 
        display: none; /* Ẩn danh mục thứ 4 trở đi trên màn hình nhỏ hơn 500px */
    }

    .nav-link {
        font-size: 10px;
        padding: 2px;
    }

    .tintuc .project h6 {
        font-size: 12px;
    }

    .tintuc .card .img-tintuc {
        height: 150px;
    }

    .tintuc .card-body span,
    i {
        font-size: 12px;
    }

    .tintuc .card-body .card-text {
        font-size: 12px;
    }

    .tintuc .text-orange {
        font-size: 12px;
    }


  


}