/* ====================================================================
   BuildEstate Portal — Stylesheet
   ==================================================================== */

:root {
    --primary:        #0d1b2a;
    --primary-soft:   #1b263b;
    --accent:         #f4b400;
    --accent-dark:    #d99a00;
    --text:           #1f2937;
    --muted:          #6b7280;
    --bg-soft:        #f8fafc;
    --border:         #e5e7eb;
    --danger:         #dc2626;
    --success:        #16a34a;
    --info:           #2563eb;
}

* { box-sizing: border-box; }
html, body { font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: #fff; }
body { padding-top: 76px; }
a { color: var(--primary); }
a:hover { color: var(--accent-dark); }
.bg-soft { background: var(--bg-soft); }

/* -------- NAVBAR -------- */
.app-nav { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.06); backdrop-filter: blur(8px); }
.app-nav .navbar-brand { color: #fff !important; font-size: 1.25rem; letter-spacing: .3px; }
.app-nav .nav-link { color: rgba(255,255,255,0.85) !important; font-weight: 500; padding: 8px 14px; }
.app-nav .nav-link:hover, .app-nav .nav-link.active { color: var(--accent) !important; }
.app-nav .navbar-toggler { border-color: rgba(255,255,255,0.2); }
.app-nav .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* -------- HERO -------- */
.hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(244,180,0,0.18), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(37,99,235,0.18), transparent 50%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }
.hero-stats { color: #fff; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; }
.hero-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.hero-stat-lbl { font-size: 0.85rem; opacity: 0.85; }
.hero-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}
.hero-card .form-control { border-radius: 8px; padding: 12px 14px; font-size: 0.95rem; }

/* -------- SECTIONS -------- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.page-header {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
    padding: 70px 0 50px;
    color: #fff;
}
.page-header h1 { font-size: 2.4rem; }

/* -------- SERVICE CARDS -------- */
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    color: inherit;
    transition: all .2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px -12px rgba(13,27,42,0.18);
    border-color: var(--accent);
    color: inherit;
}
.service-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: rgba(244,180,0,0.12);
    color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 16px;
}
.service-price { color: var(--accent-dark); font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.service-link  { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.service-block .service-illu {
    background: linear-gradient(135deg, var(--primary), var(--primary-soft));
    color: var(--accent);
    border-radius: 18px;
    aspect-ratio: 4/3;
    display: flex; align-items: center; justify-content: center;
    font-size: 7rem;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
}

/* -------- PROPERTY CARDS -------- */
.prop-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    transition: all .2s ease;
}
.prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px -12px rgba(13,27,42,0.18);
    color: inherit;
}
.prop-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.prop-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--accent); color: var(--primary);
    padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
}
.prop-type {
    position: absolute; top: 12px; right: 12px;
    background: rgba(13,27,42,0.85); color: #fff;
    padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 600;
}
.prop-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); }
.ref-code   { font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }

/* -------- FILTER BAR -------- */
.filter-bar { background: #fff; padding: 16px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

/* -------- PROPERTY DETAIL -------- */
.detail-cover { aspect-ratio: 16/9; object-fit: cover; }
.quick-facts .qf {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 14px; text-align: center; height: 100%;
}
.quick-facts .qf i { color: var(--accent-dark); font-size: 1.4rem; display: block; margin-bottom: 4px; }
.quick-facts .qf div { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.quick-facts .qf small { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.amenity-pill {
    display: inline-block;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text);
    width: 100%;
}
.enquiry-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; }

/* -------- WHY US -------- */
.why-list li { padding: 8px 0; font-size: 0.95rem; color: var(--text); }
.why-list i { color: var(--accent-dark); margin-right: 8px; font-size: 1.1rem; }
.why-tile {
    aspect-ratio: 1/1;
    border-radius: 14px;
    color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 18px;
    font-weight: 600;
    box-shadow: 0 10px 25px -15px rgba(0,0,0,0.4);
}
.why-tile i { font-size: 1.8rem; }
.why-tile-1 { background: linear-gradient(135deg, #2563eb, #1e40af); }
.why-tile-2 { background: linear-gradient(135deg, #16a34a, #15803d); }
.why-tile-3 { background: linear-gradient(135deg, #ea580c, #c2410c); }
.why-tile-4 { background: linear-gradient(135deg, #f4b400, #d99a00); color: #1f2937; }

.metric-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; text-align: center; }
.metric-card .num { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.metric-card .lbl { color: var(--muted); font-size: 0.85rem; }

/* -------- CTA BAND -------- */
.cta-band { background: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%); }

/* -------- INFO PANELS -------- */
.info-panel, .contact-info { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; height: 100%; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list i { color: var(--accent-dark); margin-right: 8px; }

/* -------- AUTH -------- */
.auth-page { padding: 60px 0; min-height: 70vh; }
.auth-card { border-radius: 18px; }

/* -------- FOOTER -------- */
.app-footer { background: var(--primary); color: #fff; }
.app-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.app-footer a:hover { color: var(--accent); }
.social-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff; display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.social-btn:hover { background: var(--accent); color: var(--primary); }

/* -------- ADMIN -------- */
.admin-body { background: var(--bg-soft); padding-top: 64px; }
.admin-nav { background: var(--primary); }
.admin-shell { display: flex; min-height: calc(100vh - 64px); }
.admin-side {
    width: 240px; background: #fff;
    border-right: 1px solid var(--border);
    padding: 18px 12px;
    flex-shrink: 0;
}
.admin-side .nav-link { color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 0.9rem; }
.admin-side .nav-link.active { background: var(--primary); color: #fff; }
.admin-side .nav-link:hover:not(.active) { background: var(--bg-soft); }
.admin-main { flex: 1; padding: 24px; min-width: 0; }

.admin-card { border-radius: 12px; border: 1px solid var(--border); }
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
}
.stat-card .num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.stat-card .lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.stat-card.stat-warn { border-left-color: var(--accent-dark); }
.stat-card.stat-info { border-left-color: var(--info); }

.admin-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.admin-list-item:last-child { border-bottom: none; }

/* -------- RESPONSIVE -------- */
@media (max-width: 992px) {
    .admin-side { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-shell { flex-direction: column; }
    .hero { padding: 60px 0 50px; }
    .hero h1 { font-size: 2rem; }
    .service-block .service-illu { aspect-ratio: 16/10; font-size: 5rem; }
}
@media (max-width: 576px) {
    body { padding-top: 70px; }
    .page-header { padding: 50px 0 35px; }
    .page-header h1 { font-size: 1.8rem; }
}