/* DreamHome listing create/edit pages - LTR companion to the Persian forms.
 * The HTML structure remains identical; only directional presentation changes.
 */
html[dir="ltr"] body.listing-form-page {
    direction: ltr;
    text-align: left;
    font-family: "Mulish", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
html[dir="ltr"] body.listing-form-page #wrapper,
html[dir="ltr"] body.listing-form-page #pagee,
html[dir="ltr"] body.listing-form-page .container,
html[dir="ltr"] body.listing-form-page form {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page section {
    display: flex;
    flex-direction: row;
    gap: 0;
}
html[dir="ltr"] body.listing-form-page side {
    order: 0;
    flex: 1 1 25%;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page article {
    order: 1;
    flex: 3 1 75%;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .card,
html[dir="ltr"] body.listing-form-page .accordion-item {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .card-header,
html[dir="ltr"] body.listing-form-page .card-body,
html[dir="ltr"] body.listing-form-page .form-label,
html[dir="ltr"] body.listing-form-page label,
html[dir="ltr"] body.listing-form-page .form-check-label {
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .form-control,
html[dir="ltr"] body.listing-form-page .form-select,
html[dir="ltr"] body.listing-form-page textarea,
html[dir="ltr"] body.listing-form-page input,
html[dir="ltr"] body.listing-form-page select {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .form-check {
    padding-left: 1.5em;
    padding-right: 0;
}
html[dir="ltr"] body.listing-form-page .form-check .form-check-input {
    float: left;
    margin-left: -1.5em;
    margin-right: 0;
}
html[dir="ltr"] body.listing-form-page .form-check-inline {
    margin-right: 1rem;
    margin-left: 0;
}
html[dir="ltr"] body.listing-form-page .dropdown-menu,
html[dir="ltr"] body.listing-form-page .modal,
html[dir="ltr"] body.listing-form-page .modal-content {
    direction: ltr;
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .input-group > .form-control,
html[dir="ltr"] body.listing-form-page .input-group > .form-select {
    text-align: left;
}
html[dir="ltr"] body.listing-form-page .current-images,
html[dir="ltr"] body.listing-form-page .check-grid {
    direction: ltr;
    justify-content: flex-start;
}
html[dir="ltr"] body.listing-form-page .delete-image-btn,
html[dir="ltr"] body.listing-form-page .custom-close-btn {
    left: auto;
    right: 0;
}
html[dir="ltr"] body.listing-form-page .floor-item.ground-floor::before {
    left: auto;
    right: 20px;
}
html[dir="ltr"] body.listing-form-page .btn-group,
html[dir="ltr"] body.listing-form-page .d-flex {
    direction: ltr;
}
html[dir="ltr"] body.listing-form-page [dir="rtl"] {
    direction: rtl;
}
@media (max-width: 600px) {
    html[dir="ltr"] body.listing-form-page section {
        flex-direction: column;
    }
    html[dir="ltr"] body.listing-form-page side,
    html[dir="ltr"] body.listing-form-page article {
        flex: 1 1 auto;
        width: 100%;
    }
}

/* Bootstrap-style on/off switches: keep the same visual control used by the Persian form. */
html[dir="ltr"] body.listing-form-page .form-check.form-switch {
    min-height: 1.5rem;
    padding-left: 2.5em;
    padding-right: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
html[dir="ltr"] body.listing-form-page .form-check.form-switch .form-check-input {
    width: 2em;
    height: 1em;
    margin: 0 0 0 -2.5em;
    flex: 0 0 auto;
    float: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: #dee2e6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    border: 0;
    border-radius: 2em;
    transition: background-position .15s ease-in-out, background-color .15s ease-in-out;
}
html[dir="ltr"] body.listing-form-page .form-check.form-switch .form-check-input:checked {
    background-color: #f59e0b;
    background-position: right center;
}
html[dir="ltr"] body.listing-form-page .form-check.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(245,158,11,.2);
}
html[dir="ltr"] body.listing-form-page .form-check.form-switch .form-check-label,
html[dir="ltr"] body.listing-form-page .form-check.form-switch label {
    margin: 0;
    cursor: pointer;
}
