/* Your theme links */
.site-wrapper a {
    text-decoration: none;
    color: inherit;
}

/* Bootstrap area only */
.khenchela-map-wrapper a {
    text-decoration: none; /* remove underline */
    color: inherit;        /* use your own text color */
}
body{
    background:#f5f7fb;
    font-family:'Cairo',sans-serif;
}

.stat-card{

    background:#fff;
    border-radius:18px;
    padding:22px 24px;

    display:flex;
    align-items:center;
    gap:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

    transition:.3s;
    height:100%;
}

.stat-card:hover{

    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,.08);

}

.icon{

    width:48px;
    height:48px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    color:white;
    font-size:24px;
}

.green{
    background:#22c55e;
}

.blue{
    background:#3b82f6;
}

.purple{
    background:#a855f7;
}

.orange{
    background:#f59e0b;
}

.stat-card h3{

    margin:0;
    font-size:20px;
    font-weight:700;
}

.stat-card span{

    color:#777;
    font-size:14px;
}

.map-card{

    background: #fff;
    border-radius: 10px;
    border-style: solid;
    border-color: #0a7a48;
    border-width: 1px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-height: 500px;

}

#map{

   height:100%;
   min-height:500px;
   width: 100%;

}
/* Map Legend Styles */
.map-legend {
    background: white;
    padding: 15px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.legend-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #0a7a48;
    font-weight: 700;
    font-size: 15px;
    color: #064e3b;
}

.legend-header i {
    color: #0a7a48;
    font-size: 18px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.legend-item:hover {
    transform: translateX(4px);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.legend-label {
    font-size: 13px;
    color: #1f2937;
    font-weight: 500;
}

/* Leaflet control customization */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #0a7a48 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background: #0a7a48 !important;
    color: white !important;
}

/* Popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.leaflet-popup-tip {
    background: white !important;
}

/* Responsive legend */
@media (max-width: 768px) {
    .map-legend {
        min-width: 140px;
        padding: 12px 14px;
    }
    
    .legend-header {
        font-size: 13px;
    }
    
    .legend-label {
        font-size: 12px;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .map-legend {
        min-width: 120px;
        padding: 10px 12px;
    }
    
    .legend-items {
        gap: 5px;
    }
    
    .legend-label {
        font-size: 11px;
    }
}
.map-info-card{

    background:#fff;
    border-radius:18px;
    padding:15px;
    box-shadow:0 10px 35px rgba(0,0,0,.07);
    height: 100%;
    display: flex;
    flex-direction: column;

}

/* les Dairas card*/

/* Modern Dairas Card Design */
.district-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.district-header {
    background: linear-gradient(135deg, #0a7a48 0%, #0d8f55 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.district-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.district-header .location-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.district-header h4 {
    margin: 0;
    padding: 0px 5px;
    font-weight: 700;
    color: white;
    font-size: 22px;
    letter-spacing: 0.5px;
    z-index: 1;
}

.district-header .text-end {
    flex: 1;
    z-index: 1;
}

/* Dairas Grid - Modern Layout */
.dairas-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    flex: 1;
    overflow-y: auto;
    align-content: start;
}

/* Modern Daira Card */
.daira-card {
    background: white;
    border: 1.5px solid #e8edf2;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.daira-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0a7a48 0%, #0d8f55 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 16px;
}

.daira-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 122, 72, 0.15);
    border-color: #0a7a48;
}

.daira-card:hover::before {
    opacity: 1;
}

.daira-card:hover .daira-left,
.daira-card:hover .bi-chevron-left {
    position: relative;
    z-index: 1;
    color: white;
}

.daira-card:hover .daira-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.daira-card:hover strong {
    color: white;
}

.daira-card:hover small {
    color: rgba(255, 255, 255, 0.8);
}

.daira-card:hover .bi-chevron-left {
    color: white;
    transform: translateX(-4px);
}

.daira-left {
    display: flex;
    gap: 14px;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.daira-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.daira-left div {
    transition: all 0.3s ease;
}

.daira-left strong {
    font-size: 15px;
    color: #1f2937;
    transition: all 0.3s ease;
    display: block;
    font-weight: 700;
}

.daira-left small {
    font-size: 12px;
    color: #6b7280;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*
.daira-left small::before {
    content: '👥';
    font-size: 12px;
}
*/

.bi-chevron-left {
    color: #9ca3af;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Scrollbar Styling for Dairas Grid */
.dairas-grid::-webkit-scrollbar {
    width: 4px;
}

.dairas-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dairas-grid::-webkit-scrollbar-thumb {
    background: #0a7a48;
    border-radius: 10px;
}

.dairas-grid::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* Responsive */
@media (max-width: 1200px) {
    .dairas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .dairas-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .district-header {
        padding: 16px 20px;
    }
    
    .district-header h4 {
        font-size: 18px;
    }
    
    .district-header .location-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .daira-card {
        padding: 14px;
    }
    
    .daira-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .daira-left strong {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .dairas-grid {
        padding: 10px;
        gap: 10px;
    }
    
    .daira-card {
        padding: 12px;
    }
    
    .daira-left {
        gap: 10px;
    }
    
    .daira-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .daira-left strong {
        font-size: 13px;
    }
}
#dairas-khenchela,
#daira-details-section {
    display: flex;
    flex-direction: column;
}

.district-card,
.district-card-modern {
    height: 100%;
    min-height: 600px; /* Set a minimum height */
    display: flex;
    flex-direction: column;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .district-card,
    .district-card-modern,
    .district-commune-card-modern {
        min-height: 400px;
    }
    
    .map-card,
    #map {
        min-height: 400px;
    }
}



/*daira detiale card*/

.district-card-modern {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.district-header-modern {
    background: linear-gradient(135deg, #0a7a48 0%, #0d8f55 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.district-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.district-header-modern .btn-back {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.district-header-modern .btn-back:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.district-header-modern .btn-back i {
    font-size: 16px;
}

.district-header-modern .header-title {
    flex: 1;
    z-index: 1;
}

.district-header-modern .header-title h4 {
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 20px;
    letter-spacing: 0.5px;
}

.dairas-details-card-modern {
    padding: 28px 24px;
    overflow-y: auto;
    flex: 1;
    max-height: none;
    height: auto;
}

/* Hero Section */
.daira-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #bbf7d0;
    text-align: center;
}

.daira-badge {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-code,
.badge-year {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.badge-code {
    background: #15803d;
    color: white;
}

.badge-year {
    background: white;
    color: #15803d;
    border: 1px solid #86efac;
}

.daira-name-arabic {
    font-size: 28px;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 4px 0;
}

.daira-name-french {
    font-size: 16px;
    color: #047857;
    margin: 0;
    font-weight: 500;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.stat-item {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #86efac;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.bg-warning-soft {
    background: #fef3c7;
    color: #d97706;
}

.bg-primary-soft {
    background: #dbeafe;
    color: #2563eb;
}

.bg-success-soft {
    background: #d1fae5;
    color: #059669;
}

.bg-danger-soft {
    background: #fce4ec;
    color: #dc2626;
}

.stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

/* Communes Section */
.communes-section {
    margin-top: 8px;
}

.communes-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.communes-title i {
    color: #059669;
    font-size: 20px;
}

.communes-count {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.communes-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.commune-pill-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 18px 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.3s ease;
    cursor: pointer;
}

.commune-pill-modern:hover {
    background: #0a7a48;
    color: white;
    border-color: #0a7a48;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(10, 122, 72, 0.25);
}

.commune-pill-modern:hover .commune-dot {
    background: white;
}

.commune-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #059669;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Scrollbar Styling */
.dairas-details-card-modern::-webkit-scrollbar {
    width: 4px;
}

.dairas-details-card-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dairas-details-card-modern::-webkit-scrollbar-thumb {
    background: #0a7a48;
    border-radius: 10px;
}

.dairas-details-card-modern::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* Responsive */
@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-item {
        padding: 12px;
        gap: 10px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .stat-value {
        font-size: 16px;
    }

    .district-header-modern {
        padding: 16px;
        flex-wrap: wrap;
    }

    .district-header-modern .btn-back {
        font-size: 12px;
        padding: 6px 14px;
    }

    .daira-name-arabic {
        font-size: 22px;
    }
}
/* Commune Card Modern Styles */
.district-commune-card-modern {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Header */
.commune-header-modern {
    background: linear-gradient(135deg, #0a7a48 0%, #0d8f55 100%);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.commune-header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.commune-header-modern .btn-back-modern {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.commune-header-modern .btn-back-modern:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.commune-header-modern .header-title-modern {
    flex: 1;
    z-index: 1;
}

.commune-header-modern .header-title-modern h3 {
    margin: 0;
    font-weight: 700;
    color: white;
    font-size: 22px;
    letter-spacing: 0.5px;
}

.commune-body-modern {
    padding: 28px 24px;
  
}

/* Hero Image Section */
.commune-hero-section {
    margin-bottom: 28px;
}

.commune-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.commune-hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.commune-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.commune-badge {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.commune-code-badge,
.commune-daira-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.commune-code-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.commune-daira-badge {
    background: rgba(10, 122, 72, 0.9);
    color: white;
}

/* Stats Grid */
.commune-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.commune-stat-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.commune-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #86efac;
}

.commune-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.bg-primary-soft {
    background: #dbeafe;
    color: #2563eb;
}

.bg-success-soft {
    background: #d1fae5;
    color: #059669;
}

.bg-warning-soft {
    background: #fef3c7;
    color: #d97706;
}

.commune-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.commune-stat-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.commune-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

/* Details Grid */
.commune-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #064e3b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.section-title i {
    color: #059669;
    font-size: 18px;
}

/* Facilities Grid */
.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.facility-item {
    background: white;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8edf2;
    transition: all 0.3s ease;
}

.facility-item:hover {
    border-color: #86efac;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.facility-item i {
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.facility-item div {
    display: flex;
    flex-direction: column;
}

.facility-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.facility-item strong {
    font-size: 16px;
    color: #1f2937;
}

/* Contact Section */
.commune-contact {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e8edf2;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    font-size: 18px;
    width: 28px;
    text-align: center;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.contact-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-item strong {
    font-size: 14px;
    color: #1f2937;
    font-weight: 600;
}

/* Description Section */
.commune-description {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e8edf2;
    margin-top: 4px;
}

.commune-description p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

/* Scrollbar */
.commune-body-modern::-webkit-scrollbar {
    width: 4px;
}

.commune-body-modern::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.commune-body-modern::-webkit-scrollbar-thumb {
    background: #0a7a48;
    border-radius: 10px;
}

.commune-body-modern::-webkit-scrollbar-thumb:hover {
    background: #064e3b;
}

/* Responsive */
@media (max-width: 992px) {
    .commune-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .commune-stats-grid {
        grid-template-columns: 1fr;
    }

    .commune-header-modern {
        padding: 16px;
        flex-wrap: wrap;
    }

    .commune-header-modern .btn-back-modern {
        font-size: 12px;
        padding: 6px 14px;
    }

    .commune-hero-image {
        height: 200px;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

    .commune-body-modern {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .commune-stat-card {
        padding: 12px;
    }

    .commune-stat-value {
        font-size: 16px;
    }

    .commune-image-overlay {
        padding: 20px 16px 16px;
    }

    .commune-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}


/* ===== إضافات: الأماكن السياحية داخل بطاقة البلدية + مؤشر التحميل ===== */
.map-card{position:relative}
#map-loading{background:rgba(255,255,255,.7);display:none}

.commune-places{margin-top:28px}
.place-mini-card{
    display:block;background:#fff;border:1px solid #e6ece9;border-radius:14px;
    overflow:hidden;height:100%;transition:.25s;box-shadow:0 6px 18px rgba(0,0,0,.04);
}
.place-mini-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(10,122,72,.15);border-color:#0a7a48}
.place-mini-card img{width:100%;height:130px;object-fit:cover;display:block}
.place-mini-body{padding:12px 14px;display:flex;flex-direction:column;gap:4px}
.place-mini-body strong{color:#064e3b;font-size:15px}
.place-mini-body span{color:#6b7280;font-size:13px;line-height:1.5;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
