/* Frontend CSS for Iran Map Plugin */

.iran-map-frontend-container {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    direction: rtl;
    font-family: 'Tahoma', 'Arial', sans-serif;
}

.iran-map-container {
    display: inline-block;
    margin: 20px auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.iran-map-container svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Province styling */
.path-city {
    cursor: pointer;
    transition: all 0.3s ease;
    stroke: #333;
    stroke-width: 2;
}

.path-city:hover {
    fill: #ff6b6b !important;
    stroke: #d63031;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
}

/* Province group colors */
.path-city-g1 { fill: #e6f3ff; }
.path-city-g2 { fill: #fff2e6; }
.path-city-g3 { fill: #e6ffe6; }
.path-city-g4 { fill: #ffe6e6; }
.path-city-g5 { fill: #f0e6ff; }
.path-city-g6 { fill: #fff0e6; }
.path-city-g7 { fill: #e6fff0; }
.path-city-g8 { fill: #ffe6f0; }
.path-city-g9 { fill: #f0ffe6; }
.path-city-g10 { fill: #e6f0ff; }
.path-city-g11 { fill: #fff0f0; }
.path-city-g12 { fill: #f0f0ff; }
.path-city-g13 { fill: #ffffe6; }
.path-city-g14 { fill: #e6ffff; }
.path-city-g15 { fill: #ffe6ff; }
.path-city-g16 { fill: #f6ffe6; }
.path-city-g17 { fill: #e6f6ff; }
.path-city-g18 { fill: #fff6e6; }
.path-city-g19 { fill: #f6e6ff; }
.path-city-g20 { fill: #e6fff6; }
.path-city-g21 { fill: #fff6f6; }
.path-city-g22 { fill: #f6f6e6; }
.path-city-g23 { fill: #e6f6f6; }
.path-city-g24 { fill: #f6ffe6; }
.path-city-g25 { fill: #e6fff6; }
.path-city-g26 { fill: #fff6e6; }
.path-city-g27 { fill: #f6e6ff; }
.path-city-g28 { fill: #e6f6f6; }

/* Modal styles */
.iran-map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    direction: rtl;
}

.iran-map-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: relative;
}

.iran-map-close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.iran-map-close:hover,
.iran-map-close:focus {
    color: #000;
    text-decoration: none;
}

#modal-title {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
    font-size: 1.5em;
}

#modal-content {
    max-height: 400px;
    overflow-y: auto;
}

.representative-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: right;
}

.representative-item h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.1em;
}

.representative-item p {
    margin: 5px 0;
    color: #6c757d;
}

.representative-item strong {
    color: #495057;
}

.no-representatives {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .iran-map-container svg {
        width: 100%;
        height: auto;
    }
    
    .iran-map-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }
    
    .iran-map-frontend-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .iran-map-modal-content {
        width: 98%;
        margin: 15% auto;
        padding: 10px;
    }
    
    #modal-title {
        font-size: 1.2em;
    }
}
