/* تعريف خط Thmanyah Sans الفاخر المستورد محلياً للموقع */
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('../fonts/thmanyahsans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand-dark: #0F2942;
    --brand-teal: #3A9BB5;
    --brand-coral: #FF7E5F;
    --status-green: #10B981;
    --status-orange: #D97706;
    --bg-clean: #F8FAFC;
}

* {
    font-family: 'Thmanyah Sans', 'Cairo', sans-serif;
    outline: none !important;
}

body {
    background-color: var(--bg-clean);
    color: var(--brand-dark);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* تنسيق شريط التمرير (Scrollbar) المخصص بطابع فاخر */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-teal);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2D869E;
}

/* تأثير الزجاج المتطور (Glassmorphism) للبطاقات والحواجز */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    background: rgba(15, 41, 66, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* تأثير التوهج المرجاني للأزرار المهمة */
.coral-glow {
    box-shadow: 0 4px 14px 0 rgba(255, 126, 95, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coral-glow:hover {
    box-shadow: 0 6px 20px 0 rgba(255, 126, 95, 0.5);
    transform: translateY(-2px);
}

/* تأثير التوهج الأزرق لأزرار الواتساب والحجوزات */
.teal-glow {
    box-shadow: 0 4px 14px 0 rgba(58, 155, 181, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.teal-glow:hover {
    box-shadow: 0 6px 20px 0 rgba(58, 155, 181, 0.45);
    transform: translateY(-2px);
}

/* تأثير التحويم للبطاقات */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -10px rgba(15, 41, 66, 0.15);
}

/* ========================================== */
/* 2. تحريكات موشن (Animations & Transitions) */
/* ========================================== */

/* حركة الطفو الناعمة للسيارات أو العناصر */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}
.animate-float {
    animation: float 5s ease-in-out infinite;
}

/* دخول تدريجي من الأسفل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* دخول تدريجي من اليسار للسيارة في البنر */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.animate-fade-in-left {
    animation: fadeInLeft 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* دخول تدريجي عادي */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* أنيميشن ناعم لفتح النوافذ المنبثقة */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.animate-popup {
    animation: fadeInScale 0.25s ease-out forwards;
}

/* شارات الحالة */
.badge-available {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--status-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-rented {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--status-orange);
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-maintenance {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* إخفاء العناصر بجمالية عند التبديل */
.transition-fade {
    transition: opacity 0.3s ease-in-out;
}

/* ========================================== */
/* 3. حركات ترويجية لا تتوقف (Infinite Loops) */
/* ========================================== */

/* شريط الإعلانات الترويجي اللانهائي */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

/* حركة الطفو الخفيفة المستمرة لأزرار الاتصال */
@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.animate-bounce-slow {
    animation: bounceSlow 3s ease-in-out infinite;
}

/* تأثير التوهج النبضي المستمر (الأخضر للواتساب) */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse-green {
    animation: pulseGreen 2s infinite;
}

/* تأثير التوهج النبضي المستمر (الأزرق للأزرار الهامة) */
@keyframes pulseTeal {
    0% { box-shadow: 0 0 0 0 rgba(58, 155, 181, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(58, 155, 181, 0); }
    100% { box-shadow: 0 0 0 0 rgba(58, 155, 181, 0); }
}
.pulse-teal-btn {
    animation: pulseTeal 2s infinite;
}

/* تأثير التوهج النبضي المستمر (المرجاني لأزرار الحجز الحالية) */
@keyframes pulseCoral {
    0% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 126, 95, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 126, 95, 0); }
}
.pulse-coral-btn {
    animation: pulseCoral 2s infinite;
}

/* ========================================== */
/* 4. تنسيقات الطباعة المخصصة للعقود (Printing) */
/* ========================================== */
@media print {
    /* إخفاء كل عناصر الصفحة تماماً */
    body * {
        visibility: hidden !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* إظهار منطقة العقد فقط وملء كامل الصفحة للطباعة الرسمية */
    #contract-print-area, #contract-print-area * {
        visibility: visible !important;
    }
    
    #contract-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        color: #000 !important;
        background-color: #fff !important;
        direction: rtl;
    }
    
    /* إخفاء أزرار التحكم من العقد المطبوع */
    #contract-print-actions {
        display: none !important;
    }
}
