/* index.css - أنماط صفحة الخريطة (نسخة محدثة كاملة) */

/* ---------- أنماط عامة ---------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

/* ---------- الشريط العلوي ---------- */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.app-name {
    font-size: 18px;
    font-weight: bold;
}

.header-search {
    flex: 1;
    max-width: 300px;
    margin: 0 15px;
}

.search-box {
    width: 100%;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
}

.search-box::placeholder {
    color: rgba(255,255,255,0.7);
}

.header-icons {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* ---------- القائمة الجانبية ---------- */
.sidebar {
    position: fixed;
    top: 60px;
    right: -300px;
    width: 280px;
    height: calc(100vh - 60px);
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.sidebar.open {
    right: 0;
}

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

.sidebar-header h3 {
    font-size: 16px;
    color: #333;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

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

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: #f5f5f5;
    color: #667eea;
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
}

.sidebar-actions {
    padding: 15px;
    border-top: 1px solid #eee;
}

.sidebar-actions h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-action-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.auth-sidebar-buttons {
    padding: 15px;
    border-top: 1px solid #eee;
}

.auth-sidebar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.auth-sidebar-btn.login {
    background: #667eea;
    color: white;
}

.auth-sidebar-btn.register {
    background: #28a745;
    color: white;
}

.auth-sidebar-btn.admin {
    background: #dc3545;
    color: white;
}

.auth-sidebar-btn.logout {
    background: #6c757d;
    color: white;
}

.auth-sidebar-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---------- أشرطة الإجراءات ---------- */
.requests-action-bar {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    height: 45px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.map-action-bar {
    position: fixed;
    top: 105px;
    left: 0;
    right: 0;
    height: 45px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 15px;
    z-index: 997;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: #667eea;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

.action-btn i {
    font-size: 14px;
}

/* ---------- الخريطة ---------- */
#map {
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    bottom: 60px;
    z-index: 1;
}

/* ---------- الشريط السفلي ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-item.active,
.nav-item:hover {
    color: #667eea;
}

.nav-icon {
    font-size: 18px;
}

.nav-text {
    font-size: 11px;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 5px;
    width: 18px;
    height: 18px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- المودالات ---------- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.modal-lg {
    max-width: 700px;
}

.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: #333;
}

/* ---------- مودال المصادقة ---------- */
.auth-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.auth-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.auth-tab.active {
    color: #667eea;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.auth-panel h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    display: none;
}

.error-message.show {
    display: block;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-login-link {
    text-align: center;
    margin-top: 15px;
}

.admin-login-link a {
    color: #667eea;
    font-size: 13px;
}

/* ---------- مودال الحساب ---------- */
.account-modal-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.account-info {
    margin-bottom: 20px;
}

.account-info p {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.account-edit-input {
    display: none;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
}

.account-edit-input.show {
    display: block;
}

.account-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.account-btn.edit {
    background: #667eea;
    color: white;
}

.account-btn.save {
    background: #28a745;
    color: white;
}

.account-btn.cancel {
    background: #6c757d;
    color: white;
}

.account-btn.logout {
    background: #dc3545;
    color: white;
}

/* ---------- مودال إضافة عقار متعدد الخطوات ---------- */
.add-property-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.step.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.step-line {
    width: 50px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
}

.step.active + .step-line {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.location-required-notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 14px;
}

.location-required-notice i {
    margin-left: 5px;
}

.selected-location {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.selected-location i {
    margin-left: 5px;
    color: #28a745;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.form-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-btn.next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-btn.next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-btn.prev {
    background: #6c757d;
    color: white;
}

.form-btn.save {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.form-btn.cancel {
    background: #dc3545;
    color: white;
}

/* ---------- خيارات الوسائط ---------- */
.media-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.media-option {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.media-option.active,
.media-option:hover {
    border-color: #667eea;
    background: #f0f2ff;
    color: #667eea;
}

.media-input-group {
    display: none;
}

.media-input-group.active {
    display: block;
}

.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
}

.drop-zone:hover,
.drop-zone.dragover {
    border-color: #667eea;
    background: #f0f2ff;
}

.drop-zone i {
    font-size: 40px;
    color: #667eea;
    margin-bottom: 10px;
}

.drop-zone p {
    color: #666;
    font-size: 14px;
}

.multiple-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.image-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-preview-item .remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.file-preview {
    margin-top: 15px;
    display: none;
}

.file-preview video {
    max-width: 100%;
    border-radius: 8px;
}

/* ---------- أزرار المشاركة ---------- */
.share-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.share-options label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ---------- مودال تفاصيل العقار ---------- */
.property-card {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.property-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.property-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.property-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.property-meta {
    font-size: 12px;
    color: #888;
}

.property-description {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 14px;
}

.property-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.detail-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

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

.property-actions .action-btn {
    flex: 1;
    min-width: 100px;
}

.property-actions .action-btn.delete {
    background: #dc3545;
}

.property-actions .action-btn.close {
    background: #6c757d;
}

/* ---------- نظام التقييم ---------- */
.rating-section {
    text-align: center;
    margin: 15px 0;
}

.rating-number {
    font-size: 14px;
    color: #666;
    margin-right: 5px;
}

.rating-input {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-input label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.rating-input i {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s;
}

.rating-input i.active,
.rating-input i:hover {
    color: #f1c40f;
}

/* ---------- مودال تأكيد الحذف ---------- */
.confirm-delete-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.confirm-delete-content h3 {
    color: #dc3545;
    margin-bottom: 15px;
}

.confirm-delete-content h3 i {
    margin-left: 5px;
}

.confirm-delete-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.confirm-delete-buttons {
    display: flex;
    gap: 10px;
}

.confirm-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

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

.confirm-btn.cancel {
    background: #6c757d;
    color: white;
}

.confirm-btn:hover {
    opacity: 0.9;
}

/* ---------- مودال الصور المكبرة ---------- */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
}

.lightbox-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ---------- مودال تقدير السعر ---------- */
.estimate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

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

.estimate-content {
    background: white;
    border-radius: 15px;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.estimate-result {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-top: 15px;
}

.estimate-result strong {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

/* ---------- مودال لوحة التحكم ---------- */
.admin-panel-content {
    background: white;
    border-radius: 15px;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.users-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.users-table input {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.add-coins-btn {
    padding: 5px 10px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.admin-panel-close {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #6c757d;
    color: white;
    cursor: pointer;
}

/* ---------- مودال العقارات المعلقة ---------- */
.pending-properties-content {
    background: white;
    border-radius: 15px;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    position: relative;
}

.pending-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.pending-table th,
.pending-table td {
    padding: 10px;
    text-align: right;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.pending-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.pending-table img {
    border-radius: 4px;
}

.action-btn.approve-btn {
    background: #28a745;
}

.action-btn.reject-btn {
    background: #dc3545;
}

.action-btn.view-btn {
    background: #667eea;
}

.pending-close {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border: none;
    border-radius: 8px;
    background: #6c757d;
    color: white;
    cursor: pointer;
}

/* ---------- لوحة الفلاتر ---------- */
.filters-panel {
    position: fixed;
    top: 150px;
    left: -320px;
    width: 300px;
    height: calc(100vh - 210px);
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 998;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 15px;
}

.filters-panel.open {
    left: 0;
}

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

.filters-header h4 {
    font-size: 16px;
    color: #333;
}

.close-filters {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-outline {
    background: transparent;
    color: #667eea;
    border: 1px solid #667eea;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---------- نموذج الطلب ---------- */
#requestForm .form-group {
    margin-bottom: 15px;
}

#requestForm label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

#requestForm input,
#requestForm select,
#requestForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

#requestForm textarea {
    resize: vertical;
}

/* ---------- عنصر التحميل ---------- */
.loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 3001;
    font-size: 14px;
    color: #333;
}

/* ---------- علامات السعر على الخريطة ---------- */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.price-marker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.price-marker .currency {
    font-size: 10px;
    margin-left: 2px;
}

.price-marker.ready {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.price-marker.for-rent {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.price-marker.for-rent-above {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.price-marker.for-rent-below {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

/* ---------- نافذة العقار المنبثقة ---------- */
.property-popup {
    min-width: 200px;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.popup-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.popup-title {
    font-weight: bold;
    color: #333;
}

.popup-price {
    color: #667eea;
    font-weight: bold;
}

.popup-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.popup-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.popup-btn.details {
    background: #667eea;
    color: white;
    flex: 1;
}

.popup-btn.whatsapp {
    background: #25d366;
    color: white;
}

.popup-btn.save {
    background: #eee;
    color: #666;
}

.popup-btn.save.saved {
    background: #e74c3c;
    color: white;
}

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

/* ---------- Swiper للوسائط ---------- */
.property-media-swiper {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-media-swiper .swiper-slide {
    height: 200px;
}

.property-media-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-media {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-media img,
.property-media video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.youtube-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ---------- الوضع المظلم ---------- */
body.dark-mode {
    background-color: #1a1a2e;
    color: #fff;
}

body.dark-mode .top-header {
    background: linear-gradient(135deg, #2d2d44 0%, #3d3d5c 100%);
}

body.dark-mode .sidebar,
body.dark-mode .requests-action-bar,
body.dark-mode .map-action-bar,
body.dark-mode .bottom-nav,
body.dark-mode .modal-content,
body.dark-mode .auth-modal-content,
body.dark-mode .account-modal-content,
body.dark-mode .add-property-content,
body.dark-mode .property-card,
body.dark-mode .confirm-delete-content,
body.dark-mode .estimate-content,
body.dark-mode .admin-panel-content,
body.dark-mode .pending-properties-content,
body.dark-mode .filters-panel {
    background: #2d2d44;
    color: #fff;
}

body.dark-mode .sidebar-menu li a,
body.dark-mode .sidebar-header h3,
body.dark-mode .modal-title,
body.dark-mode .step-title,
body.dark-mode .property-title,
body.dark-mode .detail-label,
body.dark-mode .detail-value,
body.dark-mode .account-info p,
body.dark-mode .filter-group label,
body.dark-mode .form-group label,
body.dark-mode .share-options label,
body.dark-mode .rating-input label,
body.dark-mode .users-table th,
body.dark-mode .pending-table th {
    color: #fff;
}

body.dark-mode .search-box {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

body.dark-mode .sidebar-menu li a:hover,
body.dark-mode .sidebar-menu li a.active {
    background: #3d3d5c;
}

body.dark-mode .sidebar-action-btn,
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea,
body.dark-mode .filter-group select,
body.dark-mode .account-edit-input {
    background: #3d3d5c;
    color: #fff;
    border-color: #4d4d6c;
}

body.dark-mode .detail-item,
body.dark-mode .property-description,
body.dark-mode .rating-input,
body.dark-mode .account-info p {
    background: #3d3d5c;
}

body.dark-mode .drop-zone {
    background: #3d3d5c;
    border-color: #4d4d6c;
}

body.dark-mode .drop-zone p {
    color: #aaa;
}

body.dark-mode .nav-item {
    color: #aaa;
}

body.dark-mode .nav-item.active,
body.dark-mode .nav-item:hover {
    color: #667eea;
}

/* ---------- التجاوبية ---------- */
@media (max-width: 768px) {
    .app-name {
        display: none;
    }
    
    .header-search {
        max-width: 150px;
    }
    
    .sidebar {
        width: 250px;
    }
    
    .action-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .modal-content,
    .auth-modal-content,
    .account-modal-content,
    .add-property-content,
    .property-card,
    .estimate-content {
        margin: 10px;
        padding: 15px;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-panel {
        width: 100%;
        left: -100%;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .media-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .top-header {
        padding: 0 10px;
    }
    
    .logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .icon-btn {
        width: 32px;
        height: 32px;
    }
    
    .nav-text {
        font-size: 10px;
    }
    
    .step {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-line {
        width: 30px;
    }
}

/* ---------- إخفاء العناصر للمسؤول فقط ---------- */
.admin-only {
    display: none;
}

.is-admin .admin-only {
    display: block;
}

/* ---------- رسائل الإشعارات ---------- */
.notification-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 4000;
    animation: slideIn 0.3s ease;
    max-width: 300px;
}

.notification-toast.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.notification-toast.error {
    background: linear-gradient(135deg, #dc3545 0%, #c0392b 100%);
}

.notification-toast.info {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
