/*
 * Listeo Persian — extra RTL fixes on top of the theme's rtl.css.
 * Loaded only when the site/user language is RTL.
 */

/* Persian text reads better a bit taller */
html[dir="rtl"] body { letter-spacing: 0; }
html[dir="rtl"] body,
html[dir="rtl"] p { line-height: 1.9; }

/* Bookmark button: the generic rtl rule "span.like-icon{left:30px}" pushed the heart onto the label */
html[dir="rtl"] .like-button .like-icon,
html[dir="rtl"] .like-button-notlogged .like-icon {
	left: auto;
	right: auto;
	float: right;
	margin-right: 0;
	margin-left: 8px;
}

/* Opening hours widget: hours should sit on the opposite side of the day name */
html[dir="rtl"] .opening-hours ul li span {
	float: left;
	text-align: left;
	direction: ltr;
}

/* Time / price ranges: keep "09:00 - 22:00" in natural order */
html[dir="rtl"] .opening-hours ul li span,
html[dir="rtl"] .listing-small-badge.pricing-badge,
html[dir="rtl"] .listing-price,
html[dir="rtl"] .price-range,
html[dir="rtl"] .listing-item-pricing-tag {
	unicode-bidi: isolate;
}

/* Emails, phones, URLs typed in inputs stay LTR */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[name*="phone"],
html[dir="rtl"] input[name*="email"],
html[dir="rtl"] input[name*="website"] {
	direction: ltr;
	text-align: right;
}
html[dir="rtl"] input[type="email"]::placeholder,
html[dir="rtl"] input[type="url"]::placeholder,
html[dir="rtl"] input[type="tel"]::placeholder {
	direction: rtl;
}

/* Login / register forms: icon on the start (right) side, password eye on the end (left) side */
html[dir="rtl"] .sign-in-form label > i,
html[dir="rtl"] .sign-in-form label > i.sl {
	left: auto;
	right: 15px;
}
html[dir="rtl"] .sign-in-form label input:not([type="checkbox"]):not([type="radio"]) {
	padding-right: 45px !important;
	padding-left: 45px !important;
}
html[dir="rtl"] .sign-in-form label i.fa-eye,
html[dir="rtl"] .sign-in-form label i.fa-eye-slash,
html[dir="rtl"] input[type="password"] + i.fa-eye,
html[dir="rtl"] input[type="password"] + i.fa-eye-slash,
html[dir="rtl"] input[type="text"] + i.fa-eye-slash {
	right: auto !important;
	left: 18px !important;
}

/* Typo in the theme's rtl.css ("left initial" without colon) — the intended rule */
.rtl.page-template-template-split-map-sidebar .daterangepicker,
.rtl.halfsidebar-archive-listings-layout .daterangepicker {
	left: initial !important;
}

/* Bootstrap columns using the .padding-right-30 / .padding-left-30 helpers: keep the normal 15px gutter on the other side */
html[dir="rtl"] [class*="col-"].padding-right-30 { padding-right: 15px !important; }
html[dir="rtl"] [class*="col-"].padding-left-30 { padding-left: 15px !important; }
