/**
 * INTERACTIVE INDIA MAP STYLES
 */
.cb-india-map-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: transparent !important;
    border-radius: 16px;
    padding: 20px;
    /* box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.2); */
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.cb-india-map-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* State Paths Styling */
.cb-state-path {
    fill: var(--cb-map-base-color, #2a3a5a);
    stroke: var(--cb-map-stroke-color, #111b30);
    stroke-width: 0.8;
    stroke-linejoin: round;
    transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1), stroke-width 0.2s ease;
    cursor: default;
}

/* active/pointed states */
.cb-state-path.cb-state-active {
    fill: var(--cb-map-active-state-color, #1f426e);
}

.cb-state-path.cb-state-has-link {
    cursor: pointer;
}

.cb-state-path:hover {
    fill: var(--cb-map-hover-color, #00bfa5) !important;
    stroke-width: 1.2;
}

/* Pulse Markers */
.cb-map-marker {
    cursor: pointer;
    pointer-events: all;
}

.cb-map-marker .marker-base {
    fill: var(--cb-map-marker-color, #ff3b30);
    stroke: #ffffff;
    stroke-width: 1.5;
    transition: transform 0.2s ease;
}

.cb-map-marker .marker-pulse {
    fill: var(--cb-map-marker-color, #ff3b30);
    opacity: 0.4;
    transform-box: fill-box;
    transform-origin: center;
    animation: cbMapPulse 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.cb-map-marker:hover .marker-base {
    transform: scale(1.3);
    transform-box: fill-box;
    transform-origin: center;
}

@keyframes cbMapPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* Modern Glassmorphic Tooltip */
.cb-map-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 99999;
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.9);
    transition: opacity 0.15s ease, transform 0.15s ease;
    margin-top: -12px;
    font-family: 'Rubik', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    pointer-events: none;
}

.cb-map-tooltip.active {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
}

.cb-map-tooltip-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}

.cb-map-tooltip-desc {
    color: #cbd5e1;
    font-size: 12px;
}

/* Map Admin Styling Override Helper */
.cb-india-map-admin-layout {
    display: flex;
    gap: 30px;
}

.cb-india-map-admin-sidebar {
    flex: 1;
    max-height: 650px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

.cb-india-map-admin-preview {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-map-state-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.cb-map-state-row:last-child {
    border-bottom: none;
}

.cb-map-state-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cb-map-state-name {
    font-weight: 600;
    color: #1d3163;
}

.cb-map-state-fields {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.cb-map-state-row.active .cb-map-state-fields {
    display: flex;
}