/* RTL (Right-to-Left) Stylesheet for PedalPath */

html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* Ensure brand logo preserves natural name order and doesn't reverse */
html[dir="rtl"] .logo {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: center;
}

/* Fix Latin/English text punctuation (prevents trailing periods jumping to the start of lines) */
html[dir="rtl"] p,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .h2-style-body,
html[dir="rtl"] .h2-head p,
html[dir="rtl"] .hero-desc,
html[dir="rtl"] .hero2-desc,
html[dir="rtl"] .h2-hero-desc {
    unicode-bidi: plaintext;
}

/* Pricing and units: keep numeral and time unit formatted cleanly (e.g., $12 / hour) */
html[dir="rtl"] .h2-style-price,
html[dir="rtl"] .h2-tour-price,
html[dir="rtl"] .price,
html[dir="rtl"] .tr-price,
html[dir="rtl"] .sv-plan-price,
html[dir="rtl"] .card-price,
html[dir="rtl"] .spot-feature-footer .price {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

/* Navbar & Navigation RTL */
html[dir="rtl"] .nav-container {
    direction: rtl;
}

html[dir="rtl"] .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
}

html[dir="rtl"] .nav-item:last-child .dropdown-menu {
    left: 0;
    right: auto;
}

html[dir="rtl"] .dropdown-toggle i {
    margin-right: 4px;
    margin-left: 0;
}

html[dir="rtl"] .dropdown-item {
    text-align: right;
}

html[dir="rtl"] .dropdown-item i {
    margin-left: 8px;
    margin-right: 0;
}

/* Mobile & Tablet Drawer RTL */
html[dir="rtl"] .nav-menu {
    text-align: right;
}

html[dir="rtl"] .nav-item.dropdown .dropdown-toggle {
    text-align: right;
}

html[dir="rtl"] .nav-item.dropdown .dropdown-menu {
    text-align: right;
    padding: 6px 14px 8px 6px;
}

html[dir="rtl"] .mobile-toggle-btn {
    text-align: right;
}

html[dir="rtl"] .mobile-toggle-left {
    flex-direction: row;
}

html[dir="rtl"] .mobile-toggle-btn.active .toggle-switch-indicator::after,
html[dir="rtl"] .toggle-switch-indicator.on::after {
    transform: translateX(-16px);
}

/* Content, Grids & Cards */
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .hero-desc,
html[dir="rtl"] .booking-head,
html[dir="rtl"] .bb-label,
html[dir="rtl"] .bb-note,
html[dir="rtl"] .step-card,
html[dir="rtl"] .step-card h3,
html[dir="rtl"] .step-card p,
html[dir="rtl"] .safety-point,
html[dir="rtl"] .safety-copy p,
html[dir="rtl"] .station-top,
html[dir="rtl"] .station-meta,
html[dir="rtl"] .footer-col,
html[dir="rtl"] .footer-col h4 {
    text-align: right;
}



html[dir="rtl"] .card-badge {
    right: auto;
    left: 14px;
}

html[dir="rtl"] .img-badge,
html[dir="rtl"] .tour-duration-badge {
    left: auto;
    right: 14px;
}

html[dir="rtl"] .stat-item {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

html[dir="rtl"] .stat-item:first-child {
    border-right: none;
}

/* Footer RTL */
html[dir="rtl"] .footer-links a i {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .footer-contact li {
    text-align: right;
}

html[dir="rtl"] .footer-bottom {
    direction: rtl;
}


html[dir="rtl"] .map-pin i {
    transform: rotate(45deg);
}

html[dir="rtl"] .section-cta-wrap .btn i.bi-arrow-right {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .section-cta-wrap .btn:hover i.bi-arrow-right {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .station-row:hover {
    transform: translateX(-6px);
}

html[dir="rtl"] .step-card::after {
    transform-origin: right;
}

html[dir="rtl"] .testimonial-card {
    text-align: right;
}

html[dir="rtl"] .testimonial-quote-icon {
    right: auto;
    left: 32px;
}

html[dir="rtl"] .carousel-nav-btn i {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .rating-val {
    margin-left: 0;
    margin-right: 6px;
}

@media (max-width: 992px) {
    html[dir="rtl"] .nav-menu {
        text-align: right;
    }
}

@media (max-width: 640px) {
    html[dir="rtl"] .portal-cta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    html[dir="rtl"] .footer-bottom {
        text-align: center;
    }
}

/* ===== Home 2 (RTL) ===== */
html[dir="rtl"] .hero2-copy,
html[dir="rtl"] .hero2-desc,
html[dir="rtl"] .bb-row .bb-label,
html[dir="rtl"] .bento-card,
html[dir="rtl"] .bento-card h3,
html[dir="rtl"] .bento-card p,
html[dir="rtl"] .spot-feature-body,
html[dir="rtl"] .spot-card .card-body h3,
html[dir="rtl"] .spot-card .card-body p,
html[dir="rtl"] .route-copy,
html[dir="rtl"] .route-copy > p,
html[dir="rtl"] .price-card,
html[dir="rtl"] .plan-desc,
html[dir="rtl"] .testimonial-card,
html[dir="rtl"] .cta-copy {
    text-align: right;
}

html[dir="rtl"] .hero2-chip.c1 {
    left: auto;
    right: -6px;
}

html[dir="rtl"] .hero2-chip.c2 {
    right: auto;
    left: -14px;
}

html[dir="rtl"] .hero2-chip.c3 {
    left: auto;
    right: 26px;
}

html[dir="rtl"] .bento-card .bento-top {
    direction: rtl;
}

html[dir="rtl"] .partner-strip {
    text-align: center;
}

html[dir="rtl"] .spot-feature-badge {
    right: auto;
    left: 14px;
}

html[dir="rtl"] .spot-feature-body .eyebrow {
    align-self: flex-start;
}

html[dir="rtl"] .route-meta {
    direction: rtl;
}

html[dir="rtl"] .plan-badge {
    transform: translateX(50%);
    left: auto;
    right: 50%;
}

html[dir="rtl"] .testi-quote {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .testi-stars,
html[dir="rtl"] .testi-badge {
    direction: rtl;
}

html[dir="rtl"] .plan-cta .btn i.bi-arrow-right,
html[dir="rtl"] .cta-actions .btn i.bi-arrow-right {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .h2-style-tag {
    right: 14px;
    left: auto;
}

html[dir="rtl"] .h2-style-link i.bi {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .fl-cat-body,
html[dir="rtl"] .fl-avail-top,
html[dir="rtl"] .fl-cta-copy,
html[dir="rtl"] .fl-table th,
html[dir="rtl"] .fl-table td {
    text-align: right;
}

html[dir="rtl"] .sv-hero-inner,
html[dir="rtl"] .fl-hero-inner,
html[dir="rtl"] .tr-hero-inner,
html[dir="rtl"] .ct-hero-inner {
    text-align: center;
}
html[dir="rtl"] .sv-hero-sub,
html[dir="rtl"] .fl-hero-sub,
html[dir="rtl"] .tr-hero-sub,
html[dir="rtl"] .ct-hero-sub {
    text-align: center;
    margin-inline: auto;
}
html[dir="rtl"] .sv-hero-chips,
html[dir="rtl"] .fl-hero-chips,
html[dir="rtl"] .tr-hero-chips,
html[dir="rtl"] .ct-hero-chips {
    justify-content: center;
}
html[dir="rtl"] .fl-hero-stats,
html[dir="rtl"] .tr-hero-stats {
    justify-content: center;
    text-align: center;
}

html[dir="rtl"] .fl-table thead th i {
    margin-right: 0;
    margin-left: 4px;
}

html[dir="rtl"] .fl-cat-link i.bi {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .fl-care-stats {
    direction: rtl;
}

@media (max-width: 768px) {
    html[dir="rtl"] .hero2-chip.c1 {
        right: 0;
    }
    html[dir="rtl"] .hero2-chip.c2 {
        left: 0;
    }
    html[dir="rtl"] .hero2-chip.c3 {
        right: 12px;
    }
    html[dir="rtl"] .cta-band {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    html[dir="rtl"] .cta-actions {
        justify-content: center;
    }
}

/* ===== Contact page (RTL) ===== */
html[dir="rtl"] .ct-card h3,
html[dir="rtl"] .ct-card p,
html[dir="rtl"] .ct-map-head h3,
html[dir="rtl"] .ct-form-consent label {
    text-align: right;
}

html[dir="rtl"] .ct-card-link i.bi,
html[dir="rtl"] .ct-cta-actions .btn i,
html[dir="rtl"] .ct-form .btn i {
    transform: scaleX(-1);
    display: inline-block;
}

html[dir="rtl"] .ct-card-link:hover i {
    transform: scaleX(-1) translateX(4px);
}

html[dir="rtl"] .ct-select {
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 40px;
}

html[dir="rtl"] .ct-chip i {
    order: 2;
}

/* ===== About page - Our Journey Timeline (RTL) ===== */
html[dir="rtl"] .ab-tl-item:nth-child(odd) {
    align-self: flex-start;
    padding-left: 56px;
    padding-right: 0;
}

html[dir="rtl"] .ab-tl-item:nth-child(even) {
    align-self: flex-end;
    padding-right: 56px;
    padding-left: 0;
}

html[dir="rtl"] .ab-tl-item:nth-child(odd)::before {
    right: auto;
    left: 0;
    background: linear-gradient(to left, var(--border-color), var(--primary-color));
}

html[dir="rtl"] .ab-tl-item:nth-child(even)::before {
    left: auto;
    right: 0;
    background: linear-gradient(to right, var(--border-color), var(--primary-color));
}

html[dir="rtl"] .ab-tl-item:nth-child(odd) .ab-tl-year {
    right: auto;
    left: -38px;
}

html[dir="rtl"] .ab-tl-item:nth-child(even) .ab-tl-year {
    left: auto;
    right: -38px;
}

html[dir="rtl"] .ab-tl-card {
    text-align: right;
}

@media (max-width: 768px) {
    html[dir="rtl"] .ab-timeline::before {
        right: 24px;
        left: auto;
    }

    html[dir="rtl"] .ab-tl-item,
    html[dir="rtl"] .ab-tl-item:nth-child(odd),
    html[dir="rtl"] .ab-tl-item:nth-child(even) {
        padding-right: 68px;
        padding-left: 0;
        text-align: right;
    }

    html[dir="rtl"] .ab-tl-item:nth-child(odd)::before,
    html[dir="rtl"] .ab-tl-item:nth-child(even)::before {
        right: 24px;
        left: auto;
        background: linear-gradient(to left, var(--primary-color), var(--border-color));
    }

    html[dir="rtl"] .ab-tl-item:nth-child(odd) .ab-tl-year,
    html[dir="rtl"] .ab-tl-item:nth-child(even) .ab-tl-year {
        right: -6px;
        left: auto;
    }
}

/* 404 & Coming Soon RTL */
html[dir="rtl"] .err-card,
html[dir="rtl"] .cs-card,
html[dir="rtl"] .cs-route-wrap {
    text-align: right;
}

html[dir="rtl"] .err-card h4 i {
    transform: scaleX(-1);
}

html[dir="rtl"] .err-card:hover h4 i {
    transform: scaleX(-1) translateX(-4px);
}