:root { --primary: #007bff; --dark: #333; --light: #f8f9fa; }
body { font-family: 'Inter', sans-serif; background: #f4f7f6; color: var(--dark); margin:0; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Smart Grid for States and Cities */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.card h3 { margin: 0; font-size: 22px; color: var(--primary); }

/* Search Bar Design */
.search-wrapper { margin: 40px 0; text-align: center; }
.search-input {
    width: 100%;
    max-width: 600px;
    padding: 15px 25px;
    border-radius: 30px;
    border: 2px solid #ddd;
    font-size: 18px;
    outline: none;
}
.search-results {
    position: absolute;
    width: 100%;
    max-width: 600px;
    background: white;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* --- Search Results Dropdown Styling --- */
#searchResults {
    position: absolute;
    top: 100%; /* Input ke bilkul niche chipak jayega */
    left: 50%;
    transform: translateX(-50%); /* Center align karne ke liye */
    width: 100%;
    max-width: 600px; /* Search input jitni width */
    background: #ffffff;
    z-index: 9999;
    border: 1px solid #edf2f7;
    border-radius: 0 0 15px 15px; /* Neeche se round corners */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: none; /* Default hidden */
    max-height: 400px;
    overflow-y: auto;
    text-align: left;
}

.search-item {
    padding: 15px 20px;
    display: block;
    border-bottom: 1px solid #f8f9fa;
    color: var(--dark);
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}

.search-item:hover {
    background: #f0f7ff;
    color: var(--primary);
}

.search-item strong {
    color: var(--dark);
    font-weight: 600;
}

/* Scrollbar styling for dropdown */
#searchResults::-webkit-scrollbar {
    width: 6px;
}
#searchResults::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
}