/* ==========================================================================
   BeanMarket Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. Global Resets & Basic Typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tahoma', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa; /* لون خلفية عام أفتح */
    color: #343a40; /* لون نص أساسي */
    line-height: 1.7;
    direction: rtl;
    font-size: 16px;
    -webkit-font-smoothing: antialiased; /* تحسين عرض الخطوط */
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #007bff; /* لون الروابط الأساسي */
    text-decoration: none;
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

a:hover {
    color: #0056b3;
    text-decoration: none; /* إزالة الخط السفلي عند المرور إذا لم يكن مرغوبًا */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* لإزالة المسافات البيضاء أسفل الصور */
    vertical-align: middle; /* محاذاة أفضل للصور المضمنة */
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-weight: 500; /* متوسط - يمكن جعله أعرض للعناوين الرئيسية */
    line-height: 1.3; /* تحسين طفيف لقراءة العناوين */
    color: #212529;
}

h1 { font-size: 2.25rem; } /* ~36px */
h2 { font-size: 1.875rem; } /* ~30px */
h3 { font-size: 1.5rem; }   /* ~24px */
h4 { font-size: 1.25rem; }  /* ~20px */

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

hr {
    border: 0;
    border-top: 1px solid #dee2e6; /* خط فاصل أنعم */
    margin: 1.5rem 0;
}

/* ==========================================================================
   2. Layout & Container
   ========================================================================== */
.container {
    width: 95%; /* زيادة طفيفة في العرض النسبي */
    max-width: 1170px; /* عرض أقصى قياسي */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

.page-container {
    padding-top: 30px;
    padding-bottom: 40px; /* مسافة أكبر قليلاً في الأسفل */
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06); /* ظل أنعم */
    position: sticky;
    top: 0;
    z-index: 1020; /* قيمة أعلى لضمان أنه فوق العناصر الأخرى */
}

.site-header .main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo a {
    color: #007bff;
    text-decoration: none;
    font-size: 1.8em; /* تعديل طفيف */
    font-weight: 700;
}

.site-header .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.site-header .nav-links li {
    margin-right: 20px; /* مسافة بين روابط القائمة */
}

.site-header .nav-links li:last-child {
    margin-right: 0;
}

.site-header .nav-links a {
    color: #495057;
    text-decoration: none;
    padding: 10px 15px; /* padding أفضل للروابط */
    border-radius: 5px;
    transition: background-color 0.25s ease, color 0.25s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active { /* كلاس للرابط النشط */
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
}

.user-profile-img-header {
    width: 32px; /* حجم أكبر قليلاً */
    height: 32px;
    border-radius: 50%;
    margin-left: 10px; 
    object-fit: cover;
    border: 2px solid #e9ecef; /* إطار أفتح */
    vertical-align: middle;
}

.menu-toggle { /* زر القائمة للموبايل */
    display: none;
    background: none;
    border: none;
    color: #007bff;
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   4. Main Content & Page Titles
   ========================================================================== */
.site-content {
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - 160px); /* تعديل بسيط لحساب ارتفاع الهيدر والفوتر */
}

.page-title {
    font-size: 2rem;
    margin-bottom: 30px; /* مسافة أكبر */
    color: #343a40;
    text-align: center;
    padding-bottom: 15px;
    position: relative; /* لخط سفلي مميز */
    display: block; /* لجعله يأخذ العرض الكامل ويتوسط */
}
.page-title::after { /* خط سفلي مميز */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #007bff;
    margin: 10px auto 0; /* توسيط الخط */
    border-radius: 2px;
}
.auth-page .page-title,
.dashboard-page .page-title { /* لضمان أن العنوان في الداشبورد يأخذ هذا التنسيق أيضًا */
    display: block;
}
.dashboard-page .dashboard-header .page-title { /* لتخصيص العنوان داخل هيدر الداشبورد */
    text-align: right !important; 
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 5px !important;
}
.dashboard-page .dashboard-header .page-title::after {
    display: none;
}


/* ==========================================================================
   5. Forms (General & Authentication)
   ========================================================================== */
form {
    background: #ffffff;
    padding: 30px; /* padding أكبر */
    margin-bottom: 30px;
    border-radius: 10px; /* زوايا أكثر دائرية */
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border: 1px solid #dee2e6;
}

.form-group {
    margin-bottom: 20px;
}
.form-group:last-child {
    margin-bottom: 0; /* إزالة المسافة السفلية من آخر مجموعة حقول */
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.95em;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="tel"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fff; /* تأكيد لون الخلفية */
}
form input[type="file"] {
    padding: 8px 10px; /* padding مختلف لـ input file */
}


form input:focus,
form textarea:focus,
form select:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
form input[readonly], form input[disabled] { /* تنسيق للحقول المقروءة فقط */
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}


form textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 6px; /* مسافة أفضل */
}

.role-options label,
.form-group label.inline-label {
    display: inline-flex;
    align-items: center;
    margin-left: 25px; /* مسافة أكبر */
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 0; /* إزالة المسافة السفلية للـ label المضمن */
}
.role-options label:last-child,
.form-group label.inline-label:last-child {
    margin-left: 0;
}
.role-options input[type="radio"],
.form-group input[type="checkbox"] {
    margin-left: 8px;
    vertical-align: middle;
    width: auto; /* لـ checkbox و radio */
    margin-top: -2px; /* محاذاة أفضل مع النص */
}

.auth-page .auth-form-container {
    max-width: 480px; /* تعديل طفيف للعرض */
    margin: 30px auto;
}
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.95em; }
.auth-switch a { font-weight: 500; }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 0.9em; }

/* ==========================================================================
   6. Buttons
   ========================================================================== */
.btn {
    display: inline-block; font-weight: 500; color: #212529; text-align: center;
    vertical-align: middle; cursor: pointer; user-select: none; background-color: transparent;
    border: 1px solid transparent; padding: 0.6rem 1.2rem; font-size: 0.95rem;
    line-height: 1.5; border-radius: 0.3rem; transition: all .2s ease-in-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { color: #fff; background-color: #007bff; border-color: #007bff; }
.btn-primary:hover { color: #fff; background-color: #0069d9; border-color: #0062cc; transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,123,255,0.2); }
.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { color: #fff; background-color: #5a6268; border-color: #545b62; transform: translateY(-1px); }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-success:hover { color: #fff; background-color: #218838; border-color: #1e7e34; transform: translateY(-1px); }
.btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { color: #fff; background-color: #c82333; border-color: #bd2130; transform: translateY(-1px); }
.btn-warning { color: #212529; background-color: #ffc107; border-color: #ffc107; }
.btn-warning:hover { color: #212529; background-color: #e0a800; border-color: #d39e00; transform: translateY(-1px); }
.btn-info { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }
.btn-info:hover { color: #fff; background-color: #138496; border-color: #117a8b; transform: translateY(-1px); }
.btn-outline-danger { color: #dc3545; border-color: #dc3545; }
.btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-outline-warning { color: #ffc107; border-color: #ffc107; }
.btn-outline-warning:hover { color: #212529; background-color: #ffc107; border-color: #ffc107; }
.btn-outline-info { color: #17a2b8; border-color: #17a2b8; }
.btn-outline-info:hover { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }
.btn-outline-success { color: #28a745; border-color: #28a745; }
.btn-outline-success:hover { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 0.8rem; line-height: 1.4; border-radius: 0.2rem; }
.btn-xs { padding: 0.2rem 0.4rem; font-size: 0.75rem; line-height: 1.3; border-radius: 0.15rem; } /* زر أصغر */
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; line-height: 1.6; border-radius: 0.3rem; }

/* ==========================================================================
   7. Alerts & Messages
   ========================================================================== */
.alert { padding: 1rem 1.25rem; margin-bottom: 1.5rem; border: 1px solid transparent; border-radius: 0.3rem; font-size: 0.95em; }
.alert-success { color: #0f5132; background-color: #d1e7dd; border-color: #badbcc; }
.alert-danger { color: #842029; background-color: #f8d7da; border-color: #f5c2c7; }
.alert-info { color: #055160; background-color: #cff4fc; border-color: #b6effb; }
.alert-warning { color: #664d03; background-color: #fff3cd; border-color: #ffecb5; }
.alert a { font-weight: bold; } /* جعل الروابط داخل التنبيهات bold */

/* ==========================================================================
   8. Map Specific Styles (Main Map & Map Picker)
   ========================================================================== */
.map-section { margin-bottom: 30px; }
.filters-bar {
    background-color: #ffffff; padding: 20px; margin-bottom: 25px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); display: flex; flex-wrap: wrap;
    gap: 20px; align-items: flex-end;
}
.filter-group { flex-grow: 1; min-width: 200px; }
.filter-group label { font-size: 0.9em; margin-bottom: 6px; display: block; }
.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] { width: 100%; padding: 10px 12px; }
.filter-group .btn { padding: 10px 20px; }

#map-container, #map-picker-container {
    position: relative; background-color: #e9ecef;
    border-radius: 8px; overflow: hidden;
}
#map, #map-picker {
    width: 100%; height: 500px; /* الارتفاع محدد هنا */
    border-radius: 8px; position: relative; z-index: 1; 
}
.leaflet-container { background-color: #f0f0f0; }
#map-loading {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    display: none; /* يتم التحكم به من JavaScript */
    justify-content: center; align-items: center;
    font-size: 1.2em; color: #333; z-index: 10;
    border-radius: 8px;
}
.leaflet-popup-content-wrapper { border-radius: 6px; box-shadow: 0 1px 5px rgba(0,0,0,0.2); }
.leaflet-popup-content { font-size: 0.95em; line-height: 1.5; padding: 10px 12px; }
.map-popup-content h4 { font-size: 1.1em; margin-bottom: 5px; color: #007bff; }
.map-popup-content p { font-size: 0.9em; margin-bottom: 5px; color: #495057; }
.map-popup-content p.popup-type { font-weight: bold; color: #333; }
.map-popup-content .popup-image { width: 100%; max-height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.map-popup-content .btn-sm { margin-top: 10px; font-size: 0.85em; padding: 5px 10px; }
.leaflet-popup-close-button { padding: 8px 8px 0 0 !important; }

/* Geolocation Button for Maps (Leaflet default style is often leaflet-bar leaflet-control) */
.leaflet-control-custom.gps-button { /* إذا استخدمت كلاسًا مخصصًا */
    background-color: white;
    border: 2px solid rgba(0,0,0,0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 30px; /* أو 34px إذا كان الإطار أكبر */
    height: 30px;
    text-align: center;
    line-height: 30px; /* لمحاذاة النص عموديًا */
}
.leaflet-control-custom.gps-button a {
    font-size: 1.4em; /* حجم الرمز 📍 */
    color: #337AB7;
    text-decoration: none;
    display: block;
}
.leaflet-control-custom.gps-button a:hover {
    color: #23527c;
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
.site-footer {
    background-color: #343a40; color: #adb5bd; text-align: center;
    padding: 30px 0; margin-top: 50px; font-size: 0.9em;
    border-top: 3px solid #007bff;
}
.site-footer ul { list-style: none; padding: 0; margin-top: 10px; margin-bottom: 0; }
.site-footer ul li { display: inline; margin: 0 12px; }
.site-footer ul li a { color: #ced4da; text-decoration: none; }
.site-footer ul li a:hover { color: #ffffff; text-decoration: underline; }

/* ==========================================================================
   10. Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .site-header .main-navigation { flex-direction: column; align-items: flex-start; }
    .site-header .logo { margin-bottom: 10px; }
    .site-header .nav-links { flex-direction: column; width: 100%; display: none; margin-top: 10px; }
    .site-header .nav-links.active { display: flex; }
    .site-header .nav-links li { margin-right: 0; margin-bottom: 10px; width: 100%; }
    .site-header .nav-links a { display: block; text-align: right; padding: 12px 15px; }
    .menu-toggle { display: block; position: absolute; top: 18px; left: 20px; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filter-group { min-width: unset; }
    .filter-group .btn { width: 100%; }
    .page-title { font-size: 1.75rem; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .listing-body, .listing-content-grid { grid-template-columns: 1fr; }
    .listing-sidebar { margin-top: 30px; }
}

/* ==========================================================================
   11. Dashboard & Admin Common Styles
   ========================================================================== */
.dashboard-header { /* هيدر مخصص لصفحات الداشبورد */
    display: flex; align-items: center; margin-bottom: 30px;
    background-color: #fff; padding: 20px; border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.dashboard-profile-img { /* صورة المستخدم في هيدر الداشبورد */
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; margin-left: 20px; border: 3px solid #007bff;
}
.dashboard-welcome-text { font-size: 1rem; color: #6c757d; margin-bottom: 0; }

.dashboard-section {
    background-color: #ffffff; padding: 25px 30px; margin-bottom: 30px;
    border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e7eaf3;
}
.dashboard-section h2 {
    font-size: 1.6rem; color: #007bff; margin-bottom: 20px;
    padding-bottom: 15px; border-bottom: 2px solid #007bff;
}
.dashboard-section p { font-size: 1rem; color: #555; margin-bottom: 25px; line-height: 1.8; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.dashboard-actions .btn {
    padding: 12px 25px; font-size: 1rem; font-weight: 500;
    border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.dashboard-actions .btn i { margin-left: 10px; font-size: 1.1em; } /* أيقونات الأزرار */
.dashboard-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,123,255,0.2); }
.dashboard-actions .btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(108,117,125,0.2); }
.dashboard-actions .btn-info:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(23,162,184,0.2); }


/* ==========================================================================
   12. Profile Page Specific Styles
   ========================================================================== */
.current-profile-img {
    max-width: 120px; max-height: 120px; width: 120px; height: 120px;
    border-radius: 50%; margin-bottom: 15px; display: block;
    border: 2px solid #dee2e6; padding: 3px; object-fit: cover;
}

/* ==========================================================================
   13. Listings Table (User's My Listings & Admin Tables)
   ========================================================================== */
.listings-table-container { overflow-x: auto; }
.listings-table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    background-color: #fff; box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    border-radius: 8px; overflow: hidden;
}
.listings-table th,
.listings-table td { padding: 12px 15px; text-align: right; border-bottom: 1px solid #e9ecef; vertical-align: middle;}
.listings-table th {
    background-color: #f8f9fa; font-weight: 600; color: #495057;
    text-transform: uppercase; font-size: 0.85em; border-top: 1px solid #e9ecef;
}
.listings-table tbody tr:hover { background-color: #f1f3f5; }
.listings-table td .btn-sm { margin-left: 5px; margin-bottom: 5px; }
.listings-table td .btn-sm:last-child { margin-left: 0; }
.listing-table-image { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }
.listings-table .listing-short-description {
    font-size: 0.85em; color: #6c757d; margin-top: 5px; display: block;
    max-height: 3.2em; overflow: hidden; text-overflow: ellipsis;
}
.listings-table .actions-cell .btn-sm { margin-bottom: 5px; margin-right: 5px; white-space: nowrap;}
.listings-table .actions-cell .btn-sm:last-child { margin-right: 0; }
.listings-table .actions-cell form.action-form { display: inline-block; margin-bottom: 5px; }
.listings-table .actions-cell form.action-form button { white-space: nowrap; }


/* Status Badges */
.status-badge {
    padding: 6px 12px; border-radius: 20px; font-size: 0.75em;
    font-weight: 600; color: #fff; display: inline-block;
    min-width: 100px; text-align: center; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-pending { background-color: #ffc107; color: #212529; }
.status-approved { background-color: #28a745; }
.status-rejected { background-color: #dc3545; }
.status-completed, .status-sold_completed { background-color: #17a2b8; }
.status-expired { background-color: #6c757d; }
.status-deleted { background-color: #495057; }
.status-unknown { background-color: #adb5bd; }

/* ==========================================================================
   14. Admin Dashboard Specific Styles
   ========================================================================== */
.admin-dashboard .dashboard-section h2 { color: #4a5568; border-bottom-color: #adb5bd; }
.admin-dashboard .listings-table th,
.admin-dashboard .users-table th { background-color: #e9ecef; }

.admin-dashboard .stats-section { margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 25px; }
.stat-card {
    background-color: #ffffff; padding: 25px; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); text-align: center; border: 1px solid #e7eaf3;
    display: flex; flex-direction: column; justify-content: space-between;
}
.stat-card h3 { font-size: 1.15rem; color: #495057; margin-bottom: 12px; }
.stat-card .stat-number { font-size: 2.75rem; font-weight: 700; color: #007bff; margin-bottom: 18px; display: block; }
.stat-card .stat-link {
    font-size: 0.9em; text-decoration: none; display: block;
    padding-top: 0; border-top: none; width: auto; margin-top: auto;
}
.stat-card-warning .stat-number { color: #ffc107; }
.stat-card-warning .stat-link.btn { border-color: #ffc107; color: #856404;}
.stat-card-warning .stat-link.btn:hover { background-color: #ffc107; color: #212529;}
.stat-card-info .stat-number { color: #17a2b8; }

/* ==========================================================================
   15. Offer Details Page Styles
   ========================================================================== */
.offer-details-page .listing-header h1 { font-size: 2rem; text-align: right; border-bottom: none; display: block; margin-bottom: 10px; }
.offer-details-page .listing-meta { font-size: 0.9em; color: #6c757d; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.offer-details-page .listing-meta strong { color: #343a40; }
.listing-body { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 768px) { .listing-body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.main-listing-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 10px; border: 1px solid #dee2e6; margin-bottom: 25px; }
.main-listing-image.placeholder-image { object-fit: contain; background-color: #f0f0f0; }
.listing-info .info-section { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px dashed #e0e0e0; }
.listing-info .info-section:last-child { border-bottom: none; margin-bottom: 0; }
.listing-info .info-section h2 { font-size: 1.4rem; color: #007bff; margin-bottom: 12px; }
.listing-description { white-space: pre-wrap; font-size: 1.05rem; }
.contact-info .user-card { display: flex; align-items: center; margin-bottom: 20px; background-color: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #e9ecef;}
.contact-info .user-profile-img-small { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-left: 20px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.contact-info .user-card div strong { display: block; font-size: 1.15em; margin-bottom: 3px;}
.contact-info .user-card div small { color: #6c757d; font-size: 0.9em;}
.contact-info .btn-lg svg, .contact-info .btn-lg i { margin-left: 10px; /* FontAwesome icons */ }
.btn-success-whatsapp { color: #fff; background-color: #25D366; border-color: #25D366; }
.btn-success-whatsapp:hover { background-color: #1DA851; border-color: #1DA851; }
.listing-content-grid { grid-template-columns: 2fr 1fr; } /* تم نقله من Media query */
.listing-sidebar { margin-top: 0; } /* تمت إزالة margin-top إذا كان في grid */
@media (max-width: 991px) {
    .listing-content-grid { grid-template-columns: 1fr; }
    .listing-sidebar { margin-top: 30px; }
}

/* Map Popup Customization */
.map-popup-content .popup-image { width: 100%; max-height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.map-popup-content h4 { font-size: 1.1em; margin-bottom: 5px; color: #007bff; }
.map-popup-content p { font-size: 0.9em; margin-bottom: 5px; color: #495057; }
.map-popup-content p.popup-type { font-weight: bold; color: #333; }
.map-popup-content .btn-sm { margin-top: 10px; font-size: 0.85em; padding: 5px 10px; }

/* ... (جميع التنسيقات السابقة) ... */

/* ==========================================================================
   17. Cookie Notice Banner Styles
   ========================================================================== */
.cookie-notice-banner {
    display: none; /* مخفي افتراضيًا، يتم إظهاره بواسطة JavaScript */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2b3137; /* لون خلفية داكن قليلاً */
    color: #f8f9fa; /* لون نص فاتح */
    padding: 15px 0;
    z-index: 1050; /* ليكون فوق معظم العناصر الأخرى */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    font-size: 0.9rem; /* حجم خط أصغر قليلاً للإشعار */
}

.cookie-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* مسافة بين النص والزر */
}

.cookie-notice-content p {
    margin: 0;
    flex-grow: 1; /* لجعل النص يأخذ المساحة المتاحة */
    line-height: 1.5;
}

.cookie-notice-content .cookie-learn-more {
    color: #00aeff; /* لون مميز لرابط "اعرف المزيد" */
    text-decoration: underline;
    font-weight: 500;
}
.cookie-notice-content .cookie-learn-more:hover {
    color: #63c5ff;
}

.cookie-notice-content #accept-cookie-btn {
    padding: 8px 20px; /* حجم مناسب للزر */
    white-space: nowrap; /* لمنع التفاف النص في الزر */
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}
.cookie-notice-content #accept-cookie-btn:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* استجابة لإشعار الكوكيز في الشاشات الصغيرة */
@media (max-width: 768px) {
    .cookie-notice-content {
        flex-direction: column; /* جعل العناصر تحت بعضها */
        text-align: center;
    }
    .cookie-notice-content p {
        margin-bottom: 15px; /* مسافة بين النص والزر */
    }
}
/* ... (في style.css) ... */

/* ==========================================================================
   Static Pages (About Us, Privacy Policy, etc.)
   ========================================================================== */
.static-page .page-title {
    margin-bottom: 40px; /* مسافة أكبر بعد العنوان الرئيسي للصفحة */
}

.static-page h2 {
    font-size: 1.75rem; /* 28px */
    color: #007bff;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}
.static-page h3 {
    font-size: 1.25rem; /* 20px */
    color: #343a40;
    margin-bottom: 10px;
}

.static-page p, .static-page li {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1em;
}
.static-page ul {
    list-style: disc;
    padding-right: 20px; /* لـ RTL */
}

.about-us-page .about-section {
    margin-bottom: 40px;
}

.about-us-page .about-image-container {
    margin: 0 0 30px 0;
    text-align: center;
}
.about-us-page .about-main-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}
.about-us-page .about-image-container figcaption {
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}
.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #e9ecef;
}
.feature-item .feature-icon {
    font-size: 2.5rem; /* 40px */
    color: #007bff;
    margin-bottom: 15px;
    display: inline-block;
}
.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.95em;
    color: #495057;
}