/*
 * RTL (Right-to-Left) Overrides
 *
 * Loaded automatically when the site language direction is RTL.
 *
 * @package AAM_Theme
 */

/* ==========================================================================
   Base / Global
   ========================================================================== */

body {
    direction: rtl;
    text-align: right;
}

/* Keep phone numbers readable on RTL pages. */
a[href^="tel:"]:not(.property-contact-btn):not(.unit-contact-btn),
input[type="tel"],
.iti input[type="tel"] {
    direction: ltr;
    unicode-bidi: isolate;
}

.aam-phone-value {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    text-align: left;
}

input[type="tel"],
.iti input[type="tel"] {
    text-align: left;
}

a[href^="tel:"]:not(.property-contact-btn):not(.unit-contact-btn) {
    display: inline-block;
    text-align: left;
}

/* Contact icon buttons must stay as flex even in RTL. */
.property-contact-btn,
.unit-contact-btn {
    display: inline-flex;
}

/* ==========================================================================
   Comments
   ========================================================================== */

.comment-list {
    padding-right: 0;
    padding-left: unset;
}

.comment-list .children {
    padding-right: 2rem;
    padding-left: 0;
}

.comment-author .avatar {
    margin-left: 0.75rem;
    margin-right: 0;
}

/* ==========================================================================
   WordPress Core Alignment
   ========================================================================== */

.alignleft {
    float: right;
    margin-left: 1.5rem;
    margin-right: 0;
}

.alignright {
    float: left;
    margin-right: 1.5rem;
    margin-left: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Swap separator from right border to left border */
.site-footer .row > [class*="col-lg"]:not(:last-child) {
    border-right: none;
    border-left: 1px solid var(--aam-color-accent);
}

.footer-description {
    text-align: justify;
}

.footer-contact i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* ==========================================================================
   HOMEPAGE — Maintenance Section
   ========================================================================== */

.maintenance-content {
    margin-right: auto;
    margin-left: unset;
    padding: 4rem 0 4rem 4rem;
}

.maintenance-text {
    text-align: right;
}

@media (max-width: 991.98px) {
    .maintenance-content {
        margin-right: 0;
        margin-left: unset;
        padding: 2.5rem 1.5rem;
    }
}

/* ==========================================================================
   HOMEPAGE — Properties Section
   ========================================================================== */

.properties-section .section-heading {
    text-align: right;
}

.properties-intro {
    text-align: right;
}

/* ==========================================================================
   Property / Unit Cards — Badges
   ========================================================================== */

.unit-archive-card__badge {
    left: auto;
    right: 0.75rem;
}

.unit-archive-card__badge.badge-special-offer {
    right: auto;
    left: 0.75rem;
}

.property-card__badges {
    left: auto;
    right: 0.75rem;
}

@media (max-width: 767px) {
    .property-card__badges {
        right: 0.5rem;
    }
}

.unit-archive-card__property i {
    margin-left: 0.15rem;
    margin-right: 0;
}

/* ==========================================================================
   Single Unit — Details
   ========================================================================== */

.unit-details {
    border-left: none;
    border-right: 3px solid var(--aam-color-accent);
}

/* ==========================================================================
   Single Property — Gallery
   ========================================================================== */

.property-gallery {
    margin-right: 0;
    margin-left: auto;
}

/* ==========================================================================
   Service Request Tracking
   ========================================================================== */

.sr-track-result__ref {
    margin-left: 10px;
    margin-right: 0;
}

.sr-track-result__table th {
    text-align: right;
}

.sr-track-timeline__item {
    padding: 10px 20px 10px 0;
    border-right: 2px solid #ddd;
    border-left: none;
    margin-right: 6px;
    margin-left: 0;
}

.sr-track-timeline__item::before {
    right: -5px;
    left: auto;
}

/* ==========================================================================
   About Page
   ========================================================================== */

@media (max-width: 767px) {
    .about-intro .about-intro__paragraph {
        text-align: right;
    }
}
