/* CSS Chuyên trang Thông tin Nhà đất Dôi dư */
.nhadat-page {
    padding: 1.5rem 0 3rem;
    background-color: #f8fafc;
    min-height: 80vh;
}

.nhadat-breadcrumb {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 1rem;
}

.nhadat-breadcrumb a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhadat-breadcrumb a:hover {
    color: #1447e6;
}

.nhadat-breadcrumb span.separator {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

/* Khối Tin mới nhất / Tin tức & Thông báo */
.nhadat-latest-news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nhadat-hero-news {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nhadat-hero-news {
        flex-direction: row;
        align-items: flex-start;
    }
}

.nhadat-hero-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .nhadat-hero-img-wrap {
        width: 320px;
    }
}

@media (min-width: 992px) {
    .nhadat-hero-img-wrap {
        width: 350px;
    }
}

.nhadat-hero-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.nhadat-hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nhadat-hero-img-wrap:hover .nhadat-hero-img {
    transform: scale(1.04);
}

.nhadat-badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
    pointer-events: none;
}

.nhadat-hero-content {
    flex: 1;
    min-width: 0;
}

.nhadat-hero-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    .nhadat-hero-title {
        font-size: 1.25rem;
    }
}

.nhadat-hero-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nhadat-hero-title a:hover {
    color: #1d4ed8;
}

.nhadat-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 0.6rem;
}

.nhadat-news-meta i {
    font-size: 11.5px;
    color: #94a3b8;
}

.nhadat-hero-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Side news list (Right 4 cols) */
.nhadat-side-news-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

@media (min-width: 992px) {
    .nhadat-side-news-list {
        border-left: 1px solid #e2e8f0;
        padding-left: 1.5rem;
    }
}

.nhadat-side-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nhadat-side-news-item:hover {
    background-color: #f8fafc;
}

.nhadat-side-img-wrap {
    width: 90px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.nhadat-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.nhadat-side-news-item:hover .nhadat-side-img {
    transform: scale(1.05);
}

.nhadat-side-content {
    flex: 1;
    min-width: 0;
}

.nhadat-side-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.nhadat-side-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nhadat-side-title a:hover {
    color: #1d4ed8;
}

/* Divider vàng theo thiết kế */
.nhadat-news-divider {
    height: 2px;
    background-color: #facc15;
    margin: 1.5rem 0 1.25rem 0;
    width: 100%;
    opacity: 0.85;
}

/* Announcements (Tin tức & Thông báo) */
.nhadat-announcements-heading {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #0f172a;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .nhadat-announcements-heading {
        font-size: 14px;
    }
}

.nhadat-announcement-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.nhadat-announcement-card:hover {
    border-color: #93c5fd;
    background-color: #f0f7ff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.nhadat-ann-img-wrap {
    width: 84px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.nhadat-ann-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.nhadat-announcement-card:hover .nhadat-ann-img {
    transform: scale(1.05);
}

.nhadat-ann-content {
    flex: 1;
    min-width: 0;
}

.nhadat-ann-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.nhadat-ann-title a {
    color: #1e293b;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.nhadat-announcement-card:hover .nhadat-ann-title a {
    color: #1d4ed8;
}

/* Tabs Navigation */
.nhadat-tabs-wrapper {
    margin-bottom: 1.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.nhadat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 -2px 0;
}

.nhadat-tab-item {
    margin: 0;
}

.nhadat-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    border-radius: 6px 6px 0 0;
}

.nhadat-tab-link:hover {
    color: #0b4c8c;
    background-color: #f1f5f9;
}

.nhadat-tab-link.active {
    color: #0b4c8c;
    border-bottom-color: #0b4c8c;
    background-color: #ffffff;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}

.nhadat-tab-link .badge-counter {
    font-size: 12px;
    padding: 2px 7px;
    border-radius: 12px;
    background-color: #e2e8f0;
    color: #334155;
}

.nhadat-tab-link.active .badge-counter {
    background-color: #0b4c8c;
    color: #ffffff;
}

/* Filter Box */
.nhadat-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nhadat-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.nhadat-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    transition: all 0.15s ease;
}

.nhadat-filter-pill:hover {
    border-color: #0b4c8c;
    color: #0b4c8c;
    background: #f8fafc;
}

.nhadat-filter-pill.active {
    background: #0b4c8c;
    border-color: #0b4c8c;
    color: #ffffff;
    font-weight: 600;
}

/* Property Cards */
/* Property Cards - Optimized for 4:3 photos */
.property-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.property-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f8fafc;
    flex-shrink: 0;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-img {
    transform: scale(1.04);
}

.property-badge-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}

.property-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.property-badge-provincial {
    background-color: rgba(37, 99, 235, 0.95);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.property-badge-communal {
    background-color: rgba(5, 150, 105, 0.95);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.property-badge-star {
    background-color: #f59e0b;
    color: #ffffff;
}

.property-body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.property-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.property-title a:hover {
    color: #1d4ed8;
}

.property-meta-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 1rem;
    font-size: 13.5px;
    color: #334155;
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 24px;
}

.property-meta-item.is-multiline {
    align-items: flex-start;
}

.property-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    flex-shrink: 0;
    margin: 0;
}

.property-meta-item:not(.is-multiline) .property-meta-text {
    padding-top: 0.5px;
}

.property-meta-item.is-multiline .property-meta-text {
    padding-top: 1.5px;
}

.property-meta-item.is-multiline .property-icon-box {
    margin-top: 0;
}

.icon-box-blue {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.icon-box-amber {
    background-color: #fffbeb;
    color: #b45309;
}

.icon-box-rose {
    background-color: #fff1f2;
    color: #e11d48;
}

.icon-box-emerald {
    background-color: #ecfdf5;
    color: #059669;
}

.property-area-val {
    font-weight: 700;
    font-size: 15.5px;
    color: #0f172a;
    line-height: 1.3;
    padding-top: 0.5px;
}

.property-meta-text {
    font-size: 13.5px;
    color: #334155;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.85rem;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
}

.btn-property-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 13px;
    border-radius: 6px;
    color: #2563eb;
    background-color: #ffffff;
    border: 1px solid #2563eb;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-property-detail:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.btn-property-detail i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.btn-property-detail:hover i {
    transform: translateX(2px);
}

.link-property-map {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    margin-left: auto;
    transition: color 0.2s ease;
}

.link-property-map:hover {
    color: #2563eb;
}

.link-property-map i {
    font-size: 10.5px;
}

/* Standard News List for Tab 2 & 3 */
.nhadat-news-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nhadat-news-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.nhadat-news-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
}

.nhadat-news-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.nhadat-news-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nhadat-news-title a:hover {
    color: #0b4c8c;
}

.nhadat-news-date {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nhadat-news-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tab Tiến độ - Lưới card 3 cột */
.nhadat-tiendo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nhadat-tiendo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.nhadat-tiendo-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f5f9;
}

.nhadat-tiendo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nhadat-tiendo-card:hover .nhadat-tiendo-img {
    transform: scale(1.04);
}

.nhadat-tiendo-body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nhadat-tiendo-date {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nhadat-tiendo-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 46px;
}

.nhadat-tiendo-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nhadat-tiendo-title a:hover {
    color: #1d4ed8;
}

.nhadat-tiendo-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 60px;
}

.nhadat-tiendo-footer {
    margin-top: auto;
    padding-top: 0.4rem;
}

.link-tiendo-detail {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.15s ease;
}

.link-tiendo-detail:hover {
    color: #1d4ed8;
}

.link-tiendo-detail i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.link-tiendo-detail:hover i {
    transform: translateX(3px);
}

/* Tab Văn bản chỉ đạo & thông báo */
.nhadat-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.2s ease;
}

.nhadat-doc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.07);
    transform: translateY(-2px);
}

.nhadat-doc-main {
    flex: 1;
    min-width: 0;
}

.nhadat-doc-meta-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.nhadat-doc-badge {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 12px;
    padding: 2.5px 9px;
    border-radius: 6px;
    border: 1px solid #dbeafe;
    letter-spacing: 0.2px;
}

.nhadat-doc-bullet {
    color: #94a3b8;
    font-size: 11px;
}

.nhadat-doc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
}

.nhadat-doc-meta-item i {
    color: #64748b;
    font-size: 12px;
}

.nhadat-doc-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 0.5rem;
}

.nhadat-doc-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.15s ease;
}

.nhadat-doc-title a:hover {
    color: #1d4ed8;
}

.nhadat-doc-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nhadat-doc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-doc-view {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-doc-view:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: #ffffff;
}

.btn-doc-download {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-doc-download:hover {
    background-color: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

@media (max-width: 767.98px) {
    .nhadat-doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    .nhadat-doc-actions {
        width: 100%;
    }
    .nhadat-doc-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Property Detail specs box in BaiViet.cshtml */
.property-specs-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid #0b4c8c;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.property-specs-title {
    font-size: 16px;
    font-weight: 700;
    color: #0b4c8c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px 20px;
    font-size: 14px;
}

.property-spec-item {
    display: flex;
    flex-direction: column;
}

.property-spec-label {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.property-spec-value {
    color: #1e293b;
    font-weight: 600;
}
