@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&family=Outfit:wght@400;600;700;800&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
    /* Color Palette - Vibrant Lush Emerald & Glowing Gold Theme */
    --primary: #059669;          /* Lush Emerald Farm Green */
    --primary-dark: #064e3b;     /* Deep Forest Emerald */
    --primary-light: #10b981;    /* Vibrant Emerald */
    --primary-accent: #34d399;   /* Bright Glowing Mint */
    --primary-rgb: 5, 150, 105;
    
    --secondary: #f59e0b;        /* Investment Amber Gold */
    --secondary-dark: #d97706;   /* Rich Deep Gold */
    --secondary-light: #fbbf24;  /* Glowing Sun Gold */
    --secondary-rgb: 245, 158, 11;
    
    --bg-dark: #06140e;          /* Deep Emerald Black Slate */
    --bg-card: rgba(13, 35, 25, 0.75); /* Translucent Glass Emerald Card */
    --bg-card-hover: rgba(20, 52, 36, 0.88);
    
    --text-main: #f8fafc;        /* High Contrast White */
    --text-muted: #94a3b8;       /* Elegant Subtext Slate */
    --border-color: rgba(52, 211, 153, 0.14);
    --border-glow: rgba(52, 211, 153, 0.4);
    
    /* UI States */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Theme constants */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    --shadow-glow-green: 0 0 28px rgba(52, 211, 153, 0.28);
    --shadow-glow-gold: 0 0 28px rgba(245, 158, 11, 0.32);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1280px;
}

/* Base resets & scrollbar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', 'Outfit', sans-serif;
    outline: none;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #0e2e21;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: var(--shadow-glow-green);
}

body {
    direction: rtl;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 15% 15%, rgba(5, 150, 105, 0.12) 0px, transparent 55%),
        radial-gradient(at 85% 65%, rgba(245, 158, 11, 0.08) 0px, transparent 55%);
    background-attachment: fixed;
}

/* Background Glowing Orbs (Decorative elements) */
body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -150px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Shared typography & utility classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.text-center { text-align: center; }
.d-none { display: none !important; }

/* Modern Gradient Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.35);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.btn-outline {
    background-color: rgba(5, 150, 105, 0.08);
    border: 1.5px solid var(--primary-light);
    color: var(--primary-accent);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 16px;
    font-size: 0.85rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}
.badge-success { background-color: rgba(16, 185, 129, 0.18); color: var(--primary-accent); border-color: rgba(52, 211, 153, 0.3); }
.badge-warning { background-color: rgba(245, 158, 11, 0.18); color: var(--secondary-light); border-color: rgba(251, 191, 36, 0.3); }
.badge-danger { background-color: rgba(239, 68, 68, 0.18); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.badge-info { background-color: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(59, 130, 246, 0.3); }
.badge-primary { background-color: rgba(5, 150, 105, 0.22); color: var(--primary-accent); border-color: rgba(52, 211, 153, 0.35); }

/* --- Top Header Bar --- */
.top-bar {
    background-color: rgba(4, 20, 14, 0.85);
    border-bottom: 1px solid var(--border-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.role-switcher-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.role-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 3px;
}
.role-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 5px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.role-btn.active {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-glow-gold);
}

/* --- Main Navigation Header --- */
header {
    background: rgba(6, 20, 14, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.18);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 84px;
}
.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
}
.site-logo {
    height: 54px;
    width: 54px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--primary-light);
    background: #ffffff;
    box-shadow: var(--shadow-glow-green);
    transition: var(--transition);
}
.logo-area:hover .site-logo {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--primary-accent);
}
.logo-text {
    display: flex;
    flex-direction: column;
}
.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    background: linear-gradient(135deg, #ffffff 30%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}
.logo-text span {
    font-size: 0.76rem;
    color: var(--primary-accent);
    letter-spacing: 0.5px;
    font-weight: 600;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 4px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    border-radius: 10px;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary-accent);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary-accent);
}

/* --- Hero Banner Slider --- */
.hero-slider-section {
    position: relative;
    height: 540px;
    overflow: hidden;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}
.slide-track {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.slide-item.active {
    opacity: 1;
    z-index: 2;
}
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 20, 14, 0.25) 0%, rgba(6, 20, 14, 0.92) 100%);
    z-index: 3;
}
.slider-caption-container {
    position: absolute;
    bottom: 85px;
    right: 24px;
    left: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    z-index: 4;
}
.slider-caption {
    background: rgba(10, 31, 22, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-lg);
    padding: 38px;
    max-width: 680px;
    color: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow-green);
    animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.slider-caption h2 {
    font-size: 2.1rem;
    font-weight: 900;
    margin-bottom: 14px;
    color: var(--secondary-light);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    line-height: 1.3;
}
.slider-caption p {
    font-size: 1.1rem;
    margin-bottom: 22px;
    color: #e2e8f0;
    line-height: 1.7;
}
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
}
.slider-dot.active {
    background: var(--primary-accent);
    width: 36px;
    border-radius: 12px;
    box-shadow: var(--shadow-glow-green);
}

/* --- Search & Filters Bar --- */
.search-filter-section {
    margin-top: -45px;
    position: relative;
    z-index: 10;
    margin-bottom: 55px;
}
.search-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow), var(--shadow-glow-green);
    border: 1px solid var(--border-glow);
}
.search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 18px;
    align-items: end;
}
@media (max-width: 768px) {
    .search-grid {
        grid-template-columns: 1fr;
    }
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.96rem;
    color: var(--text-main);
    background-color: rgba(7, 24, 17, 0.85);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary-accent);
    background-color: rgba(7, 24, 17, 0.98);
    box-shadow: var(--shadow-glow-green);
}
.form-control option {
    background-color: #0d281a;
    color: white;
}

/* --- Property Listings Section --- */
.section-header {
    margin-bottom: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-main);
    position: relative;
    padding-bottom: 14px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-accent) 0%, var(--secondary-light) 100%);
    border-radius: 3px;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
    margin-bottom: 65px;
}

/* Property Card Styling */
.property-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.property-card:hover {
    transform: translateY(-9px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(5, 150, 105, 0.18), var(--shadow-glow-green);
    background: var(--bg-card-hover);
}
.card-image-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #071911;
}
.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.property-card:hover .card-image {
    transform: scale(1.06);
}
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    box-shadow: var(--shadow);
}
.card-price-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.15rem;
    box-shadow: var(--shadow-glow-gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
}
.card-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--text-main);
    line-height: 1.4;
}
.card-meta {
    display: flex;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}
.card-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
}
.card-meta-item i {
    color: var(--primary-accent);
}

/* Detail Lock feature (Blurring) */
.locked-details-container {
    background: rgba(6, 20, 14, 0.7);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 22px;
    position: relative;
    overflow: hidden;
    border: 1px dashed rgba(52, 211, 153, 0.25);
}
.blurred-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    opacity: 0.4;
}
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 20, 14, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}
.lock-overlay span {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--secondary-light);
    margin-top: 5px;
}
.unlocked-details {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 22px;
}
.unlocked-title {
    color: var(--primary-accent);
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.unlocked-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 0.88rem;
}
.unlocked-info-grid a {
    color: var(--primary-accent);
    font-weight: 700;
}

.card-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}
.card-actions .btn {
    flex: 1;
}

/* --- Modals (Glassmorphism overlay) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 15, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.modal-card {
    background: #0a1f16;
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow-green);
    border: 1px solid var(--border-glow);
    position: relative;
    transform: translateY(24px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: translateY(0);
}
.modal-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
    color: white;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
}
.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
}
.close-modal-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.85;
    transition: var(--transition);
}
.close-modal-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.modal-body {
    padding: 26px;
}
.modal-footer {
    padding: 18px 26px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    background: rgba(6, 20, 14, 0.5);
}

/* Signature & Contract Details style */
.contract-document {
    background-color: #0e271c;
    border: 2px dashed var(--primary-accent);
    border-radius: var(--radius-sm);
    padding: 22px;
    margin-bottom: 22px;
    color: #e2e8f0;
}
.contract-header {
    text-align: center;
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--secondary-light);
    border-bottom: 2px solid rgba(52, 211, 153, 0.25);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.contract-signatures-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(52, 211, 153, 0.2);
    font-size: 0.85rem;
}
.sig-block {
    background: #06140e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.sig-name {
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}
.sig-status {
    font-size: 0.78rem;
}
.sig-placeholder {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px dashed rgba(255,255,255,0.12);
    margin-top: 10px;
    font-style: italic;
    color: var(--text-muted);
}
.sig-signed {
    font-family: 'Brush Script MT', cursive, sans-serif;
    font-size: 1.2rem;
    color: var(--primary-accent);
    font-weight: bold;
    transform: rotate(-3deg);
}

/* --- Dashboards Panels --- */
.dashboard-section {
    padding: 65px 0;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
}
.dashboard-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border-glow);
}
.dashboard-header {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0b3c29 100%);
    border-bottom: 1px solid rgba(52, 211, 153, 0.25);
    color: white;
    padding: 32px 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}
.dashboard-title-box h2 {
    font-size: 1.75rem;
    font-weight: 900;
}
.dashboard-title-box p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 4px;
}
.dashboard-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 620px;
}
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}
.dashboard-sidebar {
    background-color: rgba(6, 20, 14, 0.95);
    border-left: 1px solid var(--border-color);
    padding: 26px 0;
}
.dashboard-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
}
.dashboard-menu-item button {
    width: 100%;
    text-align: right;
    background: none;
    border: none;
    padding: 15px 26px;
    font-weight: 800;
    font-size: 0.96rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border-right: 4px solid transparent;
    display: flex;
    align-items: center;
    gap: 14px;
}
.dashboard-menu-item button:hover {
    background-color: rgba(52, 211, 153, 0.06);
    color: var(--primary-accent);
}
.dashboard-menu-item button.active {
    background-color: rgba(52, 211, 153, 0.12);
    color: var(--primary-accent);
    border-right-color: var(--primary-light);
}

.dashboard-content {
    padding: 42px;
    background-color: transparent;
}
@media (max-width: 576px) {
    .dashboard-content {
        padding: 22px;
    }
}

.dashboard-pane {
    display: none;
}
.dashboard-pane.active {
    display: block;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
}
.stat-card {
    background: rgba(7, 24, 17, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-green);
    border-color: var(--primary-accent);
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--primary-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    border: 1px solid rgba(52, 211, 153, 0.25);
}
.stat-icon.secondary {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--secondary-light);
    border-color: rgba(251, 191, 36, 0.25);
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-value {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}
.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Table Style */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 22px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(7, 24, 17, 0.6);
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 0.92rem;
}
.table th {
    background-color: #061710;
    color: var(--text-muted);
    font-weight: 800;
    padding: 15px 22px;
    border-bottom: 2px solid var(--border-color);
}
.table td {
    padding: 15px 22px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}
.table tr:last-child td {
    border-bottom: none;
}
.table tbody tr:hover {
    background-color: rgba(52, 211, 153, 0.04);
}

/* Upload styles */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-sm);
    padding: 32px;
    text-align: center;
    background-color: rgba(7, 24, 17, 0.6);
    cursor: pointer;
    transition: var(--transition);
}
.file-upload-wrapper:hover {
    border-color: var(--primary-accent);
    background-color: rgba(5, 150, 105, 0.12);
}
.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.upload-icon {
    font-size: 2.2rem;
    color: var(--primary-accent);
    margin-bottom: 12px;
}
.upload-text {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
}
.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Banner manager item styling */
.banner-manager-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.banner-manager-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: rgba(7, 24, 17, 0.6);
}
.banner-manager-img {
    width: 100%;
    height: 125px;
    object-fit: cover;
}
.banner-manager-actions {
    padding: 10px;
    background-color: rgba(6, 20, 14, 0.9);
    display: flex;
    justify-content: flex-end;
}

/* Footer Section */
footer {
    background-color: #04140e;
    color: white;
    padding: 55px 0 25px 0;
    margin-top: 65px;
    border-top: 4px solid var(--primary-dark);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}
.footer-col h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 22px;
    color: var(--secondary-light);
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
}
.footer-col p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--primary-accent);
    padding-right: 6px;
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 22px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- Balanced Mobile Layout & Responsive Frame Adjustments --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Top Bar & Role Switcher */
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .role-switcher-container {
        flex-direction: column;
        gap: 6px;
    }
    .role-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }
    .role-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
    }

    /* Navigation Header Mobile Frame */
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 14px 16px;
        gap: 14px;
    }
    .site-logo {
        height: 48px;
        width: 48px;
    }
    .logo-text h1 {
        font-size: 1.3rem;
    }
    .logo-text span {
        font-size: 0.7rem;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        width: 100%;
        padding: 0;
    }
    .nav-link {
        font-size: 0.88rem;
        padding: 6px 4px;
    }

    /* Balanced Mobile Hero Slider Section */
    .hero-slider-section {
        height: auto !important;
        min-height: 420px;
        overflow: hidden !important;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }
    .slide-track {
        height: 220px !important;
    }
    .slide-item {
        height: 220px !important;
        background-size: cover !important;
        background-position: center;
    }
    .slide-overlay {
        height: 220px !important;
        background: linear-gradient(180deg, rgba(6, 20, 14, 0.2) 0%, rgba(6, 20, 14, 0.95) 100%) !important;
    }
    .slider-caption-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        margin-top: -30px !important;
        padding: 0 16px !important;
        z-index: 5;
    }
    .slider-caption {
        padding: 20px 18px;
        max-width: 100%;
        background: rgba(10, 31, 22, 0.95);
        border: 1px solid var(--border-glow);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-glow-green);
    }
    .slider-caption h2 {
        font-size: 1.25rem;
        margin-bottom: 8px;
        color: var(--secondary-light);
        line-height: 1.4;
    }
    .slider-caption p {
        font-size: 0.88rem;
        margin-bottom: 14px;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slider-nav {
        display: none;
    }

    /* Search & Filter Card Mobile Frame */
    .search-filter-section {
        margin-top: 15px;
        margin-bottom: 35px;
    }
    .search-card {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
    .search-card h3 {
        font-size: 1.15rem;
    }
    .form-control {
        min-height: 46px;
        font-size: 0.92rem;
    }

    /* Property Grid Mobile Alignment */
    .section-title {
        font-size: 1.6rem;
    }
    .property-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .property-card {
        border-radius: var(--radius-md);
    }
    .card-image-wrap {
        height: 200px;
    }
    .card-title {
        font-size: 1.18rem;
    }
    .card-body {
        padding: 20px 16px;
    }
    .card-meta {
        font-size: 0.82rem;
        gap: 14px;
    }
    
    /* Dashboard Mobile Layout Grid */
    .dashboard-header {
        padding: 22px 20px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .dashboard-title-box h2 {
        font-size: 1.4rem;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-sidebar {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }
    .dashboard-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 10px;
    }
    .dashboard-menu-item button {
        padding: 9px 14px;
        font-size: 0.88rem;
        border-right: none;
        border-bottom: 3px solid transparent;
        border-radius: var(--radius-sm);
        min-height: 44px;
    }
    .dashboard-menu-item button.active {
        border-bottom-color: var(--primary-accent);
    }
    .dashboard-content {
        padding: 22px 14px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .stat-card {
        padding: 16px;
    }

    /* Modal Mobile Framing */
    .modal-card {
        width: 95%;
        max-height: 88vh;
        border-radius: var(--radius-md);
    }
    .modal-header {
        padding: 16px 20px;
    }
    .modal-body {
        padding: 18px 16px;
    }
    .modal-footer {
        padding: 14px 16px;
    }
}

/* Extra small mobile screens (iPhone SE, Compact Phones <= 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .logo-text h1 {
        font-size: 1.18rem;
    }
    .nav-menu {
        gap: 10px;
    }
    .nav-menu li:last-child {
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
    .nav-menu li:last-child button {
        width: 100%;
        min-height: 44px;
    }
    .btn {
        padding: 10px 18px;
        min-height: 44px;
        font-size: 0.9rem;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
}

/* --- Guest Lock & Blur Styling --- */
.guest-price-lock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
}

.guest-notice-box {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px dashed rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    margin-bottom: 18px;
    font-size: 0.88rem;
    color: #fca5a5;
}

.guest-notice-box a {
    color: var(--secondary-light);
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

/* Auth Modal Tabs Styling */
.auth-tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    padding: 14px;
    font-weight: 800;
    font-size: 0.98rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.auth-tab:hover {
    color: var(--text-main);
}
.auth-tab.active {
    color: var(--primary-accent);
    border-bottom-color: var(--primary-light);
    background: rgba(52, 211, 153, 0.05);
}

/* Chat Messages Bubble Styles */
.chat-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: var(--shadow);
    margin-bottom: 6px;
}
.chat-message-bubble.me {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    align-self: flex-start;
    border-bottom-right-radius: 3px;
    box-shadow: var(--shadow-glow-green);
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.chat-message-bubble.other {
    background: rgba(7, 24, 17, 0.85);
    color: var(--text-main);
    align-self: flex-end;
    border-bottom-left-radius: 3px;
    border: 1px solid var(--border-color);
}
.chat-message-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 5px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

/* Active Chat Thread Item in list */
.chat-list-item {
    background: rgba(7, 24, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: right;
}
.chat-list-item:hover, .chat-list-item.active {
    background: rgba(52, 211, 153, 0.12);
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-glow-green);
}
.chat-list-item-title {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-list-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* --- Main Category Tabs Wrapper --- */
.category-tabs-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 15px;
    scrollbar-width: thin;
}
.category-tab-btn {
    background: rgba(10, 31, 22, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.category-tab-btn:hover {
    color: var(--primary-accent);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}
.category-tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-accent);
    box-shadow: var(--shadow-glow-green);
}

/* --- Agricultural & GIS Technical Badges --- */
.soil-badge {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-accent);
    border: 1px solid rgba(52, 211, 153, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.water-badge {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.deed-badge {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.25) 100%);
    color: var(--secondary-light);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: var(--shadow-glow-gold);
}
.ai-valuation-badge {
    background: rgba(147, 51, 234, 0.12);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.3);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
