/*
 * Royaltyland – RTL layer
 *
 * Loaded only when the site language is right-to-left (Hebrew), after
 * Empiral's own rtl.css. Holds RTL fixes and Hebrew typography; add new
 * direction-specific overrides to the matching section below.
 *
 *  1. Typography (Hebrew)
 *  2. Base direction
 *  3. Bootstrap 3 helpers
 *  4. Header & navigation
 *  5. Forms
 *  6. Lists & widgets
 *  7. Icons that point sideways
 *  8. Carousels (slick)
 *  9. Elementor
 * 10. Numbers, phones, prices, emails
 */

/* 1. Typography (Hebrew)
   ========================================================================== */
body.rtl,
.rtl button,
.rtl input,
.rtl select,
.rtl textarea {
	font-family: var(--rl-font-body);
}

.rtl h1, .rtl h2, .rtl h3, .rtl h4, .rtl h5, .rtl h6,
.rtl .elementor-heading-title {
	font-family: var(--rl-font-heading);
	letter-spacing: 0; /* Latin letter-spacing breaks Hebrew letter joins */
}

.rtl .elementor-widget-text-editor,
.rtl p {
	letter-spacing: 0;
}

/* 2. Base direction
   ========================================================================== */
.rtl {
	direction: rtl;
	text-align: right;
}

.rtl .text-left  { text-align: right !important; }
.rtl .text-right { text-align: left !important; }

/* 3. Bootstrap 3 helpers
   ========================================================================== */
.rtl .pull-left  { float: right !important; }
.rtl .pull-right { float: left !important; }

.rtl .dropdown-menu {
	right: 0;
	left: auto;
	text-align: right;
}

.rtl .input-group .form-control:first-child {
	border-radius: 0 4px 4px 0;
}
.rtl .input-group .form-control:last-child {
	border-radius: 4px 0 0 4px;
}

/* 4. Header & navigation
   ========================================================================== */
.rtl #site-header-menu #site-navigation ul ul {
	text-align: right;
}

.rtl #site-header-menu #site-navigation ul ul ul {
	right: 100%;
	left: auto;
}

.rtl .breadcrumb-wrapper,
.rtl .tm-titlebar-main .breadcrumb-wrapper {
	direction: rtl;
}

/* 5. Forms
   ========================================================================== */
.rtl input[type="email"],
.rtl input[type="url"],
.rtl input[type="tel"] {
	direction: ltr;
	text-align: right;
}

.rtl .wpcf7-form .wpcf7-not-valid-tip,
.rtl .wpcf7-response-output {
	text-align: right;
}

/* 6. Lists & widgets
   ========================================================================== */
.rtl .entry-content ul,
.rtl .entry-content ol,
.rtl .elementor-widget-text-editor ul,
.rtl .elementor-widget-text-editor ol {
	padding-right: 1.5em;
	padding-left: 0;
}

.rtl blockquote {
	border-left: 0;
	border-right: 4px solid var(--rl-gold);
	padding-right: 20px;
	padding-left: 0;
}

/* 7. Icons that point sideways
   ========================================================================== */
/* Add .rl-flip to any directional icon that should mirror in Hebrew.
   Empiral already swaps its own slider arrows, so icons are not flipped globally. */
.rtl .rl-flip {
	display: inline-block;
	transform: scaleX(-1);
}

/* 8. Carousels (slick)
   ========================================================================== */
/* Carousels Empiral runs as LTR (see js/rtl.js): keep the track LTR, content RTL */
.rtl .rl-ltr-carousel .slick-slide {
	float: left;
}
.rtl .rl-ltr-carousel .slick-slide > * {
	direction: rtl;
	text-align: right;
}

/* 9. Elementor
   ========================================================================== */
/* Elementor ships its own RTL CSS; add widget-specific fixes here. */

/* 10. Numbers, phones, prices, emails
   Keep them in reading order inside Hebrew text: <span class="rl-ltr">050-1234567</span>
   ========================================================================== */
.rtl .rl-ltr,
.rtl a[href^="tel:"],
.rtl a[href^="mailto:"] {
	direction: ltr;
	unicode-bidi: isolate;
	display: inline-block;
}
