/* أنماط صفحة خريطة الهجرة */
.map-container {
    padding-top: 80px;
    min-height: calc(100vh - 100px);
    background-color: var(--bg-color);
}

.map-header {
    text-align: center;
    padding: 2rem 0;
}

.map-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.map-content {
    display: flex;
    flex-direction: column;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* مرشحات الخريطة */
.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.filter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter label, .filter-toggle label {
    font-weight: bold;
    color: var(--primary-color);
}

.filter select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: var(--white);
    color: var(--text-color);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* حاوية الخريطة */
#migration-map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1;
}

/* لوحة المعلومات */
.map-info-panel {
    position: absolute;
    top: 200px;
    left: 20px;
    width: 350px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(-400px);
    transition: transform 0.3s ease;
}

.map-info-panel.active {
    transform: translateX(0);
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px 8px 0 0;
}

.info-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

#close-info {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.info-content {
    padding: 1.5rem;
}

.info-content h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 0.8rem;
}

.route-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.stat p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.stat h5 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.route-details h5 {
    color: var(--primary-color);
    margin: 1.2rem 0 0.5rem;
    font-size: 1.1rem;
}

.route-details p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.route-details ul {
    margin: 0;
    padding-right: 1.5rem;
    list-style-type: disc;
}

.route-details ul li {
    margin-bottom: 0.5rem;
}

/* وسائل الإيضاح */
.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem auto;
    padding: 1rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    justify-content: center;
    max-width: 800px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item p {
    margin: 0;
    font-size: 0.9rem;
}

.line {
    width: 30px;
    height: 3px;
    border-radius: 2px;
}

.line.western {
    background-color: #e74c3c;
}

.line.central {
    background-color: #3498db;
}

.line.eastern {
    background-color: #2ecc71;
}

.line.atlantic {
    background-color: #f39c12;
}

.line.balkans {
    background-color: #9b59b6;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.deaths {
    background-color: #c0392b;
}

/* تصميم متجاوب */
@media screen and (max-width: 768px) {
    .map-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .map-info-panel {
        width: 80%;
        max-width: 350px;
        top: 150px;
    }
    
    .route-stats {
        grid-template-columns: 1fr;
    }
}

