﻿



html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

html[dir="rtl"] #searchBox {
    left: 0;
    right: auto;
}

html[dir="rtl"] .banner-images {
    direction: ltr;
}




/* فونت فارسی */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'IRANSans', 'Figtree', Tahoma, sans-serif !important;
}

/* ============ اصلاحات RTL عمومی ============ */

/* منوی اصلی */
html[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

/* dropdown منو */
html[dir="rtl"] .dropdown-menu {
    text-align: right;
}

    html[dir="rtl"] .dropdown-menu .nav-link {
        text-align: right;
    }

/* جعبه جستجو */
html[dir="rtl"] #searchBox {
    left: 0 !important;
    right: auto !important;
}

/* آیکون‌های هدر بالا */
html[dir="rtl"] .ri-mail-line,
html[dir="rtl"] .ri-time-line,
html[dir="rtl"] .ri-phone-line,
html[dir="rtl"] .ri-global-line,
html[dir="rtl"] .ri-user-line {
    left: auto !important;
    right: 0 !important;
}

/* آیکون‌های داخل دکمه‌ها */
html[dir="rtl"] .primary-btn i {
    margin-right: 8px;
    margin-left: 0;
}

html[dir="rtl"] .primary-btn.group:hover i,
html[dir="rtl"] .primary-btn:hover i {
    transform: translateX(-4px);
}

/* ============ اصلاح Hero Banner ============ */

/* متن بزرگ CAR / RENTAL */
html[dir="rtl"] .banner-images {
    direction: ltr;
}

    /* موقعیت banner-images در RTL */
    html[dir="rtl"] .banner-images.grid.items-end.md\:absolute {
        right: auto !important;
        left: 0 !important;
    }

    /* لیست features بنر (No Hidden Fees / Free Cancellation / 24-7) */
    html[dir="rtl"] .banner-images ~ ul,
    html[dir="rtl"] ul.ltr\:text-left {
        right: auto !important;
        left: 120px !important;
        text-align: right !important;
    }

        html[dir="rtl"] ul.ltr\:text-left li {
            padding-right: 34px !important;
            padding-left: 0 !important;
            text-align: right;
        }

            html[dir="rtl"] ul.ltr\:text-left li i {
                right: 0 !important;
                left: auto !important;
            }

/* ============ اصلاح فرم‌ها ============ */

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    text-align: right;
    direction: rtl;
}

    html[dir="rtl"] input[type="date"],
    html[dir="rtl"] input[type="time"] {
        direction: ltr;
        text-align: right;
    }

/* placeholder ها */
html[dir="rtl"] ::placeholder {
    text-align: right;
}

/* ============ اصلاح فوتر ============ */

html[dir="rtl"] footer ul li a i {
    margin-left: 8px;
    margin-right: 0;
}

/* ============ اصلاح Sidebar Modal ============ */

html[dir="rtl"] .sidebar-modal .sidebar-modal-body {
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .sidebar-modal .sidebar-navbar-nav ul {
    padding-right: 20px;
    padding-left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    border-left: none;
}

html[dir="rtl"] .sidebar-modal .scrollbar {
    direction: rtl;
}

/* ============ اصلاح Swiper ============ */

html[dir="rtl"] .swiper {
    direction: ltr;
}

    html[dir="rtl"] .swiper .swiper-slide {
        direction: rtl;
    }

/* ============ اصلاح Back to top و Toggle ============ */

html[dir="rtl"] #backToTopBtn {
    left: 30px;
    right: auto;
}

/* ============ اصلاح تصاویر با rtl:-scale-x-100 ============ */
/* اگر Tailwind RTL build نکرده باشه، این‌ها کمک می‌کنند */
html[dir="rtl"] .rtl\:-scale-x-100 {
    transform: scaleX(-1);
}

html[dir="rtl"] .rtl\:rotate-\[5deg\] {
    transform: rotate(5deg);
}

html[dir="rtl"] .rtl\:-rotate-\[5deg\] {
    transform: rotate(-5deg);
}

/* ============ اصلاحات padding/margin بر اساس rtl ============ */

/* تبدیل ltr:pl به rtl:pr */
html[dir="rtl"] .ltr\:pl-\[20px\] {
    padding-left: 0 !important;
    padding-right: 20px !important;
}

html[dir="rtl"] .ltr\:md\:pl-\[23px\] {
    padding-left: 0 !important;
}

@media (min-width: 768px) {
    html[dir="rtl"] .ltr\:md\:pl-\[23px\] {
        padding-right: 23px !important;
    }
}

html[dir="rtl"] .ltr\:pl-\[34px\] {
    padding-left: 0 !important;
    padding-right: 34px !important;
}

html[dir="rtl"] .ltr\:pl-\[58px\] {
    padding-left: 0 !important;
    padding-right: 58px !important;
}

html[dir="rtl"] .ltr\:md\:pl-\[72px\] {
    padding-left: 0 !important;
}

@media (min-width: 768px) {
    html[dir="rtl"] .ltr\:md\:pl-\[72px\] {
        padding-right: 72px !important;
    }
}

html[dir="rtl"] .ltr\:lg\:pl-\[88px\] {
    padding-left: 0 !important;
}

@media (min-width: 1024px) {
    html[dir="rtl"] .ltr\:lg\:pl-\[88px\] {
        padding-right: 88px !important;
    }
}

/* ml به mr */
html[dir="rtl"] .ltr\:ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
}

html[dir="rtl"] .ltr\:-mr-\[30px\] {
    margin-right: 0 !important;
    margin-left: -30px !important;
}

html[dir="rtl"] .ltr\:mr-0 {
    margin-right: 0 !important;
}

/* left/right positioning */
html[dir="rtl"] .ltr\:left-0 {
    left: auto !important;
    right: 0 !important;
}

html[dir="rtl"] .ltr\:right-0 {
    right: auto !important;
    left: 0 !important;
}

html[dir="rtl"] .ltr\:right-\[120px\] {
    right: auto !important;
    left: 120px !important;
}

html[dir="rtl"] .ltr\:right-\[20px\] {
    right: auto !important;
    left: 20px !important;
}

/* text-align */
html[dir="rtl"] .ltr\:text-left {
    text-align: right !important;
}

html[dir="rtl"] .ltr\:text-right {
    text-align: left !important;
}

/* ============ Preloader - مخفی کردن در صورت خطا ============ */
#preloader {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    #preloader.loaded {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* ============ اصلاح Hero title ============ */
html[dir="rtl"] h1.text-\[32px\] {
    line-height: 1.4 !important;
}

@media (min-width: 768px) {
    html[dir="rtl"] h1 {
        line-height: 1.15 !important;
    }
}

/* ============ Fix banner text stroke ============ */
html[dir="rtl"] .banner-images + div,
html[dir="rtl"] [style*="-webkit-text-stroke"] {
    direction: ltr;
}


/* ============================================================
   چیدمان منو در هدر — راه‌حل قطعی
   ============================================================ */

/* دسکتاپ: منو کنار لوگو (سمت راست) قرار می‌گیره */
@media (min-width: 1024px) {
    .navbar-nav.desktop-menu {
        /* در RTL: منو چسبیده به راست، دکمه‌ها چپ */
        /* در LTR: منو چسبیده به چپ، دکمه‌ها راست */
        flex-grow: 1;
        justify-content: flex-start;
    }

    html[dir="rtl"] .navbar-nav.desktop-menu {
        padding-right: 30px;
    }

    html[dir="ltr"] .navbar-nav.desktop-menu {
        padding-left: 30px;
    }
}

/* موبایل: منو مخفی، فقط burger نمایش داده می‌شه */
@media (max-width: 1023px) {
    .navbar-nav.desktop-menu {
        display: none;
    }
}




/* ============================================================
   دکمه تماس شناور - نمایش در همه حالت‌ها
   ============================================================ */

#floatingCallBtn {
    /* موقعیت - روی همه چیز */
    position: fixed !important;
    bottom: 25px;
    left: 25px; /* LTR */
    z-index: 2147483647 !important; /* بالاترین مقدار ممکن */
    /* اندازه */
    width: 70px;
    height: 70px;
    /* شکل */
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    /* 🎨 رنگ سبز تیره (کنتراست بهتر) */
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    /* سایه قوی */
    box-shadow: 0 8px 25px rgba(18, 140, 126, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.7);
    /* انتقال نرم */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* حذف underline */
    text-decoration: none;
    /* اطمینان از نمایش */
    visibility: visible !important;
    opacity: 1 !important;
    /* جدا از بقیه عناصر */
    isolation: isolate;
}

/* RTL: موقعیت سمت راست */
html[dir="rtl"] #floatingCallBtn {
    right: 25px;
    left: auto;
}

/* 🎨 آیکون گوشی - سفید روی سبز (کنتراست بالا) */
#floatingCallBtn i {
    font-size: 34px;
    color: #FFFFFF !important; /* ← سفید برای کنتراست بالا */
    position: relative;
    z-index: 2;
    animation: phoneRing 2s ease-in-out infinite;
    animation-delay: 2s;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

/* حلقه پالس سبز */
#floatingCallBtn .pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulseRing 1.8s ease-out infinite;
    z-index: 1;
}

/* Hover */
#floatingCallBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
}

/* Active (کلیک) */
#floatingCallBtn:active {
    transform: scale(0.95);
}

/* ============================================================
   انیمیشن‌ها
   ============================================================ */

/* لرزش گوشی */
@keyframes phoneRing {
    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30% {
        transform: rotate(-15deg);
    }

    20%, 40% {
        transform: rotate(15deg);
    }

    50% {
        transform: rotate(0deg);
    }
}

/* حلقه پالس */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* ============================================================
   اندازه‌های ریسپانسیو
   ============================================================ */

/* در موبایل‌های کوچک */
@media (max-width: 480px) {
    #floatingCallBtn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }

    html[dir="rtl"] #floatingCallBtn {
        right: 20px;
        left: auto;
    }

    #floatingCallBtn i {
        font-size: 28px;
    }
}

/* در تبلت */
@media (min-width: 768px) and (max-width: 1023px) {
    #floatingCallBtn {
        width: 75px;
        height: 75px;
    }

        #floatingCallBtn i {
            font-size: 36px;
        }
}

/* در دسکتاپ - بزرگ‌تر */
@media (min-width: 1024px) {
    #floatingCallBtn {
        width: 80px;
        height: 80px;
        bottom: 30px;
        left: 30px;
    }

    html[dir="rtl"] #floatingCallBtn {
        right: 30px;
        left: auto;
    }

    #floatingCallBtn i {
        font-size: 38px;
    }
}

/* ============================================================
   احترام به تنظیمات کاربر
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    #floatingCallBtn i,
    #floatingCallBtn .pulse-ring {
        animation: none !important;
    }
}



/* ============================================================
   Banner2 — متن روی تصویر
   ============================================================ */

.banner2-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
    overflow: hidden;
    display: block;
}

.banner2-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: cover;
}

/* لایه تیره بین تصویر و متن */
.banner2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.7) 100% );
    z-index: 1;
}

/* محتوای روی تصویر */
.banner2-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 40px;
    z-index: 2;
}

/* عنوان */
.banner2-title {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.7);
}

/* توضیحات */
.banner2-desc {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.8);
}

/* دکمه تماس */
.banner2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    background-color: var(--color-primary, #D4AF37);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

    .banner2-btn:hover {
        background-color: #000000;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .banner2-btn i {
        font-size: 18px;
    }

/* ============================================================
   ریسپانسیو
   ============================================================ */

/* تبلت */
@media (min-width: 768px) {
    .banner2-image {
        min-height: 500px;
    }

    .banner2-title {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .banner2-desc {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .banner2-btn {
        padding: 15px 40px;
        font-size: 18px;
    }
}

/* دسکتاپ */
@media (min-width: 1024px) {
    .banner2-image {
        min-height: 600px;
    }

    .banner2-title {
        font-size: 52px;
    }

    .banner2-desc {
        font-size: 20px;
    }

    .banner2-btn {
        padding: 16px 45px;
        font-size: 20px;
    }
}

/* دسکتاپ بزرگ */
@media (min-width: 1280px) {
    .banner2-image {
        min-height: 700px;
    }

    .banner2-title {
        font-size: 62px;
    }
}