/* =====================================================
   1. DESIGN SYSTEM & VARIABLES
===================================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #22c55e;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e5e7eb;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,.06);
    --transition: all .25s ease;
}

[data-theme="dark"] {
    --bg-main: #020617;
    --bg-card: #0f172a;
    --bg-soft: #1e293b;
    --text-main: #e5e7eb;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --shadow-sm: 0 2px 10px rgba(0,0,0,.4);
    --shadow-md: 0 12px 28px rgba(0,0,0,.5);
}

/* =====================================================
   2. RESET & BASE STYLES
===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    letter-spacing: -0.2px;
    padding-bottom: 90px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button, select { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    padding: 16px;
}

.section-header { margin-bottom: 24px; }
.section-header h2 { font-size: 24px; font-weight: 700; }
.section-header p { font-size: 14px; color: var(--text-muted); }

/* =====================================================
   3. TOP NAVIGATION (PREMIUM)
===================================================== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

/* Container Height */
.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px; /* Tinggi ditambah agar logo tidak sesak */
    padding: 10px 16px;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100px; /* Sedikit dikurangi dari 70 agar ada padding atas-bawah */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -1px;
}

/* Nav Links */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    transition: color 0.3s ease;
}

/* Garis bawah animasi saat hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--primary);
}

/* Button di Navigasi */
.btn-nav-contact {
    margin-left: 15px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.btn-nav-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--text-main);
    cursor: pointer;
}

/* Responsive Mobile */
@media (max-width: 992px) {
    .nav-wrapper { height: 75px; }
    .logo img { height: 80px; }
    
    .menu-toggle { display: block; }

    .nav-right {
        display: none; /* Disembunyikan, munculkan via JS active class */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-right.active { display: flex; }
    
    .btn-nav-contact { margin: 15px 0 0 0; width: 100%; text-align: center; }
}

/* Bottom Sticky Bar */
/* =====================================================
   BOTTOM STICKY BAR (PREMIUM LOOK)
===================================================== */
.bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 50%; /* Pindahkan ke tengah layar */
    transform: translateX(-50%); /* Penyeimbang agar benar-benar center */
    
    width: 90%; /* Default untuk mobile */
    max-width: 500px; /* Batas lebar maksimal di desktop */
    
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: all 0.3s ease;
}

/* Responsif: Di desktop buat sedikit lebih ramping jika perlu */
@media (min-width: 992px) {
    .bottom-bar {
        max-width: 400px; /* Ukuran ideal untuk desktop agar tidak kegedean */
        bottom: 30px; /* Sedikit lebih naik agar terlihat melayang cantik */
    }
}

[data-theme="dark"] .bottom-bar {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    flex: 1;
    -webkit-tap-highlight-color: transparent;
}

.action-btn .icon-wrapper {
    font-size: 22px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.action-btn span {
    font-size: 11px;
    font-weight: 600;
}

/* Style Khusus WhatsApp (Tombol Utama) */
.action-btn.whatsapp-main {
    color: #fff;
    position: relative;
    top: -15px; /* Membuat tombol WA sedikit naik ke atas */
    -webkit-tap-highlight-color: transparent;
}

.action-btn.whatsapp-main .icon-wrapper {
    background: var(--accent); /* Warna Hijau WA */
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 30px;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
    border: 4px solid var(--bg-main); /* Border pemisah agar tidak menyatu dengan bar */
}

.action-btn.whatsapp-main span {
    color: var(--accent);
    margin-top: 10px; /* Menyesuaikan teks karena icon naik */
}

/* Hover & Active Effects */
.action-btn:active .icon-wrapper {
    transform: scale(0.9);
}

.action-btn:hover {
    color: var(--primary);
}

/* Menghilangkan margin padding body bawah agar tidak tertutup */
body {
    padding-bottom: 110px;
}

/* =====================================================
   5. PROPERTY CARDS GRID
===================================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }

.property-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s ease;
}

.property-card:hover img { transform: scale(1.05); }

.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Penting untuk sejajarkan footer */
}

.card-body h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 5px;
    min-height: 2em; display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

.location { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; display: block; }

.card-footer-price {
    margin-top: auto; /* Mendorong ke bawah */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.type-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: var(--bg-soft);
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase; /* Mengubah 'rumah subsidi' menjadi 'RUMAH SUBSIDI' */
    letter-spacing: 0.5px;
    white-space: nowrap; /* Mencegah teks turun baris jika panjang */
    display: inline-block;
}

.price { font-size: 16px; font-weight: 800; color: var(--text-main); }

/* =====================================================
   6. NEWS SLIDER SECTION
===================================================== */
.news-section{margin-top: 40px;}
.news-slider {
    display: flex; 
    overflow-x: auto; 
    gap: 20px;
    padding: 10px 5px 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.news-slider::-webkit-scrollbar { display: none; }

.news-card {
    /* Layout Mobile: Kartu lebar agar bisa di-scroll horizontal */
    min-width: 280px; 
    max-width: 85%;
    background: var(--bg-card); 
    border-radius: var(--radius-lg);
    overflow: hidden; 
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* Penting untuk mode slider mobile */
    scroll-snap-align: start;
}

/* --- PERBAIKAN DESKTOP (3 KOLOM) --- */
@media (min-width: 992px) {
    .news-slider {
        display: grid; /* Ubah flex menjadi grid di desktop */
        grid-template-columns: repeat(3, 1fr); /* Pasti 3 kolom */
        overflow: visible; /* Matikan scroll */
        gap: 24px;
    }

    .news-card {
        min-width: 0;   /* Reset ukuran mobile */
        max-width: 100%; /* Biarkan grid yang mengatur lebarnya */
        flex-shrink: 1;
    }
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Gambar & Badge */
.news-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

/* Body Berita */
.news-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    /* Limit 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card:hover .news-title {
    color: var(--primary);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA (Call to Action) / Tombol */
.news-footer {
    margin-top: auto;
    padding-top: 15px;
}

.btn-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.btn-read i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Efek saat card di hover, panah bergeser */
.news-card:hover .btn-read {
    gap: 12px;
}

.news-card:hover .btn-read i {
    transform: translateX(4px);
}

/* =====================================================
   7. FOOTER SECTION (REFINED)
===================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 30px 0 30px 0; /* Padding bawah dikurangi karena ada bottom bar */
}

[data-theme="dark"] .footer {
    background: #020617;
}

.footer-grid {
    max-width: 1180px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Kolom tentang lebih lebar */
    gap: 40px;
    padding: 0 16px;
}

.footer-col h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Link Lists */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #94a3b8;
    transition: var(--transition);
    
    /* Perubahan di sini agar teks tampil utuh */
    display: block;             /* Mengubah dari -webkit-box ke block */
    white-space: normal;        /* Memungkinkan teks turun ke baris baru */
    overflow: visible;          /* Menampilkan semua teks */
    line-height: 1.5;           /* Memberi jarak antar baris agar nyaman dibaca */
    
    /* Hapus atau hapus komentar baris di bawah ini jika masih ada: */
    /* -webkit-line-clamp: none; */
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2500;
    display: none;
    backdrop-filter: blur(2px);
}

/* Bottom Sheet Style */
.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0; 
    width: 100%;
    
    /* Aturan Tinggi Dinamis */
    height: 900vh; /* 80% tinggi layar ponsel */
    max-height: 90vh;
    
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 3000;
    transition: bottom 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    
    /* Penting: Agar konten di dalam bisa di-scroll */
    display: flex;
    flex-direction: column;
}

/* Responsif untuk Desktop (Layar > 768px) */
@media (min-width: 768px) {
    .bottom-sheet {
        height: 90vh; /* 50% tinggi layar desktop */
        max-height: 90vh;
        /* Opsional: Jika ingin di tengah desktop, bukan full lebar */
        /* width: 500px; left: 50%; transform: translateX(-50%); */
    }
}

.bottom-sheet.active {
    bottom: 0;
}

/* Header Modal agar tetap terlihat dan rapi */
.sheet-header {
    flex-shrink: 0;
    padding: 20px 15px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
}

.sheet-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px; /* Jarak aman agar konten tidak mentok bawah layar */
}
.drag-handle {
    width: 40px; height: 5px;
    background: #ccc;
    border-radius: 10px;
    margin: 0 auto 10px;
}


.btn-modal-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
}

.modal-input {
    width: 100%; padding: 12px; margin-top: 10px;
    border: 1px solid #ddd; border-radius: 8px;
}

/* Sosial Media */
.social {
    display: flex;
    gap: 15px;
}

.social a {
    font-size: 24px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Footer Bottom (Text Center) */
.footer-bottom {
    max-width: 1180px;
    margin: 40px auto 0 auto;
    padding: 25px 16px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #64748b;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Tablet 2 kolom */
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Mobile 1 kolom */
        gap: 30px;
    }
    
    .footer-bottom {
        margin-top: 30px;
        padding-bottom: 10px;
    }
}

/* =====================================================
   8. RESPONSIVE BREAKPOINTS
==================================================== */

/* Tablet & Mobile Menu */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-right {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%; background: var(--bg-card);
        padding: 20px; box-shadow: var(--shadow-md);
    }
    .nav-right.active { display: flex; }
    .nav-right a { margin: 0; padding: 15px 0; border-bottom: 1px solid var(--border-color); }
    
    .hero-slider { height: 50vh; }
}

/* Mobile Small */
@media (max-width: 576px) {
    .card-grid { grid-template-columns: 1fr; } /* Property Card Full Width */
    .news-card { min-width: 280px; max-width: 85%; }
    .hero-overlay { padding: 20px; }
    .price { font-size: 15px; }
    .type-tag { font-size: 10px; }
}

/* =====================================================
   9. FILTER BAR (MODERN & MINIMALIST)
===================================================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
    background: var(--bg-card);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.filter-bar select, 
.filter-bar input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    appearance: none; /* Hilangkan panah default browser */
    transition: var(--transition);
    outline: none;
}

/* Custom Arrow untuk Select */
.filter-group::after {
    content: '\eb3b'; /* Kode boxicons panah bawah */
    font-family: 'boxicons';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

.filter-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-filter {
    padding: 0 25px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    height: 44px;
}

.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =====================================================
   10. PAGINATION (MOBILE-FRIENDLY)
===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

.page-btn i {
    font-size: 20px;
}

.page-btn:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-soft);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-soft);
}

/* =====================================================
   RESPONSIVE UPDATES
===================================================== */
@media (max-width: 576px) {
    .filter-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group {
        width: 100%;
    }

    .btn-filter {
        width: 100%;
    }

    .pagination {
        gap: 5px;
    }
    
    .page-btn {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-width: 80%; /* Atur tinggi maksimal logo sesuai keinginan */
    height: auto;
    display: block;
    object-fit: contain;
}

/* Penyesuaian untuk Mobile */
@media (max-width: 576px) {
    .footer-logo img {
        max-width: 100%; /* Atur tinggi maksimal logo sesuai keinginan */
        height: auto;
        margin: 0 auto 20px 0; /* Tetap rata kiri, atau ganti margin: 0 auto jika ingin di tengah */
    }
}
.bulet{border-radius: 5px;}

.footer {
    background: #0f172a; /* Warna gelap footer */
    color: #94a3b8;
    padding: 30px 0 30px 0;
    position: relative; /* Wajib ada */
}

/* Trik "Ekor" Gelap: Mengisi ruang kosong di bawah footer */
.footer::after {
    content: "";
    position: absolute;
    top: -1; /* Mulai tepat di akhir footer */
    left: 0;
    right: 0;
    height: 150px; /* Sangat panjang ke bawah */
    background: #0f172a; /* Samakan dengan warna footer */
    z-index: -1;
}

[data-theme="dark"] .footer::after {
    background: #020617; /* Warna gelap untuk dark mode */
}

/* detail properti
/* Carousel Style */
.property-carousel {
    position: relative;
    width: 100%;
    /* Memaksa container menjadi kotak (Lebar = Tinggi) */
    aspect-ratio: 1 / 1; 
    background: #f4f4f4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /* Kuncinya di sini: Gambar memenuhi area tanpa distorsi/gepeng */
    object-fit: cover; 
    /* Fokuskan ke tengah gambar */
    object-position: center; 
}

@media (min-width: 992px) {
    .property-carousel {
        /* Tetap kotak, tapi jangan sampai tingginya melebihi batas nyaman mata */
        max-height: 500px; 
    }
}

.quill-content * {
    background-color: transparent !important;
    /* Kadang Quill juga membawa warna teks hitam pekat, kita bisa normalkan di sini */
    /* color: inherit !important; */ 
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

.image-counter {
    position: absolute;
    bottom: 15px; right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.header-content, .property-desc, .detail-main {padding: 4px;}
.header-content p {font-size: 14px;}
/* Detail Grid */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .detail-grid { grid-template-columns: 2fr 1fr; }
    .detail-sidebar { display: block; }
    .sticky-card {text-align: center; position: sticky; top: 110px; border: 1px solid var(--border-color); padding: 25px; border-radius: var(--radius-md); background: #fff; }
}
/* Ukuran default untuk Desktop */
.property-title {
    margin: 10px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
}

/* Ukuran khusus untuk Mobile (Layar di bawah 768px) */
@media (max-width: 767px) {
    .property-title {
        font-size: 20px; /* Lebih proporsional untuk layar HP */
        margin: 5px 0;
    }
}

.mini-card {
    transition: transform 0.2s ease;
}

.mini-card:hover {
    transform: translateX(5px);
}

.mini-card h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Tabs */
.category-filter-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}
.category-filter-wrapper::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.category-tabs {
    display: flex;
    gap: 10px;
}
.tab-item {
    padding: 8px 18px;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}
.tab-item.active {
    background: var(--primary);
    color: #fff;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.news-card:hover { transform: translateY(-5px); }

.news-img-wrapper {
    position: relative;
    aspect-ratio: 16/9;
}
.news-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.news-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    border-radius: 5px;
    text-transform: uppercase;
}

.news-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--text-muted); }
.news-title { 
    font-size: 18px; 
    margin: 10px 0; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 15px; }
.read-more { font-size: 14px; font-weight: 700; color: var(--primary); }

/* Pastikan konten artikel bersih dari background paksaan Quill */
.quill-content {
    line-height: 1.8;
    color: #334155;
    font-size: 16px;
}

.quill-content * {
    background-color: transparent !important;
}

/* Mempercantik tampilan gambar di dalam artikel berita */
.quill-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

/* Share button atau sekat akhir artikel */
.detail-main {
    background: #fff;
    padding: 4px;
}

@media (max-width: 991px) {
    .detail-main {
        padding: 4px;
    }
}

.prop-item-mini:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: var(--primary) !important;
}

@media (max-width: 480px) {
    .prop-mini-grid {
        grid-template-columns: 1fr !important; /* Di HP layar sangat kecil jadi 1 kolom saja */
    }
}
/* Container utama konten Quill */
.quill-content {
    padding: 10px 0;
}

/* Merapikan List (Ordered & Unordered) */
.quill-content ol, 
.quill-content ul {
    padding-left: 1.5rem; /* Memberi ruang untuk angka/bullet */
    margin-bottom: 1.5rem;
    list-style-position: outside; /* Angka di luar blok teks agar rapi saat baris baru */
}

.quill-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem; /* Jarak antara angka dengan teks */
    line-height: 1.6;
}
/* Container Utama: Hapus overflow-x karena kita ingin pindah baris */
.category-filter-container {
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
    margin-bottom: 10px;
    display: block; 
}

/* Sembunyikan scrollbar (opsional, untuk jaga-jaga) */
.category-filter-container::-webkit-scrollbar {
    display: none;
}

/* Bagian Tabs: Ubah agar bisa pindah baris */
.category-tabs-mini {
    display: flex;
    flex-wrap: wrap; /* KUNCINYA DI SINI: Izinkan pindah baris */
    gap: 10px;       /* Jarak antar tombol (atas, bawah, kiri, kanan) */
    width: 100%;     /* Ikuti lebar layar */
    padding-right: 0; 
}

/* Styling Tombol: Tetap ramping */
.tab-mini {
    flex: 0 0 auto; 
    padding: 6px 14px;
    background: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tab-mini:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tab-mini.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
/* News Row Style */
.news-item-row {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}
.news-flex-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
}
.news-img-169 {
    flex: 0 0 140px; /* Lebar foto di kiri */
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
}
.news-img-169 img { width: 100%; height: 100%; object-fit: cover; }

.news-content-right { flex: 1; }
.news-cat-text { font-size: 10px; color: var(--primary); font-weight: 700; text-transform: uppercase; }
.news-title-sm { font-size: 16px; color: var(--text-main); margin: 4px 0; line-height: 1.3; }
.news-excerpt-sm { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.news-date-sm { font-size: 11px; color: #999; }

/* Sidebar Mini Cards */
.mini-prop-card { display: flex; gap: 10px; text-decoration: none; margin-bottom: 15px; align-items: center; }
.mini-prop-card img { width: 60px; height: 45px; border-radius: 4px; object-fit: cover; }
.mini-prop-info h6 { font-size: 13px; color: var(--text-main); margin: 0; }
.mini-prop-info p { font-size: 12px; color: var(--primary); font-weight: 700; margin: 0; }

.widget-title {
    font-size: 16px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .news-img-169 { flex: 0 0 110px; }
    .news-excerpt-sm { display: none; } /* Sembunyikan kutipan di HP agar ringkas */
    .news-title-sm { font-size: 14px; }
}
/* Styling Card Baru */
.property-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.property-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-main);
}

/* Badge Tipe Melayang di Gambar */
.type-tag-floating {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 2;
}

/* Footer Flexbox */
.card-footer-action {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* Tombol WA di Kiri */
.btn-wa-card {
    background: #22c55e;
    color: #fff !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.btn-wa-card:hover {
    background: #16a34a;
    transform: scale(1.05);
}

/* Harga di Kanan */
.price-container {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: -2px;
}

.price-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
}

/* Sold Overlay */
.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 2px;
}

/* Contact Page Styles */
.contact-page { padding-bottom: 50px; background: var(--bg-main); }

.contact-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    color: #fff;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}
.contact-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 10px; }
.contact-hero p { opacity: 0.9; max-width: 600px; margin: 0 auto; }

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Info Side */
.info-item {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.info-icon {
    width: 50px; height: 50px;
    background: var(--bg-soft);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: var(--primary);
}
.info-text span { display: block; font-size: 12px; color: var(--text-muted); font-weight: 600; }
.info-text a, .info-text p { font-weight: 700; color: var(--text-main); font-size: 15px; }

/* Social Icons */
.social-icons { display: flex; gap: 10px; margin-top: 10px; }
.social-icons a {
    width: 40px; height: 40px;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 20px; transition: 0.3s;
}
.social-icons a:hover { transform: translateY(-5px); background: var(--primary-dark); }

/* Form Side */
.modern-form {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}
.modern-form h3 { margin-bottom: 25px; font-weight: 800; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px; background: var(--bg-main);
    color: var(--text-main); font-family: inherit;
}
.btn-send {
    width: 100%; padding: 15px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 12px;
    font-weight: 700; display: flex; align-items: center; justify-content: center;
    gap: 10px; cursor: pointer; transition: 0.3s;
}
.btn-send:hover { background: var(--primary-dark); }

/* Maps */
.contact-maps { margin-top: 50px; }
.maps-header { margin-bottom: 15px; }
.maps-iframe-container {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-sm);
}
.maps-iframe-container iframe { width: 100% !important; height: 100% !important; border:0; }

@media (max-width: 992px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}
/* =====================================================
   HERO SECTION - SINGLE SOURCE OF TRUTH (1920:800)
===================================================== */
section.hero-slider { 
    position: relative !important; 
    height: auto !important; 
    min-height: 0 !important;
    width: 100%;
    padding-top: 41.66%; /* Rasio matematis 1920:800 */
    overflow: hidden; 
    background: #000;
}

.hero-slide { 
    position: absolute !important; 
    inset: 0 !important; 
    background-size: contain !important; /* Gambar utuh, tidak terpotong */
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active { 
    opacity: 1; 
    visibility: visible;
    z-index: 2; 
}

.hero-overlay {
    position: absolute; 
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    padding: 20px; 
    color: #fff;
    text-align: center;
    z-index: 3;
}

/* Tipografi Responsif */
.hero-overlay h2 { 
    font-size: clamp(1rem, 4.5vw, 42px); 
    font-weight: 800; 
    max-width: 80%; 
    line-height: 1.1;
    margin-bottom: 0.5vw;
}

.hero-overlay p {
    font-size: clamp(0.6rem, 2vw, 18px);
    margin-bottom: 1.5vw;
}

.btn-slider {
    padding: 0.8vw 2vw;
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: clamp(0.55rem, 1.2vw, 14px);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hero-overlay { padding: 10px; }
}
/* Update di style.css */
body section.hero-slider { 
    position: relative !important; 
    width: 100% !important;
    height: auto !important; 
    padding-top: 41.66% !important; /* Rasio 1920:800 */
    overflow: hidden; 
    background: #000;
}

body .hero-slide { 
    position: absolute !important; 
    inset: 0 !important; 
    background-size: contain !important; 
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

body .hero-slide.active { 
    opacity: 1; 
    visibility: visible;
    z-index: 2; 
}

/* Container form di dalam modal */
.kpr-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Memberikan jarak antar elemen otomatis */
}

/* Style untuk label agar lebih rapi */
.kpr-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: -8px; /* Mendekatkan label ke input pasangannya */
}

/* Style untuk input dan select */
.modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    background-color: #fff;
    margin-bottom: 5px; /* Margin bawah tambahan sebagai cadangan */
}

.modal-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

/* Memberi jarak ekstra sebelum kotak hasil */
.hasil-kpr {
    margin-top: 10px;
}

/* State ketika input di-disable (khusus Subsidi) */
.modal-input:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-style: dashed;
}