.cap-container { font-family: system-ui, -apple-system, sans-serif; max-width: 1100px; margin: 10px 10px auto auto; position: relative;}
.dropdown-wrapper { position: relative; width: 270px; margin: 0 0 40px auto; }
.main-dist-btn { 
    width: 70%; padding: 5px 20px; background: #0073aa; color: #fff; border: none; 
    border-radius: 8px; cursor: pointer; font-size: 1.1rem; font-weight: bold; text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: background 0.2s;
}
.main-dist-btn:hover { background: #005a87; }
.dist-dropdown-list { 
    position: absolute; top: 105%; right: 0; left: 0; background: #fff; 
    border: 1px solid #ddd; list-style: none; padding: 0; margin: 0;
    z-index: 9999; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-radius: 8px;
    max-height: 400px; overflow-y: auto; width: 70%;
}
.dist-opt { padding: 1px 20px; cursor: pointer; border-bottom: 1px solid #f0f0f0; transition: all 0.2s; text-align: right; }
.dist-opt:hover { background: #f0f7ff; color: #0073aa; padding-right: 30px; }
.dist-opt:last-child { border-bottom: none; }
.district-title { border-bottom: 2px solid #0073aa; padding-bottom: 10px; margin-bottom: 25px; color: #333; font-weight: bold;}
.cap-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    animation: capFadeIn 0.5s ease;
}
.cap-box { 
    background: #fff; border: 1px solid #eee; padding: 5px; border-radius: 12px; 
    text-decoration: none !important; transition: all 0.3s ease; text-align: center; 
    display: flex; flex-direction: column; justify-content: center; min-height: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.cap-box:hover { transform: translateY(-5px); box-shadow: 0 12px 20px rgba(0,0,0,0.1); border-color: #0073aa; }
.cap-box-name { font-weight: bold; color: #0073aa; margin-bottom: 10px; font-size: 0.9rem; line-height: 1.4; }
@keyframes capFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }