/* ========================================
   Miloumor - RTL Support for Hebrew
   Mirrors layout, keeps numbers LTR
   ======================================== */

html[dir="rtl"], body.hebrew { direction: rtl; text-align: right; }
html[dir="rtl"] body, body.hebrew { font-family: 'Heebo', 'Open Sans', system-ui, sans-serif; }

html[dir="rtl"] .navbar,
body.hebrew .navbar { flex-direction: row-reverse; }

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

html[dir="rtl"] .controls,
body.hebrew .controls { flex-direction: row-reverse; }

html[dir="rtl"] .brand,
body.hebrew .brand { flex-direction: row-reverse; }

html[dir="rtl"] .hero .container,
body.hebrew .hero .container { direction: rtl; }

html[dir="rtl"] .hero-copy,
body.hebrew .hero-copy { text-align: right; }

html[dir="rtl"] .category-rail,
body.hebrew .category-rail { direction: rtl; }

html[dir="rtl"] .market-card header,
body.hebrew .market-card header { flex-direction: row-reverse; }

html[dir="rtl"] .history-timeline,
body.hebrew .history-timeline { padding-left: 0; padding-right: 26px; border-left: none; border-right: 3px solid rgba(212,165,116,0.6); }

html[dir="rtl"] .history-item::before,
body.hebrew .history-item::before { left: auto; right: -33px; }

html[dir="rtl"] .faq-question,
body.hebrew .faq-question { text-align: right; }

html[dir="rtl"] ul,
body.hebrew ul { padding-right: 18px; padding-left: 0; }

/* Keep numerals LTR for phones/prices/emails */
[dir="rtl"] .phone,
[dir="rtl"] .price,
[dir="rtl"] .email {
  direction: ltr;
  unicode-bidi: embed;
}

/* Flex helpers */
[dir="rtl"] .flex-row { flex-direction: row-reverse; }
[dir="rtl"] .arrow-right::after { content: '←'; }
[dir="rtl"] .arrow-left::after { content: '→'; }

@media (max-width: 768px) {
  html[dir="rtl"] .nav-links,
  body.hebrew .nav-links { align-items: flex-end; }
}
