/* ==========================================================================
   ساق الشمال / عقارات النخبة - ملف الأنماط المخصصة (Custom Styles & Design System)
   ========================================================================== */

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

:root {
    --font-cairo: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --primary-50: #f0fdf4;
    --primary-100: #dcfce7;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    --primary-900: #064e3b;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --navy-900: #0b0f19;
    --navy-800: #0f172a;
    --navy-700: #1e293b;
}

* {
    font-family: var(--font-cairo);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cairo);
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Hide scrollbars smoothly for pills/galleries */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism & Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-pattern {
    background-image: radial-gradient(rgba(16, 185, 129, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
}

.luxury-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
}

.gold-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Hover transitions */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Leaflet maps custom stylings */
.leaflet-container {
    border-radius: 1rem;
    z-index: 10;
    font-family: var(--font-cairo) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 1rem;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-cairo);
    text-align: right;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.leaflet-popup-content {
    margin: 0;
    line-height: 1.5;
}

/* Badges */
.badge-sale {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}
.badge-rent {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}
.badge-invest {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
}
.badge-rented {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
}

/* Animation utilities */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Navigation active indicator */
.nav-link.active {
    color: #059669 !important;
    font-weight: 700;
    position: relative;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100%;
    height: 2.5px;
    background-color: #059669;
    border-radius: 2px;
}

/* Custom form elements */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

/* Print Styles */
@media print {
    header, footer, .no-print, #navbar, .sticky {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
