/* إعادة تعيين وإعدادات أساسية */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #f72585;
    --accent-color: #4cc9f0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-light: #e9ecef;
    --gray-medium: #adb5bd;
    --gray-dark: #6c757d;
    --success-color: #06d6a0;
    --warning-color: #ffd166;
    --danger-color: #ef476f;
    --border-radius: 12px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f9f9f9;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* شريط التنقل */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    font-size: 2.2rem;
    margin-left: 10px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* قسم البطل */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.svg');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-right: auto;
    margin-left: auto;
}

/* صندوق البحث */
.search-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    max-width: 900px;
    margin: 0 auto 40px;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr auto;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 15px;
    color: var(--gray-medium);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.category-select {
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cairo', sans-serif;
    background-color: white;
    color: var(--dark-color);
    cursor: pointer;
}

.search-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #e11575;
    transform: translateY(-2px);
}

/* الفئات السريعة */
.quick-categories h3 {
    color: var(--dark-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    background-color: var(--light-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

.category-card:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-card span {
    font-weight: 600;
    text-align: center;
}

/* المحتوى الرئيسي */
.main-content {
    padding: 40px 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: var(--gray-light);
}

/* الخريطة التفاعلية */
.map-section {
    position: relative;
}

.interactive-map {
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-controls {
    position: absolute;
    left: 20px;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 500;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.map-control-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

/* نتائج البحث */
.results-count {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-select {
    padding: 10px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
    background-color: white;
    color: var(--dark-color);
    cursor: pointer;
}

.business-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* بطاقة المؤسسة */
.business-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border-right: 4px solid var(--primary-color);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.business-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.business-category {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 20px;
}

.rating-stars {
    color: var(--warning-color);
}

.rating-value {
    font-weight: 700;
    color: var(--dark-color);
}

.business-info {
    margin-bottom: 15px;
}

.business-address,
.business-phone,
.business-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--gray-dark);
}

.business-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-call {
    background-color: var(--success-color);
    color: white;
}

.btn-directions {
    background-color: var(--primary-color);
    color: white;
}

.btn-details {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-action:hover {
    opacity: 0.9;
}

/* المؤسسات المميزة */
.featured-section {
    margin-top: 40px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.featured-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.featured-image {
    height: 180px;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
    font-size: 3rem;
}

.featured-content {
    padding: 20px;
}

.featured-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

/* التذييل */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-left: 10px;
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    opacity: 0.7;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* النماذج المنبثقة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 30px;
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0 30px;
    }
    
    .search-box {
        padding: 20px;
    }
    
    .business-actions {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* مؤشرات التحميل */
.loading-indicator,
.loading-modal,
.loading-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--gray-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.spinner.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* رسائل الخطأ */
.error-message {
    text-align: center;
    padding: 40px;
    color: var(--danger-color);
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
}

/* أزرار إضافية */
.btn-save {
    background-color: var(--accent-color);
    color: white;
}

.btn-save:hover {
    background-color: #0fa3d1;
}

/* تحسينات للعرض على الخريطة */
.leaflet-popup-content {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

/* تحسينات للعرض على الأجهزة المحمولة */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
    
    .search-input, .category-select, .search-btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* رسائل المستخدم */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.message {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.message.show {
    transform: translateX(0);
}

.message.error {
    border-right: 4px solid #dc3545;
}

.message.success {
    border-right: 4px solid #28a745;
}

.message.warning {
    border-right: 4px solid #ffc107;
}

.message.info {
    border-right: 4px solid #17a2b8;
}

.message-content {
    display: flex;
    align-items: center;
    padding: 15px;
}

.message-content i {
    font-size: 24px;
    margin-left: 15px;
}

.message.error i {
    color: #dc3545;
}

.message.success i {
    color: #28a745;
}

.message.warning i {
    color: #ffc107;
}

.message.info i {
    color: #17a2b8;
}

.message-text {
    flex: 1;
}

.message-text strong {
    display: block;
    margin-bottom: 5px;
}

.close-message {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    margin-right: 10px;
}

/* زر تحديد الموقع أثناء التحميل */
#locate-me:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* علامة الموقع الافتراضي */
.user-location-marker.default {
    color: #ff9800;
}

/* تعليمات الإذن */
.permission-instructions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
}

.permission-instructions h3 {
    color: #333;
    margin-bottom: 15px;
}

.permission-instructions ul {
    margin: 15px 0;
    padding-right: 20px;
}

.permission-instructions li {
    margin-bottom: 8px;
    color: #555;
}



/* رسائل الخطأ */
.global-error {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ef4444;
    color: white;
    padding: 1rem;
    z-index: 9999;
    text-align: center;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.btn-retry {
    background: white;
    color: #ef4444;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

/* بطاقات المؤسسات */
.business-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.business-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.business-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.business-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4361ee;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.business-name {
    font-size: 1.25rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.business-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.business-address,
.business-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
}

.rating-value {
    font-weight: 600;
    color: #1f2937;
}

.business-card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-call {
    background: #10b981;
    color: white;
}

.btn-directions {
    background: #3b82f6;
    color: white;
}

.btn-details {
    background: #8b5cf6;
    color: white;
}

.btn-action:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* المؤسسات المميزة */
.featured-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.featured-card:hover {
    border-color: #4361ee;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
}

.featured-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.featured-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.featured-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
}

.featured-address {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.featured-card-footer {
    margin-top: 1rem;
}

.btn-view-details {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    background: linear-gradient(135deg, #3a0ca3, #4361ee);
    transform: translateY(-1px);
}

/* الخريطة */
.interactive-map {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}

/* الإحصائيات */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
}

/* النافذة المنبثقة */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #1f2937;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #ef4444;
}

.modal-body {
    padding: 1.5rem;
}

/* تفاصيل المؤسسة */
.business-detail .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.detail-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4361ee;
    font-weight: 600;
    font-size: 1.125rem;
}

.detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fbbf24;
    font-size: 1.125rem;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #4b5563;
}

.info-item i {
    color: #4361ee;
    margin-top: 0.25rem;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.phone-number {
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    font-family: monospace;
}

.detail-description {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.detail-description h4 {
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.detail-description p {
    color: #4b5563;
    line-height: 1.6;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* التجاوب */
@media (max-width: 768px) {
    .business-card-actions {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .interactive-map {
        height: 400px;
    }
}