/* Polika Interactive Kerala Map Styles v2.0 */
.polika-map-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 20px 0;
}

.polika-map-sidebar {
    flex: 1 1 340px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    max-height: 680px;
    overflow-y: auto;
}

.polika-sidebar-header h2 {
    margin: 0 0 5px 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.polika-sidebar-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.polika-map-controls #polika-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.polika-map-controls #polika-search:focus {
    border-color: #008080;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.filter-chips .chip {
    background: #e2e8f0;
    color: #334155;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chips .chip:hover,
.filter-chips .chip.active {
    background: #008080;
    color: #ffffff;
}

.polika-info-panel {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    min-height: 200px;
}

.polika-info-panel .placeholder-text {
    color: #94a3b8;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
}

.polika-map-container {
    flex: 2 1 500px;
    min-height: 600px;
}

#polika-kerala-map {
    width: 100%;
    height: 100%;
    min-height: 600px;
}

/* Leaflet Overrides & Custom Tooltips */
.district-tooltip {
    background: #008080;
    color: #ffffff;
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 8px;
    border: none;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .polika-map-wrapper {
        flex-direction: column-reverse;
    }
    .polika-map-container {
        min-height: 450px;
    }
    #polika-kerala-map {
        min-height: 450px;
    }
}
