:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --accent: #2563eb;
    --bg: #f8fafc;
    --bg-white: #ffffff;
    --text: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { font-size: 28px; }
.logo-title { font-size: 17px; font-weight: 700; color: var(--text); }
.logo-sub { font-size: 11.5px; color: var(--text-secondary); font-weight: 500; }
.nav { display: flex; gap: 6px; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600;
    color: var(--text-secondary); text-decoration: none; transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: #ecfdf5; }

/* HERO */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 40%, #f8fafc 100%);
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 20px;
    background: rgba(5,150,105,0.1); color: var(--primary); font-size: 13px; font-weight: 600;
    margin-bottom: 20px;
}
.hero-title { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 18px; color: var(--text); }
.text-accent { color: var(--primary); }
.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: all 0.25s; cursor: pointer; border: none;
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(5,150,105,0.35); }
.btn-outline { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: #ecfdf5; }

/* STATS */
.stats-section { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px 24px; text-align: center; transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.stat-label { font-size: 13.5px; color: var(--text-secondary); font-weight: 500; }

/* SECTION HEADERS */
.section-header { margin-bottom: 36px; }
.section-title { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.section-desc { font-size: 16px; color: var(--text-secondary); }

/* MAP SECTION */
.map-section { padding: 70px 0 60px; background: #fff; }
.map-wrapper { display: flex; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); height: 540px; }
.map-sidebar {
    width: 240px; background: var(--bg); border-right: 1px solid var(--border);
    padding: 20px; overflow-y: auto; flex-shrink: 0;
}
.sidebar-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 16px; }
.sidebar-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 14px; border-radius: var(--radius-sm); cursor: pointer;
    transition: all 0.2s; margin-bottom: 4px; font-size: 14px; font-weight: 500;
}
.sidebar-item:hover { background: #ecfdf5; color: var(--primary); }
.sidebar-item.active { background: var(--primary); color: #fff; }
.sidebar-item .count {
    font-size: 12px; font-weight: 700; background: rgba(0,0,0,0.06);
    padding: 2px 8px; border-radius: 10px;
}
.sidebar-item.active .count { background: rgba(255,255,255,0.25); }
.map-container { flex: 1; position: relative; }
#map { width: 100%; height: 100%; z-index: 1; }
.map-hint {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(30,41,59,0.85); color: #fff; padding: 10px 22px;
    border-radius: 10px; font-size: 13.5px; font-weight: 500; z-index: 2;
    pointer-events: none; transition: opacity 0.3s;
}

/* DISTRICT LABELS */
.district-label {
    background: none !important; border: none !important; box-shadow: none !important;
    font-size: 12px; font-weight: 700; color: var(--primary-dark);
    text-shadow: 1px 1px 3px #fff, -1px -1px 3px #fff, 1px -1px 3px #fff, -1px 1px 3px #fff;
    white-space: nowrap;
}

/* DISTRICTS GRID */
.districts-section { padding: 70px 0; }
.districts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.district-card {
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: all 0.3s; cursor: pointer; position: relative; overflow: hidden;
}
.district-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: var(--primary); border-radius: 4px 0 0 4px; opacity: 0; transition: opacity 0.3s;
}
.district-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.district-card:hover::before { opacity: 1; }
.district-card-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.district-card-count { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.district-card-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 500; }

/* NURSERY SECTION */
.nurseries-section { padding: 70px 0; background: #fff; }
.nursery-controls { display: flex; gap: 14px; margin-bottom: 32px; }
.search-input {
    flex: 1; padding: 13px 20px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.filter-select {
    padding: 13px 20px; border-radius: 10px; border: 1.5px solid var(--border);
    font-size: 15px; font-family: inherit; background: #fff; outline: none; min-width: 200px;
}
.nursery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nursery-card {
    background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; transition: all 0.25s;
}
.nursery-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.nursery-card-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.nursery-card-district { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.nursery-card-coords { font-size: 12px; color: var(--text-light); font-family: monospace; }

/* ABOUT */
.about-section { padding: 70px 0; background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text { font-size: 16px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.info-card { background: var(--bg-white); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 16px; overflow: hidden; }
.info-card-header { padding: 14px 20px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.info-card-body { padding: 16px 20px; }
.info-card-body p { font-size: 14px; margin-bottom: 6px; color: var(--text-secondary); }
.link { color: var(--primary); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* FOOTER */
.footer { padding: 30px 0; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-inner p { font-size: 13px; color: var(--text-secondary); }

/* LEAFLET OVERRIDES */
.leaflet-popup-content-wrapper {
    border-radius: var(--radius) !important; box-shadow: var(--shadow-lg) !important;
    padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; padding: 20px !important; font-family: 'Plus Jakarta Sans', sans-serif !important; }
.leaflet-popup-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.leaflet-popup-content p { font-size: 13px; color: var(--text-secondary); margin-bottom: 5px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .stats-grid, .districts-grid { grid-template-columns: repeat(2, 1fr); }
    .nursery-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 38px; }
    .map-sidebar { width: 200px; }
}
@media (max-width: 768px) {
    .stats-grid, .districts-grid, .nursery-grid { grid-template-columns: 1fr; }
    .map-wrapper { flex-direction: column; height: auto; }
    .map-sidebar { width: 100%; max-height: 200px; }
    #map { height: 400px; }
    .hero-title { font-size: 32px; }
    .about-grid { grid-template-columns: 1fr; }
    .nav { display: none; }
}
