/*
 * Primary styles now live in app/assets/stylesheets/application.tailwind.css
 * so they compile into app/assets/builds/tailwind.css.
 */

.select2-container .select2-selection--single {
  height: 40px;
  min-height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px;
  padding-left: 0.75rem;
  padding-right: 2rem;
  color: #111827;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  right: 0.35rem;
}

.select2-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
}

.select2-container--open {
  z-index: 3000;
}

.select2-search--dropdown .select2-search__field {
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  padding: 0.4rem 0.55rem;
  font-size: 0.9rem;
}

.select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: #05a8c7;
  box-shadow: 0 0 0 2px rgba(5, 168, 199, 0.16);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: #05a8c7;
}

.select2-results__option {
  font-size: 0.95rem;
}

/* ── Registration page — Select2 fields match 60px input height ── */
.reg-panel--right .select2-container .select2-selection--single {
  height: 60px !important;
  min-height: 60px !important;
  border-radius: 16px !important;
  border: 1px solid #e0e0e0 !important;
  background: #fff !important;
}

.reg-panel--right .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 60px !important;
  padding-left: 20px !important;
  padding-right: 40px !important;
  font-size: 14px !important;
  color: #0f1015 !important;
}

.reg-panel--right .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 60px !important;
  top: 0 !important;
  right: 12px !important;
}

.reg-panel--right .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9ca3af !important;
  line-height: 60px !important;
}

/* ══════════════════════════════════════════════════════════
   RTL — Sign-in pages (agent / supplier / admin)
══════════════════════════════════════════════════════════ */

/* Card text: right-align all header & form copy */
[dir="rtl"] .signin-card__eyebrow,
[dir="rtl"] .signin-card__title,
[dir="rtl"] .signin-card__subtitle {
  text-align: right;
}

[dir="rtl"] .signin-field > span:first-child,
[dir="rtl"] .signin-field label {
  text-align: right;
  display: block;
}

[dir="rtl"] .signin-input {
  text-align: right;
  padding-left: 20px;
  padding-right: 20px;
}

/* Input with toggle button — reserve space on the left in RTL */
[dir="rtl"] .signin-password-field .signin-input {
  padding-right: 20px !important;
  padding-left: 4.5rem !important;
}

/* User-type toggle row — reverse order */
[dir="rtl"] .signin-user-type {
  flex-direction: row-reverse;
}

/* Signup/forgot links row */
[dir="rtl"] .signin-row--between {
  flex-direction: row-reverse;
}

/* Decorative elements: mirror left↔right */
[dir="rtl"] .signin-deco--path-left {
  left: auto !important;
  right: 3.6%;
  transform: scaleX(-1);
}
[dir="rtl"] .signin-deco--path-right {
  left: auto !important;
  right: 61.3%;
  transform: scaleX(-1);
}
[dir="rtl"] .signin-deco--plane {
  left: auto !important;
  right: 76.6%;
  transform: scaleX(-1);
}

/* ══════════════════════════════════════════════════════════
   RTL — Registration page
══════════════════════════════════════════════════════════ */

/* Panel border radii swap because flex row reverses in RTL */
[dir="rtl"] .reg-panel--left {
  border-radius: 0 35px 35px 0;
}
[dir="rtl"] .reg-panel--right {
  border-radius: 24px 0 0 24px;
}

/* Left panel: flip all absolute-positioned elements */
[dir="rtl"] .reg-panel__label {
  left: auto !important;
  right: 145px;
  text-align: center;
}
[dir="rtl"] .reg-panel__logo-wrap {
  left: auto !important;
  right: calc(50% - 94.275px);
}
[dir="rtl"] .reg-panel__body-block {
  left: auto !important;
  right: 26.06px;
  text-align: right;
}
[dir="rtl"] .reg-panel__list {
  padding-left: 0;
  padding-right: 20px;
}

/* Decoratives: mirror */
[dir="rtl"] .reg-deco--path {
  left: auto !important;
  right: -97.65px;
  transform: scaleX(-1);
}
[dir="rtl"] .reg-deco--dotted {
  left: auto !important;
  right: 367.95px;
}
[dir="rtl"] .reg-deco--plane {
  left: auto !important;
  right: 467.99px;
  transform: scaleX(-1);
}

/* Right panel — form text alignment */
[dir="rtl"] .reg-section__eyebrow,
[dir="rtl"] .reg-section__title,
[dir="rtl"] .reg-section__subtitle,
[dir="rtl"] .reg-supplier-header,
[dir="rtl"] .reg-supplier-title {
  text-align: right;
}

[dir="rtl"] .reg-panel--right .field > span:first-child,
[dir="rtl"] .reg-panel--right label > span:first-child {
  text-align: right;
  display: block;
}

[dir="rtl"] .reg-panel--right .signin-input {
  text-align: right;
}

/* Phone row — reverse dial code + number order */
[dir="rtl"] .reg-phone-row {
  flex-direction: row-reverse;
}

/* Select2 in registration: flip arrow to left in RTL */
[dir="rtl"] .reg-panel--right .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto !important;
  left: 12px !important;
}
[dir="rtl"] .reg-panel--right .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 40px !important;
  padding-right: 20px !important;
  text-align: right !important;
}

/* Terms / footer */
[dir="rtl"] .reg-terms-label {
  flex-direction: row-reverse;
  text-align: right;
}
[dir="rtl"] .reg-login-text {
  text-align: right;
}

/* Responsive RTL */
@media (max-width: 1024px) {
  [dir="rtl"] .reg-panel--left {
    border-radius: 24px 24px 0 0;
  }
  [dir="rtl"] .reg-panel--right {
    border-radius: 0 0 24px 24px;
  }
}

/* ── Auth dropdown — applied globally, outside @layer so they beat page-level CSS resets ── */
.nav-auth-dropdown {
  position: relative;
}

.nav-auth-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  min-width: 160px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
  z-index: 200;
  padding: 0.35rem;
}

.nav-auth-dropdown__menu--right {
  left: auto;
  right: 0;
}

.nav-auth-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.52rem 0.85rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2b33;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-auth-dropdown__item:hover {
  background: #f1f5f9;
  color: #05a8c7;
}

/* Blog page topbar overrides */
.blog-topbar .nav-auth-dropdown__menu {
  top: calc(100% + 8px);
  z-index: 200;
}

/* ════════════════════════════════════════════════
   LANGUAGE SWITCHER BUTTON
════════════════════════════════════════════════ */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1.5px solid #fff;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.lang-switcher-btn:hover {
  background: #fff;
  color: #01a9c7;
}
.lang-switcher-form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════
   PUBLIC HEADER LOGO (display + sizing hardening)
════════════════════════════════════════════════ */
.pub-header__logo {
  min-width: 170px;
}

.pub-header__logo-image {
  display: block;
  width: auto;
  max-width: min(230px, 34vw);
  height: 52px;
  object-fit: contain;
}

.home-hero .pub-header__logo-image {
  max-width: min(260px, 38vw);
  height: 84px;
}

@media (max-width: 900px) {
  .pub-header__logo {
    min-width: 150px;
  }

  .pub-header__logo-image {
    max-width: 180px;
    height: 62px;
  }
}

@media (max-width: 600px) {
  .pub-header__logo {
    min-width: 118px;
  }

  .pub-header__logo-image {
    max-width: 140px;
    height: 44px;
  }
}

/* ════════════════════════════════════════════════
   HEADER BUTTON SIZE NORMALIZATION (Small)
════════════════════════════════════════════════ */
.pub-header__actions .lang-switcher-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.pub-header__actions > form.inline,
.di-topauth > form.inline,
.ds-topauth > form.inline,
.hp-topauth > form.inline,
.blog-topauth > form.inline,
.topauth > form.inline,
.terms-auth > form.inline,
.privacy-auth > form.inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.pub-header__actions .lang-switcher-btn,
.pub-header__btn,
.home-hero .pub-header__btn,
.blog-auth-btn,
.auth-btn,
.di-auth-btn,
.ds-auth-btn,
.hp-auth-btn,
.terms-pill,
.privacy-pill {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.di-topauth .lang-switcher-btn,
.ds-topauth .lang-switcher-btn,
.home-topauth .lang-switcher-btn {
  height: 32px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  color: #01a9c7;
  border-color: #01a9c7;
}
.di-topauth .lang-switcher-btn:hover,
.ds-topauth .lang-switcher-btn:hover,
.home-topauth .lang-switcher-btn:hover {
  background: #01a9c7;
  color: #fff;
}

/* Tailwind rounded-full override for home & about nav auth buttons */
.home-topauth a, .home-topauth button,
.ab-nav-actions a, .ab-nav-actions button {
  border-radius: 7px !important;
}

/* Light-background page headers: teal button instead of white-on-white */
.pub-header__actions .lang-switcher-btn,
.terms-auth .lang-switcher-btn,
.privacy-auth .lang-switcher-btn,
.cp-auth .lang-switcher-btn,
.topauth .lang-switcher-btn,
.ab-nav-actions .lang-switcher-btn {
  background: transparent;
  color: #01a9c7;
  border-color: #01a9c7;
}
.pub-header__actions .lang-switcher-btn:hover,
.terms-auth .lang-switcher-btn:hover,
.privacy-auth .lang-switcher-btn:hover,
.cp-auth .lang-switcher-btn:hover,
.topauth .lang-switcher-btn:hover,
.ab-nav-actions .lang-switcher-btn:hover {
  background: #01a9c7;
  color: #fff;
}

/* ════════════════════════════════════════════════
   RTL (Arabic) GLOBAL OVERRIDES
   Applied to all pages when lang=ar / dir=rtl
════════════════════════════════════════════════ */

/* ── 1. TYPOGRAPHY — Force Cairo font for all text ── */
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] li,
[dir="rtl"] span:not([class*="fa"]):not([class*="icon"]),
[dir="rtl"] button, [dir="rtl"] input,
[dir="rtl"] textarea, [dir="rtl"] select,
[dir="rtl"] label, [dir="rtl"] td, [dir="rtl"] th {
  font-family: 'Cairo', 'DM Sans', Arial, sans-serif !important;
}

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

/* ── 2. INPUT FIELDS ── */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
  direction: rtl;
}
[dir="rtl"] input::placeholder,
[dir="rtl"] textarea::placeholder {
  text-align: right;
}

/* ── 3. NAVIGATION AUTH DROPDOWN ── */
[dir="rtl"] .nav-auth-dropdown__menu {
  left: auto;
  right: 0;
}
[dir="rtl"] .nav-auth-dropdown__menu--right {
  right: auto;
  left: 0;
}

/* ── 4. FLASH MESSAGES ── */
[dir="rtl"] .flash-message,
[dir="rtl"] .flash {
  text-align: right;
}

/* ── 5. AGENT PORTAL HEADER (ah-*) ── */
/* Topbar: flip left/right groups */
[dir="rtl"] .ah-topbar__inner,
[dir="rtl"] .ah-mainnav__inner {
  flex-direction: row-reverse;
}
[dir="rtl"] .ah-topbar__left,
[dir="rtl"] .ah-topbar__right {
  flex-direction: row-reverse;
}
[dir="rtl"] .ah-topbar__item,
[dir="rtl"] .ah-topbar__btn,
[dir="rtl"] .ah-agent-badge {
  flex-direction: row-reverse;
}
/* Topbar dropdown menu: anchor to right in RTL */
[dir="rtl"] .ah-topbar__menu {
  left: auto;
  right: 0;
}
/* Main nav: flip items */
[dir="rtl"] .ah-nav {
  flex-direction: row-reverse;
}
[dir="rtl"] .ah-nav__btn {
  flex-direction: row-reverse;
}
/* Nav dropdowns: anchor to right */
[dir="rtl"] .ah-nav__menu {
  left: auto;
  right: 0;
}
[dir="rtl"] .ah-nav__menu--right {
  right: auto;
  left: 0;
}
[dir="rtl"] .ah-nav__menu-item {
  text-align: right;
  flex-direction: row-reverse;
}
[dir="rtl"] .ah-nav__menu-header {
  text-align: right;
}
/* Subheader currency dropdown: give Arabic labels enough room and prevent clipping */
[dir="rtl"] .ah-subheader__currency-menu {
  left: 0;
  right: auto;
  width: clamp(320px, 38vw, 520px);
  max-width: calc(100vw - 0.75rem);
  box-sizing: border-box;
  max-height: min(64vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
}
[dir="rtl"] .ah-subheader__currency-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
[dir="rtl"] .ah-subheader__currency-item {
  min-height: 2rem;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  unicode-bidi: plaintext;
}
/* Sidebar: flip to right side */
[dir="rtl"] .ah-sidebar {
  right: 0;
  left: auto;
  border-left: none;
  border-right: 1px solid #e5e7eb;
}

/* ── 6. CART SIDEBAR (cs-*) — slide in from left in RTL ── */
[dir="rtl"] .cs-overlay {
  justify-content: flex-start;
}
[dir="rtl"] .cs-overlay--hidden .cs-panel {
  transform: translateX(-100%);
}
[dir="rtl"] .cs-panel {
  box-shadow: 6px 0 32px rgba(0, 0, 0, 0.18);
}
[dir="rtl"] .cs-panel__header {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  [dir="rtl"] .ah-subheader__currency-menu {
    left: 0;
    width: min(96vw, 420px);
  }

  [dir="rtl"] .ah-subheader__currency-grid {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }
}

/* ── 7. FOOTER (sf-*) ── */
[dir="rtl"] .sf-top {
  flex-direction: row-reverse;
}
[dir="rtl"] .sf-cols {
  flex-direction: row-reverse;
}
[dir="rtl"] .sf-col {
  text-align: right;
}
[dir="rtl"] .sf-col ul {
  padding-right: 0;
  padding-left: 0;
  list-style-position: inside;
}
[dir="rtl"] .sf-bottom {
  flex-direction: row-reverse;
}
[dir="rtl"] .sf-sub {
  flex-direction: row-reverse;
}

/* ── 8. PORTAL BANNER ── */
[dir="rtl"] .portal-banner__content {
  text-align: right;
}
[dir="rtl"] .portal-banner__bullets {
  justify-content: flex-start;
}
[dir="rtl"] .portal-banner__bullets span {
  padding-left: 0;
  padding-right: 0.8rem;
}
[dir="rtl"] .portal-banner__bullets span::before {
  left: auto;
  right: 0;
}

/* ── 9. PORTAL SEARCH TABS (rayna-tabs) ── */
[dir="rtl"] .rayna-tabs {
  flex-direction: row-reverse;
}
[dir="rtl"] .rayna-tab {
  flex-direction: row-reverse;
}

/* ── 10. RAYNA SEARCH FORM ROWS ── */
[dir="rtl"] .rayna-form__row,
[dir="rtl"] .rayna-form__actions,
[dir="rtl"] .portal-search__row {
  flex-direction: row-reverse;
}
[dir="rtl"] .rayna-form__label {
  text-align: right;
}
[dir="rtl"] .rayna-field__label {
  text-align: right;
  display: block;
}

/* ── 11. AGENT DASHBOARD ── */
[dir="rtl"] .agent-dash-hero__panel {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-hero__copy {
  text-align: right;
}
[dir="rtl"] .agent-dash-hero__actions {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-strip {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-strip__item {
  text-align: right;
  flex-direction: row-reverse;
  align-items: flex-end;
}
[dir="rtl"] .agent-dash-kpis__grid {
  direction: rtl;
}
[dir="rtl"] .agent-dash-kpi {
  text-align: right;
}
[dir="rtl"] .agent-dash-card__header {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-card__header > div {
  text-align: right;
}
[dir="rtl"] .agent-dash-chart__legend {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-chart__legend span {
  flex-direction: row-reverse;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
[dir="rtl"] .agent-dash-status__row {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-list__item {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-table th,
[dir="rtl"] .agent-dash-table td {
  text-align: right;
}
[dir="rtl"] .agent-dash-filters {
  flex-direction: row-reverse;
}
[dir="rtl"] .agent-dash-links {
  text-align: right;
}
[dir="rtl"] .agent-dash-empty {
  text-align: right;
}
[dir="rtl"] .agent-dash-empty__actions {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

/* ── 12. HOTEL SEARCH (hsr-*) ── */
[dir="rtl"] .hsr-layout {
  flex-direction: row-reverse;
}
[dir="rtl"] .hsr-filters-form {
  text-align: right;
}
[dir="rtl"] .hsr-filter-header {
  flex-direction: row-reverse;
}
[dir="rtl"] .hsr-hotel-card__row,
[dir="rtl"] .hsr-hotel-card__meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .hsr-hotel-card {
  text-align: right;
}
[dir="rtl"] .hsr-hotel-card__info {
  text-align: right;
}
[dir="rtl"] .hsr-hotel-card__actions {
  flex-direction: row-reverse;
}

/* ── 13. HOTEL DETAIL (hd-*) ── */
[dir="rtl"] .hd-breadcrumb {
  flex-direction: row-reverse;
}
[dir="rtl"] .hd-layout {
  flex-direction: row-reverse;
}
[dir="rtl"] .hd-hotel-header,
[dir="rtl"] .hd-hotel-meta {
  flex-direction: row-reverse;
}
[dir="rtl"] .hd-room-row {
  direction: rtl;
}
[dir="rtl"] .hd-section-title {
  text-align: right;
}

/* ── 14. ABOUT PAGE (ab-*) ── */
[dir="rtl"] .ab-hero-inner {
  direction: rtl;
}
[dir="rtl"] .ab-hero h1,
[dir="rtl"] .ab-hero-desc {
  text-align: right;
}
[dir="rtl"] .ab-who__cards {
  flex-direction: row-reverse;
}
[dir="rtl"] .ab-offer-inner,
[dir="rtl"] .ab-for-grid,
[dir="rtl"] .ab-why-inner {
  direction: rtl;
}
[dir="rtl"] .ab-sec-title,
[dir="rtl"] .ab-offer-card,
[dir="rtl"] .ab-for-item,
[dir="rtl"] .ab-why-item {
  text-align: right;
}

/* ── 15. CONTACT PAGE ── */
[dir="rtl"] .ct-grid,
[dir="rtl"] .contact-grid {
  direction: rtl;
}
[dir="rtl"] .ct-info,
[dir="rtl"] .ct-form {
  text-align: right;
}
[dir="rtl"] .ct-detail {
  flex-direction: row-reverse;
}

/* ── 16. BLOG PAGE ── */
[dir="rtl"] .bl-posts,
[dir="rtl"] .blog-grid {
  direction: rtl;
}
[dir="rtl"] .bl-card,
[dir="rtl"] .blog-card {
  text-align: right;
}

/* ── 17. DESTINATIONS PAGE ── */
[dir="rtl"] .dest-grid {
  direction: rtl;
}

/* ── 18. AUTH / DEVISE PAGES ── */
[dir="rtl"] .auth-card,
[dir="rtl"] .auth-form {
  text-align: right;
}
[dir="rtl"] .auth-form label {
  text-align: right;
  display: block;
}
[dir="rtl"] .form-field__label {
  text-align: right;
  display: block;
}

/* ── 19. SELECT2 — RTL dropdown positioning ── */
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 0.75rem !important;
  padding-left: 2rem !important;
  text-align: right;
}
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
  right: auto !important;
  left: 0.35rem !important;
}
[dir="rtl"] .select2-results__option {
  text-align: right;
}

/* ── 20. GENERAL FORM FIELDS ── */
[dir="rtl"] .field label,
[dir="rtl"] .form-group label,
[dir="rtl"] form label {
  text-align: right;
  display: block;
}
[dir="rtl"] .field-with-errors label {
  text-align: right;
}

/* ── 21. TAILWIND RTL HELPERS ── */
[dir="rtl"] .ltr\:ml-auto { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ltr\:mr-auto { margin-right: 0; margin-left: auto; }

/* ── 22. PUB HEADER (public pages) ── */
[dir="rtl"] .pub-header__card,
[dir="rtl"] .pub-header__actions,
[dir="rtl"] .pub-header__nav {
  flex-direction: row-reverse;
}

/* ── 23. HOME PAGE SEARCH TABS ── */
[dir="rtl"] .hp-search-tabs,
[dir="rtl"] .hp-search-form__row {
  flex-direction: row-reverse;
}

/* ── 24. SIDEBAR CART (on search pages) ── */
[dir="rtl"] .sc-cart,
[dir="rtl"] .sc-cart__header,
[dir="rtl"] .sc-cart__item {
  text-align: right;
  flex-direction: row-reverse;
}

/* ── 25. CHECKOUT / BOOKING FORMS ── */
[dir="rtl"] .checkout-form,
[dir="rtl"] .booking-form {
  text-align: right;
}
[dir="rtl"] .checkout-form label,
[dir="rtl"] .booking-form label {
  text-align: right;
}

/* ── 26. AGENT PORTAL TABLES ── */
[dir="rtl"] .records-table th,
[dir="rtl"] .records-table td,
[dir="rtl"] table th,
[dir="rtl"] table td {
  text-align: right;
}

/* ── 27. BREADCRUMBS ── */
[dir="rtl"] .breadcrumb,
[dir="rtl"] .hd-breadcrumb {
  flex-direction: row-reverse;
}

/* ── 28. PRIVACY / TERMS / CANCELLATION PAGES ── */
[dir="rtl"] .prose,
[dir="rtl"] .legal-content,
[dir="rtl"] .policy-section {
  text-align: right;
}

/* ── 29. STAR RATING ── */
[dir="rtl"] .star-rating {
  flex-direction: row-reverse;
}

/* ── 30. PAGE LOADER ── */
[dir="rtl"] .page-loader__text {
  text-align: center;
}

/* ── 31. BLOG DETAIL PAGE (bd-*) ── */
[dir="rtl"] .bd-page,
[dir="rtl"] .bd-body,
[dir="rtl"] .bd-side-card,
[dir="rtl"] .bd-related-card,
[dir="rtl"] .bd-related-head {
  text-align: right;
}
[dir="rtl"] .bd-hero-card::before {
  right: auto;
  left: -70px;
}
[dir="rtl"] .bd-hero-card::after {
  left: auto;
  right: -80px;
}
[dir="rtl"] .bd-crumbs,
[dir="rtl"] .bd-actions,
[dir="rtl"] .bd-meta,
[dir="rtl"] .bd-meta-chip,
[dir="rtl"] .bd-cta a,
[dir="rtl"] .bd-related-head {
  flex-direction: row-reverse;
}
[dir="rtl"] .bd-back svg {
  transform: rotate(180deg);
}
[dir="rtl"] .bd-cta a svg {
  transform: rotate(180deg);
}
[dir="rtl"] .bd-grid,
[dir="rtl"] .bd-related-grid {
  direction: rtl;
}
[dir="rtl"] .bd-hero-summary li,
[dir="rtl"] .bd-info-list li {
  flex-direction: row-reverse;
}
[dir="rtl"] .bd-prose ul,
[dir="rtl"] .bd-prose ol {
  padding-left: 0;
  padding-right: 24px;
}
[dir="rtl"] .bd-prose blockquote {
  border-left: 0;
  border-right: 4px solid #f0974d;
}
[dir="rtl"] .bd-author {
  direction: rtl;
}
[dir="rtl"] .bd-toc-item {
  border-left: 0;
  border-right: 2px solid #d5e0ea;
  padding-left: 0;
  padding-right: 9px;
}
[dir="rtl"] .bd-toc-item--h3 {
  margin-left: 0;
  margin-right: 10px;
}
[dir="rtl"] .bd-related-meta,
[dir="rtl"] .bd-related-body h3,
[dir="rtl"] .bd-related-body p,
[dir="rtl"] .bd-summary,
[dir="rtl"] .bd-faq,
[dir="rtl"] .bd-cta {
  text-align: right;
}
@media (max-width: 820px) {
  [dir="rtl"] .bd-related-head {
    flex-direction: column;
    align-items: flex-end;
  }
}
