/**
 * RTL (Right-to-Left) Styles
 *
 * @package Ensofia_Estates
 * @since 1.0.0
 */

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

[dir="rtl"] .site-header-inner {
	direction: rtl;
}

[dir="rtl"] .site-branding {
	justify-self: start;
}

[dir="rtl"] .language-switcher {
	justify-self: end;
}

[dir="rtl"] .main-navigation ul {
	flex-direction: row;
	justify-content: center;
}

[dir="rtl"] .property-status-badge {
	right: auto;
	left: 10px;
}

[dir="rtl"] .property-details-table th,
[dir="rtl"] .property-details-table td {
	text-align: right;
}

[dir="rtl"] .filter-checkbox input {
	margin-right: 0;
	margin-left: 0.5rem;
}

[dir="rtl"] .form-field input[type="checkbox"] {
	margin-right: 0;
	margin-left: 0.5rem;
}

[dir="rtl"] .site-info a {
	margin-right: 0;
	margin-left: 1rem;
}

[dir="rtl"] .form-field label {
	text-align: right;
}

[dir="rtl"] .form-field input[type="text"],
[dir="rtl"] .form-field input[type="email"],
[dir="rtl"] .form-field input[type="tel"],
[dir="rtl"] .form-field select,
[dir="rtl"] .form-field textarea {
	text-align: right;
	direction: rtl;
}

[dir="rtl"] .form-field select {
	background-position: left 0.75rem center;
	padding-right: 0.75rem;
	padding-left: 2.5rem;
}

[dir="rtl"] .form-field label.required::after {
	margin-left: 0;
	margin-right: 0.25rem;
}

[dir="rtl"] .btn {
	text-align: center;
}

/* Hero Carousel RTL */
[dir="rtl"] .hero-overlay {
	background: linear-gradient(
		to left,
		rgba(0, 0, 0, 0.7) 0%,
		rgba(0, 0, 0, 0.5) 50%,
		rgba(0, 0, 0, 0.3) 100%
	);
}

[dir="rtl"] .hero-carousel-prev {
	left: auto;
	right: 2rem;
}

[dir="rtl"] .hero-carousel-prev svg {
	transform: scaleX(-1);
}

[dir="rtl"] .hero-carousel-next {
	right: auto;
	left: 2rem;
}

[dir="rtl"] .hero-carousel-next svg {
	transform: scaleX(-1);
}

[dir="rtl"] .hero-meta-item {
	flex-direction: row-reverse;
}

[dir="rtl"] .hero-slide-info {
	text-align: right;
}

/* Property Gallery Carousel RTL */
[dir="rtl"] .gallery-carousel-prev {
	left: auto;
	right: 1rem;
}

[dir="rtl"] .gallery-carousel-prev svg {
	transform: scaleX(-1);
}

[dir="rtl"] .gallery-carousel-next {
	right: auto;
	left: 1rem;
}

[dir="rtl"] .gallery-carousel-next svg {
	transform: scaleX(-1);
}

[dir="rtl"] .gallery-counter {
	left: auto;
	right: 1rem;
}

[dir="rtl"] .lightbox-close {
	right: auto;
	left: 2rem;
}

/* Property Content Layout RTL */
[dir="rtl"] .property-content {
	direction: rtl;
}

[dir="rtl"] .property-details-grid {
	direction: rtl;
}

[dir="rtl"] .property-detail-item {
	direction: rtl;
}

/* Gallery Modal RTL */
[dir="rtl"] .gallery-modal-prev {
	left: auto;
	right: 2rem;
}

[dir="rtl"] .gallery-modal-prev svg {
	transform: scaleX(-1);
}

[dir="rtl"] .gallery-modal-next {
	right: auto;
	left: 2rem;
}

[dir="rtl"] .gallery-modal-next svg {
	transform: scaleX(-1);
}

[dir="rtl"] .gallery-modal-close {
	right: auto;
	left: 2rem;
}

/* Properties Controls RTL - View switcher on right, sort on left */
[dir="rtl"] .properties-controls,
html[lang="he"] .properties-controls,
html[lang="he-IL"] .properties-controls {
	flex-direction: row-reverse !important;
}

/* Properties List View RTL */
[dir="rtl"] .properties-list-view .property-price {
	right: auto;
	left: 1.25rem;
	text-align: left;
}

