/*
Theme Name: Maskan
Version: 1.0
*/
:root {
    --primary-color: #f59e0b; 
    --primary-hover: #d97706; 
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --white: #ffffff;
}

@font-face {
    font-family: 'iransans';
    src: url('fonts/IRANSansXFaNum-Regular.woff2') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
@font-face {
    font-family: 'iransans';
    src: url('fonts/IRANSansXFaNum-Bold.woff2') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    -moz-font-feature-settings: "ss02";
    -webkit-font-feature-settings: "ss02";
    font-feature-settings: "ss02";
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f0f2f5;
    padding: 16px;
    direction: rtl;
    font-family: 'iransans', 'Segoe UI', Tahoma, sans-serif;
}

.left-text {
    direction: ltr;
    text-align: left;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
}

.panel-header {
    background: linear-gradient(135deg, #1e2b3c 0%, #0f1a24 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.header-user {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 30px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

.panel-header h1 {
    font-size: 22px;
    font-weight: 500;
    margin-top: 5px;
}

.panel-header p {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 6px;
}

/* بخش جستجو */
.search-section {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.search-header {
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #1e2b3c;
    font-size: 14px;
    user-select: none;
}

.search-header .toggle-icon {
    margin-right: auto;
    transition: transform 0.3s ease;
}

.search-section.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.search-fields {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.3s ease;

}

.search-section.collapsed .search-fields {
    display: none;
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-group {
    flex: 1;
    min-width: 120px;
}

.search-group label {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 4px;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: white;
}

.search-btn, .reset-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
}

.search-btn {
    background: #2c7da0;
    color: white;
}

.reset-btn {
    background: #e9ecef;
    color: #6c757d;
}

/* تب‌ها */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0 12px;
    gap: 4px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.tab-btn:hover {
    background: #e9ecef;
    color: #1e2b3c;
}

.tab-btn.active {
    color: #1e2b3c;
    background: white;
    border-bottom: 3px solid #2c7da0;
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* گرید کارت‌ها */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.client-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.client-card.canceled {
    opacity: 0.7;
    background: #fef5f0;
    border-color: #ffddd6;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    flex-wrap: wrap;
    gap: 8px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.client-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e2b3c;
}

.request-badge {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 30px;
    font-weight: 500;
}

.badge-rent {
    background: #e3f2fd;
    color: #0a5c8e;
}
.badge-buy {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-partner {
    background: #f3e5f5;
    color: #6a1b9a;
}

.date-badge {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 12px;
    background: #f0f2f5;
    color: #2b3036;
}

.cancel-badge {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 30px;
    background: #ff6b35;
    color: white;
    font-weight: 500;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.info-icon {
    width: 28px;
    color: #8d9aa7;
    font-weight: 400;
}

.info-label {
    color: #6c757d;
    width: 85px;
    font-size: 13px;
}

.info-value {
    color: #2c3e50;
    font-weight: 500;
    flex: 1;
}


/* بخش توضیحات بیشتر */
.more-desc-section {
    margin: 12px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.more-desc-section.show {
    display: block;
}

.more-desc-text {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 8px;
    white-space: pre-wrap;
}

.add-desc-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    margin-top: 8px;
    resize: vertical;
}

.save-desc-btn {
    font-family: 'iransans';
    margin-top: 8px;
    padding: 6px 12px;
    background: #2c7da0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

/* دکمه‌های پایین کارت */
.card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.card-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-more {
    background: #e9ecef;
    color: #495057;
}
.btn-more:hover {
    background: #cee6ff;
}
.btn-more.active {
    background: #2c7da0;
    color: white;
}

.btn-cancel {
    background: #ffefe9;
    color: 000;
}
.btn-cancel:hover {
    background: #ffa17e;
    color: 000;
}
.btn-cancel.active {
    background: #6c757d;
}

.card-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}
.btn-delete {
    background: #ff00181a;
    color: #000000;
}

.btn-delete:hover {
	color:#FFF;
    background: #c82333;
}
/* دکمه شناور + */
.floating-btn {
    position: fixed;
	text-decoration: unset;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #2c7da0;
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(44,125,160,0.4);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.floating-btn:hover {
    transform: scale(1.05);
    background: #1e5a74;
}

/* پیام موقت */
.temp-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c7da0;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 13px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    white-space: nowrap;
}
/* استایل ستاره علاقه‌مندی */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorite-star {
    font-size: 18px;
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.2s;
}

.favorite-star:hover {
    transform: scale(1.1);
}

.favorite-star.active {
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251,191,36,0.5);
}

/* کارت طلایی (علاقه‌مندی) */
.client-card.favorite-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fbbf24;
    box-shadow: 0 4px 15px rgba(251,191,36,0.2);
}

.client-card.favorite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251,191,36,0.3);
}

/* استایل سلکت معرف */
.refer-select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 12px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.refer-select:focus {
    outline: none;
    border-color: #2c7da0;
}
.phone-link {
    color: #005e86;
    text-decoration: none;
    direction: ltr;
    display: inline-block;
    transition: all 0.2s;
    font-weight: 700;
}

.phone-link:hover {
    color: #1e5a74;
    text-decoration: underline;
}
.btn-edit {
    background: #f3f3f3;
    color: #1e2b3c;
}

.btn-edit:hover {
    background: #e1e1e1;
    transform: translateY(-1px);
}


/* مودال ویرایش */
.modal-open {
    overflow: hidden;
}

.edit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.edit-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    direction: rtl;
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #1e2b3c 0%, #0f1a24 100%);
    color: white;
    border-radius: 24px 24px 0 0;
}

.edit-modal-header h3 {
    font-size: 18px;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    font-family: inherit;
}

.edit-modal-body {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.full-width {
  grid-column: span 2; 
}
.edit-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1e2b3c;
    margin-bottom: 6px;
}

.edit-field input,
.edit-field select,
.edit-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
}

.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus {
    outline: none;
    border-color: #2c7da0;
}

.edit-modal-footer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e9ecef;
}

.save-edit-btn {
    flex: 1;
    padding: 10px;
    background: #2c7da0;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.cancel-edit-btn {
    flex: 1;
    padding: 10px;
    background: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.save-edit-btn:hover {
    background: #1e5a74;
}

.cancel-edit-btn:hover {
    background: #dee2e6;
}

/* ریسپانسیو مودال */
@media (max-width: 550px) {
    .edit-modal {
        max-width: 95%;
    }
    
    .edit-modal-header h3 {
        font-size: 16px;
    }
    
    .edit-field label {
        font-size: 12px;
    }
    
    .edit-field input,
    .edit-field select,
    .edit-field textarea {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* استایل صفحه ثبت */
.input-field.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}
.register-container {
    max-width: 700px;
    margin: 20px auto;
}

.register-form {
    padding: 20px;
}

.form-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e2b3c;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f59e0b;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.info-content a {
    background: #f5c518;
    text-decoration: none;
    color: #000;
    padding: 4px 14px;
    border-radius: 16px;
    margin-top: 6px;
    display: inline-block;
}
.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex: 100%;
    min-width: 100%;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1e2b3c;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c7da0;
    box-shadow: 0 0 0 3px rgba(44,125,160,0.1);
}

.dynamic-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #dee2e6;
}

.form-buttons {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
}

.btn-submit {
    flex: 1;
    padding: 12px;
    background: #2c7da0;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #1e5a74;
    transform: translateY(-1px);
}

.btn-cancel-form {
    flex: 1;
    padding: 12px;
    background: #e9ecef;
    color: #6c757d;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-cancel-form:hover {
    background: #dee2e6;
}
.filter-buttons {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.filter-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s;
    background: white;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.filter-btn.active {
    background: #2c7da0;
    color: white;
    border-color: #2c7da0;
}

.filter-btn:hover {
    background: #e9ecef;
	color: #6c757d;
}
@media (max-width: 550px) {
    .register-container {
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group {
        min-width: auto;
    }
    
    .form-section {
        padding: 16px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
}
/* کانتینر اصلی هر فیلد */
.input-group {
    margin-bottom: 24px;
}

/* استایل لیبل */
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

/* استایل فیلد ورودی */
.input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* کادر رنگی دکمه‌های پیشنهادی */
.suggestions-box {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

/* استایل دکمه‌های پیشنهادی */
.suggestion-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.suggestion-chip-location {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border-color: #7dd3fc;
}

.suggestion-chip-referrer {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #6b21a5;
    border-color: #d8b4fe;
}


/* افکت کلیک */
.suggestion-chip:active {
    transform: scale(0.96);
}
/* پیام شناور ثابت در پایین */
.form-message {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 14px 28px;
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    min-width: 250px;
    max-width: 90%;
    width: auto;
    direction: rtl;
    transition: all 0.3s ease;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* انیمیشن ورود */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.property-page-container .form-message {
    animation: slideUp 0.3s ease;
}

.property-page-container {
    margin: 0 auto;
    padding: 20px 16px 40px;
}


.property-page-container .form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 3px solid #3b82f6;
    display: inline-block;
}

.property-page-container .required {
    color: #ef4444;
    font-size: 14px;
}

.property-page-container .row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.property-page-container .input-group {
    margin-bottom: 20px;
}

.property-page-container .input-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.property-page-container .input-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.2s ease;
    background: #fafcff;
}

.property-page-container .input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: #ffffff;
}

.property-page-container select.input-field {
    cursor: pointer;
}

.property-page-container textarea.input-field {
    resize: vertical;
}

/* پیشنهادات محدوده */
.property-page-container .suggestions-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.property-page-container .suggestion-chip {
    display: inline-flex;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.property-page-container .suggestion-chip-location {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: #0369a1;
    border-color: #7dd3fc;
}

/* امکانات گرید */
.property-page-container .amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.property-page-container .amenity-item {
    display: flex;
    align-items: center;
	font-size: 13px;
    gap: 8px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 40px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.property-page-container .amenity-item:hover {
    background: #e0f2fe;
    border-color: #3b82f6;
}

.property-page-container .amenity-check {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* آپلود فایل */
.property-page-container .file-drop-area {
    border: 2px dashed #cbd5e1;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-page-container .file-drop-area:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.property-page-container .file-drop-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.property-page-container .file-drop-area p {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 14px;
}

.property-page-container .file-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 16px !important;
}

.property-page-container .btn-browse {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-page-container .btn-browse:hover {
    background: #2563eb;
    transform: scale(1.02);
}

/* پیش‌نمایش تصاویر */
.property-page-container .image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.property-page-container .image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f1f5f9;
}

.property-page-container .preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-page-container .remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.property-page-container .remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* دکمه ثبت */
.property-page-container .submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.property-page-container .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.property-page-container .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* پیام‌ها */
.property-page-container .form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
}

.property-page-container .form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.property-page-container .form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* فیلدهای شرطی */
.property-page-container .conditional-fields {
    animation: fadeIn 0.3s ease;
}
.property-page-container #generalFields {
	display:none;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* موبایل */
@media (max-width: 640px) {
    .property-page-container .row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .property-page-container .property-form-card {
        padding: 20px 16px;
    }
    
    .property-page-container .form-title {
        font-size: 1.4rem;
    }
    
    .property-page-container .amenities-grid {
        gap: 10px;
    }
    
    .property-page-container .image-preview-item {
        width: 80px;
        height: 80px;
    }
}
/* ===== ریسپانسیو برای موبایل ===== */
@media (max-width: 640px) {
    .property-page-container .row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .property-page-container .property-form-card {
        padding: 20px 16px;
    }
    
    .property-page-container .form-title {
        font-size: 1.4rem;
    }
}
.property-page-container .submit-btn {
    position: relative;
    overflow: hidden;
}

.property-page-container .submit-btn .btn-text,
.property-page-container .submit-btn .btn-progress {
    transition: all 0.3s ease;
}

.property-page-container .submit-btn.loading .btn-text {
    opacity: 0.5;
}

.property-page-container .submit-btn.loading .btn-progress {
    display: inline-block !important;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
}

.property-page-container .submit-btn.loading {
    cursor: wait;
}
/* موبایل */
@media (max-width: 640px) {
    .row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .property-form-card {
        padding: 20px 16px;
    }
    
    .form-title {
        font-size: 1.4rem;
    }
}
/* والد input باید relative باشه */
.input-group {
    position: relative;
}

/* باکس پیشنهادات - زیر input */
.price-suggestions {
    position: absolute;
    top: 100%;  /* دقیقاً زیر input */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-top: 5px;
    z-index: 1000;
    direction: rtl;
}

.price-suggestions .suggestions-title {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e2e8f0;
}

.price-suggestions .suggestions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.price-suggestions .suggestion-price {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #1e293b;
}

.price-suggestions .suggestion-price:hover {
    background: #3b82f6;
    color: white;
    transform: scale(1.02);
}
/* ========== ریسپانسیو ========== */

/* تبلت (768px تا 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    .cards-grid {
        gap: 14px;
    }
}

/* موبایل (تا 768px) */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .panel-header h1 {
        font-size: 18px;
    }
    
    .panel-header p {
        font-size: 13px;
    }
    
    .tab-btn {
        padding: 10px 7px;
        font-size: 12px;
    }
    .filter-btn {
    	padding: 6px 11px;
		font-size: 12px;
	}
    /* جستجو: فیلدها 2 به 2 */
    .search-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .search-group {
        min-width: auto;
    }
    
    .rent-fields .search-group,
    .buy-fields .search-group,
    .meter-fields .search-group {
        grid-column: span 1;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .date-badge {
        align-self: flex-start;
    }
    
    .info-row {
        gap: 6px;
    }
    
    .info-label {
        width: 70px;
        font-size: 13px;
    }
    
    .info-value {
        font-size: 13px;
    }
    
   
    .card-btn {
        min-width: calc(50% - 5px);
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }
}

/* موبایل خیلی کوچک (تا 480px) */
@media (max-width: 480px) {
    body {
        padding: 8px;
    }
    
    .container {
        border-radius: 16px;
    }
    
    .panel-header {
        padding: 16px;
    }
    
    .panel-header h1 {
        font-size: 16px;
    }
    
    .user-name {
        font-size: 13px;
    }
    
    .logout-btn {
        font-size: 13px;
        padding: 3px 10px;
    }
    
    .tab-content {
        padding: 12px;
    }
    
    .client-card {
        padding: 12px;
    }
    
    .client-name {
        font-size: 14px;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .card-btn {
        min-width: auto;
        padding: 2px;
        font-size: 12px;
    }
    
    .info-icon {
        width: 24px;
    }
    
    .info-label {
        width: 90px;
        font-size: 13px;
    }
    
    .search-fields {
        padding: 0 12px 12px 12px;
    }
    
    .search-header {
        padding: 12px 16px;
    }
    
    .floating-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
        bottom: 16px;
        left: 16px;
    }
}
.pagination-container {
    margin-top: 30px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #e9ecef;
    border-color: #2c7da0;
}

.page-btn.active {
    background: #2c7da0;
    color: white;
    border-color: #2c7da0;
}

.page-dots {
    padding: 0 8px;
    color: #6c757d;
}

@media (max-width: 550px) {
    .page-btn {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 0 8px;
    }
}
/* اسکرول */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c9d0;
    border-radius: 4px;
}


/* ===== تنظیمات پایه ===== */

.site-wrapper {
    max-width: 1366px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== هدر ===== */
.site-header {
    background: white;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #a62626;
    text-decoration: none;
}

/* منوی دسکتاپ */
.nav-desktop .nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-desktop .nav-menu a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-desktop .nav-menu a:hover {
    color: #a62626;
}

/* دکمه موبایل */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #444;
}

/* منوی موبایل */
.nav-mobile {
    display: none;
    background: white;
    border-top: 1px solid #eee;
    padding: 15px 25px;
}

.nav-mobile.open {
    display: block;
}

.nav-menu-mobile {
    list-style: none;
}

.nav-menu-mobile li {
    margin-bottom: 12px;
}

.nav-menu-mobile a {
    text-decoration: none;
    color: #444;
    font-size: 14px;
}

/* ===== فوتر ===== */
.site-footer {
    background: #fafafa;
    border-top: 1px solid #eee;
    padding: 20px 25px;
    text-align: center;
}

.footer-copyright p {
    font-size: 12px;
    color: #888;
}/* حاشیه سبز برای آدرس معتبر */
#propertyAddress.valid-address {
    border-color: #28a745 !important;
    background-color: #f0fff4;
}

/* باکس نتایج */
.similar-properties-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin-top: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
}

.similar-title {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.similar-title:contains('✅') {
    color: #28a745;
}

.similar-title:contains('🔍') {
    color: #a62626;
}

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

.similar-item {
    display: block;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
	margin-bottom:7px;
}

.similar-item:hover {
    background: #f0f0f0;
    border-color: #a62626;
}

.similar-item strong {
    display: block;
    font-size: 13px;
}

.owner-info {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .site-wrapper {
        margin: 10px;
        border-radius: 16px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .header-inner {
        padding: 12px 20px;
    }
    
    .site-footer {
        padding: 15px 20px;
    }
}

/* نوار ابزار مدیران و ویرایشگران */
.admin-bar {
    background: #2c3e50;
    color: white;
    padding: 8px 20px;
    top: 0;
    z-index: 1001;
    font-size: 13px;
    direction: rtl;
}

.admin-bar-container {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-bar-title {
    background: #a62626;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 12px;
}

.admin-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.admin-nav a:hover {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .admin-bar-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .admin-nav {
        justify-content: center;
    }
}
.property-status-box {
    text-align: center;
    margin: 20px 0;
}

.status-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
	font-family:iransans;
}

.status-btn.active {
    background: #28a745;
    color: white;
}

.status-btn.canceled {
    background: #dc3545;
    color: white;
}

.status-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}
/* کانتینر اصلی جستجو */
.advanced-search-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    font-family: inherit; /* فونت قالب شما */
}

/* تب‌های بالا */
.transaction-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    color: #666;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
}

.tab-item input {
    display: none;
}

.tab-item:hover {
    color: #a62626; /* رنگ قرمز دیوار */
}

.tab-item input:checked + span {
    color: #a62626;
}

.tab-item input:checked + span::after {
    content: '';
    position: absolute;
    bottom: -22px; /* تنظیم دقیق خط زیر تب */
    left: 0;
    width: 100%;
    height: 3px;
    background: #a62626;
}

/* ردیف‌های فیلتر */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group.half { flex: 1 1 48%; }
.filter-group.third { flex: 1 1 30%; }

/* استایل اینپوت‌ها و سلکت‌ها */
.search-form input, 
.search-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fcfcfc;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box; /* مهم برای جلوگیری از بیرون زدگی */
}

.search-form input:focus, 
.search-form select:focus {
    border-color: #a62626;
    background: #fff;
}

/* دکمه‌ها */
.submit-group {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

#resetBtn {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#resetBtn:hover {
    background: #f5f5f5;
    color: #333;
}

/* حالت لودینگ */
.properties-grid.loading {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.properties-grid.loading::after {
    content: 'در حال جستجو...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 10;
}
/* استایل کپچای ریاضی */
.captcha-container {
    background: #fffbeb; /* پس‌زمینه زرد خیلی روشن */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #fcd34d;
}

#captcha-question {
    font-weight: bold;
    color: #d97706;
    font-size: 16px;
}

#math_captcha {
    width: 100px !important; /* عرض کمتر برای اینپوت عدد */
    display: inline-block !important;
    margin-top: 10px;
}
/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        gap: 10px;
    }
    .filter-group.half, .filter-group.third {
        flex: 1 1 100%;
    }
    .submit-group {
        justify-content: stretch;
    }
    #searchBtn, #resetBtn {
        flex: 1;
    }
}
/* --- استایل بخش سوالات متداول --- */

.faq-title {
    font-size: 22px;
    color: #1f2937;
    margin-bottom: 25px;
    font-weight: 800;
    position: relative;
    padding-right: 15px;
}



.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    border-color: #f59e0b;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background: #f9fafb;
    border: none;
    text-align: right;
    font-size: 14px;
	font-family:iransans;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #fffbeb; /* زرد خیلی روشن */
    color: #d97706;
}

.faq-icon {
    font-size: 20px;
    font-weight: bold;
    color: #9ca3af;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* تبدیل + به × */
    color: #f59e0b;
}

.faq-answer {
    background: #fff;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
}
.wp-singular .faq-answer p {
    padding: 1rem !important;
}
.faq-item.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px; /* ارتفاع حداکثری برای انیمیشن */
}

.faq-answer-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}
.site-main .conts {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
	margin-top: 20px;
}

.faq-hint {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 15px;
    margin-top: -10px;
}

.faq-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.faq-inputs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remove-faq-btn {
    background: #fee2e2;
    color: #ef4444;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    flex-shrink: 0;
}

.remove-faq-btn:hover {
    background: #fecaca;
}

.small-btn {
    padding: 8px 16px;
    font-size: 14px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 6px;
    cursor: pointer;
	font-family:iransans;
}

.small-btn:hover {
    background: #d1d5db;
}
/* --- استایل بخش سوالات متداول --- */
.property-faq-section {
    margin: 40px 0;
}
.faq-title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    height: 25px;
    width: 4px;
    background: #f59e0b; /* رنگ زرد طلایی سایت شما */
    border-radius: 2px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.faq-item.active {
    border-color: #f59e0b;
    background: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}
.admin-bars .admin-bar-container {
    background: #000;
    max-width: max-content;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 999px;
}

/* ===========================================
   منوی نهایی - با سایدبار موبایل
   رنگ‌ها: #795548 و #fcedd5
   =========================================== */

/* استایل هدر */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* لوگو */
.logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
    color: #795548;
    text-decoration: none;
}

/* ===========================================
   منوی دسکتاپ
   =========================================== */
.desktop-nav {
    display: flex;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: #101010;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.primary-menu a:hover {
    background: #fcedd5;
    color: #795548;
	
}
.primary-menu .current-menu-item > a {
	font-weight:bold;
}
/* زیرمنو دسکتاپ */
.primary-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.primary-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-menu .sub-menu a {
    padding: 10px 20px;
	border-radius:0;
}

.primary-menu .sub-menu .sub-menu {
    top: 0;
    right: 100%;
}

/* ===========================================
   دکمه همبرگری (موبایل)
   =========================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: #434343;
    transition: all 0.3s ease;
    border-radius: 3px;
	margin: 5px 0;
}

/* ===========================================
   سایدبار موبایل
   =========================================== */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* سایدبار */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: right 0.3s ease;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }
    
    .mobile-sidebar.active {
        right: 0;
    }
    
    /* هدر سایدبار (لوگو + دکمه بستن) */
    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: #fcedd5;
        border-bottom: 1px solid #e8d5c0;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .mobile-logo img {
        max-height: 40px;
        width: auto;
    }
    
    .mobile-logo .site-title {
        font-size: 18px;
        color: #795548;
    }
    
    .close-sidebar {
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #795548;
        padding: 5px 10px;
        transition: all 0.3s ease;
    }
    
    .close-sidebar:hover {
        transform: rotate(90deg);
    }
    
    /* محتوای سایدبار */
    .mobile-sidebar-content {
        flex: 1;
        padding: 10px 0;
    }
    
    /* منوی موبایل */
    .mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-menu-item {
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .mobile-menu-item > a {
        display: inline-block;
        padding: 14px 20px;
        text-decoration: none;
        color: #795548;
        font-size: 15px;
        width: calc(100% - 55px);
    }
    
    /* دکمه فلش زیرمنو */
    .mobile-dropdown-toggle {
        position: absolute;
        left: 0;
        top: 0;
        width: 55px;
        height: 100%;
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 12px;
        color: #795548;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .mobile-dropdown-toggle.active {
        background: #fcedd5;
    }
    
    /* زیرمنو در موبایل */
    .mobile-sub-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        background: #fcedd5;
        display: none;
    }
    
    .mobile-sub-menu .mobile-menu-item {
        border-bottom: 1px solid #e8d5c0;
    }
    
    .mobile-sub-menu .mobile-menu-item a {
        padding: 12px 20px 12px 35px;
        width: 100%;
        font-size: 14px;
    }
    
    .mobile-sub-menu .mobile-sub-menu a {
        padding-right: 45px;
        background: #f5e5d5;
    }
    
    /* اوورلی */
    .sidebar-overlay-menus {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay-menus.active {
        opacity: 1;
        visibility: visible;
		display:block;
    }
    
    /* قفل اسکرول */
    body.menu-open {
        overflow: hidden;
    }
}

/* دسکتاپ */
@media (min-width: 993px) {
    .mobile-sidebar,
    .sidebar-overlay-menus {
        display: none;
    }
}
/* ===== سایدبار موبایل ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}


.sidebar-logo img,
.sidebar-logo .custom-logo {
    max-height: 50px;
    width: auto;
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #000;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu a:hover {
    background: #fcedd5;
    color: #795548;
    padding-right: 25px;
}

/* زیرمنوها */
.sidebar-menu .sub-menu {
    list-style: none;
    padding-right: 20px;
    display: none;
}

.sidebar-menu .menu-item-has-children > a {
    position: relative;
}

.sidebar-menu .menu-item-has-children.open > .sub-menu {
    display: block;
}

/* پوشش تاریک */
.sidebar-overlay-menus {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.sidebar-overlay-menus.active {
    opacity: 1;
    visibility: visible;
}
.mobile-sidebar .sidebar-header {
	margin-bottom: 10px !important;
	padding: 16px !important;
}
/* مخفی کردن منو دسکتاپ در موبایل */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
    
    .mobile-sidebar {
        display: none;
    }
}


.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
.sidebar-menu .menu-item-has-children {
    position: relative;
}

.submenu-toggle {
    position: absolute;
    left: 15px;
    top: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #0a0a0a;
    transition: transform 0.3s;
    z-index: 2;
}

.submenu-toggle:hover {
    color: #FF9800;
}

.sidebar-menu .menu-item-has-children.open > .submenu-toggle {
    transform: rotate(180deg);
}

.sidebar-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.sidebar-menu .menu-item-has-children.open > .sub-menu {
    max-height: 500px; /* مقدار کافی برای نمایش زیرمنو */
    transition: max-height 0.3s ease-in;
}

.sidebar-menu .sub-menu a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}
.menu-item-has-children.open a {
    font-weight: bold;
}
.menu-item-has-children.open .sub-menu a {
    font-weight: normal;
}
/* استایل مینیمال سوالات متداول - تم زرد و مشکی */

.faq-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    padding-bottom: 8px;
    display: inline-block;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: #fff;
    border: 1px solid #eee;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #fef9e6;
}

.faq-question.active {
    background: #FFC107;
	color:#000;
}

.faq-question.active h3 {
    color: #000;
}

.faq-question.active .faq-toggle {
    color: #f5c518;
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #f5c518;
    color: #000;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-question.active .faq-icon {
    background: #f5c518;
    color: #000;
}

.faq-question h3 {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.faq-question.active h3 {
    color: #000;
}

.faq-toggle {
    font-size: 11px;
    transition: transform 0.2s ease;
    color: #999;
}

.faq-question.active .faq-toggle {
    transform: rotate(180deg);
    color: #f5c518;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
    border-top: 0px solid #eee;
}

.faq-answer.show {
    max-height: 500px;
    border-top-width: 1px;
}

.faq-answer p {
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #141414;
}

/* هاور ساده روی آیتم */
.faq-item:hover {
    border-color: #f5c518;
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .faq-section {
        padding: 15px;
    }
    
    .faq-title {
        font-size: 16px;
    }
    
    .faq-question {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .faq-question h3 {
        font-size: 13px;
    }
    
    .faq-answer p {
        padding: 12px;
        font-size: 12px;
    }
    
    .faq-icon {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }
}
/* اگر می‌خواهید توضیحات دسته باکس جدا داشته باشد */
.category-header {

    margin-bottom: 30px;
}
.qwen-markdown-list {
    list-style: none;
}
.category-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px 0;
}

.category-description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* والد: page-addfile.php */
.page-addfile .expert-fields-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.page-addfile .expert-fields-section .expert-title {
    font-size: 18px;
    font-weight: 600;
    color: #795548;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #795548;
    display: inline-block;
}

.page-addfile .expert-accept-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-addfile .switch-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.page-addfile .switch-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #795548;
}

.page-addfile .switch-text {
    font-size: 14px;
    color: #333;
}

.page-addfile .form-hint {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}
