/* ============================================================
   NEXA Theme Override — gaya portal properti (ala rumah123)
   Dimuat setelah inline style tiap view; selector "body ..." dipakai
   supaya menang spesifisitas tanpa menyentuh markup.
   ============================================================ */
:root {
    --nx-red: #e31e24;
    --nx-red-dark: #c4161c;
    --nx-ink: #17181c;
    --nx-text: #3f4147;
    --nx-muted: #6b7280;
    --nx-border: #ececee;
    --nx-bg: #f6f7f9;
    --nx-card: #ffffff;
    /* netralkan aksen lama (navy/gold) */
    --gold-primary: #e31e24;
    --gold-hover: #c4161c;
    --gold-soft: #fdecec;
    --navy-dark: #17181c;
    --navy-medium: #24262b;
    --site-bg: #f6f7f9;
    --site-text: #17181c;
    --site-muted: #6b7280;
    --site-border: #ececee;
}

body {
    background: var(--nx-bg);
    color: var(--nx-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body h1, body h2, body h3, body h4, body .section-title { letter-spacing: -0.02em; }

/* ---------- Navbar ---------- */
body .site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--nx-border);
    box-shadow: none;
}
body .site-navbar .brand { color: var(--nx-ink); font-weight: 900; letter-spacing: -0.5px; }
body .site-navbar .brand-logo { height: 40px; }
body .site-navbar a:not(.btn):not(.brand) { color: var(--nx-text); font-weight: 600; }
body .site-navbar a:not(.btn):not(.brand):hover { color: var(--nx-red); }
body .site-navbar .btn-dark,
body .site-navbar .btn-gold,
body .site-navbar .btn-warning {
    background: var(--nx-red) !important;
    border-color: var(--nx-red) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700;
}
body .site-navbar .btn-dark:hover,
body .site-navbar .btn-warning:hover { background: var(--nx-red-dark) !important; border-color: var(--nx-red-dark) !important; }
body .site-navbar .btn-outline-dark { border-color: #d8d8dc !important; color: var(--nx-ink) !important; border-radius: 8px !important; }

/* ---------- Hero ---------- */
body .hero { min-height: 380px; }
body .hero::before {
    background: linear-gradient(100deg, rgba(10,10,12,.88) 0%, rgba(10,10,12,.62) 45%, rgba(10,10,12,.18) 100%);
}
body .hero h1 { font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; }
body .hero h1 span.text-gold { color: #fff; border-bottom: 4px solid var(--nx-red); padding-bottom: 2px; }
body .hero p { color: rgba(255,255,255,.85); font-size: 1rem; max-width: 560px; }

/* ---------- Search card ---------- */
body .search-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--nx-border);
    box-shadow: 0 18px 50px rgba(15,18,25,.14);
    padding: 22px 24px 24px;
}
body .search-card-title {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--nx-muted);
    margin-bottom: 12px;
}
body .search-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--nx-border); margin-bottom: 16px; justify-content: flex-start; padding-bottom: 0; }
body .search-tabs .search-tab {
    position: relative;
    padding: 6px 2px 12px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--nx-muted);
    cursor: pointer;
    border-bottom: 0;
}
body .search-tabs .search-tab.active,
body .search-tabs .search-tab:hover { color: var(--nx-red) !important; border-bottom: 0; }
body .search-tabs .search-tab.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--nx-red);
}
body .search-input-pill .btn-search {
    background: var(--nx-red) !important;
    background-image: none !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    box-shadow: none !important;
}
body .search-input-pill .btn-search:hover {
    background: var(--nx-red-dark) !important;
    background-image: none !important;
    color: #fff !important;
    transform: none !important;
}
body .search-input-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    padding: 4px 4px 4px 10px;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
body .search-input-pill:focus-within { border-color: var(--nx-red); box-shadow: 0 0 0 3px rgba(227,30,36,.12); }
body .search-input-pill .form-control { border: 0 !important; box-shadow: none !important; font-size: .95rem; }
body .btn-search {
    background: var(--nx-red);
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    padding: 10px 20px;
}
body .btn-search:hover { background: var(--nx-red-dark); color: #fff; }

/* ---------- Quick menu ---------- */
body .quick-menu-item .icon-circle {
    width: 58px; height: 58px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--nx-border);
    box-shadow: 0 1px 3px rgba(15,18,25,.05);
    color: var(--nx-red);
    font-size: 1.35rem;
    transition: transform .15s, box-shadow .15s;
}
body .quick-menu-item:hover .icon-circle { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,18,25,.10); }
body .quick-menu-item .icon-label { font-size: .8rem; font-weight: 700; color: var(--nx-text); margin-top: 8px; }

/* ---------- Category chips ---------- */
body .category-chip {
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--nx-text);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
body .category-chip:hover { border-color: var(--nx-red); color: var(--nx-red); }
body .category-chip i { color: var(--nx-red) !important; }

/* ---------- Section headings ---------- */
body .section-title { font-size: 1.35rem; font-weight: 800; color: var(--nx-ink); }
body .section-subtitle { font-size: .85rem; color: var(--nx-muted); margin-top: 2px; }
body .btn-outline-dark.rounded-pill { border-color: #dcdce0 !important; color: var(--nx-ink) !important; }
body .btn-outline-dark.rounded-pill:hover { border-color: var(--nx-red) !important; color: var(--nx-red) !important; }

/* ---------- Listing card ---------- */
body .listing-card {
    background: #fff;
    border: 1px solid var(--nx-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
    box-shadow: 0 1px 2px rgba(15,18,25,.04);
}
body .listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15,18,25,.12);
    border-color: #e0e0e4;
}
body .listing-media { position: relative; overflow: hidden; background: #f1f2f4; }
body .listing-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
body .listing-card:hover .listing-photo { transform: scale(1.04); }
body .listing-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
body .listing-badges .badge { font-size: .68rem; font-weight: 700; letter-spacing: .01em; padding: .38em .6em; border-radius: 6px; backdrop-filter: blur(4px); }
body .badge-gold { background: var(--nx-red) !important; color: #fff !important; }

body .listing-content { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1 1 auto; }
body .listing-title {
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nx-ink);
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body .listing-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nx-red);
    letter-spacing: -0.02em;
    margin: 6px 0 8px;
}
body .listing-meta { font-size: .78rem; color: var(--nx-muted); }
body .listing-meta i { color: #9aa0a6; }
body .listing-meta.mt-2 { margin-top: auto !important; padding-top: 8px; border-top: 1px dashed #efeff2; gap: 12px !important; }

/* ---------- Varian markup halaman listing & terdekat ---------- */
body .listing-content .text-primary {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--nx-red) !important;
    letter-spacing: -0.02em;
    margin: 6px 0 8px !important;
}
body .listing-badges .badge.text-bg-primary,
body .listing-photo-badges .badge.text-bg-primary {
    background: var(--nx-red) !important;
    color: #fff !important;
}
body .listing-photo-wrap { position: relative; overflow: hidden; background: #f1f2f4; }
body .listing-photo-wrap .listing-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
body .listing-card:hover .listing-photo-wrap .listing-photo { transform: scale(1.04); }
body .listing-photo-badges {
    position: absolute; top: 10px; left: 10px; right: 10px;
    display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
body .listing-photo-badges .badge { font-size: .68rem; font-weight: 700; padding: .38em .6em; border-radius: 6px; }
body .distance-badge {
    display: inline-block; margin-top: 6px;
    font-size: .72rem; font-weight: 700;
    color: var(--nx-red); background: var(--gold-soft);
    padding: 2px 9px; border-radius: 999px;
}


/* ---------- Kartu properti landscape + template A/B/C ---------- */
body .listing-price-overlay {
    position: absolute; left: 10px; bottom: 10px;
    background: rgba(12, 14, 18, .72);
    color: #fff; font-weight: 800; font-size: 1.02rem;
    padding: 5px 11px; border-radius: 9px;
    letter-spacing: -.01em; backdrop-filter: blur(3px);
}
body .badge-tipe { background: var(--nx-red) !important; color: #fff !important; }
body .badge-status.is-available { background: #12855a !important; color: #fff !important; }
body .badge-status.is-sold { background: #5f6570 !important; color: #fff !important; }
body .badge-premium { background: #14161a !important; color: #ffd24a !important; border: 1px solid rgba(255,210,74,.5); }
body .badge-featured { background: #ffd24a !important; color: #14161a !important; }
body .listing-specs {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: .76rem; color: var(--nx-muted);
    border-top: 1px dashed #efeff2; padding-top: 8px; margin-top: auto;
}
body .listing-card .listing-content { gap: 6px; }
body .card-tpl-B .listing-title { font-size: 1rem; }

/* Template C — kartu horizontal */
body .card-tpl-C { flex-direction: row; }
body .card-tpl-C .listing-media { width: 250px; flex: 0 0 250px; }
body .card-tpl-C .listing-photo { height: 100%; aspect-ratio: auto; object-fit: cover; }
body .card-tpl-C .listing-price-overlay { display: none; }
body .card-tpl-C .listing-price-inline { display: block; }
body .listing-price-inline {
    display: none; font-weight: 800; color: var(--nx-red);
    font-size: 1.05rem; margin: 2px 0 4px;
}
@media (max-width: 767.98px) {
    body .card-tpl-C { flex-direction: column; }
    body .card-tpl-C .listing-media { width: 100%; flex: 1 1 auto; }
    body .card-tpl-C .listing-photo { aspect-ratio: 16 / 10; }
}


/* ---------- Share buttons (halaman detail) ---------- */
body .share-block {
    margin-top: 14px; border: 1px solid var(--nx-border); border-radius: 14px;
    background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
    padding: 12px 14px 14px;
}
body .share-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
body .share-title { font-size: .82rem; font-weight: 800; color: var(--nx-text); display: inline-flex; align-items: center; gap: 7px; }
body .share-title i { color: var(--nx-red); }
body .share-sub { font-size: .74rem; color: var(--nx-muted); }

body .share-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
@media (max-width: 767.98px) { body .share-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body .share-item {
    display: flex; align-items: center; gap: 9px; width: 100%;
    border: 1px solid var(--nx-border); border-radius: 12px; background: #fff;
    padding: 8px 10px; text-decoration: none; cursor: pointer; text-align: left;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
body .share-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,24,40,.10); }
body .share-item:active { transform: translateY(0); }

body .share-ic {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px;
    display: grid; place-items: center; color: #fff; font-size: .95rem;
    transition: transform .16s ease;
}
body .share-item:hover .share-ic { transform: scale(1.06) rotate(-3deg); }

body .share-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
body .share-txt b { font-size: .78rem; font-weight: 700; color: var(--nx-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .share-txt small { font-size: .67rem; color: var(--nx-muted); white-space: nowrap; }

body .share-item.wa .share-ic { background: linear-gradient(145deg, #4fdc7c, #25d366); }
body .share-item.wa:hover { border-color: #25d366; background: #f2fdf6; }
body .share-item.tg .share-ic { background: linear-gradient(145deg, #54b9f0, #229ed9); }
body .share-item.tg:hover { border-color: #229ed9; background: #f1f9fe; }
body .share-item.fb .share-ic { background: linear-gradient(145deg, #4a90f7, #1877f2); }
body .share-item.fb:hover { border-color: #1877f2; background: #f1f6ff; }
body .share-item.ig .share-ic { background: linear-gradient(145deg, #f9ce34 0%, #ee2a7b 48%, #6228d7 100%); }
body .share-item.ig:hover { border-color: #ee2a7b; background: #fdf2f8; }
body .share-item.copy .share-ic { background: linear-gradient(145deg, #3c4353, #101828); }
body .share-item.copy:hover { border-color: #344054; background: #f6f7f9; }

body .share-item.copied { border-color: #12b76a; background: #f0fdf6; }
body .share-item.copied .share-ic { background: linear-gradient(145deg, #32d583, #12b76a); }
body .share-item.copied .share-txt b { color: #0b7a4b; }

body .share-toast {
    position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px);
    background: #101828; color: #fff; font-size: .8rem; font-weight: 600;
    padding: 10px 16px; border-radius: 999px; box-shadow: 0 14px 30px rgba(16,24,40,.28);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1080;
    display: inline-flex; align-items: center; gap: 8px;
}
body .share-toast.show { opacity: 1; transform: translate(-50%, 0); }
body .share-toast i { color: #32d583; }


body .footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
body .footer-social-link {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16);
    display: inline-flex; align-items: center; justify-content: center;
    color: #cfd2d8; font-size: 1.05rem; transition: all .15s;
}
body .footer-social-link:hover { background: var(--nx-red); border-color: var(--nx-red); color: #fff; }



/* ---------- Favorit properti ---------- */
body .fav-btn {
    position: absolute; bottom: 10px; right: 10px; z-index: 4;
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.94); color: #475467; border: none;
    box-shadow: 0 2px 10px rgba(16,24,40,.20);
    cursor: pointer; text-decoration: none; font-size: 1rem;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
body .fav-btn:hover { transform: scale(1.08); color: var(--nx-red); background: #fff; text-decoration: none; }
body .fav-btn.is-active { background: var(--nx-red); color: #fff; }
body .fav-btn.is-active:hover { background: #c4161c; color: #fff; }
body .fav-btn.is-pop { animation: favPop .32s ease; }
@keyframes favPop {
    0% { transform: scale(1); } 45% { transform: scale(1.25); } 100% { transform: scale(1); }
}

body .fav-pill {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--nx-border); background: #fff; color: var(--nx-text);
    border-radius: 999px; padding: 9px 16px; font-size: .84rem; font-weight: 700;
    cursor: pointer; transition: all .16s ease;
}
body .fav-pill:hover { border-color: var(--nx-red); color: var(--nx-red); }
body .fav-pill.is-active { background: var(--nx-red); border-color: var(--nx-red); color: #fff; }
body .fav-pill.is-active:hover { background: #c4161c; border-color: #c4161c; color: #fff; }
body .fav-pill i { font-size: 1rem; }

body .fav-toast {
    position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 14px);
    background: #101828; color: #fff; font-size: .82rem; font-weight: 600;
    padding: 10px 16px; border-radius: 999px; box-shadow: 0 14px 30px rgba(16,24,40,.3);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 1090;
    display: inline-flex; align-items: center; gap: 8px; max-width: 90vw;
}
body .fav-toast.show { opacity: 1; transform: translate(-50%, 0); }
body .fav-toast i { color: #ff6b70; }
body .fav-toast.is-ok i { color: #32d583; }

body .fav-count { font-weight: 700; }

/* ---------- Template D: slider properti horizontal ---------- */
body .prop-slider-wrap { position: relative; }
body .prop-slider {
    display: flex; gap: 16px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 4px 2px 12px;
    scrollbar-width: none; -ms-overflow-style: none;
}
body .prop-slider::-webkit-scrollbar { display: none; }
body .prop-slide { flex: 0 0 300px; max-width: 300px; scroll-snap-align: start; }
body .prop-slide .listing-card { height: 100%; }
body .prop-slider.is-dragging { cursor: grabbing; scroll-behavior: auto; }
body .prop-slider-btn {
    position: absolute; top: 46%; transform: translateY(-50%); z-index: 6;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--nx-border); background: #fff; color: var(--nx-ink);
    box-shadow: 0 8px 22px rgba(15,18,25,.16);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
}
body .prop-slider-btn:hover { background: var(--nx-red); border-color: var(--nx-red); color: #fff; }
body .prop-slider-btn.prev { left: -10px; }
body .prop-slider-btn.next { right: -10px; }
body .prop-slider-btn.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 1199.98px) { body .prop-slide { flex: 0 0 280px; max-width: 280px; } }
@media (max-width: 767.98px) {
    body .prop-slide { flex: 0 0 82%; max-width: 82%; }
    body .prop-slider-btn { display: none; }
}


/* ---------- Section promo / artikel (content) ---------- */
body .promo-band {
    display: grid; grid-template-columns: 1fr; overflow: hidden;
    border-radius: 18px; background: linear-gradient(120deg, #101216 0%, #24272e 100%);
    color: #fff;
}
body .promo-band.has-image { grid-template-columns: 1.05fr 1fr; }
body .promo-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 230px; }
body .promo-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
body .promo-title { font-size: clamp(1.35rem, 2.4vw, 1.95rem); font-weight: 800; margin: 0; }
body .promo-text { color: rgba(255,255,255,.78); margin: 8px 0 0; max-width: 56ch; }
@media (max-width: 767.98px) {
    body .promo-band.has-image { grid-template-columns: 1fr; }
    body .promo-body { padding: 24px 22px; }
}

body .content-card {
    display: block; text-decoration: none; color: inherit; height: 100%;
    background: #fff; border: 1px solid var(--nx-border); border-radius: 14px; overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
body .content-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(15,18,25,.12); }
body .content-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
body .content-card-body { padding: 14px 16px 18px; }
body .content-card-tag { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--nx-red); }
body .content-card-title { font-weight: 700; margin-top: 4px; line-height: 1.35; }
body .content-card-text { font-size: .82rem; color: var(--nx-muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Polish aksesibilitas & gambar ---------- */
body a:focus-visible, body button:focus-visible, body .prop-slider:focus-visible {
    outline: 3px solid rgba(227,30,36,.35); outline-offset: 2px; border-radius: 8px;
}
body .listing-photo { background: #f1f2f4; }


/* ---------- Detail: overlay galeri ---------- */
body .detail-photo-wrap { position: relative; }
body .detail-main-photo { cursor: zoom-in; transition: filter .2s; }
body .detail-main-photo:hover { filter: brightness(.96); }
body .photo-counter {
    position: absolute; right: 12px; bottom: 12px; z-index: 3;
    background: rgba(12,14,18,.72); color: #fff; font-size: .78rem; font-weight: 700;
    padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(3px);
}
body .photo-all-btn {
    position: absolute; left: 12px; bottom: 12px; z-index: 3;
    background: rgba(255,255,255,.94); color: var(--nx-ink); border: 0;
    font-size: .8rem; font-weight: 700; padding: 7px 12px; border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
body .photo-all-btn:hover { background: #fff; color: var(--nx-red); }
body .thumb-item { border-radius: 8px; }
body .thumb-item.is-active { outline: 2px solid var(--nx-red); outline-offset: 1px; }


/* ---------- Halaman KPR ---------- */
body .kpr-hero { background: linear-gradient(120deg, #0e1014 0%, #24262c 100%); color: #fff; padding: 46px 0 70px; }
body .kpr-eyebrow {
    display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #ffd2d3; background: rgba(227,30,36,.22); border: 1px solid rgba(227,30,36,.45);
    padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
body .kpr-hero h1 { font-size: clamp(1.6rem, 3.1vw, 2.4rem); font-weight: 800; line-height: 1.16; }
body .kpr-hero p { color: rgba(255,255,255,.75); max-width: 58ch; margin: 10px 0 0; }
body .kpr-body { margin-top: -46px; position: relative; z-index: 2; }
body .kpr-form-card { border-radius: 18px; box-shadow: 0 18px 44px rgba(15,18,25,.10); }
body .kpr-card-title { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
body .kpr-note { font-size: .78rem; color: var(--nx-muted); background: #f7f8fa; border: 1px dashed var(--nx-border); border-radius: 10px; padding: 10px 12px; }
body .kpr-result {
    position: sticky; top: 90px;
    background: linear-gradient(150deg, var(--nx-red) 0%, #a8101a 100%);
    color: #fff; border-radius: 18px; padding: 24px;
    box-shadow: 0 22px 50px rgba(227,30,36,.28);
}
body .kpr-result-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.75); }
body .kpr-result-value { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; margin: 2px 0 2px; }
body .kpr-result-sub { font-size: .8rem; color: rgba(255,255,255,.72); }
body .kpr-result-rows { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 12px; }
body .kpr-result-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; padding: 5px 0; }
body .kpr-result-rows span { color: rgba(255,255,255,.75); }
body .kpr-result-rows b { font-weight: 700; }
body .kpr-result-rows .kpr-total { border-top: 1px dashed rgba(255,255,255,.3); margin-top: 6px; padding-top: 10px; font-size: .92rem; }
body .kpr-result .btn-search { background: #fff !important; color: var(--nx-red) !important; }
body .kpr-result .btn-search:hover { background: #ffe9ea !important; }
body .kpr-result .btn-outline-dark { border-color: rgba(255,255,255,.6) !important; color: #fff !important; }
body .kpr-result .btn-outline-dark:hover { background: rgba(255,255,255,.14) !important; }

body .bank-card { background: #fff; border: 1px solid var(--nx-border); border-radius: 14px; padding: 16px 18px; height: 100%; transition: box-shadow .18s, transform .18s; }
body .bank-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,18,25,.10); }
body .bank-name { font-weight: 800; }
body .bank-note { font-size: .76rem; color: var(--nx-muted); }
body .bank-rate { font-size: 1.3rem; font-weight: 900; color: var(--nx-red); letter-spacing: -.02em; }
body .bank-meta { font-size: .76rem; color: var(--nx-muted); margin-top: 6px; }

body .kpr-faq { background: #fff; border: 1px solid var(--nx-border); border-radius: 14px; padding: 16px 18px; height: 100%; }
body .kpr-faq-title { font-weight: 800; font-size: .92rem; margin-bottom: 6px; }
body .kpr-faq p { font-size: .84rem; color: var(--nx-muted); margin: 0; }

@media (max-width: 991.98px) {
    body .kpr-result { position: static; }
    body .kpr-body { margin-top: -28px; }
}

/* ---------- CTA band ---------- */
body .cta-band {
    background: linear-gradient(120deg, var(--nx-red) 0%, #b3121a 100%);
    border-radius: 16px;
    padding: 26px 28px;
    color: #fff;
}
body .cta-band .btn-warning { background: #fff !important; border-color: #fff !important; color: var(--nx-red) !important; }

/* ---------- Generic buttons ---------- */
body .btn-primary { background: var(--nx-red); border-color: var(--nx-red); }
body .btn-primary:hover { background: var(--nx-red-dark); border-color: var(--nx-red-dark); }
body .text-warning { color: var(--nx-red) !important; }
body .form-control:focus, body .form-select:focus {
    border-color: var(--nx-red) !important;
    box-shadow: 0 0 0 3px rgba(227,30,36,.12) !important;
}
body .pagination .page-item.active .page-link { background: var(--nx-red); border-color: var(--nx-red); }

/* ---------- Footer ---------- */
body .site-footer { background: #101114; color: #cfd2d8; }
body .site-footer a { color: #cfd2d8; }
body .site-footer a:hover { color: #fff; }


/* ============================================================
   Homepage CMS: slider, dropdown menu, banner iklan, list card
   ============================================================ */
body .hero-slider { position: relative; overflow: hidden; background-size: cover; background-position: center right; transition: background-image .4s ease; }
body .hero-slide { display: none; }
body .hero-slide.is-active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body .hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 8px; justify-content: center; z-index: 3; }
body .hero-dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: all .2s; }
body .hero-dot.is-active { background: var(--nx-red); width: 26px; border-radius: 999px; }

/* Dropdown submenu */
body .menu-dropdown { position: relative; display: inline-flex; }
body .menu-caret { font-size: .7rem; opacity: .7; margin-left: 4px; }
body .menu-sub {
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: #fff; border: 1px solid var(--nx-border); border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15,18,25,.14); padding: 8px;
    display: none; z-index: 1000;
}
body .menu-dropdown:hover .menu-sub { display: block; }
body .menu-sub-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px; text-decoration: none;
    color: var(--nx-text); font-size: .88rem; font-weight: 600;
}
body .menu-sub-link:hover { background: #f4f5f7; color: var(--nx-red); }
body .menu-sub-img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }

/* Banner iklan */
body .ad-banner { border-radius: 14px; overflow: hidden; border: 1px solid var(--nx-border); }
body .ad-banner img { width: 100%; display: block; }

/* Kartu template list */
body .listing-card-list { flex-direction: row; }
body .listing-media-list { width: 260px; flex: 0 0 260px; }
body .listing-card-list .listing-photo { aspect-ratio: 4 / 3; height: 100%; }
body .listing-card-list .listing-content { padding: 14px 18px; }
@media (max-width: 767.98px) {
    body .listing-card-list { flex-direction: column; }
    body .listing-media-list { width: 100%; flex: 1 1 auto; }
}

/* Footer kolom */
body .footer-columns { padding-bottom: 6px; }
body .footer-heading { font-size: .9rem; font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: .01em; }
body .footer-links li { margin-bottom: 7px; }
body .footer-links a { font-size: .85rem; text-decoration: none; color: #cfd2d8; }
body .footer-links a:hover { color: #fff; }
body .footer-tagline { font-size: .85rem; color: #a9aeb6; }
body .footer-divider { border-color: rgba(255,255,255,.12); margin: 18px 0 12px; }
body .footer-copy { color: #9aa0a6; }

/* Perbaiki padding horizontal quick-menu (shorthand padding: 50px 0 30px mematikan padding container) */
body .quick-menu { padding-left: .75rem; padding-right: .75rem; }

/* ---------- Responsive polish ---------- */
@media (max-width: 767.98px) {
    body .hero { min-height: 300px; }
    body .hero h1 { font-size: 1.7rem; }
    body .search-card { padding: 16px; border-radius: 14px; }
    body .section-title { font-size: 1.15rem; }
    body .listing-price { font-size: 1.05rem; }
}

/* ============================================================
   NEXA — TEMA BIRU "NEXA BLUE" (2026-10)
   Palet acuan: #2851a3 (utama) · #0b2761 (gelap) · #f0f5fc (lembut)
   Blok ini menimpa warna lama tanpa mengubah struktur layout.
   ============================================================ */
:root {
    --nx-red: #2851a3;
    --nx-red-dark: #0b2761;
    --nx-ink: #0b1f45;
    --nx-text: #3b4a63;
    --nx-muted: #6b7a90;
    --nx-border: #e0e8f5;
    --nx-bg: #f1f5fd;
    --gold-primary: #2851a3;
    --gold-hover: #0b2761;
    --gold-soft: #e8eefc;
    --navy-dark: #0b1f45;
    --navy-medium: #16386f;
    --site-bg: #f1f5fd;
    --site-text: #0b1f45;
    --site-muted: #6b7a90;
    --site-border: #e0e8f5;
    --nb-900: #081c47;
    --nb-800: #0b2761;
    --nb-700: #1f438d;
    --nb-600: #2851a3;
    --nb-400: #5b86d6;
    --nb-100: #e8eefc;
    --nb-50: #f4f7fd;
}

/* ---------- Latar halaman: lembut, berlapis, tidak flat ---------- */
body {
    background-color: var(--nx-bg) !important;
    background-image:
        radial-gradient(1200px 560px at 6% -10%, rgba(40, 81, 163, .12), transparent 62%),
        radial-gradient(900px 520px at 102% 2%, rgba(11, 39, 97, .10), transparent 58%),
        radial-gradient(700px 420px at 50% 110%, rgba(91, 134, 214, .10), transparent 60%),
        linear-gradient(180deg, #f8fbff 0%, #eef3fc 48%, #f7faff 100%) !important;
    background-repeat: no-repeat !important;
    color: var(--nx-ink);
}

::selection { background: rgba(40, 81, 163, .18); color: var(--nb-900); }

/* ---------- Navbar: putih bersih dengan aksen biru ---------- */
body .site-navbar { border-bottom: 1px solid rgba(40, 81, 163, .10); box-shadow: 0 6px 24px rgba(11, 39, 97, .06); }
body .site-navbar a:not(.btn):not(.brand):hover { color: var(--nb-600); }
body .site-navbar .menu-link:hover,
body .site-navbar .menu-link.active { color: var(--nb-800) !important; border-bottom-color: var(--nb-600) !important; }
body .site-navbar .btn-primary,
body .site-navbar .nav-auth-btn.btn-primary {
    background: linear-gradient(135deg, var(--nb-600) 0%, var(--nb-800) 100%) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(40, 81, 163, .28);
}
body .site-navbar .btn-primary:hover {
    background: linear-gradient(135deg, var(--nb-700) 0%, var(--nb-900) 100%) !important;
    color: #fff !important;
}
body .site-navbar .btn-outline-dark { border-color: rgba(40, 81, 163, .35) !important; color: var(--nb-800) !important; }
body .site-navbar .btn-outline-dark:hover { background: var(--nb-600) !important; border-color: var(--nb-600) !important; color: #fff !important; }

/* ---------- Bar mobile & drawer: aksen biru ---------- */
body .site-navbar .nav-burger { border-color: rgba(40, 81, 163, .18); color: var(--nb-800); }
body .site-navbar .nav-burger:active { background: var(--nb-100); }
body .site-navbar .mob-icon { color: var(--nb-800); }
body .site-navbar .mob-icon:active { background: var(--nb-100); }
body .site-navbar .mob-badge { background: var(--nb-600); }
body .site-navbar .mob-login { border-color: var(--nb-800); color: var(--nb-800); }
body .site-navbar .mob-avatar,
body .nexa-drawer .drawer-avatar {
    background: linear-gradient(135deg, var(--nb-400), var(--nb-600));
    color: #fff;
}
body .site-navbar .nav-mobile-search { background: #fff; border-color: rgba(40, 81, 163, .14); box-shadow: 0 2px 10px rgba(11, 39, 97, .05); }
body .site-navbar .nav-mobile-search button { background: linear-gradient(135deg, var(--nb-600), var(--nb-800)); }
body .site-navbar .nav-chip { border-color: rgba(40, 81, 163, .16); color: var(--nb-700); background: #fff; }
body .site-navbar .nav-chip.is-active,
body .site-navbar .nav-chip:active { background: var(--nb-600); border-color: var(--nb-600); color: #fff; }

body .nexa-drawer .drawer-user { background: linear-gradient(135deg, var(--nb-900) 0%, var(--nb-700) 100%); }
body .nexa-drawer .drawer-user-role { color: #a9c4f2; }
body .nexa-drawer .drawer-login-card { background: linear-gradient(135deg, #f2f6fd 0%, #e6eefc 100%); border-color: #cddbf6; }
body .nexa-drawer .drawer-login-card p { color: #26406e; }
body .nexa-drawer .drawer-login-btn { background: linear-gradient(135deg, var(--nb-600), var(--nb-800)); color: #fff; box-shadow: 0 8px 20px rgba(40, 81, 163, .3); }
body .nexa-drawer .drawer-link i { color: var(--nb-600); }
body .nexa-drawer .drawer-link.is-active { background: var(--nb-100); }
body .nexa-drawer .drawer-link.is-active i { color: var(--nb-800); }
body .nexa-drawer .drawer-section { color: #8b9bb5; }

/* ---------- Hero: biru dalam dengan cahaya lembut ---------- */
body .hero { min-height: 400px; }
body .hero::before {
    background:
        radial-gradient(700px 320px at 82% 12%, rgba(91, 134, 214, .38), transparent 62%),
        linear-gradient(100deg, rgba(8, 28, 71, .94) 0%, rgba(15, 45, 110, .82) 46%, rgba(40, 81, 163, .42) 100%);
}
body .hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(241, 245, 253, 0) 0%, rgba(241, 245, 253, .85) 100%);
    pointer-events: none;
}
body .hero::after { z-index: 1; }
body .hero .hero-inner, body .hero .container { position: relative; z-index: 2; }
body .hero h1 { text-shadow: 0 2px 18px rgba(8, 28, 71, .35); }
body .hero h1 span.text-gold { color: #fff; border-bottom-color: #7fa6ea; }
body .hero p { color: rgba(232, 238, 252, .9); }
body .hero h1 .text-gold,
body .hero .text-gold { color: #cfe0ff !important; }

/* ---------- Kartu pencarian ---------- */
body .search-card {
    border-radius: 18px;
    border: 1px solid rgba(40, 81, 163, .12);
    box-shadow: 0 24px 60px rgba(8, 28, 71, .18), 0 2px 0 rgba(255, 255, 255, .9) inset;
    position: relative;
    overflow: hidden;
}
body .search-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--nb-600), var(--nb-400) 55%, var(--nb-800));
}
body .search-tabs .search-tab.active,
body .search-tabs .search-tab:hover { color: var(--nb-700) !important; }
body .search-input-pill .btn-search { background: linear-gradient(135deg, var(--nb-600), var(--nb-800)) !important; box-shadow: 0 6px 16px rgba(40, 81, 163, .28); }

/* ---------- Quick menu & chip kategori ---------- */
body .quick-menu-item .icon-circle {
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
    border-color: rgba(40, 81, 163, .14);
    color: var(--nb-600);
    box-shadow: 0 6px 16px rgba(11, 39, 97, .07);
}
body .quick-menu-item:hover .icon-circle {
    transform: translateY(-3px);
    box-shadow: 0 14px 26px rgba(40, 81, 163, .18);
    border-color: rgba(40, 81, 163, .3);
}
body .quick-menu-item .icon-label { color: var(--nb-800); }
body .category-chip:hover { border-color: var(--nb-600); color: var(--nb-600); background: var(--nb-50); }
body .category-chip i { color: var(--nb-600) !important; }

/* ---------- Judul bagian ---------- */
body .section-title { color: var(--nb-900); position: relative; padding-left: 14px; }
body .section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 62%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--nb-400), var(--nb-600));
}

/* ---------- Kartu properti ---------- */
body .listing-card {
    border-radius: 16px;
    border: 1px solid rgba(40, 81, 163, .10);
    box-shadow: 0 6px 18px rgba(11, 39, 97, .06);
}
body .listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(11, 39, 97, .16);
    border-color: rgba(40, 81, 163, .28);
}
body .listing-media::after,
body .listing-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 28, 71, 0) 55%, rgba(8, 28, 71, .22) 100%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
body .listing-card:hover .listing-media::after,
body .listing-card:hover .listing-photo-wrap::after { opacity: 1; }
body .listing-price,
body .listing-content .text-primary { color: var(--nb-700) !important; }
body .badge-gold,
body .listing-badges .badge.text-bg-primary,
body .listing-photo-badges .badge.text-bg-primary {
    background: linear-gradient(135deg, var(--nb-600), var(--nb-800)) !important;
    color: #fff !important;
}
body .listing-meta.mt-2 { border-top-color: rgba(40, 81, 163, .12); }

/* ---------- CTA & tombol ---------- */
body .cta-band {
    background:
        radial-gradient(600px 240px at 88% 0%, rgba(127, 166, 234, .35), transparent 60%),
        linear-gradient(120deg, var(--nb-700) 0%, var(--nb-900) 100%);
    border-radius: 18px;
    box-shadow: 0 20px 44px rgba(8, 28, 71, .22);
}
body .cta-band .btn-warning { background: #fff !important; border-color: #fff !important; color: var(--nb-800) !important; }
body .btn-primary { background: linear-gradient(135deg, var(--nb-600), var(--nb-800)); border-color: var(--nb-600); }
body .btn-primary:hover { background: linear-gradient(135deg, var(--nb-700), var(--nb-900)); border-color: var(--nb-700); }
body .text-warning { color: var(--nb-600) !important; }
body .form-control:focus, body .form-select:focus {
    border-color: var(--nb-600) !important;
    box-shadow: 0 0 0 3px rgba(40, 81, 163, .14) !important;
}
body .pagination .page-item.active .page-link { background: var(--nb-600); border-color: var(--nb-600); }
body .pagination .page-link { color: var(--nb-700); }
body .pagination .page-link:hover { background: var(--nb-100); color: var(--nb-800); }

/* ---------- Favorit ---------- */
body .fav-btn.is-active:hover,
body .fav-pill.is-active:hover { background: var(--nb-800); border-color: var(--nb-800); }
body .fav-btn.is-active,
body .fav-pill.is-active { background: var(--nb-600); border-color: var(--nb-600); }

/* ---------- Footer biru dalam ---------- */
body .site-footer {
    background:
        radial-gradient(800px 300px at 90% -10%, rgba(91, 134, 214, .30), transparent 60%),
        linear-gradient(160deg, #0b2761 0%, #081c47 60%, #050f2a 100%);
    color: #c7d6f2;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
body .site-footer a { color: #c7d6f2; }
body .site-footer a:hover { color: #fff; }
body .footer-links a { color: #c7d6f2; }
body .footer-tagline { color: #a4b8da; }
body .footer-copy { color: #93a7c9; }
body .footer-social-link { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14); color: #dbe6fb; }
body .footer-social-link:hover { background: var(--nb-600); border-color: var(--nb-600); color: #fff; }
body .footer-divider { border-color: rgba(255, 255, 255, .10); }

/* ---------- Detail, KPR, artikel, share ---------- */
body .share-item { border-color: rgba(40, 81, 163, .12); }
body .share-item:hover { border-color: rgba(40, 81, 163, .3); box-shadow: 0 10px 24px rgba(11, 39, 97, .10); }
body .kpr-hero { background: linear-gradient(135deg, var(--nb-800) 0%, var(--nb-900) 100%); }
body .kpr-form-card, body .kpr-result { border-color: rgba(40, 81, 163, .12); }
body .article-card:hover { box-shadow: 0 20px 40px rgba(11, 39, 97, .14); }

/* ---------- Animasi halus ---------- */
@keyframes nbx-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
body .quick-menu-item, body .listing-card, body .category-chip { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
    body .quick-menu-item, body .listing-card { animation: nbx-fade-up .45s ease both; }
    body .listing-card:nth-child(2) { animation-delay: .04s; }
    body .listing-card:nth-child(3) { animation-delay: .08s; }
    body .listing-card:nth-child(4) { animation-delay: .12s; }
}
/* ---------- Panel section: beri "kartu" agar halaman terasa lebih kaya ---------- */
body .section-property,
body .section-content {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(40, 81, 163, .08);
    border-radius: 24px;
    padding: 26px 24px 18px;
    margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(11, 39, 97, .06);
    backdrop-filter: blur(6px);
}
body .section-property .section-title,
body .section-content .section-title { margin-bottom: 2px; }

/* Quick menu sebagai kartu kaca mengambang */
body .quick-menu {
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(40, 81, 163, .08);
    border-radius: 22px;
    padding: 18px .75rem 10px;
    box-shadow: 0 16px 36px rgba(11, 39, 97, .07);
    backdrop-filter: blur(6px);
}

/* Tombol: kilau halus saat hover */
body .btn-primary,
body .site-navbar .btn-primary {
    position: relative;
    overflow: hidden;
}
body .btn-primary::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 45%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: skewX(-18deg);
    transition: left .5s ease;
}
body .btn-primary:hover::after { left: 120%; }

/* Kartu properti: sudut lebih lembut + label harga tegas */
body .listing-title { color: var(--nb-900); }
body .listing-meta i { color: var(--nb-400); }

/* Halaman detail / artikel: blok putih lebih bersih */
body .card, body .article-card { border-color: rgba(40, 81, 163, .10); }

/* Badge kecil "Terbaru" dsb tetap kontras */
body .badge.text-bg-warning { background: linear-gradient(135deg, #5b86d6, #2851a3) !important; color: #fff !important; }

@media (max-width: 991.98px) {
    body .section-property,
    body .section-content { border-radius: 18px; padding: 18px 14px 12px; }
    body .quick-menu { border-radius: 18px; padding: 14px .5rem 6px; }
}
/* ============================================================
   HERO: foto slider ditonjolkan — overlay hanya di sisi teks
   ============================================================ */
body .hero {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
body .hero::before {
    background:
        radial-gradient(680px 320px at 88% 18%, rgba(255, 255, 255, .10), transparent 62%),
        linear-gradient(96deg,
            rgba(5, 16, 40, .88) 0%,
            rgba(8, 28, 71, .64) 26%,
            rgba(10, 35, 88, .30) 48%,
            rgba(10, 35, 88, .06) 70%,
            rgba(10, 35, 88, 0) 100%) !important;
}
body .hero::after {
    height: 42px !important;
    background: linear-gradient(180deg, rgba(241, 245, 253, 0) 0%, rgba(241, 245, 253, .38) 100%) !important;
}
body .hero h1 {
    text-shadow: 0 3px 22px rgba(4, 14, 36, .7), 0 1px 2px rgba(4, 14, 36, .55);
}
body .hero p {
    color: #f2f6ff !important;
    text-shadow: 0 2px 14px rgba(4, 14, 36, .65);
}
body .hero .btn-search {
    box-shadow: 0 12px 28px rgba(4, 14, 36, .35);
}
@media (max-width: 767.98px) {
    body .hero::before {
        background:
            linear-gradient(180deg,
                rgba(5, 16, 40, .80) 0%,
                rgba(8, 28, 71, .56) 34%,
                rgba(10, 35, 88, .20) 60%,
                rgba(10, 35, 88, .04) 88%,
                rgba(10, 35, 88, 0) 100%) !important;
    }
}

/* ============================================================
   HERO MOBILE: seluruh banner tampil (rasio asli 1600x873)
   ============================================================ */
@media (max-width: 767.98px) {
    body .hero,
    body .hero.hero-slider {
        min-height: 0 !important;
        height: auto !important;
        aspect-ratio: var(--hero-ratio, 2.87 / 1) !important;
        background-size: cover !important;
        background-position: center !important;
    }

    body .hero .hero-inner,
    body .hero .container.hero-inner {
        padding: 14px 16px 24px;
    }

    body .hero h1 {
        font-size: 1.35rem !important;
        line-height: 1.15 !important;
        margin-bottom: 4px;
    }

    body .hero p {
        font-size: .8rem !important;
        line-height: 1.3 !important;
        max-width: 96% !important;
        margin-bottom: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body .hero::after {
        height: 26px !important;
    }

    body .hero-dots {
        bottom: 6px !important;
        gap: 6px;
    }
}

/* HERO MOBILE: overlay lebih ringan agar foto jelas terlihat */
@media (max-width: 767.98px) {
    body .hero::before {
        background: linear-gradient(180deg,
            rgba(5, 16, 40, .62) 0%,
            rgba(8, 28, 71, .38) 40%,
            rgba(10, 35, 88, .10) 70%,
            rgba(10, 35, 88, 0) 94%) !important;
    }
}

/* ============================================================
   DETAIL PROPERTI — gaya rumah123 (tab Foto/Informasi/Alamat/Pemilik)
   ============================================================ */
body .detail-page { padding-bottom: 24px; }
body .detail-head-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
body .detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #1f2937; text-decoration: none; }
body .detail-head-actions { display: flex; gap: 8px; }
body .detail-icon-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--nx-border); background: #fff; color: #334155; font-size: 1rem; }
body .detail-icon-btn.is-active { color: #e11d48; border-color: #fecdd3; background: #fff1f2; }
body .detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
body .detail-badge { font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; background: #eef2ff; color: #2851a3; border: 1px solid #dbe4ff; }
body .detail-badge-solid { background: #2851a3; color: #fff; border-color: #2851a3; }
body .detail-badge.is-live { background: #e8f7ee; color: #0f9d58; border-color: #c9ecd8; }
body .detail-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 0 0 6px; }
body .detail-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #64748b; font-size: .82rem; }
body .detail-loc .dot-sep { opacity: .5; }
body .detail-views { display: inline-flex; align-items: center; gap: 4px; }
body .detail-price-row { margin-top: 12px; }
body .detail-price { font-size: 1.6rem; font-weight: 800; color: #2851a3; line-height: 1.1; }
body .detail-price-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; color: #64748b; font-size: .8rem; }
body .detail-price-meta b { color: #0f172a; }
body .detail-tabs { position: sticky; top: var(--nx-nav-h, 0px); z-index: 1035; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 12px 0 4px; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--nx-border); box-shadow: 0 6px 16px rgba(15,23,42,.06); scrollbar-width: none; }
body .detail-tabs::-webkit-scrollbar { display: none; }
body .detail-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--nx-border); background: #fff; color: #334155; font-size: .82rem; font-weight: 700; padding: .5rem .9rem; border-radius: 999px; white-space: nowrap; }
body .detail-tab em { font-style: normal; font-size: .7rem; background: #eef2ff; color: #2851a3; padding: .05rem .4rem; border-radius: 999px; }
body .detail-tab.is-active { background: #2851a3; border-color: #2851a3; color: #fff; }
body .detail-tab.is-active em { background: rgba(255,255,255,.2); color: #fff; }
body .detail-section { scroll-margin-top: calc(var(--nx-nav-h, 0px) + 70px); }
body .detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
body .detail-section-head h2 { font-size: 1rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 6px; }
body .detail-section-head h2 i { color: #2851a3; }
body .detail-section-note { font-size: .75rem; color: #64748b; }
body .detail-specs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 14px; }
body .detail-spec { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--nx-border); border-radius: 12px; background: #f8fafc; }
body .detail-spec i { color: #2851a3; font-size: .95rem; }
body .detail-spec span { font-size: .72rem; color: #64748b; }
body .detail-spec strong { font-size: .95rem; color: #0f172a; }
body .detail-meta th { color: #64748b; font-weight: 600; }
body .detail-meta td { color: #0f172a; font-weight: 600; }
body .detail-subhead { font-size: .9rem; font-weight: 800; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
body .detail-subhead i { color: #2851a3; }
body .detail-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body .detail-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; background: #f1f5f9; border: 1px solid var(--nx-border); color: #334155; padding: .35rem .65rem; border-radius: 999px; }
body .detail-chip i { color: #2851a3; }
body .detail-desc { font-size: .88rem; line-height: 1.65; color: #334155; }
body .detail-share { margin-top: 16px; }
body .detail-address { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--nx-border); }
body .detail-address > i { color: #2851a3; font-size: 1.05rem; margin-top: 2px; }
body .detail-address-main { font-size: .9rem; font-weight: 700; color: #0f172a; }
body .detail-address-sub { font-size: .8rem; color: #64748b; margin-top: 2px; }
body .detail-owner { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--nx-border); border-radius: 14px; background: #f8fafc; }
body .detail-owner-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #2851a3; color: #fff; font-weight: 800; font-size: 1.05rem; }
body .detail-owner-body { flex: 1; min-width: 0; }
body .detail-owner-name { font-weight: 800; font-size: .92rem; }
body .detail-owner-sub { font-size: .75rem; color: #64748b; }
body .detail-owner-check { color: #0f9d58; font-size: 1.1rem; }
body .detail-contact { display: grid; gap: 8px; margin-top: 12px; }
body .detail-side { position: sticky; top: 16px; }
body .detail-side-price { font-size: 1.45rem; font-weight: 800; color: #2851a3; }
body .detail-side-meta { font-size: .8rem; color: #64748b; margin-top: 2px; }
body .detail-side-owner { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--nx-border); }
body .detail-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--nx-border); box-shadow: 0 -8px 24px rgba(15,23,42,.10); }
body .detail-cta-price { flex: 1; min-width: 0; }
body .detail-cta-price small { display: block; font-size: .68rem; color: #64748b; }
body .detail-cta-price strong { font-size: 1rem; font-weight: 800; color: #2851a3; }
body .detail-cta-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; padding: .55rem .9rem; }
body .detail-cta-icon { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
@media (max-width: 767.98px) {
  body .detail-page { padding-bottom: 96px; }
  body .detail-title { font-size: 1.15rem; }
  body .detail-price { font-size: 1.45rem; }
  body .detail-tabs { top: var(--nx-nav-h, 0px); }
}

/* DETAIL — polesan ala rumah123 (foto full-bleed, chip siku, baris cicilan) */
body .detail-installment {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; font-size: .8rem; font-weight: 600; color: #2851a3;
    text-decoration: none;
}
body .detail-installment .bi-chevron-right { margin-left: auto; }
body .detail-badge { border-radius: 8px; }
body .detail-tab { border-radius: 10px; }
@media (max-width: 767.98px) {
    body #detailFoto.detail-section { padding: 0 !important; overflow: hidden; }
    body #detailFoto .detail-section-head { padding: 14px 14px 0; }
    body #detailFoto .detail-main-photo { border-radius: 0; aspect-ratio: 4 / 3; }
    body #detailFoto .thumb-grid { padding: 10px 14px 14px; }
    body #detailFoto .photo-counter { margin: 12px; }
    body #detailFoto .photo-all-btn { margin: 12px; }
}

/* SHARE (mobile): 5 ikon kecil dalam satu deret lurus */
@media (max-width: 767.98px) {
    body .share-actions {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        gap: 6px;
    }
    body .share-item {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding: 7px 0;
        border-radius: 12px;
        min-height: 46px;
    }
    body .share-txt { display: none; }
    body .share-ic {
        width: 32px;
        height: 32px;
        font-size: .95rem;
        margin: 0 auto;
    }
    body .share-item:hover { transform: none; box-shadow: none; }
}

/* FOOTER (mobile): 2 kolom bergantian — kategori|layanan, informasi|bantuan */
@media (max-width: 575.98px) {
    body .site-footer .footer-columns {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
        margin-left: 0;
        margin-right: 0;
    }
    body .site-footer .footer-columns > [class*="col-"] {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
    body .site-footer .footer-columns > [class*="col-"]:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: 14px;
    }
    body .site-footer .footer-heading {
        font-size: .82rem;
        margin-bottom: .5rem;
    }
    body .site-footer .footer-links a { font-size: .78rem; }
    body .site-footer .footer-links li { margin-bottom: 5px; }
}

/* NAVBAR BIRU — paksa tombol & menu tampil putih di atas gradasi */
body .site-navbar .btn-primary,
body .site-navbar .nav-auth-btn.btn-primary {
    background: #fff !important;
    color: #1b3f86 !important;
    border-color: #fff !important;
    box-shadow: 0 8px 20px rgba(4, 16, 40, .22) !important;
}
body .site-navbar .btn-primary:hover,
body .site-navbar .nav-auth-btn.btn-primary:hover {
    background: #eaf1ff !important;
    color: #0b2761 !important;
}
body .site-navbar .menu-link,
body .site-navbar .menu-link:hover,
body .site-navbar .menu-link.active {
    color: #fff !important;
}
body .site-navbar .menu-link:hover,
body .site-navbar .menu-link.active {
    border-bottom-color: rgba(255, 255, 255, .7) !important;
}
body .site-navbar .nav-burger {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .28) !important;
    background: rgba(255, 255, 255, .12) !important;
}
body .site-navbar .mob-icon { color: #fff !important; }
body .site-navbar .mob-login {
    color: #1b3f86 !important;
    border-color: #fff !important;
    background: #fff !important;
}
body .site-navbar .btn-outline-dark {
    border-color: rgba(255, 255, 255, .5) !important;
    color: #fff !important;
}
body .site-navbar .btn-outline-dark:hover {
    background: rgba(255, 255, 255, .16) !important;
    color: #fff !important;
}

/* LOGO NEXA PROPERTI — ukuran proporsional navbar */
body .site-navbar .brand-logo {
    width: auto !important;
    height: 52px !important;
    max-width: 220px !important;
    object-fit: contain;
}
@media (max-width: 767.98px) {
    body .site-navbar .brand-logo {
        height: 46px !important;
        max-width: 190px !important;
    }
}

/* NAVBAR DESKTOP: logo & tombol akun mentok sisi kiri-kanan */
@media (min-width: 992px) {
    body .site-navbar .navbar-shell.container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    body .site-navbar .navbar-top {
        margin-right: 0 !important;
    }
    body .site-navbar .navbar-menu {
        flex: 1 1 auto !important;
        margin-left: 2rem !important;
    }
    body .site-navbar .navbar-actions {
        margin-left: auto !important;
        flex: 0 0 auto !important;
    }
}

/* PENCARIAN HERO — hanya desktop, proporsional, tidak menutupi ikon layanan */
body .desktop-search-only { display: none !important; }
@media (min-width: 992px) {
    body .desktop-search-only {
        display: block !important;
        width: min(100%, 1040px);
        max-width: 1040px;
        margin-top: -96px !important;
        margin-bottom: 54px;
        padding-left: 16px;
        padding-right: 16px;
        position: relative;
        z-index: 20;
    }
    body .desktop-search-only .search-card {
        max-width: none;
        margin: 0;
        padding: 18px 22px 20px;
        border-radius: 16px;
        background: rgba(255, 255, 255, .98);
        border: 1px solid rgba(11, 39, 97, .12);
        box-shadow: 0 18px 45px rgba(11, 39, 97, .20);
    }
    body .desktop-search-only .search-card-title {
        color: #0b2761;
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: left;
    }
    body .desktop-search-only .search-tabs {
        justify-content: flex-start;
        gap: 28px;
        margin-bottom: 12px;
        padding: 0 4px 8px;
        border-bottom-color: rgba(40, 81, 163, .12);
    }
    body .desktop-search-only .search-tab {
        color: #64748b;
        font-size: .88rem;
        padding-bottom: 5px;
    }
    body .desktop-search-only .search-tab.active,
    body .desktop-search-only .search-tab:hover {
        color: #2851a3;
        border-bottom-color: #2851a3;
    }
    body .desktop-search-only .search-input-pill {
        border: 1px solid rgba(40, 81, 163, .22);
        box-shadow: none;
        margin-bottom: 12px !important;
        padding-left: 16px;
    }
    body .desktop-search-only .search-input-pill .btn-search {
        min-width: 124px;
        color: #fff;
        background: linear-gradient(135deg, #2851a3 0%, #0b2761 100%);
    }
    body .desktop-search-only .form-select,
    body .desktop-search-only .select2-container--bootstrap-5 .select2-selection {
        min-height: 38px;
        border-color: rgba(40, 81, 163, .18);
        border-radius: 10px;
        font-size: .84rem;
    }
}

/* HERO DESKTOP — sejajar persis dengan kolom ikon / container halaman */
@media (min-width: 992px) {
    body .hero.hero-slider {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        border-radius: 18px;
        overflow: hidden;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    body .hero.hero-slider { max-width: 960px; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    body .hero.hero-slider { max-width: 1140px; }
}
@media (min-width: 1400px) {
    body .hero.hero-slider { max-width: 1320px; }
}

/* BANNER IKLAN DESKTOP — setengah ukuran, proporsional, rata tengah */
@media (min-width: 992px) {
    body .page-banner.container {
        max-width: 648px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    body .page-banner .ad-banner {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border-radius: 14px;
        overflow: hidden;
    }
    body .page-banner .ad-banner img {
        width: 100% !important;
        height: auto !important;
        max-height: 194px;
        object-fit: cover;
        display: block;
    }
}

/* ===================== PANORAMA 360 (detail) ===================== */
.pano-viewer-shell {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0b2761;
    border: 1px solid rgba(11, 39, 97, .18);
}

.pano-viewer {
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 240px;
    background: #0b2761;
}

.pano-viewer .pnlm-container { background: #0b2761 !important; }

.pano-viewer-hint {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(11, 39, 97, .78);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pano-viewer-fallback {
    padding: 0;
    background: #0b2761;
}

.pano-viewer-fallback img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.pano-viewer-fallback p {
    margin: 0;
    padding: 10px 12px;
    color: #dbe7ff;
    font-size: .78rem;
    text-align: center;
}

.pano-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 108px;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.pano-thumb {
    position: relative;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0;
    background: #0b2761;
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
}

.pano-thumb img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    display: block;
}

.pano-thumb span {
    position: absolute;
    left: 4px;
    bottom: 4px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(11, 39, 97, .82);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
}

.pano-thumb.is-active,
.pano-thumb:hover {
    border-color: #2851a3;
    transform: translateY(-1px);
}

@media (max-width: 575.98px) {
    .pano-viewer { min-height: 200px; }
    .pano-thumbs { grid-auto-columns: 92px; }
}

/* ============================================================
   BANNER IKLAN — carousel geser otomatis kanan ke kiri
   ============================================================ */
body .ad-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #eef2f8;
}
body .ad-carousel .ad-track {
    display: flex;
    width: 100%;
    will-change: transform;
    backface-visibility: hidden;
}
body .ad-carousel .ad-slide {
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;
}
body .ad-carousel .ad-slide .ad-banner { display: block; }
body .ad-carousel .ad-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
}
body .ad-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(11, 39, 97, .42);
    color: #fff;
    font-size: .85rem;
    z-index: 4;
    opacity: 0;
    transition: opacity .2s ease, background .2s ease;
}
body .ad-carousel:hover .ad-nav { opacity: 1; }
body .ad-nav:hover { background: rgba(11, 39, 97, .78); }
body .ad-nav-prev { left: 10px; }
body .ad-nav-next { right: 10px; }
body .ad-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    display: flex;
    gap: 6px;
    justify-content: center;
    z-index: 4;
}
body .ad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 4px rgba(4, 14, 36, .35);
    transition: all .2s ease;
}
body .ad-dot.is-active { background: #fff; width: 22px; border-radius: 999px; }
@media (max-width: 767.98px) {
    body .ad-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body .ad-carousel .ad-track { transition: none !important; }
}
