:root {
    --brand-gold: #d4a017;
    --brand-gold-dark: #a77709;
    --ink: #151515;
    --muted: #68707a;
    --surface: #ffffff;
    --line: #e6e8ec;
    --soft: #f6f7f9;
    --teal: #126c68;
}

body {
    background: var(--soft);
    color: var(--ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.portal-nav,
.portal-footer,
.admin-sidebar {
    background: #050505;
}

.brand-mark {
    align-items: center;
    background: var(--brand-gold);
    border-radius: 8px;
    color: #111;
    display: inline-flex;
    font-weight: 800;
    height: 42px;
    justify-content: center;
    letter-spacing: 0;
    width: 42px;
}

.brand-name {
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.brand-tagline {
    color: rgba(255,255,255,.55);
    line-height: 1.2;
}

.navbar .nav-link {
    color: rgba(255,255,255,.82);
    font-weight: 600;
}

.navbar .nav-link:hover,
.footer-link:hover {
    color: var(--brand-gold);
}

.btn-gold {
    --bs-btn-bg: var(--brand-gold);
    --bs-btn-border-color: var(--brand-gold);
    --bs-btn-color: #111;
    --bs-btn-hover-bg: var(--brand-gold-dark);
    --bs-btn-hover-border-color: var(--brand-gold-dark);
    --bs-btn-hover-color: #fff;
    font-weight: 700;
}

.btn-outline-gold {
    --bs-btn-color: var(--brand-gold-dark);
    --bs-btn-border-color: var(--brand-gold);
    --bs-btn-hover-bg: var(--brand-gold);
    --bs-btn-hover-border-color: var(--brand-gold);
    --bs-btn-hover-color: #111;
    font-weight: 700;
}

.text-gold {
    color: var(--brand-gold) !important;
}

.hero {
    background: linear-gradient(0deg, rgba(0,0,0,.76), rgba(0,0,0,.35)), url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1800") center/cover;
    color: #fff;
    min-height: 540px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 850;
    line-height: 1.02;
}

.search-panel {
    background: rgba(255,255,255,.98);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0,0,0,.26);
}

.hide-scrollbar {
    -ms-overflow-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.property-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.property-card:hover {
    box-shadow: 0 18px 35px rgba(15,20,30,.12);
    transform: translateY(-3px);
}

.property-card img,
.detail-hero img {
    object-fit: cover;
}

.badge-soft {
    background: rgba(18,108,104,.1);
    color: var(--teal);
}

.section-title {
    font-weight: 850;
}

.tool-tile,
.metric-card,
.admin-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tool-icon {
    align-items: center;
    background: rgba(212,160,23,.14);
    border-radius: 8px;
    color: var(--brand-gold-dark);
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.footer-link {
    color: rgba(255,255,255,.62);
    display: block;
    font-size: .92rem;
    margin: .55rem 0;
    text-decoration: none;
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    min-height: 100vh;
    padding: 1rem;
}

.admin-sidebar a {
    border-radius: 8px;
    color: rgba(255,255,255,.72);
    display: flex;
    gap: .55rem;
    padding: .7rem .85rem;
    text-decoration: none;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(212,160,23,.14);
    color: #fff;
}

.admin-main {
    background: #f5f6f8;
    min-height: 100vh;
}

.table td,
.table th {
    vertical-align: middle;
}

.chart-box {
    height: 340px;
}

.form-help {
    color: var(--muted);
    font-size: .86rem;
}

@media (max-width: 991px) {
    .admin-sidebar {
        min-height: auto;
    }

    .hero {
        min-height: 620px;
    }
}
