/*
 * RTL (Right-to-Left) Stylesheet for Arabic & Hebrew
 * Applied automatically when locale is 'ar' or 'he'
 */

/* ---- Page Direction ---- */
html[dir="rtl"],
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* ---- Navigation ---- */
html[dir="rtl"] .nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

/* Mobile nav: open from left instead of right */
html[dir="rtl"] .nav-links {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(201, 169, 89, 0.15);
}

html[dir="rtl"] .nav-links.active {
    left: 0;
}

/* ---- Footer ---- */
html[dir="rtl"] .footer-grid {
    direction: rtl;
}

html[dir="rtl"] .footer-socials {
    flex-direction: row-reverse;
}

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

/* ---- Typography & Spacing ---- */
html[dir="rtl"] .subtitle::before {
    margin-right: 0;
    margin-left: 0.75rem;
}

html[dir="rtl"] .subtitle {
    flex-direction: row-reverse;
}

/* ---- Hero Section ---- */
html[dir="rtl"] .hero-content {
    text-align: center; /* keep centered for hero */
}

/* ---- Intro Grid ---- */
html[dir="rtl"] .intro-grid {
    direction: rtl;
}

/* ---- Feature Cards ---- */
html[dir="rtl"] .room-amenities {
    flex-direction: row-reverse;
}

/* ---- Contact Form ---- */
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form textarea,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea,
html[dir="rtl"] .form-group select {
    text-align: right;
    direction: rtl;
}

/* ---- Icons & Read More ---- */
html[dir="rtl"] .read-more {
    flex-direction: row-reverse;
}

html[dir="rtl"] .read-more i {
    transform: scaleX(-1);
    margin-right: 0.5rem;
    margin-left: 0;
}

/* ---- Page Header Content ---- */
html[dir="rtl"] .page-header-content {
    text-align: right;
}

/* ---- Widget Items ---- */
html[dir="rtl"] .widget-item {
    text-align: right;
}

/* ---- Experience Rows: Flip logic ---- */
html[dir="rtl"] .experience-row:nth-child(even) {
    direction: ltr;
}
html[dir="rtl"] .experience-row:nth-child(odd) {
    direction: rtl;
}
html[dir="rtl"] .experience-row > * {
    direction: rtl;
}

/* ---- Package Grid ---- */
html[dir="rtl"] .package-grid {
    direction: rtl;
}

/* ---- Booking Widget ---- */
html[dir="rtl"] .glass-booking-widget {
    flex-direction: row-reverse;
}

/* ---- Dropdown RTL Overrides ---- */
html[dir="rtl"] .nav-dropdown-menu a {
    text-align: right;
}

html[dir="rtl"] .nav-dropdown-toggle {
    flex-direction: row-reverse;
}
