/* ملف التصميم المعدل - الإصدار العربي الكامل */

/* أنماط أساسية */
body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* هيكل النماذج */
.nospercent-form-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.nospercent-form-wrapper h2 {
    text-align: center;
    color: #002c4b;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.nospercent-form-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: #008a5f;
    margin: 0 auto;
}

/* حقول النموذج */
.nospercent-form-row {
    margin-bottom: 20px;
}

.nospercent-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #002c4b;
}

.nospercent-form-row input[type="text"],
.nospercent-form-row input[type="email"],
.nospercent-form-row input[type="password"],
.nospercent-form-row input[type="number"],
.nospercent-form-row input[type="tel"],
.nospercent-form-row select,
.nospercent-form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
    font-family: 'Tajawal', sans-serif;
}

.nospercent-form-row input:focus,
.nospercent-form-row select:focus,
.nospercent-form-row textarea:focus {
    border-color: #008a5f;
    box-shadow: 0 0 0 3px rgba(0, 138, 95, 0.2);
    outline: none;
}

/* أنماط الأزرار */
.nospercent-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: none;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
}

.nospercent-btn-primary {
    background-color: #008a5f;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nospercent-btn-primary:hover {
    background-color: #007a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nospercent-btn-secondary {
    background-color: white;
    color: #002c4b;
    border: 2px solid #002c4b;
}

.nospercent-btn-secondary:hover {
    background-color: #f5f5f5;
}

.nospercent-btn-danger {
    background-color: #e74c3c;
    color: white;
}

.nospercent-btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
}

.nospercent-btn-neutral {
    background-color: #f5f5f5;
    color: #555555;
}

.nospercent-btn-neutral:hover {
    background-color: #e0e0e0;
}

/* أزرار العقارات */
.property-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.property-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    gap: 5px;
    font-family: 'Tajawal', sans-serif;
}

.property-actions .edit-btn {
    background-color: #002c4b;
    color: white;
}

.property-actions .edit-btn:hover {
    background-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 44, 75, 0.2);
}

.property-actions .delete-btn {
    background-color: #e74c3c;
    color: white;
}

.property-actions .delete-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.2);
}

.property-actions .view-btn {
    background-color: #008a5f;
    color: white;
}

.property-actions .view-btn:hover {
    background-color: #007a52;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 138, 95, 0.2);
}

/* رسائل النظام */
.nospercent-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    border-right: 4px solid;
    font-family: 'Tajawal', sans-serif;
}

.nospercent-success {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.nospercent-error {
    background: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.nospercent-info {
    background: #e7f4ff;
    color: #0c5460;
    border-color: #bee5eb;
}

/* معرض الصور */
.property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.property-gallery a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.property-gallery img {
    width: 180px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.property-gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.property-gallery a:hover img {
    transform: scale(1.05);
}

/* تنسيقات lightGallery */
.lg-backdrop {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

.lg-image {
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* صفحة الحساب */
.account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.account-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.property-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* تنسيقات مميزات العقار في صفحة الحساب */
.property-features-list {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.property-features-list h4 {
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.property-features-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-features-list li {
    background: #e9f7fe;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #002c4b;
}

/* فلتر العقارات */
.property-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.property-filter-btn {
    padding: 10px 20px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.property-filter-btn:hover {
    background: #e0e0e0;
}

.property-filter-btn.active {
    background: #008a5f;
    color: white;
    border-color: #008a5f;
}

/* نصوص مساعدة */
.description {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}

/* زر تسجيل الخروج */
.nospercent-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #e74c3c;
    color: white !important;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    gap: 8px;
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nospercent-logout-link:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.nospercent-logout-link i {
    margin-left: 5px;
    font-size: 14px;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .nospercent-form-wrapper {
        padding: 20px 15px;
        margin: 15px;
    }
    
    .property-gallery img {
        width: 100%;
        height: 120px;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .property-actions a {
        width: 100%;
        padding: 10px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-filter-btn {
        width: 100%;
        text-align: center;
    }
}

/* تحسينات إضافية للعرض العربي */
input[type="number"] {
    direction: ltr;
    text-align: right;
}

/* تحسينات للأرقام العربية */
.arabic-numbers {
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0;
}

/* تحسينات للعرض في متصفح سفاري */
@media not all and (min-resolution:.001dpcm) { 
    @supports (-webkit-appearance:none) {
        .nospercent-btn {
            -webkit-appearance: none;
        }
    }
}

/* أنماط جديدة للعقارات في صفحة الأرشيف */
.nospercent-archive-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.nospercent-page-header {
    text-align: center;
    margin-bottom: 30px;
}

.nospercent-page-header h1 {
    color: #002c4b;
    font-size: 32px;
    margin-bottom: 10px;
}

.nospercent-page-header p {
    color: #666;
    font-size: 16px;
}

.nospercent-filters-section {
    margin-bottom: 30px;
}

.nospercent-property-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nospercent-filter-btn {
    padding: 10px 20px;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #ddd;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
}

.nospercent-filter-btn:hover {
    background: #e0e0e0;
}

.nospercent-filter-btn.active {
    background: #008a5f;
    color: white;
    border-color: #008a5f;
}

.nospercent-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.nospercent-property-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.nospercent-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nospercent-property-image {
    position: relative;
    overflow: hidden;
}

.nospercent-property-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.nospercent-property-card:hover .nospercent-property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 10px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.nospercent-property-body {
    padding: 20px;
}

.nospercent-property-body h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #002c4b;
}

.nospercent-property-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.nospercent-property-body h3 a:hover {
    color: #008a5f;
}

.nospercent-property-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.nospercent-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
}

.nospercent-meta-item i {
    color: #008a5f;
}

.nospercent-property-footer {
    margin-top: 15px;
}

.nospercent-empty-state {
    text-align: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
}

.nospercent-empty-state i {
    font-size: 50px;
    color: #ddd;
    margin-bottom: 15px;
}

.nospercent-empty-state h3 {
    color: #002c4b;
    margin-bottom: 10px;
}

.nospercent-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

.nospercent-pagination {
    margin-top: 40px;
    text-align: center;
}

.nospercent-pagination ul {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nospercent-pagination li {
    margin: 0 5px;
}

.nospercent-pagination a,
.nospercent-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nospercent-pagination a:hover {
    background: #e0e0e0;
}

.nospercent-pagination .current {
    background: #008a5f;
    color: white;
}

.nospercent-pagination .prev,
.nospercent-pagination .next {
    width: auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .nospercent-properties-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .nospercent-property-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nospercent-properties-grid {
        grid-template-columns: 1fr;
    }
    
    .nospercent-filter-btn {
        width: 100%;
    }
}
/* ============= زر تسجيل الخروج ============= */
.nospercent-logout-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e74c3c;
    color: white !important;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin: 5px 0;
    text-align: center;
}

.nospercent-logout-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* نسخة نصية بدون خلفية */
.nospercent-logout-btn.text-only {
    background: none;
    color: #e74c3c !important;
    padding: 5px;
}

.nospercent-logout-btn.text-only:hover {
    background: none;
    text-decoration: underline !important;
}

/* أنماط خريطة جوجل */
.nospercent-property-map {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#propertyMap {
    border: 1px solid #eee;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 8px !important;
    font-family: 'Tajawal', sans-serif;
}

.gm-style .gm-style-iw-d {
    padding: 0 !important;
    overflow: hidden !important;
}

.gm-ui-hover-effect {
    top: 5px !important;
    right: 5px !important;
}

.gm-style .gm-style-iw-t::after {
    background: #008a5f;
}

/* تعديلات للعرض على الأجهزة المحمولة */
@media (max-width: 768px) {
    #propertyMap {
        height: 300px !important;
    }
}

@media (max-width: 480px) {
    #propertyMap {
        height: 250px !important;
    }
}

/* أنماط رسائل خطأ الخريطة */
.nospercent-map-error {
    padding: 20px;
    text-align: center;
    color: #721c24;
    background-color: #f8d7da;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid #dc3545;
    font-family: 'Tajawal', sans-serif;
}

.nospercent-map-error i {
    margin-left: 8px;
    font-size: 18px;
}

.nospercent-map-loading {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.nospercent-map-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* نموذج حجز المعاينة */
.inspection-booking {
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.inspection-booking-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.inspection-booking-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

/* زر حجز المعاينة */
#bookInspectionBtn {
    background: #002c4b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

#bookInspectionBtn:hover {
    background: #004080;
}

/* نموذج الحجز */
#inspectionFormContainer {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background: white;
}

/* تنسيقات قسم حجز المعاينة */
.property-inspection-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.inspection-booking-card {
    text-align: center;
}

.inspection-title {
    color: #002c4b;
    margin-bottom: 20px;
    font-size: 22px;
}

.inspection-btn {
    background: #002c4b;
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.inspection-btn:hover {
    background: #004080;
    transform: translateY(-2px);
}

.inspection-form-wrapper {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.inspection-login-required {
    background: #fff8e1;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}

.inspection-login-required p {
    margin-bottom: 10px;
    color: #333;
}

/* أنماط نافذة الدفع */
.nospercent-payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.nospercent-payment-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.payment-methods {
    margin: 20px 0;
}

.payment-method {
    margin-bottom: 10px;
}

.payment-method input {
    display: none;
}

.payment-method label {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method input:checked + label {
    border-color: #008a5f;
    background: #f0fff8;
}

.payment-method img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-left: 10px;
}

.payment-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.nospercent-booking-required {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-top: 15px;
}

.nospercent-booking-required i {
    margin-bottom: 15px;
}

.nospercent-booking-required h4 {
    color: #002c4b;
    margin: 10px 0;
}

.nospercent-booking-required p {
    color: #555;
    margin-bottom: 15px;
}

.booking-success-message {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
}

.booking-id, .remaining-inspections {
    font-weight: bold;
    margin: 10px 0;
}

/* رسالة النجاح */
.booking-success-message {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    text-align: center;
}

.booking-success-message p {
    margin: 10px 0;
    font-size: 18px;
}

.booking-id {
    font-weight: bold;
    color: #0d47a1;
    font-size: 16px;
}

.remaining-inspections {
    font-size: 16px;
    font-weight: bold;
    color: #2e7d32;
    margin: 10px 0;
    padding: 8px 12px;
    background-color: #e8f5e9;
    border-radius: 4px;
    display: inline-block;
}

.nospercent-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: #002c4b;
    color: white;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nospercent-btn i {
    font-size: 16px;
}

/* العداد */
.inspection-counter {
    background: #e3f2fd;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002c4b;
}

.inspection-counter i {
    color: #1976d2;
}

/* أنماط نافذة شروط حجز المعاينة */
.nospercent-terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.nospercent-terms-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
    direction: rtl;
    text-align: right;
}

.nospercent-terms-content h3 {
    color: #002c4b;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.terms-content {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.terms-content h4 {
    color: #002c4b;
    margin: 15px 0 5px;
    font-size: 18px;
}

.terms-content p {
    color: #555;
    line-height: 1.6;
    margin: 0 0 15px;
}

.nospercent-terms-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.nospercent-btn-success {
    background: #008a5f;
    color: white;
}

.nospercent-btn-success:hover {
    background: #007a52;
}

.nospercent-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.nospercent-btn-secondary:hover {
    background: #e0e0e0;
}

/* نافذة حجز المعاينة */
.nospercent-viewing-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.nospercent-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    direction: rtl;
    text-align: right;
}

.nospercent-modal-content h3 {
    color: #002c4b;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.nospercent-form-group {
    margin-bottom: 20px;
}

.nospercent-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #002c4b;
}

.nospercent-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #f9f9f9;
    box-sizing: border-box;
}

.nospercent-input:focus {
    border-color: #008a5f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 138, 95, 0.1);
}

.nospercent-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

/* زر حجز المعاينة الرئيسي */
#requestViewingBtn {
    background: #002c4b;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#requestViewingBtn:hover {
    background: #004080;
    transform: translateY(-2px);
}

/* العداد */
.inspection-counter {
    background: #e3f2fd;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #002c4b;
    font-weight: 600;
}

.inspection-counter i {
    color: #1976d2;
}

/* رسالة النجاح */
.inspection-success {
    text-align: center;
    padding: 20px;
}

.inspection-success i {
    font-size: 50px;
    color: #28a745;
    margin-bottom: 15px;
}

.inspection-success h3 {
    color: #28a745;
    margin: 10px 0;
    font-size: 24px;
}

.inspection-success p {
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .nospercent-terms-content,
    .nospercent-modal-content {
        width: 90%;
        padding: 20px;
    }
    
    .nospercent-terms-actions,
    .nospercent-form-actions {
        flex-direction: column;
    }
    
    .nospercent-btn {
        width: 100%;
    }
}

.error-message {
    color: red;
    padding: 10px;
    border: 1px solid red;
    display: none; /* يظهر عبر JS */
}
.success-message {
    color: green;
    padding: 10px;
    border: 1px solid green;
    display: none;
}

/* =========== تحسين تنسيق نافذة الدفع اليدوي =========== */
#paymentInstructionsModal .nospercent-modal-content {
    width: 100%;
    max-width: 500px;        /* نفس عرض مودال المعاينة */
    padding: 25px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    overflow-y: auto;
}

#paymentInstructionsModal .nospercent-form-group {
    margin-bottom: 18px;
}

#paymentInstructionsModal .nospercent-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #002c4b;
}

#paymentInstructionsModal .nospercent-guide {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 6px;
    color: #555;
    line-height: 1.6;
}

/* نفس محاذاة زرَّى الإجراءات */
#paymentInstructionsModal .nospercent-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* أنماط إيصال الدفع */
.payment-slip {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.slip-header {
    background: #002c4b;
    color: white;
    padding: 20px;
    text-align: center;
}

.slip-header h3 {
    margin: 0;
    font-size: 22px;
}

.slip-number {
    margin: 10px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

.slip-details {
    padding: 20px;
}

.slip-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.slip-label {
    font-weight: bold;
    color: #002c4b;
}

.slip-value {
    color: #555;
}

.slip-footer {
    padding: 20px;
    text-align: center;
    background: #f9f9f9;
}

.thank-you {
    font-size: 16px;
    color: #008a5f;
    margin-bottom: 15px;
}

/* أنماط تفاصيل الحجز في لوحة التحكم */
#bookingDetailsContent {
    padding: 15px;
    max-height: 60vh;
    overflow-y: auto;
}

.booking-detail-row {
    display: flex;
    margin-bottom: 10px;
}

.booking-detail-label {
    font-weight: bold;
    min-width: 120px;
    color: #002c4b;
}

.booking-detail-value {
    flex: 1;
    color: #555;
}

.payment-detail-value {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    margin: 5px 0;
}

.nospercent-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.nospercent-form-row {
    margin-bottom: 15px;
}

.nospercent-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.nospercent-form-row input,
.nospercent-form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nospercent-submit-btn {
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.nospercent-submit-btn:hover {
    background: #45a049;
}

.nospercent-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.nospercent-error {
    background: #ffdddd;
    border-left: 4px solid #f44336;
    color: #f44336;
}

.nospercent-success {
    background: #ddffdd;
    border-left: 4px solid #4CAF50;
    color: #4CAF50;
}

.nospercent-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.attempts-remaining {
    font-size: 0.9em;
    margin-top: 5px;
    color: #666;
}

.forgot-password-link {
    color: #2196F3;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.nospercent-reset-password-link {
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.nospercent-reset-password-link a {
    color: #007bff;
    text-decoration: none;
}

.nospercent-reset-password-link a:hover {
    text-decoration: underline;
}

.nospercent-reset-password-link i {
    margin-left: 5px;
}

.nospercent-reset-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nospercent-reset-form h2 {
    color: #002c4b;
    margin-top: 0;
    text-align: center;
}

.nospercent-form-row {
    margin-bottom: 15px;
}

.nospercent-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.nospercent-form-row input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.nospercent-submit-btn {
    background: #008a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.nospercent-submit-btn:hover {
    background: #006e4a;
}

.nospercent-message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.nospercent-message.nospercent-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.nospercent-message.nospercent-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* أنماط قسم التقييمات */
.nospercent-ratings-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rating-row {
    margin-bottom: 20px;
}

.rating-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.star-rating {
    direction: ltr;
}

.star-rating i {
    color: #f39c12;
    cursor: pointer;
    font-size: 20px;
    margin-left: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 8px;
    min-height: 100px;
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #777;
}

.review-ratings {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-display .stars i {
    color: #f39c12;
    font-size: 16px;
    margin-left: 2px;
}

.review-text {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
}

.nospercent-alert {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nospercent-alert i {
    color: #1976d2;
}

/* أنماط النجوم */
.star-rating {
    direction: ltr;
    display: inline-block;
    unicode-bidi: bidi-override;
}

.star-rating i {
    color: #f39c12;
    cursor: pointer;
    font-size: 20px;
    margin-left: 5px;
    transition: all 0.2s;
}

.star-rating i:hover,
.star-rating i.fas {
    transform: scale(1.2);
}

/* تحسين مظهر حقول التقييم */
.rating-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-row label {
    font-weight: 600;
    min-width: 100px;
}

/* أنماط قسم التقييمات */
.nospercent-ratings-section {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.reviews-list {
    margin-top: 20px;
}

.review-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 600;
}

.review-date {
    color: #777;
}

.review-ratings {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-display .stars i {
    color: #f39c12;
    font-size: 16px;
    margin-left: 2px;
}

.review-text {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    line-height: 1.6;
}

.nospercent-alert {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nospercent-alert i {
    color: #1976d2;
}

.nospercent-empty-state {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    color: #666;
}

.nospercent-empty-state i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
    color: #999;
}

/* في ملف الأنماط الخاص بك خانة الايجار الشهري فى أضف عقارك */
#rental_price_field {
    transition: all 0.3s ease;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    margin-top: 10px;
}

.nospercent-return-estimate {
    margin-top: 8px;
    font-size: 13px;
    color: #008a5f;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 4px;
    border-right: 3px solid #008a5f;
}

.nospercent-return-estimate i {
    color: #002c4b;
    font-size: 14px;
    margin-right: 5px;
}

.nospercent-return-estimate small {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}

/* خدمات إضافية */
.property-additional-services {
    margin: 30px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

.property-additional-services h3 {
    margin-bottom: 15px;
    color: #002c4b;
}

.services-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.service-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    background: #008a5f;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.service-btn:hover {
    background: #006e4c;
    transform: translateY(-2px);
}

.legal-service-btn {
    background: #3498db;
}

.legal-service-btn:hover {
    background: #2980b9;
}

.engineering-service-btn {
    background: #e74c3c;
}

.engineering-service-btn:hover {
    background: #c0392b;
}

/* نافذة الخدمة */
.nospercent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
}

#service-terms {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    max-height: 200px;
    overflow-y: auto;
}

.terms-agreement {
    margin: 15px 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel-btn {
    background: #95a5a6;
}

.cancel-btn:hover {
    background: #7f8c8d;
}

/* تنسيقات قسم الخدمات */
.services-management {
    margin-top: 20px;
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
}

.service-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-header h4 {
    margin: 0;
    color: #002c4b;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-badge.approved {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.service-details p {
    margin: 0;
    font-size: 0.9rem;
}

.service-description {
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
    color: white;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
    color: white;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .service-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
    }
}

/* إخفاء محتوى الصفحة لحين تحميل CSS */
body {
    visibility: hidden;
}

@font-face {
    font-family: 'Tajawal';
    src: url('tajawal.woff2') format('woff2');
    font-display: swap;
}