/**
 * Custom Stylesheet
 * Land Promotion & Property Matching Web Application
 * Navy Blue (#0a2540), Emerald Green (#059669), Soft Slate (#f8fafc)
 */

:root {
    --brand-navy: #0a2540;
    --brand-navy-dark: #06182a;
    --brand-navy-light: #173b61;
    --brand-green: #059669;
    --brand-green-hover: #047857;
    --brand-green-light: #ecfdf5;
    --brand-accent: #f59e0b;
    --brand-bg: #f8fafc;
    --brand-card-border: #e2e8f0;
    --brand-text: #1e293b;
    --brand-muted: #64748b;
    --brand-sidebar-width: 260px;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--brand-bg);
    color: var(--brand-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography & Links */
a {
    color: var(--brand-navy);
    text-decoration: none;
    transition: all 0.2s ease;
}
a:hover {
    color: var(--brand-green);
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--brand-navy) !important;
}
.navbar-brand .brand-badge {
    background-color: var(--brand-green);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 6px;
}
.site-nav {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: 0.6rem 1rem !important;
    border-radius: 6px;
}
.nav-link:hover, .nav-link.active {
    color: var(--brand-green) !important;
    background-color: #f1f5f9;
}

/* Hero Section */
.hero-wrapper {
    background: linear-gradient(135deg, rgba(10,37,64,0.95) 0%, rgba(5,150,105,0.85) 100%), url('../images/banner1.jpg') center/cover no-repeat;
    color: #fff;
    padding: 70px 0;
    border-radius: 0 0 24px 24px;
}

/* Filter Box / Search Form */
.search-hero-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 24px;
    margin-top: 25px;
}

/* Property Cards */
.property-card {
    background: #ffffff;
    border: 1px solid var(--brand-card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(10,37,64,0.08), 0 10px 10px rgba(10,37,64,0.04);
    border-color: #cbd5e1;
}
.property-card .card-thumb-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #e2e8f0;
}
.property-card .card-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.property-card:hover .card-thumb-wrapper img {
    transform: scale(1.05);
}
.property-card .badge-type {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}
.property-card .badge-featured {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--brand-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.property-card .price-tag {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-green);
}
.property-card .unit-price {
    font-size: 0.82rem;
    color: var(--brand-muted);
}
.property-card .meta-item {
    font-size: 0.85rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 65px);
}
.dashboard-sidebar {
    width: var(--brand-sidebar-width);
    background-color: var(--brand-navy);
    color: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
.dashboard-sidebar .sidebar-brand {
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard-sidebar .sidebar-menu {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}
.dashboard-sidebar .sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.dashboard-sidebar .sidebar-menu li a:hover,
.dashboard-sidebar .sidebar-menu li a.active {
    color: #ffffff;
    background-color: rgba(255,255,255,0.06);
    border-left-color: var(--brand-green);
}
.dashboard-sidebar .sidebar-menu li a .badge {
    margin-left: auto;
}
.dashboard-sidebar .sidebar-heading {
    padding: 12px 20px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.dashboard-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f8fafc;
    overflow-y: auto;
}

/* Stat Summary Cards */
.stat-card {
    background: #ffffff;
    border: 1px solid var(--brand-card-border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.stat-card.stat-navy .stat-icon { background: #e0f2fe; color: #0369a1; }
.stat-card.stat-green .stat-icon { background: #dcfce7; color: #15803d; }
.stat-card.stat-amber .stat-icon { background: #fef3c7; color: #b45309; }
.stat-card.stat-purple .stat-icon { background: #f3e8ff; color: #7e22ce; }
.stat-card.stat-rose .stat-icon { background: #ffe4e6; color: #be123c; }

/* Status Badges */
.badge-status {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.status-approved, .status-active, .status-available, .status-closed {
    background: #dcfce7; color: #166534;
}
.status-pending, .status-reviewing, .status-negotiation {
    background: #fef3c7; color: #92400e;
}
.status-rejected, .status-suspended, .status-cancelled {
    background: #fee2e2; color: #991b1b;
}
.status-matching, .status-contacted, .status-site-visit {
    background: #e0f2fe; color: #075985;
}

/* Matching Score Indicator */
.score-pill {
    padding: 6px 12px;
    font-weight: 700;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.score-high { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.score-mid  { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.score-low  { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

/* Buttons */
.btn-primary {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-green-hover);
    border-color: var(--brand-green-hover);
}
.btn-navy {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    color: #fff;
    font-weight: 600;
}
.btn-navy:hover {
    background-color: var(--brand-navy-light);
    border-color: var(--brand-navy-light);
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--brand-navy-dark);
    color: #cbd5e1;
    margin-top: auto;
    padding: 50px 0 25px;
    font-size: 0.92rem;
}
.site-footer a {
    color: #94a3b8;
}
.site-footer a:hover {
    color: #ffffff;
}

/* Map Containers */
#mapContainer, #mapPicker {
    height: 380px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    z-index: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
    }
    .dashboard-content {
        padding: 20px 15px;
    }
}
