/* ======================================================
   ZENITLAND SPK - STYLE.CSS FINAL
====================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #eef5ff;
    --gold: #f4b400;
    --gold-soft: #fff4d4;
    --dark: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 15px 35px rgba(0,0,0,.08);
    --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', sans-serif; color: var(--dark); background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 40%, #fbfdff 100%); }
section { scroll-margin-top: 100px; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

body {
    background: #f6f8fb;
    color: #212529;
}

.custom-navbar {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 12px 0;
}

.custom-navbar .navbar-brand {
    font-weight: 700;
    color: #0d6efd;
}

.custom-navbar .nav-link {
    color: #495057;
    font-weight: 500;
    margin: 0 4px;
}

.custom-navbar .nav-link.active,
.custom-navbar .nav-link:hover {
    color: #0d6efd;
}

.btn-rekomendasi {
    background: #0d6efd;
    color: #fff;
    border-radius: 10px;
    padding: 8px 16px;
    text-decoration: none;
    display: inline-block;
}

.btn-rekomendasi:hover {
    background: #0b5ed7;
    color: #fff;
}

.logout {
    background: #dc3545;
    color: #fff !important;
}

.logout:hover {
    background: #bb2d3b;
}

.flash-container {
    margin-bottom: 20px;
}

.wa-float,
.social-btn {
    position: fixed;
    right: 20px;
    z-index: 999;
    text-decoration: none;
    background: #25d366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    font-weight: 600;
}

.wa-float {
    bottom: 20px;
}

.social-dock {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.social-btn {
    position: static;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e5e7eb;
}

.social-btn:hover {
    background: #f3f4f6;
}

footer {
    color: #6c757d;
    font-size: 14px;
}

.custom-navbar { position: sticky; top: 10px; z-index: 9999; width: 90%; max-width: 1100px; margin: 12px auto; border-radius: 50px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.5); box-shadow: 0 8px 25px rgba(37,99,235,.08); padding: 8px 18px; }
.custom-navbar .navbar-brand { color: var(--primary) !important; font-size: 1.2rem; font-weight: 700; letter-spacing: -.3px; }
.custom-navbar .nav-link { color: #555 !important; font-weight: 600; margin: 0 8px; transition: .3s; position: relative; }
.custom-navbar .nav-link:hover { color: var(--primary) !important; }
.custom-navbar .nav-link::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--gold)); transition: .3s; border-radius: 20px; }
.custom-navbar .nav-link:hover::after { width: 80%; left: 10%; }
.navbar-toggler { border: none; }
.navbar-toggler:focus { box-shadow: none; }
.navbar.hide { transform: translateY(-100%); transition: .3s ease; }
.navbar { z-index: 1030; }

.btn { border-radius: 10px; font-weight: 600; transition: .2s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #4f8cff); border: none; color: white; box-shadow: 0 12px 28px rgba(37,99,235,.25); }
.btn-primary:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--primary-dark), var(--primary)); box-shadow: 0 18px 35px rgba(37,99,235,.35); }
.btn-outline-primary { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-rekomendasi, .btn-login { background: linear-gradient(90deg, var(--primary), var(--gold)); color: white; border: none; font-weight: 700; border-radius: 25px; transition: .3s; display: inline-flex; align-items: center; justify-content: center; }
.btn-rekomendasi:hover, .btn-login:hover { color: white; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(244,180,0,.35); }
.btn-login { height: 50px; }

.hero-section { padding-top: 40px; }
.hero-section h1 { font-size: 3.3rem; font-weight: 800; line-height: 1.2; }
.hero-section .text-primary { color: var(--primary) !important; }
.hero-section p { font-size: 1.05rem; color: var(--muted); }
.hero-stats { display: flex; gap: 35px; margin-top: 30px; }
.hero-stats h5 { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.hero-stats small { color: #888; }

.card { border: none; border-radius: 22px; background: white; overflow: hidden; transition: .35s; box-shadow: 0 12px 35px rgba(0,0,0,.06); }
.card:hover { transform: translateY(-8px); box-shadow: 0 25px 45px rgba(37,99,235,.10); }
.shadow-soft { box-shadow: 0 12px 28px rgba(0,0,0,.06); }
.shadow-primary { box-shadow: 0 18px 40px rgba(37,99,235,.15); }

.feature-card { border: none; border-radius: 22px; background: #fff; padding: 35px 25px; text-align: center; transition: .35s; position: relative; overflow: hidden; box-shadow: 0 12px 35px rgba(37,99,235,.08); }
.feature-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: linear-gradient(90deg, var(--primary), var(--gold)); }
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 45px rgba(37,99,235,.15); }
.feature-icon { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, #eff6ff, #fff7dc); color: var(--primary); display: flex; justify-content: center; align-items: center; margin: auto auto 18px; font-size: 30px; }

#smart-search, #smart { background: #ffffff; border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
#smart-search h4, #smart h4 { font-weight: 700; margin-bottom: 25px; color: #1b3c73; }
#smart-search .form-control, #smart-search .form-select, #smart .form-control, #smart .form-select, .custom-select { height: 52px; border-radius: 12px; border: 1px solid #dcdcdc; font-size: 15px; transition: .25s; }
#smart-search .form-control:focus, #smart-search .form-select:focus, #smart .form-control:focus, #smart .form-select:focus, .custom-select:focus { border-color: #0d6efd; box-shadow: 0 0 0 .15rem rgba(13,110,253,.15); }
#smart-search .btn, #smart .btn { height: 52px; border-radius: 12px; font-weight: 600; font-size: 16px; margin-top: 10px; }
@media (min-width: 992px) { #smart-search { max-width: 480px; margin-left: auto; } #smart { max-width: 550px; } }
@media (max-width: 991px) { #smart-search, #smart { margin-top: 35px; max-width: 100%; } }

.preview-rumah { padding: 70px 0; }
.preview-rumah .container { max-width: 1280px; }
.preview-rumah .judul { font-weight: 700; color: #1b3c73; }
.preview-rumah .card, .rumah-card, .property-card { border: none; border-radius: 18px; overflow: hidden; transition: .3s; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.preview-rumah .card:hover, .rumah-card:hover, .property-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(0,0,0,.15); }
.preview-rumah img, .rumah-img, .property-card img { width: 100%; height: 230px; object-fit: cover; }
.preview-rumah .card-body, .rumah-card .card-body, .property-card .card-body { padding: 20px; }
.preview-rumah h5, .rumah-card h5, .property-title { font-weight: 700; margin-bottom: 12px; color: #1b3c73; }
.preview-rumah p { margin-bottom: 8px; color: #666; font-size: 15px; }
.preview-rumah a { text-decoration: none; font-weight: 600; }
.rumah-card small { font-size: .78rem; }

.property-tag, .property-badge, .best-badge { position: absolute; top: 18px; left: 18px; background: linear-gradient(135deg, var(--gold), #ffd54f); color: #333; padding: 8px 16px; border-radius: 50px; font-size: 12px; font-weight: 700; z-index: 10; }
.property-price { font-size: 22px; color: var(--primary); font-weight: bold; margin: 10px 0; }
.property-info { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; margin-top: 15px; }
.property-info i { color: var(--gold); margin-right: 5px; }
.btn-property { width: 100%; margin-top: 20px; border-radius: 14px; padding: 12px; }

.result-card { border: none; border-radius: 22px; overflow: hidden; position: relative; transition: .35s; }
.result-card:hover { transform: translateY(-8px); }
.result-card img { height: 230px; width: 100%; object-fit: cover; }
.result-card .card-body { padding: 22px; }
.best-card { position: relative; overflow: hidden; border: 2px solid var(--gold); }
.best-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, var(--gold), var(--primary)); }
.score-box { margin-top: 18px; background: #f5f9ff; border-radius: 16px; padding: 15px; }
.score-label { color: var(--muted); font-size: 13px; }
.score-value { color: var(--primary); font-size: 2rem; font-weight: 700; }
.rank { width: 38px; height: 38px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 700; color: white; }
.rank.gold { background: #FFD700; color: #333; }
.rank.silver { background: #c0c0c0; }
.rank.bronze { background: #cd7f32; }

.table { overflow: hidden; border-radius: 18px; background: white; box-shadow: 0 15px 35px rgba(0,0,0,.05); }
.table thead { background: linear-gradient(135deg, var(--primary), #4f8cff); color: white; }
.table th, .table td { border: none; padding: 16px; vertical-align: middle; }
.table tbody tr { transition: .25s; }
.table tbody tr:hover { background: #f5f9ff; }
.table .btn-sm { padding: 3px 8px; font-size: 12px; line-height: 1.2; }

.about-box { background: #fff; border-radius: 24px; padding: 45px; box-shadow: 0 12px 35px rgba(0,0,0,.06); }
.about-box ul { list-style: none; padding-left: 0; margin-top: 25px; }
.about-box li { margin-bottom: 12px; color: var(--dark); }
.about-box li i { color: var(--gold); margin-right: 10px; }
.accordion-item { border: none; border-radius: 18px !important; overflow: hidden; margin-bottom: 15px; box-shadow: 0 10px 25px rgba(0,0,0,.06); }
.accordion-button { font-weight: 600; padding: 20px; }
.accordion-button:not(.collapsed) { background: #eef5ff; color: var(--primary); }
.accordion-button:focus { box-shadow: none; }

#contact { padding: 80px 0; }
.contact-wrapper { background: #fff; border-radius: 24px; padding: 30px; box-shadow: 0 15px 40px rgba(0,0,0,.08); }
.map-container { border-radius: 22px; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,.08); transition: .3s; }
.map-container iframe { width: 100%; height: 350px; border: 0; }
.map-container:hover { transform: scale(1.01); }
.contact-icon { width: 55px; height: 55px; display: flex; justify-content: center; align-items: center; border-radius: 16px; background: #fff; color: var(--primary); font-size: 22px; box-shadow: 0 10px 25px rgba(0,0,0,.08); transition: .3s; }
.contact-icon:hover { transform: translateY(-6px); background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; }

.wa-float { position: fixed; bottom: 25px; right: 25px; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; justify-content: center; align-items: center; font-size: 28px; box-shadow: 0 18px 35px rgba(37,211,102,.35); z-index: 9999; transition: .3s; }
.wa-float:hover { transform: scale(1.12); }
.social-dock { position: fixed; left: 20px; bottom: 50px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; }
.social-btn { width: 48px; height: 48px; display: flex; justify-content: center; align-items: center; border-radius: 14px; background: #fff; color: var(--primary); font-size: 20px; box-shadow: 0 10px 25px rgba(0,0,0,.08); transition: .3s; }
.social-btn:hover { transform: translateY(-6px); background: linear-gradient(135deg, var(--primary), var(--gold)); color: #fff; }

footer { background: #0f172a; color: #cbd5e1; padding: 60px 0 20px; margin-top: 80px; text-align: center; }
footer .footer-title { color: #fff; font-weight: 700; margin-bottom: 15px; }
footer a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 8px; transition: .3s; }
footer a:hover { color: var(--gold); }

.admin-layout {
    display: flex;
    margin-top: 0;
    align-items: flex-start;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #ffff !important;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,.08);
    z-index: 1050;
    overflow-y: auto;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 3px 0;
    border-radius: 8px;
    color: #4e5966;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: .25s;
}

.admin-sidebar a:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.admin-sidebar a.active {
    background: #2563eb;
    color: #fff;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.logout {
    background: #dc3545;
    color: #fff !important;
}

.logout:hover {
    background: #bb2d3b;
    color: #fff !important;
}

.admin-content {
    margin-left: 240px;
    padding: 35px;
    width: 100%;
}




.admin-content {
    margin-left: 240px;
    padding: 35px;
    width: 100%;
}

.admin-rumah {
    padding-top: 90px;
}

.admin-rumah img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.btn-edit {
    background: linear-gradient(135deg, #f4b400, #ffd54f);
    border: none;
    color: #333;
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 14px;
}

.btn-edit:hover {
    transform: translateY(-3px);
}

.btn-danger {
    border-radius: 10px;
    padding: 8px 18px;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.12);
}

.logout {
    background: #dc3545;
    color: #fff !important;
}

.logout:hover {
    background: #bb2d3b;
    color: #fff !important;
}

.modal { z-index: 2000; }
.modal-backdrop { z-index: 1990; }
.modal-dialog { margin-top: 80px; }
.modal-content { border: none; border-radius: 24px; overflow: hidden; max-height: 90vh; }
.modal-header { background: linear-gradient(135deg, var(--primary), #4f8cff); color: white; }
.modal-title { font-weight: 700; }
.modal-body { max-height: 65vh; overflow-y: auto; }
.modal-body .form-control { border-radius: 12px; height: 42px; }
.modal-footer { border: none; }

.alert { border-radius: 12px; font-weight: 500; border: none; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.flash-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 420px; max-width: 700px; margin: 0 auto 20px auto; }
.flash-container .alert { margin-bottom: 10px; text-align: center; }

@media (max-width: 991px) {
    .hero-section { padding: 60px 0; text-align: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; }
    .social-dock { display: none; }
    .contact-icon { width: 45px; height: 45px; font-size: 18px; }
    .map-container iframe { height: 280px; }
    .admin-sidebar { position: relative; width: 100%; height: auto; }
    .admin-content { margin-left: 0; padding: 20px; }
    .admin-layout { display: block; }
}

@media (max-width: 576px) {
    .hero-section h1 { font-size: 2.2rem; }
    .preview-rumah, .tentang-section, .faq-section { padding: 55px 0; }
    .about-box, .tentang-card .card-body { padding: 24px; }
    .flash-container { width: calc(100% - 24px); }
}
