/* ==========================================================================
   REAL ESTATE PRO - ULTRA MODERN LUXURY DESIGN SYSTEM
   Theme: Vibrant Real Estate Red-Orange #F73C04, Rich Obsidian Dark #0B0F19,
   Glassmorphism, High-End Card Elevation, Responsive RTL/LTR
   Fonts: Outfit & Inter (English) | Cairo (Arabic)
   ========================================================================== */

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

:root {
    --primary-color: #F73C04;
    --primary-hover: #E03502;
    --primary-light: #FFF2EE;
    --primary-gradient: linear-gradient(135deg, #F73C04 0%, #FF5A26 100%);
    --primary-glow: none;

    --dark-bg: #0B0F19;
    --dark-surface: #111827;
    --dark-card: #182234;
    --dark-border: rgba(255, 255, 255, 0.08);

    --light-bg: #F8FAFC;
    --light-card: #FFFFFF;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-white: #FFFFFF;

    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #0284C7;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 6px 16px rgba(0, 0, 0, 0.08);

    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-arabic: 'Cairo', system-ui, sans-serif;
}

/* Base Body */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, body.rtl {
    font-family: var(--font-arabic);
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-brand-primary {
    background: var(--primary-gradient);
    color: var(--text-white) !important;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-brand-primary:hover, .btn-brand-primary:focus {
    transform: translateY(-1px);
    background: var(--primary-hover);
    color: var(--text-white) !important;
    box-shadow: 0 2px 6px rgba(247, 60, 4, 0.2);
}

.btn-brand-primary:active {
    transform: translateY(0);
}

.btn-brand-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 1.5px solid var(--primary-color);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.4rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-brand-outline:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* ==========================================================================
   NAVIGATION & TOPBAR
   ========================================================================== */
.top-bar {
    background-color: #080C14;
    color: #94A3B8;
    font-size: 0.8125rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

.main-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: var(--shadow-sm);
}

.brand-logo-badge {
    background: var(--primary-gradient);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-secondary) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   HERO SEARCH SECTION - CLEAN MODERN
   ========================================================================== */
.hero-search-section {
    position: relative;
    background: #0B0F19;
    padding: 4.5rem 0 5.5rem 0;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hero-search-box {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 5;
}

.nav-tabs-hero {
    display: inline-flex;
    background: #F1F5F9;
    padding: 0.3rem;
    border-radius: var(--radius-full);
    border: none;
    margin-bottom: 1.25rem;
    gap: 0.3rem;
}

.nav-tabs-hero .nav-link {
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.45rem 1.2rem !important;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-tabs-hero .nav-link.active {
    background: var(--primary-gradient);
    color: var(--text-white) !important;
    box-shadow: 0 2px 4px rgba(247, 60, 4, 0.2);
}

.hero-input-group {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.35rem 0.75rem;
    transition: all 0.2s ease;
}

.hero-input-group:focus-within {
    background: #FFFFFF;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(247, 60, 4, 0.1);
}

.hero-input-group select, .hero-input-group input {
    border: none;
    background: transparent;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.hero-input-group select:focus, .hero-input-group input:focus {
    outline: none;
    box-shadow: none;
    background: transparent;
}

/* ==========================================================================
   PROPERTY CARDS - CRISP CLEAN MODERN
   ========================================================================== */
.property-card {
    background: var(--light-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.property-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
    background-color: #E2E8F0;
    overflow: hidden;
}

.property-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-card:hover .property-card-img {
    transform: scale(1.03);
}

.property-badges-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.glass-badge {
    background: rgba(15, 23, 42, 0.7);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-full);
}

/* ==========================================================================
   FAVORITE / LOVE BUTTON
   ========================================================================== */
.btn-favorite-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-favorite-circle:hover {
    transform: scale(1.08);
    color: #EF4444;
    background: #FFFFFF;
}

.btn-favorite-circle.active, .btn-favorite-circle.is-favorite {
    color: #EF4444 !important;
    background: #FFFFFF;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1.1); }
}

.property-card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.property-specs-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 0;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
    margin: 0.85rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.property-spec-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.property-spec-item i {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.custom-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
}

[dir="rtl"] .custom-toast-container {
    right: auto;
    left: 24px;
}

.custom-toast {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    color: #FFFFFF;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   PAGE LOADER OVERLAY
   ========================================================================== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

#pageLoader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner-brand {
    width: 50px;
    height: 50px;
    border: 3px solid #F1F5F9;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spinLoader 0.75s linear infinite;
}

@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FLOATING ACTION BUTTONS (MESSENGER & SCROLL TO TOP)
   ========================================================================== */
.floating-actions-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

[dir="rtl"] .floating-actions-container {
    right: auto;
    left: 24px;
}

.floating-messenger-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0084FF 0%, #00C6FF 100%);
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.35);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-messenger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.5);
    color: #FFFFFF !important;
}

.scroll-to-top-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    background-color: #0F172A;
    color: #FFFFFF;
    border-color: #0F172A;
}
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--dark-surface);
    color: #94A3B8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--dark-border);
}

.admin-sidebar .nav-link {
    color: #94A3B8 !important;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: #FFFFFF !important;
    background: var(--primary-gradient);
}

.admin-sidebar-heading {
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: #64748B;
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
    font-weight: 700;
}

.admin-content {
    flex-grow: 1;
    background-color: #F8FAFC;
    min-width: 0;
}

.admin-topbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-main {
    padding: 2rem;
}

.kpi-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.kpi-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
