:root {
    --brand: #1a7f6b;
    --brand-dark: #0f5647;
    --brand-light: #e8f5f1;
    --ink: #1a2b32;
    --muted: #6b7d84;
}

* { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

body {
    color: var(--ink);
    background: #fafbfc;
}

/* ---- Buttons & brand ---- */
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
}
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
a { text-decoration: none; }

.navbar-brand { font-weight: 800; letter-spacing: -.02em; }
.navbar-logo { max-height: 40px; width: auto; }
.footer-logo { max-height: 40px; width: auto; background:#fff; padding:3px 6px; border-radius:6px; }
.nav-link { font-weight: 500; color: var(--ink); }
.nav-link:hover { color: var(--brand); }

/* ---- Hero ---- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(15,86,71,.92) 0%, rgba(26,127,107,.65) 55%, rgba(26,127,107,.25) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; }
.hero .lead { font-size: 1.15rem; max-width: 560px; }

.search-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

/* ---- Cards ---- */
.property-card {
    border: 1px solid #eef1f3;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,.10);
}
.property-card .card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.property-card .card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.property-card:hover .card-img-wrap img { transform: scale(1.06); }
.property-card .price { color: var(--brand); font-weight: 800; font-size: 1.2rem; }
.property-card .badge-status { position: absolute; top: .75rem; left: .75rem; }

.specs { color: var(--muted); font-size: .875rem; }
.specs i { color: var(--brand); }

/* ---- Section titles ---- */
.section-title { font-weight: 800; letter-spacing: -.02em; }
.section-sub { color: var(--muted); }

.feature-box {
    background: #fff;
    border: 1px solid #eef1f3;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    height: 100%;
    transition: .2s ease;
}
.feature-box:hover { border-color: var(--brand); box-shadow: 0 12px 30px rgba(26,127,107,.10); }
.feature-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ---- Detail page ---- */
.detail-carousel .carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 1rem;
}
.detail-thumbs img {
    width: 90px; height: 68px;
    object-fit: cover;
    border-radius: .5rem;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .7;
    transition: .15s ease;
}
.detail-thumbs img:hover,
.detail-thumbs img.active { opacity: 1; border-color: var(--brand); }

.spec-item {
    background: #fff;
    border: 1px solid #eef1f3;
    border-radius: .75rem;
    padding: 1rem;
    text-align: center;
}
.spec-item i { color: var(--brand); font-size: 1.4rem; }
.spec-item .label { color: var(--muted); font-size: .8rem; }
.spec-item .value { font-weight: 700; }

.survey-box {
    background: var(--brand-light);
    border: 1px solid #d5ebe4;
    border-radius: 1rem;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

/* ---- Footer ---- */
.footer-main { background: var(--ink); color: #fff; }
.footer-link { color: rgba(255,255,255,.6); }
.footer-link:hover { color: #fff; }
.social-ico {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    background: rgba(255,255,255,.10);
    color: #fff; font-size: 1.15rem;
    transition: .15s ease;
}
.social-ico:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ---- Floating WA ---- */
.wa-float {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 56px; height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    z-index: 999;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ---- Admin ---- */
.admin-sidebar {
    background: var(--ink);
    min-height: 100vh;
    width: 250px;
    position: fixed;
    top: 0; left: 0;
    padding-top: 1rem;
}
.admin-sidebar .brand { color: #fff; font-weight: 800; padding: 1rem 1.5rem; }
.admin-sidebar a {
    display: flex; align-items: center; gap: .6rem;
    color: rgba(255,255,255,.7);
    padding: .75rem 1.5rem;
    font-weight: 500;
    transition: .15s ease;
}
.admin-sidebar a:hover,
.admin-sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.admin-main { margin-left: 250px; padding: 2rem; }
.admin-card { background:#fff; border:1px solid #eef1f3; border-radius:1rem; }

.stat-card {
    border-radius: 1rem; padding: 1.5rem; color: #fff;
}
.login-wrap {
    min-height: 100vh; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.admin-topbar { display: none; }

@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1050;
        box-shadow: 2px 0 24px rgba(0,0,0,.25);
    }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-main { margin-left: 0; padding: 1rem; }
    .admin-topbar { display: flex; }
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 1040;
    }
    .sidebar-backdrop.show { display: block; }
    .detail-carousel .carousel-item img { height: 280px; }
}
