/* =====================================================
   IKLANMOBILBEKAS.com — Main Stylesheet
   ===================================================== */

:root {
    --orange: #E85D26;
    --orange-dark: #C44D1A;
    --orange-light: #FFF0E8;
    --navy: #1A2744;
    --navy-light: #2C3E50;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --border: #E5E7EB;
    --white: #FFFFFF;
    --text: #111827;
    --text-light: #6B7280;
    --green: #10B981;
    --yellow: #F59E0B;
    --red: #EF4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text);
    background: #F8F9FA;
    line-height: 1.6;
}

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   LAYOUT
   ===================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

.page-wrap { padding: 32px 0 60px; }
.section { padding: 48px 0; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon { font-size: 24px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-accent { color: var(--orange); }

.main-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
    color: rgba(255,255,255,0.75);
    font-size: 13.5px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s;
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.12);
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,93,38,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover { background: var(--border); }

.btn-lg { padding: 12px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-green { background: var(--green); color: white; border-color: var(--green); }
.btn-green:hover { background: #059669; color: white; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 60%, var(--orange) 150%);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(232,93,38,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero h1 span { color: var(--orange); }

.hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.80);
    margin-bottom: 32px;
}

.search-form {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    max-width: 640px;
}

.search-form select,
.search-form input {
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    background: transparent;
    padding: 10px 14px;
    color: var(--text);
}

.search-form select {
    min-width: 140px;
    border-right: 1px solid var(--border);
    cursor: pointer;
}

.search-form input { flex: 1; }

.search-form button {
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.search-form button:hover { background: var(--orange-dark); }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}

.hero-stat { color: rgba(255,255,255,0.85); }
.hero-stat strong { display: block; font-size: 24px; font-weight: 800; color: white; }
.hero-stat span { font-size: 13px; }

/* =====================================================
   KATEGORI GRID
   ===================================================== */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 32px 0;
}

.kategori-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
}

.kategori-card:hover {
    border-color: var(--orange);
    background: var(--orange-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--orange-dark);
}

.kategori-card .cat-icon { font-size: 28px; margin-bottom: 8px; }
.kategori-card .cat-name { font-size: 13px; font-weight: 600; }
.kategori-card .cat-count { font-size: 11px; color: var(--gray); margin-top: 2px; }

/* =====================================================
   IKLAN CARD
   ===================================================== */
.iklan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.iklan-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    position: relative;
    text-decoration: none;
    color: var(--text);
    display: block;
}

.iklan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
    color: var(--text);
}

.iklan-card.featured { border-color: var(--orange); }
.iklan-card.featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--orange);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--gray-light);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--border);
}

.card-body { padding: 14px; }

.card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.badge-hot { background: var(--red); color: white; }
.badge-featured { background: var(--orange); color: white; }
.badge-unggulan { background: var(--yellow); color: #7c4f00; }
.badge-gratis { background: var(--green); color: white; }
.badge-kategori { background: var(--gray-light); color: var(--gray); }

.card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: 8px;
}

.card-price.nego { font-size: 14px; color: var(--navy); }

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--gray-light);
    margin-top: 8px;
}

.card-location { display: flex; align-items: center; gap: 4px; }

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
}

.section-link { font-size: 14px; font-weight: 600; color: var(--orange); }

/* =====================================================
   PAKET HARGA
   ===================================================== */
.paket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.paket-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}

.paket-card.popular {
    border-color: var(--orange);
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.popular-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.paket-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.paket-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--orange);
    margin: 12px 0 4px;
}

.paket-price small { font-size: 15px; color: var(--gray); font-weight: 500; }

.paket-features { text-align: left; margin: 20px 0; list-style: none; }

.paket-features li {
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--gray-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.paket-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    flex-shrink: 0;
}

.paket-features li.no::before { content: '✗'; color: var(--border); }
.paket-features li.no { color: var(--text-light); }

/* =====================================================
   FORM IKLAN
   ===================================================== */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-light);
    margin-bottom: 6px;
}

.form-label span { color: var(--red); }

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,93,38,0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.foto-upload-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.foto-slot {
    aspect-ratio: 4 / 3;
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-light);
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
}

.foto-slot:hover { border-color: var(--orange); background: var(--orange-light); }
.foto-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.foto-slot span { font-size: 22px; margin-bottom: 4px; }

/* =====================================================
   DETAIL IKLAN
   ===================================================== */
.iklan-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery-main { grid-row: span 2; }

.gallery-main img,
.iklan-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main { aspect-ratio: 4 / 3; max-height: 400px; }

.iklan-detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.iklan-price-box {
    background: var(--orange-light);
    border: 2px solid var(--orange);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.iklan-price-box .price { font-size: 32px; font-weight: 800; color: var(--orange); }

/* =====================================================
   SIDEBAR
   ===================================================== */
.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange-light);
}

.filter-list { list-style: none; }
.filter-list li { border-bottom: 1px solid var(--gray-light); }
.filter-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 14px;
    color: var(--text);
    transition: color 0.2s;
}

.filter-list a:hover, .filter-list a.active { color: var(--orange); font-weight: 600; }
.filter-list a span { font-size: 12px; background: var(--gray-light); padding: 2px 8px; border-radius: 20px; }

/* =====================================================
   AUTH FORMS
   ===================================================== */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy), #1e3a5f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

.auth-card p { color: var(--text-light); font-size: 14px; margin-bottom: 28px; }

/* =====================================================
   DASHBOARD
   ===================================================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 32px 0;
}

.dash-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 0;
    height: fit-content;
}

.dash-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.dash-menu a:hover, .dash-menu a.active {
    background: var(--orange-light);
    color: var(--orange);
    border-left-color: var(--orange);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-card .stat-val { font-size: 28px; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* =====================================================
   ADMIN
   ===================================================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.admin-table th {
    background: var(--navy);
    color: white;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-light);
    font-size: 14px;
}

.admin-table tr:hover td { background: var(--orange-light); }

/* =====================================================
   FLASH MESSAGES
   ===================================================== */
.flash-message {
    padding: 14px 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }
.flash-info { background: #dbeafe; color: #1e40af; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    padding: 52px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; }

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-socials a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
    text-decoration: none;
}

.footer-socials a:hover { background: var(--orange); }

.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.footer-col a, .footer-col p {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
    text-align: center;
    padding: 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    border-top: none;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a, .pagination span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}

.pagination a:hover { border-color: var(--orange); color: var(--orange); }
.pagination .active { background: var(--orange); color: white; border-color: var(--orange); }

/* =====================================================
   HAMBURGER / MOBILE
   ===================================================== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-actions {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 40px 0 48px; }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 20px; }
    .search-form { flex-direction: column; }
    .search-form select { border-right: none; border-bottom: 1px solid var(--border); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .paket-card.popular { transform: scale(1); }
    .dashboard-layout { grid-template-columns: 1fr; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .foto-upload-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .header-actions .btn-outline { display: none; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--text-light); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success { background: #d1fae5; color: #065f46; border-color: var(--green); }
.alert-error { background: #fee2e2; color: #991b1b; border-color: var(--red); }
.alert-info { background: #dbeafe; color: #1e40af; border-color: #3b82f6; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: var(--yellow); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state .icon { font-size: 52px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }

.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.breadcrumb a { color: var(--orange); }
.breadcrumb span { color: var(--border); }

/* =====================================================
   MOBILE NAV FIX
   ===================================================== */
@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .main-nav.open {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 12px 20px 20px;
        z-index: 999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    .main-nav.open a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 15px;
    }

    .header-actions .btn-outline {
        display: none;
    }
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;   /* ubah angka ini untuk tinggi */
    width: auto;    /* otomatis menyesuaikan proporsi */
    object-fit: contain;
}
/* =====================================================
   IKLAN MOBIL BEKAS — Additional Styles
   ===================================================== */

/* Logo text */
.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    color: white;
    text-decoration: none;
}
.logo-text span { color: var(--orange); }
.logo-dot { color: rgba(255,255,255,0.4); font-size: 1rem; }

/* Hero search form (mobil-specific) */
.search-form-mobil { margin-top: 20px; }

/* Hero search filters */
.hero-filters {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.hero-select {
    padding: 12px 14px;
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    width: 100%;
}
.hero-select option {
    color: #333;
    background: white;
}
.hero-search-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--orange);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    box-shadow: 0 4px 16px rgba(232,93,38,.4);
}
.hero-search-btn:hover { background: var(--orange-dark); }

@media (max-width: 600px) {
    .hero-filters {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 360px) {
    .hero-filters {
        grid-template-columns: 1fr;
    }
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.search-row select {
    padding: 14px 16px;
    border: none;
    border-right: 1px solid #e5e7eb;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    font-weight: 500;
}
.search-row button {
    padding: 14px 24px;
    background: var(--orange);
    color: white;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.search-row button:hover { background: #c73d00; }

/* ─── Merek Grid ─────────────────────────────────────────────────────────── */
.merek-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}
.merek-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 18px 10px 14px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.merek-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232,93,38,0.15);
}
.merek-icon {
    width: 52px;
    height: 52px;
    background: var(--gray-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color .2s;
}
.merek-card:hover .merek-icon {
    border-color: var(--orange);
    background: var(--orange-light);
}
.merek-initials {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
}
.merek-name { font-size: 12px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.merek-count {
    font-size: 10px;
    color: white;
    background: var(--orange);
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}

/* ─── Tipe Grid ──────────────────────────────────────────────────────────── */
.tipe-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.tipe-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 20px 10px 16px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.tipe-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232,93,38,0.15);
    background: var(--orange-light);
}
.tipe-icon {
    font-size: 2rem;
    line-height: 1;
}
.tipe-name { font-size: 12px; font-weight: 600; color: var(--navy); }

/* ─── Provinsi Grid ──────────────────────────────────────────────────────── */
.provinsi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.provinsi-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.provinsi-card:hover {
    border-color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,93,38,0.12);
    background: var(--orange-light);
}
.provinsi-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}
.provinsi-count {
    font-size: 11px;
    color: white;
    background: var(--navy);
    padding: 2px 9px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.provinsi-card:hover .provinsi-count {
    background: var(--orange);
}

/* ─── Why/Keunggulan Grid ────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.why-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.why-card:hover {
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(232,93,38,0.12);
    transform: translateY(-2px);
}
.why-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 14px;
}
.why-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .merek-grid { grid-template-columns: repeat(5, 1fr); }
    .tipe-grid { grid-template-columns: repeat(4, 1fr); }
    .provinsi-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .search-row { grid-template-columns: 1fr 1fr; }
    .search-row button { grid-column: 1/-1; }
}
@media (max-width: 768px) {
    .merek-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .tipe-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .provinsi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .search-filter-row { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
    .merek-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .tipe-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .provinsi-grid { grid-template-columns: repeat(1, 1fr); gap: 8px; }
    .why-grid { grid-template-columns: 1fr; }
    .search-row { grid-template-columns: 1fr; }
    .search-filter-row { grid-template-columns: 1fr 1fr !important; }
    .merek-card { padding: 14px 6px 10px; }
    .merek-icon { width: 36px; height: 36px; font-size: 1.1rem; }
}