/* Arabic (right-to-left) adjustments — applied when i18n.js sets dir="rtl".
   Pages using it must also load the Cairo font from Google Fonts. */

/* Arabic font: Playfair Display and Poppins have no Arabic letters */
[lang="ar"] body,
[lang="ar"] input,
[lang="ar"] select,
[lang="ar"] button {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

[lang="ar"] h1,
[lang="ar"] h2,
[lang="ar"] h3,
[lang="ar"] .section-title {
    font-family: 'Cairo', serif;
}

/* Keep the brand name in its Latin font and order */
[dir="rtl"] .logo,
[dir="rtl"] .logo-large,
[dir="rtl"] .footer-logo {
    direction: ltr;
    font-family: 'Playfair Display', serif;
}

/* Homepage search box */
[dir="rtl"] .input-group {
    border-right: none;
    border-left: 1px solid #ddd;
}

[dir="rtl"] .input-group:last-of-type {
    border-left: none;
}

[dir="rtl"] .input-group i {
    margin-right: 0;
    margin-left: 10px;
}

/* Icons placed before text */
[dir="rtl"] .filter-chip i,
[dir="rtl"] .hotel-amenities i {
    margin-right: 0;
    margin-left: 4px;
}

[dir="rtl"] .btn-hotels i,
[dir="rtl"] .city-badge i {
    margin-right: 0;
    margin-left: 5px;
}

[dir="rtl"] .filter-input i {
    margin-right: 0;
    margin-left: 8px;
}

/* Badges on images */
[dir="rtl"] .unesco-badge {
    right: auto;
    left: 15px;
}

[dir="rtl"] .city-badge {
    left: auto;
    right: 15px;
}

/* Notice boxes */
[dir="rtl"] .price-notice {
    border-left: none;
    border-right: 4px solid var(--gold);
}

/* Letter spacing breaks joined Arabic letters */
[lang="ar"] .filter-group label,
[lang="ar"] .dest-tags span {
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 768px) {
    [dir="rtl"] .input-group {
        border-left: none;
    }
}
