/* Al-Haram Real Estate & Builders - Luxury Navy & Gold Design System */

:root {
    --primary: #0b132b;
    --primary-light: #1c2541;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-gold: #fbbf24;
    --emerald: #059669;
    --emerald-light: #10b981;
    --sky: #0284c7;
    --danger: #e11d48;
    --dark: #0f172a;
    --bg-page: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 14px rgba(11, 19, 43, 0.08);
    --shadow-lg: 0 12px 30px rgba(11, 19, 43, 0.14);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ======================================================== */
/* 1. TOP NAVIGATION BAR                                    */
/* ======================================================== */
.estate-navbar {
    background: linear-gradient(135deg, #070d1e 0%, #0b132b 50%, #152238 100%);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent) 0%, #b45309 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text h1 {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}
.brand-text span {
    font-size: 10px;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: block;
    margin-top: 2px;
}

/* Nav Toolbar & Segmented Buttons */
.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent), #b45309);
    border-color: var(--accent-gold);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

/* Special Nav Button for Add Inventory / CRM */
.nav-btn-crm {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1.5px solid #6ee7b7;
    color: #ffffff !important;
    padding: 8px 16px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
    border-radius: 9px;
}

.nav-btn-crm:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1.5px);
}

.nav-right-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

/* ======================================================== */
/* 2. HERO BANNER & SEARCH ENGINE                           */
/* ======================================================== */
.hero-portal {
    background: radial-gradient(circle at 50% -10%, rgba(217, 119, 6, 0.22) 0%, transparent 65%),
                linear-gradient(180deg, #070d1e 0%, #0b132b 60%, #152238 100%);
    color: #ffffff;
    padding: 55px 24px 65px;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--accent);
}

.hero-portal h2 {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.4px;
}

.hero-portal p {
    font-size: 15px;
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 28px;
    line-height: 1.5;
}

/* Filter Search Bar */
.search-card-shelf {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    padding: 18px 24px;
    max-width: 1050px;
    margin: 0 auto -95px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.search-filters-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    text-align: left;
}

.filter-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.filter-input:focus {
    border-color: var(--accent);
    background: #ffffff;
}

/* Quick Marla Filter Chips */
.quick-marla-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.marla-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s;
}
.marla-chip:hover, .marla-chip.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ======================================================== */
/* 3. MAIN CONTENT LAYOUT                                   */
/* ======================================================== */
.main-wrapper {
    flex: 1;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

.public-main-offset {
    padding-top: 90px;
}

/* Cards & Surfaces */
.estate-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.card-header-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ======================================================== */
/* 4. PROPERTY LISTING CARDS GRID                           */
/* ======================================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.property-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.property-top-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.property-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
}

.property-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent);
}

.property-title {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--dark);
    margin: 6px 0 8px;
    line-height: 1.35;
}

.property-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-specs-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    margin: 10px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* Feature Value-Add Badges */
.feature-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.badge-feature {
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-corner { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.badge-park { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.badge-mainroad { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.badge-possession { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.badge-file { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }

/* WhatsApp Free Direct Action Button */
.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-1px);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.45);
}

/* ======================================================== */
/* 5. BUTTONS & UI CONTROLS                                 */
/* ======================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: var(--primary-light); }

.btn-gold { background: var(--accent); color: #ffffff; }
.btn-gold:hover { background: #b45309; }

.btn-emerald { background: var(--emerald); color: #ffffff; }
.btn-emerald:hover { background: #047857; }

.btn-outline { background: #ffffff; border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { background: #f1f5f9; }

.btn-sm { padding: 5px 10px; font-size: 11.5px; }

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-green { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-blue { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.badge-amber { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.badge-red { background: #ffe4e6; color: #be123c; border: 1px solid #fda4af; }
.badge-purple { background: #f3e8ff; color: #7e22ce; border: 1px solid #d8b4fe; }

/* ======================================================== */
/* 6. DATA TABLES & KANBAN CRM                              */
/* ======================================================== */
.data-table-wrap {
    overflow-x: auto;
}

.estate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.estate-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px;
    border-bottom: 2px solid var(--border);
}

.estate-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.estate-table tbody tr:hover {
    background-color: #f8fafc;
}

/* CRM Leads Kanban Board */
.kanban-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: flex-start;
}

.kanban-col {
    background: #f1f5f9;
    border-radius: var(--radius);
    padding: 12px;
    border: 1px solid #e2e8f0;
    min-height: 480px;
}

.kanban-col-header {
    font-size: 12.5px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kanban-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.kanban-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
.estate-footer {
    background: #070d1e;
    color: #94a3b8;
    padding: 30px 24px;
    border-top: 2px solid var(--accent);
    font-size: 12px;
    margin-top: auto;
}

/* Floating WhatsApp Widget */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25d366;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 18px;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    z-index: 999;
    transition: all 0.2s;
}
.floating-whatsapp:hover {
    transform: scale(1.05);
    color: #ffffff;
}

/* Responsive */
@media (max-width: 960px) {
    .search-filters-grid {
        grid-template-columns: 1fr 1fr;
    }
    .kanban-grid {
        grid-template-columns: 1fr;
    }
}
