/* RESET & BASE */
.da-scope { background: #fff; color: #333; padding-bottom: 80px; }
.da-container { max-width: 1160px; margin: 0 auto; padding: 0 15px; }

/* 1. HEADER & TOP GALLERY */
.da-breadcrumb { font-size: 13px; color: #666; margin: 20px 0 10px; }
.da-breadcrumb a { text-decoration: none; color: inherit; }
.da-page-title { font-size: 32px; font-weight: 700; margin: 0 0 5px 0; color: #111; }
.da-sub-address { color: #666; margin-bottom: 20px; font-size: 14px; }
.da-status-wrap { margin-bottom: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.da-label { background: #f0f4f8; color: #316bff; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }

.da-gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.da-gal-item { position: relative; display: block; height: 100%; overflow: hidden; }
.da-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.da-gal-item:hover img { transform: scale(1.05); }
.da-gal-item.item-0 { grid-column: 1/2; grid-row: 1/3; }
.da-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; }

/* 2. STICKY NAV */
.da-sticky-nav { position: sticky; top: 0; background: #fff; z-index: 99; border-bottom: 1px solid #eee; margin-bottom: 30px; }
.da-sticky-nav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; gap: 25px; }
.da-sticky-nav ul li a { display: block; padding: 15px 0; text-decoration: none; color: #666; font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.da-sticky-nav ul li a.active, .da-sticky-nav ul li a:hover { color: #33BFFF; border-bottom-color: #316bff; }

/* 3. LAYOUT MAIN */
.da-main-layout { display: flex; gap: 40px; }
.da-content-col { flex: 1; min-width: 0; }
.da-sidebar-col { width: 320px; flex-shrink: 0; }
.da-section { margin-bottom: 50px; scroll-margin-top: 60px; border-bottom: 1px solid #f0f0f1; padding-bottom: 40px; }
.da-section:last-child { border: none; }
.da-sec-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #111; }
.da-sec-desc { color: #555; margin-bottom: 20px; }

/* 4. OVERVIEW CARDS */
.da-overview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 30px; }
.da-ov-card { background: #f9f9fb; padding: 15px; border-radius: 8px; display: flex; align-items: center; gap: 12px; }
.da-ov-icon img { width: 30px; height: 30px; opacity: 0.8; }
.da-ov-info { display: flex; flex-direction: column; }
.da-ov-info span { font-size: 12px; color: #888; }
.da-ov-info strong { font-size: 14px; color: #111; font-weight: 600; }

.da-detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; }
.da-dl-row { display: flex; justify-content: space-between; border-bottom: 1px dashed #eee; padding-bottom: 5px; font-size: 14px; }
.da-dl-row span { color: #666; }
.da-dl-row strong { color: #111; font-weight: 500; }

/* 5. TABS STYLE (Dùng chung cho Giá, Mặt bằng, Căn hộ mẫu) */
.da-tabs-nav { display: flex; border-bottom: 1px solid #eee; margin-bottom: 20px; gap: 20px; overflow-x: auto; }
.da-tab-link { background: none; border: none; padding: 10px 0; font-size: 15px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; white-space: nowrap; }
.da-tab-link:hover, .da-tab-link.active { color: #33BFFF; border-bottom-color: #316bff; }
.da-tab-panel { display: none; animation: daFade 0.3s; }
.da-tab-panel.active { display: block; }
@keyframes daFade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Pricing specific */
.da-price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
.da-price-card { background: #f9f9fb; border-radius: 8px; padding: 15px; }
.da-pc-label { font-size: 12px; font-weight: 600; margin-bottom: 5px; color: #111; }
.da-pc-value { font-size: 18px; font-weight: 700; color: #316bff; }
.da-pc-value small { font-size: 13px; font-weight: normal; color: #333; }
.da-pc-trend { font-size: 12px; margin-top: 5px; }
.da-pc-trend.green { color: #00a65a; } .da-pc-trend.red { color: #d63638; }

/* 6. IMAGE GRIDS (Mặt bằng, Căn hộ mẫu) */
.da-img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.da-img-card { position: relative; border-radius: 8px; overflow: hidden; height: 180px; display: block; }
.da-img-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.da-img-card:hover img { transform: scale(1.05); }

/* 7. UTILITIES GRID */
.da-util-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.da-util-card { position: relative; height: 200px; border-radius: 8px; overflow: hidden; display: block; }
.da-util-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.da-util-card:hover img { transform: scale(1.05); }
.da-util-badge { position: absolute; bottom: 10px; left: 10px; background: #fff; padding: 5px 12px; border-radius: 4px; font-size: 10px; font-weight: 600; color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }

/* 8. READ MORE / COLLAPSE */
.da-content-wrapper { position: relative; overflow: hidden; transition: 0.5s; }
.da-content-wrapper.collapsed { max-height: 200px; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.da-read-more { margin-top: 15px; cursor: pointer; color: #316bff; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

/* 9. SIDEBAR */
.da-sidebar-box { border: 1px solid #eee; border-radius: 8px; padding: 20px; position: sticky; top: 80px; }
.da-sidebar-title { font-size: 16px; font-weight: 700; margin: 0 0 15px 0; }
.da-service-item { display: flex; justify-content: space-between; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #eee; font-size: 14px; }
.da-service-item:last-child { border: 0; margin: 0; padding: 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .da-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 100px; }
    .da-gallery-grid .item-0 { grid-column: 1/-1; grid-row: 1/2; }
    .da-main-layout { flex-direction: column; } .da-sidebar-col { width: 100%; }
    .da-overview-cards, .da-price-cards, .da-img-grid, .da-util-grid { grid-template-columns: repeat(2, 1fr); }
    .da-detail-list { grid-template-columns: 1fr; }
}
/* --- CSS CHO PHẦN OVERVIEW DETAIL MỚI --- */

/* Khung chứa danh sách */
.details-container {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-top: 20px;
}

/* Grid 2 cột cho Desktop */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Khoảng cách giữa 2 cột */
}

/* Các dòng dữ liệu (Giả lập dòng kẻ table) */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dotted #e0e0e0; /* Đường kẻ chấm bi huyền thoại */
    font-size: 15px;
}

.detail-row:last-child {
    border-bottom: none;
}

/* Style chữ */
.dt-label { color: #666; }
.dt-value { color: #111; font-weight: 500; text-align: right;}
.dt-value.bold-text { font-weight: 700; }

/* Logic Rút gọn / Xem thêm */
.details-container.collapsed {
    max-height: 110px; /* Chiều cao khi đóng (hiện khoảng 2 dòng rưỡi) */
}

.details-container.expanded {
    max-height: 1000px; /* Đủ lớn để hiện hết */
}

/* Lớp phủ mờ ở đáy khi đóng */
.fade-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    display: none;
    pointer-events: none;
}
.details-container.collapsed .fade-overlay { display: block; }

/* Nút bấm */
.da-btn-toggle {
    background: #fff; border: 1px solid #ddd;
    border-radius: 20px; padding: 6px 20px;
    font-size: 14px; font-weight: 600; color: #333;
    cursor: pointer; transition: all 0.2s;
}
.da-btn-toggle:hover { background: #f5f5f5; border-color: #999; }
.da-btn-toggle .arrow { font-size: 10px; margin-left: 5px; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr; /* Xuống 1 cột trên điện thoại */
        gap: 0;
    }
}
/* --- CSS CHO TRANG ARCHIVE DỰ ÁN --- */

.da-archive-scope {
    background-color: #fff;
    padding: 40px 0;
}

/* 1. Header & Stats */
.da-archive-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.da-archive-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.da-stats-bar {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.da-stats-bar strong {
    color: #bfa15f; /* Màu vàng đồng giống số liệu trong ảnh */
}

.da-stats-bar .da-sep {
    margin: 0 10px;
    color: #ccc;
    font-size: 10px;
}

/* 2. Search & Filter */
.da-search-form {
    margin-bottom: 25px;
    position: relative;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.da-search-input {
    width: 100%;
    padding: 12px 25px;
    border-radius: 30px;
    border: 1px solid #e0e0e0;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.da-search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.15);
}

.da-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.da-tab-item {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: #fff;
}

.da-tab-item:hover {
    background-color: #f5f5f5;
    color: #333;
}

.da-tab-item.active {
    border-color: #2271b1;
    color: #2271b1;
    background-color: #f0f8ff;
    font-weight: 600;
}

/* 3. Grid & Cards */
.da-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cột */
    gap: 30px;
}

.da-card-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.da-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.da-card-thumb {
    position: relative;
    padding-top: 60%; /* Tỉ lệ ảnh 16:9 - hoặc chỉnh 75% cho 4:3 */
    display: block;
    overflow: hidden;
}

.da-card-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.da-card-item:hover .da-card-thumb img {
    transform: scale(1.05);
}

.da-card-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.da-badge {
    background: #fff;
    color: #333;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-transform: uppercase;
}

.da-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.da-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.da-card-title a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.da-card-title a:hover {
    color: #2271b1;
}

.da-card-address {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Nút xem chi tiết (Thay thế nút Website) */
.da-card-footer {
    margin-top: auto;
}

.da-btn-view {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border: 1px solid #2271b1;
    border-radius: 6px;
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.da-btn-view:hover {
    background: #2271b1;
    color: #fff;
}

/* Pagination */
.da-pagination {
    margin-top: 40px;
    text-align: center;
}
.da-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #ddd;
    margin: 0 2px;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}
.da-pagination .page-numbers.current,
.da-pagination .page-numbers:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .da-archive-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .da-archive-grid { grid-template-columns: 1fr; }
    .da-archive-title { font-size: 24px; }
}