/*
 Theme Name:   Homeo Child
 Theme URI:    https://themeforest.net/item/homeo-real-estate-wordpress-theme/26372986
 Description:  Homeo Child Theme
 Author:       ApusTheme
 Author URI:   http://apusthemes.com
 Template:     homeo
 Version:      1.0.0
 Text Domain:  homeo-child
*/
/* استایل برای فرم فیلتر مثل دیوار*/
/* دکمه روی فرم لوکیشن */
.location-filter-wrapper {
    margin-bottom: 10px;
}

.location-filter-trigger {
    width: 100%;
    text-align: right;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-filter-trigger:after {
    content: "▾";
    font-size: 12px;
    margin-right: 8px;
}

/* مودال کلی */
.location-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    direction: rtl;
    font-family: inherit;
}

.location-modal.show {
    display: block;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

/* باکس سفید وسط صفحه */
.location-modal-dialog {
    position: relative;
    margin: 40px auto;
    max-width: 900px;
    width: 95%;
    max-height: 80vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* هدر مودال */
.location-modal-header {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-modal-title {
    font-size: 15px;
    font-weight: 600;
}

.location-modal-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

/* بدنه مودال */
.location-modal-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* ستون شهرها */
.location-modal-sidebar {
    width: 30%;
    border-left: 1px solid #eee;
    background: #fafafa;
    padding: 8px 0;
    overflow-y: auto;
}

.location-modal-section-title {
    font-size: 13px;
    font-weight: 600;
    padding: 0 14px 8px;
    color: #555;
}

.location-city-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.location-city-list li {
    margin: 0;
}

.location-city-list button {
    width: 100%;
    text-align: right;
    padding: 8px 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 13px;
}

.location-city-list button:hover,
.location-city-list button.is-active {
    background: #ffecec;
}

/* بخش اصلی (مناطق و محله‌ها) */
.location-modal-main {
    width: 70%;
    padding: 10px 16px;
    overflow-y: auto;
}

/* فوتر مودال */
.location-modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #eee;
    text-align: left;
}

.location-modal-btn {
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    margin-left: 6px;
}

.location-modal-btn-primary {
    background: #df1a2f;
    color: #fff;
    border-color: #df1a2f;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {

    .location-modal-dialog {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        width: 100%;
        max-height: 100vh;
    }

    .location-modal-body {
        flex-direction: column;
    }

    .location-modal-sidebar {
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #eee;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .location-city-list {
        display: flex;
    }

    .location-city-list li {
        flex: 0 0 auto;
    }

    .location-city-list button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .location-modal-main {
        width: 100%;
        padding: 10px 12px;
    }

    .location-modal-footer {
        text-align: center;
    }

    .location-modal-btn {
        width: 45%;
        margin: 4px 2%;
    }
}

.area-item,
.neigh-item {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.area-item input,
.neigh-item input {
    margin-left: 4px;
}

.neigh-group {
    margin-top: 10px;
    padding-top: 6px;
    border-top: 1px solid #f0f0f0;
}

.neigh-group-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.location-empty-msg {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
}
/* مخفی کردن سِلکت‌های قدیمی لوکیشن (اختیاری) 
.form-group-location .field-region {
    display: none;
}

/* مخفی کردن کامل selectهای پیش‌فرض شهر/منطقه/محله 
.form-group-location .field-region,
.form-group-location .field-region1,
.form-group-location .field-region2,
.form-group-location .field-region3 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}


