body { font-family: 'Roboto', sans-serif; }
.hero-slider .owl-item img { height: 50vh; object-fit: cover; filter: brightness(80%); }
.carousel-caption { bottom: 20%; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
.property-card { transition: all 0.4s; border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.property-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.thumbnail-wrapper { height: 220px; overflow: hidden; background: #f0f0f0; }
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.item-thumbnail-wrapper { height: 80px; overflow: hidden; background: #f0f0f0; }
.item-thumbnail-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.nav-link { font-weight: bold; color: #007bff !important; padding: 12px 20px; }
.nav-link .active { color: #3060da; border-bottom: 4px solid #3060da; }
.sidebar-ad { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.btn-primary { 
    background: linear-gradient(to right, #3060da, #224de0); 
    border: none; 
}
.btn-primary:hover { 
    background: linear-gradient(to right, #224de0, #1a3bb8); 
}
.text-primary { color: #3060da !important; }
footer { background: linear-gradient(to right, #3060da, #224de0); color: #fff; }
footer a { color: #a8dadc; text-decoration: none; }
footer a:hover { color: #fff; }
.newsletter { background: #f1faee; padding: 40px 0; }
/* Section mới: Danh sách tài sản kiểu list ngang */
.property-list-item { border-bottom: 1px solid #eee; padding: 15px 0; transition: background 0.3s; }
.property-list-item:hover { background: #f8f9fa; }
.property-list-item img { width: 180px; height: 120px; object-fit: cover; border-radius: 0.5rem; }
.property-list-title { font-size: 1.1rem; font-weight: 600; color: #333; }
.property-list-price { font-size: 1.3rem; color: #e63946; font-weight: bold; }
.sidebar-property-card .thumbnail-wrapper {border-radius: 12px;}
/* FIX MỚI: Ảnh tin tức đều nhau bằng wrapper */
.news-thumbnail-wrapper {
    height: 220px; /* Giống thumbnail BĐS để đồng bộ */
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 12px 12px 0 0;
}
.news-thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.news-card {
    border-radius: 13px;
}
.news-card .card-body {
    padding: 20px;
}
.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.news-card .card-text {
    font-size: 0.95rem;
    color: #666;
}
.back-link a {
    white-space: nowrap;
    text-decoration: none;
}
.back-link i {
    transform: rotate(45deg);
}
/*flickity slider*/
.carousel {
width:100%;
padding: 0px;
}

.carousel-cell {
width: 75%;
height: auto;
margin-right: 10px;
background: #FAFAFA;
}

.carousel-cell-image {
display: block;
max-height: 100%;
margin: 0 auto;
max-width: 100%;
opacity: 0;
-webkit-transition: opacity 0.8s;
        transition: opacity 0.8s;
}

/* fade in lazy loaded image */
.carousel-cell-image.flickity-lazyloaded,
.carousel-cell-image.flickity-lazyerror {
opacity: 1;
}
.carousel-caption {
    top:200px;
}

.carousel-caption h5 {
    font-size: 5rem;
}

.carousel-caption p {
    color: #ffffff;
    text-shadow: #ccc;
    font-size: 2rem;
}

.flickity-page-dots {
/*display: none;*/
bottom: 10px !important;
}
.flickity-prev-next-button.previous {
    left: 2% !important;
}
.flickity-prev-next-button.next {
    right: 2% !important;
}
.flickity-page-dots li:before {
    content:none !important;
}
.card-body {
    position: relative;
}
.price {
    position: absolute;
    top: -205px;
    background: #fff;
    padding: 0px 10px 3px 10px;
    border-radius: 5px;
}
.search-loca .dropdown-menu {
    width: 500px !important;
}
.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    max-width: 1000px;
    margin: auto;
}
.auth-header {
    background: linear-gradient(to right, #3060da, #224de0);
    color: white;
    padding: 30px;
    text-align: center;
}
.auth-header h2 {
    font-weight: 700;
    margin: 0;
}
.auth-header p {
    opacity: 0.9;
    margin-top: 10px;
}
.auth-form {
    padding: 40px;
}        
.captcha-box {
    background: #f0f4ff;
    border: 2px dashed #3060da;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 6px;
    color: #3060da;
    user-select: none;
}
.captcha-refresh {
    cursor: pointer;
    color: #3060da;
}
.captcha-refresh:hover {
    color: #224de0;
}
.social-login {
    margin-top: 20px;
}
.social-btn {
    border: 1px solid #ddd;
    background: white;
    color: #333;
    padding: 10px;
}
.social-btn:hover {
    background: #f8f9fa;
}
.social-btn i {
    font-size: 1.4rem;
}
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #da3036;
    text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff, 0.5px 0.5px #fff, -0.5px -0.5px #fff, 0.5px -0.5px #fff, -0.5px 0.5px #fff;
}
.terms-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 1.05rem;
}
.terms-content h2 {
    color: #3060da;
    border-bottom: 3px solid #3060da;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.terms-content h3 {
    color: #224de0;
    margin-top: 30px;
    margin-bottom: 15px;
}
.terms-content ul {
    padding-left: 20px;
}
.terms-content li {
    margin-bottom: 10px;
}
.privacy-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    line-height: 1.8;
    font-size: 1.05rem;
}
.privacy-content h2 {
    color: #3060da;
    border-bottom: 3px solid #3060da;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}
.privacy-content h3 {
    color: #224de0;
    margin-top: 30px;
    margin-bottom: 15px;
}
.privacy-content ul {
    padding-left: 20px;
}
.privacy-content li {
    margin-bottom: 10px;
}
.update-date {
    font-style: italic;
    color: #666;
    text-align: right;
    margin-top: 40px;
}

/* Nút Đăng Tin với border 7 màu xoay vòng liên tục như "rắn nối đuôi" */
.btn-dangtin {
    position: relative;
    background: white;
    border-radius: 10px !important;
    overflow: hidden;
    z-index: 1;
    padding: 3px !important;
}

/* Chữ chuyển màu xanh khi hover (tùy chọn) */
.btn-dangtin:hover {
    color: #3060da;
}

/* Border 7 màu xoay vòng liên tục (conic-gradient + animation) */
.btn-dangtin::before {
    content: '';
    position: absolute;
    top: -130px;
    left: -50px;
    right: -4px;
    bottom: -4px;
    background: conic-gradient(
        red, 
        orange, 
        yellow, 
        green, 
        blue, 
        indigo, 
        violet,
        red
    ); /* 7 màu cầu vồng + red lặp lại để mượt */
    border-radius: 50px;
    z-index: -1;
    animation: xoayCauVong 3s linear infinite; /* Quay liên tục 3s một vòng */
    width: 300px;
    height: 300px;
}

/* Tăng tốc quay khi hover (tùy chọn, làm vui mắt hơn) */
.btn-dangtin:hover::before {
    animation-duration: 1s;
}

.btn-dangtin .btn-post {
    border-radius: 7px !important;
}

@keyframes xoayCauVong {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;            
    margin: auto;
}
.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-info {
    background: linear-gradient(135deg, #3060da, #224de0);
    color: white;
    padding: 3rem;
}
.contact-info i {
    font-size: 2rem;
    margin-bottom: 15px;
    opacity: 0.9;
}
.image-preview {
    position: relative;
    display: inline-block;
    margin: 8px;
}
.image-preview img {
    width: 130px; height: 130px; object-fit: cover; border-radius: 10px; border: 3px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}
.image-preview img:hover {
    border-color: #3060da;
    transform: scale(1.05);
}
.image-preview .remove-img {
    position: absolute; top: -8px; right: -8px; background: #e63946; color: white;
    width: 26px; height: 26px; border-radius: 50%; text-align: center; line-height: 20px;
    cursor: pointer; font-size: 30px;
}
.image-preview .remove-img::before {
  content: "\2715";
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
}
.image-preview .cover-badge {
    position: absolute; bottom: 8px; left: 8px; background: #3060da; color: white;
    padding: 2px 8px; border-radius: 4px; font-size: 0.8rem;
}
#map { height: 350px; border-radius: 12px; border: 2px solid #3060da; }
.ck-editor__editable_inline {
    min-height: 450px !important;   /* Chiều cao tối thiểu của vùng soạn thảo */
}
.note { font-size: 0.9rem; color: #666; }
.ck-powered-by {display: none;}
.news-cover {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.news-meta {
    color: #666;
    font-size: 0.95rem;
}
.news-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.news-content h2, .news-content h3 {
    color: #3060da;
    margin-top: 30px;
    margin-bottom: 15px;
}
.related-news-card {
    transition: all 0.4s;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.related-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.related-news-card img {
    height: 200px;
    object-fit: cover;
}
.category-news-item {
    display: flex;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: all 0.4s;
}
.category-news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.category-news-thumb {
    width: 300px;
    height: 250px;
    flex-shrink: 0;
}
.category-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.category-news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.category-news-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}
.category-news-title a {
    text-decoration: none;
    color: inherit;
}
.category-news-title a:hover {
    color: #3060da;
}
.category-news-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}
.category-news-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 10px;
}
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
}
.pagination .page-item.active .page-link {
    background: #3060da;
    border-color: #3060da;
}
@media (max-width: 1400px) {
    .carousel-caption {
        top: 100px;
    }
    .carousel-caption h5 {
        font-size: 3.5rem;
    }
    .carousel-caption p {
        color: #ffffff;
        text-shadow: #ccc;
        font-size: 2.5rem;
    }

}
@media (max-width: 1200px) {
    .carousel-caption {
        top: 100px;
    }
    .carousel-caption h5 {
        font-size: 3rem;
    }
    .carousel-caption p {
        color: #ffffff;
        text-shadow: #ccc;
        font-size: 1.8rem;
    }

}
@media (max-width: 992px) {
    .carousel-caption {
        top: 50px;
    }
    .carousel-caption h5 {
        font-size: 2.5rem;
    }
    .carousel-caption p {
        color: #ffffff;
        text-shadow: #ccc;
        font-size: 1.5rem;
    }

}
@media (max-width: 768px) {
    .category-news-item {
        flex-direction: column;
    }
    .category-news-thumb {
        width: 100%;
    }
    .category-news-thumb img {
        height: 200px;
    }
}
@media (max-width: 576px) {

}
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(48, 96, 218, 0.2);
}
.error-code {
    font-size: 10rem;
    font-weight: 900;
    background: linear-gradient(to right, #3060da, #224de0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}
.error-message h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}
.error-message p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}
.btn-home {
    background: linear-gradient(to right, #3060da, #224de0);
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(48, 96, 218, 0.3);
    transition: all 0.4s;
}
.btn-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(48, 96, 218, 0.4);
}
.illustration {
    font-size: 8rem;
    color: #3060da;
    margin-bottom: 30px;
    opacity: 0.8;
}
.search-box {
    max-width: 500px;
    margin: 30px auto;
}
/* Custom SweetAlert2 - Nhỏ gọn + tông xanh dương */
.swal2-shown, .swal2-container {
    padding: 0 !important;
    overflow: auto !important;
}
.swal2-popup {
    font-family: 'Roboto', sans-serif !important;
    border-radius: 16px !important;
    padding: 20px !important;
    max-width: 420px !important; /* Nhỏ hơn mặc định */
    box-shadow: 0 10px 30px rgba(48, 96, 218, 0.3) !important;
}

.swal2-title {
    font-size: 1.6rem !important;
    color: #3060da !important;
    font-weight: 700 !important;
}

.swal2-html-container {
    font-size: 1rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

/* Nút Confirm (xanh gradient) */
.swal2-confirm {
    background: linear-gradient(to right, #3060da, #224de0) !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 5px 15px rgba(48, 96, 218, 0.4) !important;
}

.swal2-confirm:hover {
    background: linear-gradient(to right, #224de0, #1a3bb8) !important;
    transform: translateY(-2px);
}

/* Nút Cancel (xám nhẹ) */
.swal2-cancel {
    background: #f8f9fa !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
}

.swal2-cancel:hover {
    background: #e9ecef !important;
}

/* Icon */
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: #3060da !important;
}
.swal2-icon.swal2-error {
    border-color: #e63946 !important;
}
.swal2-icon.swal2-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

/* Animation mượt hơn */
.swal2-show {
    animation: swal2-show-custom 0.3s;
}
@keyframes swal2-show-custom {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* Fix notification-icon nằm giữa theo chiều dọc */
.notification-item {
    display: flex;
    align-items: center; /* Đây là key để icon nằm giữa theo chiều dọc */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s;
}
.notification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.notification-item.unread {
    border-left: 5px solid #3060da;
    background: #f0f4ff;
}
.notification-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0; /* Không co lại khi nội dung dài */
    margin-right: 20px; /* Khoảng cách với nội dung */
}
.icon-success { background: #28a745; }
.icon-warning { background: #ffc107; color: #212529; }
.icon-info { background: #17a2b8; }
.icon-danger { background: #dc3545; }
.notification-time { font-size: 0.85rem; color: #999; }
.btn-edit { background: #ffc107; border: none; }
.btn-edit:hover { background: #e0a800; }
.btn-delete { background: #dc3545; border: none; }
.btn-delete:hover { background: #c82333; }
.table thead { background: #3060da; color: white; }
.property-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 6px; }
.profile-avatar { width: 150px; height: 150px; object-fit: cover; border: 4px solid #3060da; }
.stat-card { background: #fff; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); padding: 20px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: #3060da; }
.stat-label { color: #666; font-size: 1rem; }
.page-title { color: #3060da; }
.property-price { font-size: 2rem; color: #e63946; font-weight: bold; }
.property-info { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.thumbnail-gallery img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 8px; margin: 8px; cursor: pointer;
    border: 3px solid #ddd; transition: all 0.3s;
}
.thumbnail-gallery img:hover {
    border-color: #3060da;
    transform: scale(1.05);
}
#propertyMap { height: 400px; border-radius: 12px; border: 2px solid #3060da; }
.related-card { transition: all 0.4s; border: none; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.related-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }
.related-card img { height: 200px; object-fit: cover; }
.sidebar-right { background: linear-gradient(135deg, #f8f9fa, #e9ecef); padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.dropdown .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}
/* Desktop: Hover dropdown – chỉ khi chưa mở (không có class .show) */
@media (min-width: 992px) {
    /* Hover để xổ menu khi chưa mở */
    .dropdown-hover:hover > .dropdown-menu:not(.show) {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        position: absolute;
    }

    /* Animation mượt */
    .dropdown-menu {
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .dropdown-menu.show {        
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Xoay mũi tên khi mở (cả hover và click) */
    .dropdown-hover:hover > .dropdown-toggle::after,
    .dropdown-hover .dropdown-toggle[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

    .dropdown-toggle::after {
        transition: transform 0.3s ease;
    }
}

/* Xổ menu khi hover */
.dropdown-hover:hover > .dropdown-menu:not(.show) {
    display: block;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: absolute;
}
.bw-90 {
    width: 90px !important;
}
/* Nút Scroll to Top */
#scrollToTopBtn {
    display: none; /* ẩn mặc định */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #3060da; /* màu chính của site */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

#scrollToTopBtn:hover {
    background-color: #2040a0;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#scrollToTopBtn:active {
    transform: translateY(0);
}

/* Responsive: nhỏ hơn trên mobile */
@media (max-width: 576px) {
    #scrollToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}
#scrollToTopBtn {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}
.highlight-comment {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107 !important;
    transition: background-color 3s;
}
.table-title-450 {
  max-width: 450px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
}
.gm-ui-hover-effect {
	display:none !important;
}
.marker-label-custom {
    background-color: rgba(0, 0, 0, 0.7);  /* nền đen mờ */
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;  /* không xuống dòng */
    max-width: 300px;     /* giới hạn chiều rộng nếu địa chỉ dài */
    text-shadow: 1px 1px 2px black;
}