* { margin:0; padding:0; box-sizing:border-box; font-family:'Segoe UI',Tahoma,Arial,sans-serif; }
:root {
  --primary:#1e6fd9; --primary-dark:#1554a8; --accent:#ff6b35;
  --dark:#1a2332; --gray:#6b7280; --light:#f3f4f6;
  --border:#e5e7eb; --success:#10b981; --danger:#ef4444;
}
body { background:#f8f9fb; color:#222; line-height:1.5; }
a { color:inherit; }

/* ============================================
   HEADER
   ============================================ */
.header { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.08); position:sticky; top:0; z-index:100; }
.header-inner { max-width:1280px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; gap:24px; }
.logo { font-size:22px; font-weight:800; color:var(--primary); display:flex; align-items:center; gap:10px; text-decoration:none; }
.logo-icon { width:44px; height:44px; background:var(--primary); border-radius:8px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:22px; }
.nav { display:flex; gap:20px; flex:1; align-items:center; }
.nav > a { color:var(--dark); text-decoration:none; font-weight:500; font-size:14px; }
.nav > a:hover, .nav > a.active { color:var(--primary); }
.header-actions { display:flex; gap:10px; align-items:center; }

/* ============================================
   TOMBOL
   ============================================ */
.btn { padding:9px 18px; border-radius:8px; font-size:14px; font-weight:600; cursor:pointer; border:none; transition:all 0.2s; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-outline { background:#fff; color:var(--primary); border:1.5px solid var(--primary); }
.btn-outline:hover { background:var(--primary); color:#fff; }
.btn-danger { background:var(--danger); color:#fff; }
.btn-success { background:var(--success); color:#fff; }
.btn-sm { padding:6px 12px; font-size:13px; }
.btn:disabled { opacity:0.6; cursor:not-allowed; }

/* ============================================
   DROPDOWN KATEGORI
   ============================================ */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-toggle {
    background: transparent; border: none; color: var(--dark);
    font-family: inherit; font-size: 14px; font-weight: 500;
    padding: 8px 12px; cursor: pointer; border-radius: 8px;
    transition: all 0.2s; display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active { background: rgba(30, 111, 217, 0.08); color: var(--primary); }

.nav-dropdown-menu {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12); padding: 8px; z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.25s ease; display: block;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(4px);
}
.nav-dropdown-menu a {
    display: block; padding: 10px 14px; color: #374151; text-decoration: none;
    border-radius: 6px; font-size: 14px; font-weight: 500;
    transition: all 0.15s; text-align: left;
}
.nav-dropdown-menu a:hover { background: #f3f4f6; color: var(--primary); }
.nav-dropdown-menu a.active { background: rgba(30, 111, 217, 0.1); color: var(--primary); font-weight: 700; }

/* ============================================
   HERO
   ============================================ */
.hero { 
    background:linear-gradient(135deg,#1e6fd9 0%,#1554a8 100%); 
    color:#fff; 
    padding:25px 20px 30px; 
}
.hero-inner { max-width:1280px; margin:0 auto; }
.hero h1 { font-size:26px; margin-bottom:6px; font-weight:800; }
.hero p { font-size:13px; opacity:0.9; margin-bottom:14px; max-width:600px; }
.search-box { 
    background:#fff; border-radius:10px; padding:5px; display:flex; gap:5px; 
    max-width:900px; box-shadow:0 6px 20px rgba(0,0,0,0.1); flex-wrap:wrap; 
}
.search-box select, .search-box input { 
    flex:1; padding:10px 12px; border:none; font-size:13px; 
    border-radius:7px; outline:none; min-width:110px; background:#f8f9fb; 
}

/* ============================================
   KONTAINER & SEKSI
   ============================================ */
.container { max-width:1280px; margin:0 auto; padding:0 20px; }
.section { padding:40px 0; }
.section-title { font-size:24px; font-weight:700; margin-bottom:6px; }
.section-sub { color:var(--gray); margin-bottom:24px; font-size:14px; }

/* ============================================
   KATEGORI TABS
   ============================================ */
.category-tabs { display:flex; gap:10px; margin-bottom:24px; overflow-x:auto; padding-bottom:6px; }
.cat-tab { padding:10px 20px; border-radius:30px; background:#fff; border:1.5px solid var(--border); cursor:pointer; font-size:14px; font-weight:600; color:var(--dark); white-space:nowrap; text-decoration:none; display:flex; align-items:center; gap:8px; }
.cat-tab:hover { border-color:var(--primary); color:var(--primary); }
.cat-tab.active { background:var(--primary); color:#fff; border-color:var(--primary); }
.cat-tab .cat-count { background:rgba(0,0,0,0.1); padding:2px 8px; border-radius:10px; font-size:12px; font-weight:700; }
.cat-tab.active .cat-count { background:rgba(255,255,255,0.25); }

/* ============================================
   GRID & KARTU PROPERTI
   ============================================ */
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:20px; }
.card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:all 0.3s; cursor:pointer; position:relative; text-decoration:none; color:inherit; display:block; }
.card:hover { transform:translateY(-4px); box-shadow:0 12px 24px rgba(0,0,0,0.12); }
.card-img { width:100%; height:200px; object-fit:cover; background:#e5e7eb; display:block; }
.card-badges { position:absolute; top:12px; left:12px; display:flex; gap:6px; flex-wrap:wrap; }
.badge { background:rgba(0,0,0,0.75); color:#fff; padding:4px 10px; border-radius:6px; font-size:11px; font-weight:700; text-transform:uppercase; }
.badge-sale { background:var(--success); }
.badge-rent { background:var(--accent); }
.badge-featured { background:#f59e0b; }
.card-body { padding:16px; }
.card-price { color:var(--primary); font-size:20px; font-weight:800; margin-bottom:6px; }
.card-title { font-size:15px; font-weight:700; color:var(--dark); margin-bottom:8px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:42px; }
.card-location { font-size:13px; color:var(--gray); margin-bottom:12px; }
.card-specs { display:flex; gap:14px; padding-top:12px; border-top:1px solid var(--border); font-size:13px; flex-wrap:wrap; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty { text-align:center; padding:60px 20px; color:var(--gray); }
.empty-icon { font-size:64px; margin-bottom:12px; opacity:0.4; }
.empty h3 { font-size:18px; margin-bottom:6px; color:var(--dark); }

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; background:linear-gradient(135deg,#1e6fd9 0%,#1554a8 100%); }
.login-box { background:#fff; border-radius:16px; padding:40px; max-width:400px; width:100%; box-shadow:0 20px 60px rgba(0,0,0,0.3); }
.login-box h2 { text-align:center; margin-bottom:8px; color:var(--dark); }
.login-box p { text-align:center; color:var(--gray); margin-bottom:26px; font-size:14px; }

/* ============================================
   FORM
   ============================================ */
.form-group { margin-bottom:18px; }
.form-group label { display:block; margin-bottom:6px; font-size:13px; font-weight:600; color:var(--dark); }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:11px 14px; border:1.5px solid var(--border); border-radius:8px; font-size:14px; outline:none; font-family:inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:var(--primary); }
.form-group textarea { resize:vertical; min-height:100px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-wrap { min-height:100vh; background:#f8f9fb; }
.admin-header { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.08); padding:14px 24px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.admin-header h1 { font-size:18px; color:var(--dark); display:flex; align-items:center; gap:12px; }
.admin-body { max-width:1280px; margin:0 auto; padding:24px 20px; }

.admin-tabs { display:flex; gap:8px; margin-bottom:20px; flex-wrap:wrap; }
.admin-tabs .tab-btn { padding:10px 20px; border-radius:8px; background:#fff; border:1.5px solid var(--border); cursor:pointer; font-size:14px; font-weight:600; color:var(--dark); transition:all 0.2s; }
.admin-tabs .tab-btn:hover { border-color:var(--primary); color:var(--primary); }
.admin-tabs .tab-btn.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:24px; }
.stat-card { background:#fff; padding:20px; border-radius:12px; box-shadow:0 2px 6px rgba(0,0,0,0.05); display:flex; align-items:center; gap:14px; }
.stat-icon { width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.stat-icon.blue { background:#dbeafe; } .stat-icon.green { background:#d1fae5; }
.stat-icon.orange { background:#fed7aa; } .stat-icon.purple { background:#e9d5ff; }
.stat-info h4 { font-size:12px; color:var(--gray); font-weight:600; text-transform:uppercase; }
.stat-info p { font-size:24px; font-weight:800; color:var(--dark); margin-top:2px; }

.panel { background:#fff; border-radius:12px; padding:24px; box-shadow:0 2px 6px rgba(0,0,0,0.05); margin-bottom:20px; }
.panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.panel-header h3 { font-size:17px; color:var(--dark); }

.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th { text-align:left; padding:12px; background:var(--light); color:var(--dark); font-size:12px; text-transform:uppercase; }
.admin-table td { padding:14px 12px; border-bottom:1px solid var(--border); vertical-align:middle; }
.admin-table img.thumb { width:60px; height:45px; object-fit:cover; border-radius:6px; }
.admin-actions { display:flex; gap:6px; }
.action-btn { padding:6px 10px; border-radius:6px; border:none; font-size:12px; font-weight:600; cursor:pointer; }
.action-btn.edit { background:#dbeafe; color:#1e6fd9; }
.action-btn.delete { background:#fee2e2; color:#ef4444; }

/* ============================================
   UPLOAD & PREVIEW
   ============================================ */
.upload-zone { border:2px dashed var(--border); border-radius:12px; padding:30px; text-align:center; cursor:pointer; background:#fafafa; display:block; }
.upload-zone:hover { border-color:var(--primary); background:#f0f7ff; }
.upload-zone .icon { font-size:42px; color:var(--primary); margin-bottom:8px; }
.upload-zone p { color:var(--gray); font-size:14px; }
.preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); gap:10px; margin-top:14px; }
.preview-item { position:relative; aspect-ratio:4/3; border-radius:10px; overflow:hidden; background:#eee; }
.preview-item img { width:100%; height:100%; object-fit:cover; }
.preview-remove { position:absolute; top:5px; right:5px; background:rgba(239,68,68,0.95); color:#fff; border:none; width:24px; height:24px; border-radius:50%; cursor:pointer; font-size:14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background:var(--dark); color:#cbd5e1; padding:40px 20px 20px; margin-top:40px; }
.footer-inner { max-width:1280px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:30px; }
.footer h4 { color:#fff; margin-bottom:12px; font-size:15px; }
.footer p, .footer a { color:#94a3b8; font-size:14px; text-decoration:none; display:block; margin-bottom:8px; }
.footer-bottom { max-width:1280px; margin:30px auto 0; padding-top:20px; border-top:1px solid #334155; text-align:center; font-size:13px; color:#64748b; }

/* ============================================
   ALERT
   ============================================ */
.alert { padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.alert-error { background:#fee2e2; color:#991b1b; }
.alert-success { background:#d1fae5; color:#065f46; }
.alert-info { background:#dbeafe; color:#1e40af; }

/* ============================================
   DETAIL PAGE
   ============================================ */
.detail-page { max-width:1000px; margin:20px auto; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 4px 20px rgba(0,0,0,0.08); }
.detail-main-img { width:100%; height:480px; object-fit:contain; background:#111; }
.detail-thumbs { display:flex; gap:8px; padding:12px; background:#222; overflow-x:auto; }
.detail-thumbs img { width:100px; height:75px; object-fit:cover; border-radius:6px; cursor:pointer; opacity:0.6; flex-shrink:0; }
.detail-thumbs img.active { opacity:1; }
.detail-body { padding:28px; }
.detail-price { font-size:30px; font-weight:800; color:var(--primary); margin-bottom:6px; }
.detail-title { font-size:22px; font-weight:700; margin-bottom:10px; color:var(--dark); }
.detail-loc { color:var(--gray); font-size:14px; margin-bottom:20px; }
.detail-specs { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:12px; background:var(--light); padding:18px; border-radius:12px; margin-bottom:22px; }
.spec-item { text-align:center; }
.spec-item .spec-label { font-size:12px; color:var(--gray); margin-bottom:4px; }
.spec-item .spec-value { font-size:16px; font-weight:700; color:var(--dark); }
.detail-section-title { font-size:16px; font-weight:700; margin-bottom:10px; margin-top:22px; }
.detail-desc { color:#4b5563; font-size:14px; line-height:1.7; white-space:pre-wrap; }
.detail-actions { display:flex; gap:10px; margin-top:24px; flex-wrap:wrap; }

/* ============================================
   SLIDER PROPERTI UNGGULAN
   ============================================ */
.featured-slider-wrap {
    position: relative;
    max-width: 1280px;
    margin: 20px auto 0;
    padding: 0 20px;
    overflow: hidden;
}

.featured-slider {
    position: relative;
    width: 100%;
    height: 45vh;
    max-height: 380px;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #1a2332;
}

.featured-slider .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.featured-slider .slide.active { opacity: 1; visibility: visible; }

.featured-slider .slide-link {
    display: block; width: 100%; height: 100%;
    position: relative; text-decoration: none; color: #fff;
}

.featured-slider .slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.featured-slider .slide-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 120px; background: #e5e7eb; color: #9ca3af;
}

.featured-slider .slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 40px 40px 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: #fff;
}

.slide-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff; font-size: 12px; font-weight: 700;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.slide-price { font-size: 28px; font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.slide-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); line-height: 1.3; }
.slide-location { font-size: 14px; opacity: 0.9; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; background: rgba(255, 255, 255, 0.9);
    border: none; border-radius: 50%; font-size: 20px; color: #1e6fd9;
    cursor: pointer; z-index: 10; transition: all 0.3s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); opacity: 0;
}

.featured-slider-wrap:hover .slider-btn { opacity: 1; }

.slider-btn:hover { background: #1e6fd9; color: #fff; transform: translateY(-50%) scale(1.1); }

.slider-prev { left: 35px; }
.slider-next { right: 35px; }

.slider-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 8px; z-index: 10;
}

.slider-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.5); cursor: pointer;
    transition: all 0.3s; display: block;
}

.slider-dots .dot.active { background: #fff; width: 28px; border-radius: 5px; }
.slider-dots .dot:hover { background: rgba(255, 255, 255, 0.8); }

/* ============================================
   LAYOUT UTAMA — KONTEN + SIDEBAR
   ============================================ */

/* PC (default) - 2 kolom */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.main-content {
    min-width: 0;
    padding-top: 30px;
    padding-bottom: 40px;
}

.main-content .section-title,
.main-content > h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.main-content .section-sub {
    margin-bottom: 24px;
    color: var(--gray);
    font-size: 14px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
    align-self: start;
    padding-top: 30px;
    padding-bottom: 40px;
}

.sidebar-ad {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
    border: 1px solid var(--border);
}

.ad-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
}

.ad-slot {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin: 0 auto;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.sidebar-ad img,
.sidebar-ad iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.sidebar-ad video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: #000;
    max-height: 300px;
    object-fit: contain;
}

.sidebar-ad h3,
.sidebar-ad h4 {
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 10px;
    text-align: left;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
    display: inline-block;
}

.sidebar-ad p {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 12px;
}

.sidebar-ad .btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* ============================================
   RESPONSIVE — TABLET (≤ 992px)
   ============================================ */
@media (max-width: 992px) {
    /* Slider lebih kecil */
    .featured-slider { 
        height: 40vh; 
        max-height: 320px; 
        min-height: 250px; 
    }
    
    /* Layout jadi 1 kolom, sidebar turun ke bawah */
    .content-layout {
        grid-template-columns: 1fr;
        padding: 0 25px;
        gap: 20px;
    }
    
    .main-content {
        padding-top: 25px;
        padding-bottom: 20px;
    }
    
    /* Sidebar horizontal, side-by-side */
    .sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0;
        padding-bottom: 30px;
    }
    
    .sidebar-ad {
        flex: 1 1 260px;
        max-width: 360px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
    /* Nav disembunyikan */
    .nav { display: none; }
    
    /* Header lebih compact */
    .header-inner { padding: 12px 15px; gap: 12px; }
    .logo { font-size: 18px; }
    .logo-icon { width: 38px; height: 38px; font-size: 18px; }
    
    /* Hero */
    .hero { padding: 20px 15px 25px; }
    .hero h1 { font-size: 22px; }
    .hero p { font-size: 12px; }
    .search-box { flex-direction: column; }
    
    /* Form */
    .form-row { grid-template-columns: 1fr; }
    
    /* Detail page */
    .detail-main-img { height: 260px; }
    .detail-body { padding: 18px; }
    
    /* Dropdown jadi full width */
    .nav-dropdown-menu {
        position: fixed; left: 10px; right: 10px; top: auto;
        width: calc(100% - 20px); min-width: auto;
        max-height: 70vh; overflow-y: auto;
    }
    
    /* Slider mobile */
    .featured-slider { 
        height: 35vh; 
        min-height: 200px; 
        max-height: 280px; 
        border-radius: 12px; 
    }
    .featured-slider-wrap { padding: 0 15px; }
    .featured-slider .slide-overlay { padding: 30px 20px 20px; }
    .slide-price { font-size: 22px; }
    .slide-title { font-size: 15px; }
    .slide-location { font-size: 12px; }
    .slide-badge { font-size: 10px; padding: 4px 10px; }
    
    .slider-btn { width: 38px; height: 38px; font-size: 16px; opacity: 1; }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    .slider-dots { bottom: 12px; }
    .slider-dots .dot { width: 8px; height: 8px; }
    .slider-dots .dot.active { width: 22px; }
    
    /* Layout mobile */
    .content-layout {
        padding: 0 15px;
        gap: 15px;
    }
    
    .main-content {
        padding-top: 20px;
        padding-bottom: 15px;
    }
    
    .main-content .section-title,
    .main-content > h2 {
        font-size: 20px;
    }
    
    .main-content .section-sub {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    /* Grid kartu lebih kecil */
    .grid { 
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
        gap: 15px; 
    }
    
    .card-img { height: 170px; }
    
    /* Category tabs scroll horizontal */
    .category-tabs {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .cat-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Sidebar jadi vertikal */
    .sidebar {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }
    
    .sidebar-ad {
        width: 100%;
        max-width: 100%;
    }
    
    .ad-slot {
        max-width: 100%;
    }
    
    /* Footer */
    .footer { padding: 30px 15px 15px; }
    .footer-inner { gap: 20px; }
}

/* ============================================
   RESPONSIVE — MOBILE KECIL (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
    .content-layout {
        padding: 0 12px;
        gap: 12px;
    }
    
    .main-content {
        padding-top: 15px;
        padding-bottom: 12px;
    }
    
    /* 1 kolom untuk kartu */
    .grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-img { height: 180px; }
    
    .hero h1 { font-size: 20px; }
    
    .featured-slider-wrap { padding: 0 12px; }
}