/* ============================================
   KHANG THANH INVEST - Custom Styles
   Màu chủ đạo: Đỏ (#c70000), Trắng, Xám
   ============================================ */

/* --- Variables --- */
:root {
    --primary: #c70000;
    --primary-dark: #a80000;
    --primary-light: #e63946;
    --secondary: #6b7280;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gradient-primary: linear-gradient(135deg, #c70000 0%, #7c3aed 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gray-800);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    padding: 14px 36px;
    border-radius: var(--radius-md);
}

.btn-white:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--gray-100);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 900;
}

.logo-text h1 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 10px;
    color: var(--gray-500);
    margin: 2px 0 0 0;
    letter-spacing: 0.3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    padding: 10px 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-post-room {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-post-room:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #faf5ff 100%);
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 650px;
    margin-bottom: 48px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
}

/* --- Search Box --- */
.search-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 28px 32px;
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid var(--gray-100);
}

.search-form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.search-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.search-group select,
.search-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--gray-800);
    background: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    transition: all 0.2s ease;
}

.search-group select:focus,
.search-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.08);
}

.search-group select:hover,
.search-group input:hover {
    border-color: var(--gray-300);
}

.btn-search {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    height: fit-content;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-search svg {
    width: 18px;
    height: 18px;
}

/* --- Quick Stats --- */
.quick-stats {
    max-width: 1200px;
    margin: -30px auto 0;
    padding: 0 32px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
}

.stat-item {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-100);
    transition: all 0.25s ease;
    cursor: pointer;
    background: white;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--gray-50);
}

.stat-item.featured {
    background: #fef2f2;
    border-right: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.stat-item.featured:hover {
    background: #fee2e2;
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.stat-item.featured .stat-icon {
    background: transparent;
    color: var(--primary);
}

.stat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.stat-item.featured .stat-title {
    color: var(--primary);
}

.stat-count {
    font-size: 14px;
    color: var(--gray-500);
}

/* --- Section Common --- */
.section {
    padding: 70px 0;
}

.section-gray {
    background: var(--gray-50);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin: 0;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 32px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    background: white;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    border-color: var(--primary);
    background: #fef2f2;
    transform: translateY(-1px);
}

/* --- Property Cards --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.property-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--gray-300);
}

.property-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

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

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

.property-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--success);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.property-badge.verified {
    background: var(--success);
}

.property-info {
    padding: 18px;
}

.property-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-address {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.property-price small {
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-500);
}

.property-meta {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-500);
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

/* --- Carousel Navigation --- */
.carousel-wrapper {
    position: relative;
}

.carousel-nav {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.carousel-nav.prev {
    left: -22px;
}

.carousel-nav.next {
    right: -22px;
}

.carousel-nav svg {
    width: 18px;
    height: 18px;
}

/* --- Location Section --- */
.location-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.location-map {
    background: #fef2f2;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 280px;
}

.location-map img {
    max-width: 100%;
    height: auto;
}

.location-content {
    padding: 32px 40px;
}

.location-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.location-desc {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.location-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

.location-list li:last-child {
    border-bottom: none;
}

.location-list .count {
    color: var(--gray-500);
    font-weight: 400;
    font-size: 13px;
}

/* --- Why Choose Us --- */
.why-choose {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    border: 1px solid var(--gray-200);
}

.why-choose-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 36px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* --- News Section --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-100);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.news-category.experience { background: var(--primary); }
.news-category.tips { background: var(--dark); }
.news-category.market { background: var(--info); }
.news-category.trend { background: var(--success); }

.news-content {
    padding: 18px;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 36px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -70%;
    right: 15%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.cta-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
}

.cta-text h3 {
    font-size: 22px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.cta-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-action {
    position: relative;
    z-index: 2;
}

/* --- Footer --- */
.site-footer {
    background: var(--gray-900);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 0;
    margin-top: 0;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text h1 {
    color: white;
}

.footer-brand .logo-text p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    align-items: flex-start;
}

.footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 32px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .location-section {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 36px;
    }
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .new-property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .new-property-info {
        padding: 14px !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .new-property-name {
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 0 8px 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .header-inner {
        padding: 12px 16px;
    }
    .hero-container,
    .container-wide,
    .quick-stats {
        padding-left: 16px;
        padding-right: 16px;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title {
        font-size: 32px;
    }
    .hero-bg-image {
        display: none;
    }
    .section {
        padding: 48px 0;
    }
    .btn-post-room span {
        display: none;
    }
}

/* ============================================
   TRANG CHI TIẾT PHÒNG - Khang Thanh Invest
   ============================================ */

/* --- Page Container --- */
.detail-page {
    background: var(--gray-50);
    min-height: 100vh;
}

.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px 60px;
}

/* --- Breadcrumb --- */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.detail-breadcrumb a {
    color: var(--gray-600);
    font-weight: 500;
}

.detail-breadcrumb a:hover {
    color: var(--primary);
}

.detail-breadcrumb span {
    color: var(--gray-800);
    font-weight: 500;
}

/* --- Detail Layout --- */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* --- Main Content --- */
.detail-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Gallery Section --- */
.detail-gallery-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.gallery-main-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    overflow: hidden;
}

.gallery-main-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--success);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-nav-btn.prev {
    left: 16px;
}

.gallery-nav-btn.next {
    right: 16px;
}

.gallery-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    z-index: 2;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    padding: 12px;
    background: white;
    overflow-x: auto;
}

.gallery-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    min-width: 60px;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-more {
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
}

/* --- Info Card --- */
.detail-info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.detail-info-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 16px;
}

.detail-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 10px;
    line-height: 1.3;
}

.detail-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.detail-address svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    flex-shrink: 0;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.detail-price small {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
}

.badge-negotiable {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.btn-save {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: white;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-save:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-save svg {
    width: 18px;
    height: 18px;
}

.btn-save.active svg {
    fill: var(--primary);
    color: var(--primary);
}

/* --- Quick Specs --- */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 24px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-icon {
    width: 36px;
    height: 36px;
    background: #fef2f2;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.spec-icon svg {
    width: 18px;
    height: 18px;
}

.spec-text .label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.spec-text .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
}

/* --- Room Features Grid --- */
.features-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-100);
}

.features-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 16px;
}

.feature-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 14px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.2s;
    min-height: 64px;
    gap: 4px;
}

.feature-row:hover {
    background: var(--gray-100);
}

.feature-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    min-width: 0;
}

.feature-label i {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    font-size: 12px;
}

.feature-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    margin-left: 34px;
}

.feature-value.allowed {
    color: var(--success);
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.feature-value.restricted {
    color: var(--danger);
}

/* Tiện ích phòng - hiển thị dạng icon grid */
.utilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.utility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid var(--gray-100);
    transition: all 0.2s;
}

.utility-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--gray-300);
}

.utility-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #374151;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.utility-item span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

/* --- Description Section --- */
.description-section {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--gray-100);
}

.description-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.description-text {
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.description-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.description-list li {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.6;
}

.description-list li svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Meta Info --- */
.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--gray-50);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--gray-600);
}

.meta-info .code {
    font-weight: 600;
    color: var(--gray-700);
}

/* --- Rating Section --- */
.rating-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.rating-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 24px;
}

.rating-big {
    text-align: center;
}

.rating-score {
    font-size: 42px;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 6px;
}

.rating-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 4px;
}

.rating-count {
    font-size: 13px;
    color: var(--gray-500);
}

.rating-breakdown {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.rating-item {
    text-align: center;
}

.rating-item-label {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.rating-item-score {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
}

.rating-item-stars {
    color: #f59e0b;
    font-size: 12px;
    margin-top: 4px;
}

.btn-view-all-reviews {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 32px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: white;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all-reviews:hover {
    background: var(--primary);
    color: white;
}

/* --- Similar Rooms --- */
.similar-section {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.similar-section h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.similar-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
}

.similar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.similar-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

.similar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.similar-card-info {
    padding: 12px;
}

.similar-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-card-address {
    font-size: 11px;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.similar-card-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.similar-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.similar-card-area {
    font-size: 11px;
    color: var(--gray-500);
}

.similar-card-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--gray-600);
    font-weight: 600;
}

.similar-card-rating svg {
    width: 12px;
    height: 12px;
    color: #f59e0b;
    fill: #f59e0b;
}

.view-more-rooms {
    text-align: center;
    margin-top: 20px;
}

/* --- Sidebar --- */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.sidebar-card h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
}

/* --- Contact Card --- */
.contact-agent {
    text-align: center;
    margin-bottom: 20px;
}

.contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 10px;
}

.contact-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.contact-role {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 16px;
}

.contact-phone svg {
    width: 16px;
    height: 16px;
    color: var(--gray-500);
}

.btn-zalo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-zalo:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-zalo svg {
    width: 18px;
    height: 18px;
}

.response-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.response-time svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

/* --- Availability Card --- */
.availability-card {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.availability-icon {
    width: 40px;
    height: 40px;
    background: var(--success);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.availability-icon svg {
    width: 20px;
    height: 20px;
}

.availability-text h5 {
    font-size: 14px;
    font-weight: 700;
    color: #065f46;
    margin-bottom: 2px;
}

.availability-text p {
    font-size: 12px;
    color: #047857;
    margin: 0;
}

/* --- Scam Warning --- */
.scam-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 18px;
}

.scam-warning h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 10px;
}

.scam-warning h5 svg {
    width: 18px;
    height: 18px;
    color: #f59e0b;
}

.scam-warning p {
    font-size: 12px;
    color: #78350f;
    line-height: 1.6;
    margin-bottom: 10px;
}

.scam-warning a {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- Ad Banner Placeholder --- */
.ad-banner {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 60px 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 600;
}

.ad-banner .ad-size {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
    font-weight: 400;
}

/* --- Trust Footer --- */
.trust-footer {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    border: 1px solid var(--gray-200);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-item svg {
    width: 22px;
    height: 22px;
    color: var(--gray-600);
    flex-shrink: 0;
}

.trust-item-text h6 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.trust-item-text p {
    font-size: 11px;
    color: var(--gray-500);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
    .detail-sidebar {
        position: static;
    }
    .similar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .detail-container {
        padding: 16px;
    }
    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px 10px;
    }
    .similar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .rating-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
    .trust-footer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rating-overview {
        flex-direction: column;
        gap: 20px;
    }
    .gallery-thumbs {
        grid-template-columns: repeat(6, 1fr);
    }
    .trust-footer {
        grid-template-columns: 1fr;
    }
    .detail-info-header {
        flex-direction: column;
        gap: 12px;
    }
    .detail-price {
        font-size: 22px;
    }
}

/* ============================================ */
/* NEW DESIGN - KHANG THANH INVEST REDESIGN */
/* ============================================ */

/* --- Hero Section --- */
.new-hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.new-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.new-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 40%, rgba(255,255,255,0.1) 100%);
}

.new-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 32px;
    width: 100%;
}

.new-hero-content {
    max-width: 500px;
    margin-bottom: 32px;
}

.new-hero-title {
    font-size: 44px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 12px;
}

.new-hero-title .text-red {
    color: #c70000;
}

.new-hero-subtitle {
    font-size: 16px;
    color: #4b5563;
    margin: 0;
}

/* --- Search Form --- */
.new-search-box {
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 1200px;
    width: 100%;
}

.new-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.new-search-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.new-search-group label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.new-search-group select {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: white;
    cursor: pointer;
    min-width: 0;
}

.new-search-group select:focus {
    outline: none;
    border-color: #c70000;
    box-shadow: 0 0 0 3px rgba(199, 0, 0, 0.1);
}

.new-search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #c70000, #8b0000);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
}

.new-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(199, 0, 0, 0.3);
}

/* --- Stats Section --- */
.new-stats-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding: 0 32px;
}

.new-stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.new-stat-item {
    padding: 28px 20px;
    text-align: center;
    border-right: 1px solid #f3f4f6;
    transition: all 0.2s;
    cursor: pointer;
}

.new-stat-item:last-child {
    border-right: none;
}

.new-stat-item:hover {
    background: #f9fafb;
}

.new-stat-item.featured {
    background: #fef2f2;
}

.new-stat-item.featured:hover {
    background: #fee2e2;
}

.new-stat-icon {
    font-size: 32px;
    color: #c70000;
    margin-bottom: 12px;
}

.new-stat-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.new-stat-title.text-red {
    color: #c70000;
}

.new-stat-count {
    font-size: 13px;
    color: #6b7280;
}

/* --- Section Common --- */
.new-section {
    padding: 48px 0;
}

.new-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.new-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px 0;
}

.new-section-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* --- Property Card --- */
.new-property-carousel {
    position: relative;
}

.new-property-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    overflow-x: visible !important;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.new-property-grid::-webkit-scrollbar {
    display: none;
}

.new-property-card {
    background: white !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.25s !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    cursor: pointer;
}

.new-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.new-property-image {
    position: relative !important;
    aspect-ratio: 4/3 !important;
    overflow: hidden !important;
    background: #f3f4f6 !important;
    width: 100% !important;
    max-height: 220px !important;
    flex-shrink: 0 !important;
}

.new-property-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    max-width: 100% !important;
}

.new-property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #22c55e;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.new-property-info {
    padding: 14px;
}

.new-property-name {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-property-address {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new-property-price {
    font-size: 17px;
    font-weight: 800;
    color: #c70000;
    margin-bottom: 10px;
}

.new-property-price small {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.new-property-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #6b7280;
    flex-wrap: wrap;
    border-top: 1px solid #f3f4f6;
    padding-top: 10px;
}

.new-property-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.carousel-nav {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: #374151;
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: #c70000;
    color: white;
    border-color: #c70000;
}

.carousel-nav.prev {
    left: -10px;
}

.carousel-nav.next {
    right: -10px;
}

/* --- Buttons --- */
.new-btn-outline-red {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid #c70000;
    color: #c70000;
    background: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.new-btn-outline-red:hover {
    background: #c70000;
    color: white;
}

.new-btn-outline-gray {
    padding: 8px 18px;
    border: 1px solid #d1d5db;
    color: #374151;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.new-btn-outline-gray:hover {
    border-color: #c70000;
    color: #c70000;
}

.new-btn-red-small {
    display: inline-block;
    padding: 10px 22px;
    background: #c70000;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.new-btn-red-small:hover {
    background: #a80000;
    color: white;
}

.new-link-red {
    color: #c70000;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.new-link-red:hover {
    text-decoration: underline;
}

/* --- Location Section --- */
.new-location-section {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.new-location-map {
    background: #fef2f2;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.new-location-img {
    max-width: 100%;
    max-height: 240px;
    border-radius: 12px;
    object-fit: contain;
}

.new-location-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #c70000;
    font-size: 60px;
}

.new-location-content {
    padding: 32px 40px;
}

.new-location-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0;
}

.new-location-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

.new-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-location-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    color: #374151;
}

.new-location-list li:last-child {
    border-bottom: none;
}

.new-location-list .count {
    color: #6b7280;
    font-size: 13px;
}

/* --- Why Choose --- */
.new-why-choose {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #e5e7eb;
}

.new-why-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    text-align: center;
    margin: 0 0 24px 0;
}

.new-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.new-why-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.new-why-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c70000;
    font-size: 20px;
    flex-shrink: 0;
}

.new-why-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 2px 0;
}

.new-why-text p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* --- News Section --- */
.new-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.new-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.25s;
}

.new-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.new-news-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}

.new-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-news-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(199, 0, 0, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.new-news-info {
    padding: 14px;
}

.new-news-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-news-date {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Send Banner --- */
.new-send-banner {
    background: linear-gradient(135deg, #c70000, #a80000);
    border-radius: 16px;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.new-send-banner::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.new-send-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.new-send-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.new-send-text h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
}

.new-send-text p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.new-send-btn {
    padding: 12px 28px;
    background: white;
    color: #c70000;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 1;
}

.new-send-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- Location Section V2 (new design) --- */
.new-location-section-v2 {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid #fecaca;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 24px;
    align-items: center;
}

.new-loc-col {
    display: flex;
    flex-direction: column;
}

.new-loc-map-col {
    align-items: center;
    justify-content: center;
}

.new-loc-map-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.new-loc-placeholder {
    font-size: 80px;
    color: #c70000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-loc-info-col {
    align-items: flex-start;
    justify-content: center;
}

.new-loc-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0;
}

.new-loc-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.new-loc-list-col {
    align-items: stretch;
}

.new-loc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-loc-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #fecaca;
    font-size: 14px;
    color: #374151;
}

.new-loc-list li:last-child {
    border-bottom: none;
}

.new-loc-list .count {
    color: #6b7280;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .new-search-form {
        grid-template-columns: 1fr 1fr;
    }
    .new-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .new-property-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .new-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-location-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .new-hero-title {
        font-size: 32px;
    }
    .new-search-form {
        grid-template-columns: 1fr;
    }
    .new-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .new-why-grid {
        grid-template-columns: 1fr;
    }
    .new-news-grid {
        grid-template-columns: 1fr;
    }
    .new-send-banner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .new-send-left {
        flex-direction: column;
    }
}

/* ============================================ */
/* Grid 5 cột cho block loại hình phòng (2 dòng × 5) */
/* ============================================ */
.new-property-grid-5col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
@media (max-width: 1400px) {
    .new-property-grid-5col {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1100px) {
    .new-property-grid-5col {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .new-property-grid-5col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .new-property-grid-5col {
        grid-template-columns: 1fr;
    }
}

/* Grid 4 cột cho trang danh sách đầy đủ */
.new-property-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1200px) {
    .new-property-grid-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .new-property-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 500px) {
    .new-property-grid-4col {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.new-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.new-pagination a, .new-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.new-pagination a:hover {
    border-color: #dc2626;
    color: #dc2626;
}
.new-pagination .current {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
}
.new-pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Page header cho trang danh sách */
.new-list-page-header {
    background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
    padding: 40px 0 30px;
    border-bottom: 1px solid #fee2e2;
}
.new-list-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}
.new-list-page-header p {
    color: #6b7280;
    margin: 0;
}
.new-list-breadcrumb {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 12px;
}
.new-list-breadcrumb a {
    color: #dc2626;
    text-decoration: none;
}
.new-list-breadcrumb a:hover {
    text-decoration: underline;
}
