/* ==========================================================================
   전국 지자체 전기차 보조금 현황 모던 디자인 시스템
   ========================================================================== */

/* Hero & Quick Action */
.tc-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0, 113, 227, 0.12);
	color: var(--tc-blue, #0071e3);
	padding: 6px 16px;
	border-radius: 30px;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 12px;
}
[data-bs-theme="dark"] .tc-hero-badge {
	background: rgba(59, 130, 246, 0.2);
	color: #60a5fa;
}

.tc-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
	background: var(--tc-surface, #ffffff);
	border: 1px solid var(--tc-border, #e2e8f0);
	color: var(--tc-text-primary, #0f172a);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tc-chip:hover {
	background: var(--tc-surface-hover, #f1f5f9);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	color: var(--tc-blue, #0071e3);
}

/* My Location Button */
.btn-my-loc {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 20px;
	border-radius: 30px;
	font-weight: 600;
	font-size: 0.92rem;
	background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%);
	color: #ffffff !important;
	border: none;
	box-shadow: 0 4px 14px rgba(0, 113, 227, 0.35);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}
.btn-my-loc:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 113, 227, 0.5);
	color: #ffffff !important;
}
.btn-my-loc:active {
	transform: translateY(0);
}
.btn-my-loc .loc-pulse {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
	animation: pulse-green 1.8s infinite;
}
@keyframes pulse-green {
	0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
	70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Vehicle Quick Cards */
.vehicle-quick-card {
	background: var(--tc-surface, #ffffff);
	border: 1px solid var(--tc-border, #e2e8f0);
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.vehicle-quick-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 113, 227, 0.4);
}
[data-bs-theme="dark"] .vehicle-quick-card {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Map & Dashboard Section
   ========================================================================== */
.subsidy-map-container {
	position: relative;
	background: var(--tc-surface, #ffffff);
	border: 1px solid var(--tc-border, #e2e8f0);
	border-radius: 24px;
	padding: 28px;
	margin-bottom: 28px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
[data-bs-theme="dark"] .subsidy-map-container {
	background: #1e293b;
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* Legend Styling */
.map-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.03);
	color: var(--tc-text-secondary, #64748b);
	border: 1px solid transparent;
}
[data-bs-theme="dark"] .map-legend-item {
	background: rgba(255, 255, 255, 0.04);
}
.map-legend-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

/* 4 National Stats Cards (Uniform Size & Layout) */
.stat-pill {
	background: var(--tc-surface-hover, #f8fafc);
	border: 1px solid var(--tc-border, #e2e8f0);
	border-radius: 16px;
	padding: 16px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.25s ease;
	position: relative;
	overflow: hidden;
}
[data-bs-theme="dark"] .stat-pill {
	background: rgba(15, 23, 42, 0.6);
	border-color: rgba(255, 255, 255, 0.08);
}
.stat-pill:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
	border-color: var(--tc-blue, #0071e3);
}
.stat-pill-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--tc-text-secondary, #64748b);
	margin-bottom: 8px;
}
.stat-pill-icon {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
}
.stat-pill-value {
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.5px;
	margin-bottom: 10px;
}
.stat-pill-footer {
	font-size: 0.78rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
	padding-top: 8px;
	border-top: 1px dashed rgba(0, 0, 0, 0.08);
}
[data-bs-theme="dark"] .stat-pill-footer {
	border-top-color: rgba(255, 255, 255, 0.08);
}

/* Diff Badge */
.diff-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 0.74rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 6px;
	letter-spacing: -0.2px;
	white-space: nowrap;
}
.diff-badge-down {
	background: rgba(239, 68, 68, 0.12);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.25);
}
[data-bs-theme="light"] .diff-badge-down {
	background: #fee2e2;
	color: #b91c1c;
	border-color: #fca5a5;
}
.diff-badge-up {
	background: rgba(16, 185, 129, 0.12);
	color: #10b981;
	border: 1px solid rgba(16, 185, 129, 0.25);
}
[data-bs-theme="light"] .diff-badge-up {
	background: #d1fae5;
	color: #047857;
	border-color: #6ee7b7;
}
.diff-badge-none {
	background: rgba(148, 163, 184, 0.12);
	color: #94a3b8;
	border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Region Chips Buttons Grid */
.region-chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid var(--tc-border, #e2e8f0);
	background: var(--tc-surface, #ffffff);
	color: var(--tc-text-primary, #0f172a);
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}
[data-bs-theme="dark"] .region-chip-btn {
	background: rgba(15, 23, 42, 0.5);
	border-color: rgba(255, 255, 255, 0.1);
	color: #e2e8f0;
}
.region-chip-btn:hover {
	background: var(--tc-surface-hover, #f1f5f9);
	border-color: var(--tc-blue, #0071e3);
	color: var(--tc-blue, #0071e3);
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
[data-bs-theme="dark"] .region-chip-btn:hover {
	background: #334155;
	color: #60a5fa;
}

/* ==========================================================================
   SVG Map Styling
   ========================================================================== */
.korea-map-svg {
	width: 100%;
	max-height: 540px;
	height: auto;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.1));
}

.map-region-path {
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	stroke-width: 1.2;
	stroke: #ffffff;
	stroke-linejoin: round;
}
[data-bs-theme="dark"] .map-region-path {
	stroke: #0f172a;
}

.map-region-path:hover {
	filter: brightness(1.18);
	stroke-width: 2.2;
	stroke: #ffffff !important;
}
[data-bs-theme="dark"] .map-region-path:hover {
	stroke: #60a5fa !important;
}

.map-region-path.active {
	stroke: #2563eb !important;
	stroke-width: 3 !important;
	filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.9)) brightness(1.25);
}

/* Status Color Palette (Both HTML background & SVG fill) */
.map-status-success {
	background-color: #10b981 !important;
	fill: #10b981 !important;
}
.map-status-warning {
	background-color: #f59e0b !important;
	fill: #f59e0b !important;
}
.map-status-danger {
	background-color: #ef4444 !important;
	fill: #ef4444 !important;
}
.map-status-exhausted {
	background-color: #94a3b8 !important;
	fill: #94a3b8 !important;
}

/* Callout Lines & POI Dots (Distinct Cyan / Sky Blue Contrast) */
.map-callout-line {
	fill: none;
	stroke: #0284c7;
	stroke-width: 2;
	pointer-events: none;
	transition: all 0.2s ease;
	opacity: 0.95;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}
[data-bs-theme="dark"] .map-callout-line {
	stroke: #38bdf8;
	opacity: 1;
	filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.6));
}
.map-poi-dot {
	pointer-events: none;
	stroke: #0284c7;
	stroke-width: 2.5;
	transition: all 0.2s ease;
}
[data-bs-theme="dark"] .map-poi-dot {
	stroke: #38bdf8;
	stroke-width: 2.5;
}

/* SVG Map Labels (Unified Pill Badges) */
.map-label-node {
	cursor: pointer;
	pointer-events: auto;
}
.map-label-pill {
	rx: 16;
	ry: 16;
	fill: #0f172a;
	stroke: rgba(255, 255, 255, 0.35);
	stroke-width: 1.5;
	transition: stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}
[data-bs-theme="light"] .map-label-pill {
	fill: #ffffff;
	stroke: rgba(0, 0, 0, 0.2);
	filter: drop-shadow(0 2px 5px rgba(0,0,0,0.16));
}
.map-label-node:hover .map-label-pill {
	stroke: #3b82f6;
	stroke-width: 2.5;
	filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.75));
}
[data-bs-theme="light"] .map-label-node:hover .map-label-pill {
	stroke: #2563eb;
	stroke-width: 2.5;
	filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.4));
}
.map-label-text {
	font-size: 15.5px;
	font-weight: 800;
	letter-spacing: -0.4px;
	fill: #ffffff;
	text-anchor: start;
	dominant-baseline: central;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	pointer-events: none;
}
[data-bs-theme="light"] .map-label-text {
	fill: #0f172a;
}
.map-label-status-dot {
	pointer-events: none;
}

/* Map Tooltip (Fixed viewport positioning next to cursor) */
.map-tooltip {
	position: fixed;
	display: none;
	z-index: 99999;
	background: rgba(15, 23, 42, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #ffffff;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
	pointer-events: none;
	font-size: 0.85rem;
	min-width: 180px;
	transition: opacity 0.15s ease;
}
[data-bs-theme="light"] .map-tooltip {
	background: rgba(255, 255, 255, 0.98);
	color: #0f172a;
	border-color: rgba(0, 0, 0, 0.12);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* ==========================================================================
   Table & Search Box
   ========================================================================== */
.subsidy-search-box {
	display: flex;
	align-items: center;
	background: var(--tc-surface, #ffffff);
	border: 1px solid var(--tc-border, #cbd5e1);
	border-radius: 30px;
	padding: 2px 16px;
	transition: all 0.2s ease;
	width: 100%;
}
.subsidy-search-box:focus-within {
	border-color: var(--tc-blue, #0071e3);
	box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.2);
}
[data-bs-theme="dark"] .subsidy-search-box {
	background: #0f172a;
	border-color: rgba(255, 255, 255, 0.15);
}
.subsidy-search-input {
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--tc-text-primary, #0f172a);
	padding: 8px 10px;
	width: 100%;
	font-size: 0.92rem;
}
[data-bs-theme="dark"] .subsidy-search-input {
	color: #f1f5f9;
}
.subsidy-search-input::placeholder {
	color: var(--tc-text-secondary, #94a3b8);
}

.subsidy-table th, .subsidy-table td {
	vertical-align: middle;
	padding: 10px 12px;
}
.subsidy-table thead th {
	background: rgba(0, 0, 0, 0.04);
	border-bottom: 2px solid var(--tc-border, #e2e8f0);
	font-weight: 700;
	font-size: 0.88rem;
}
[data-bs-theme="dark"] .subsidy-table thead th {
	background: rgba(255, 255, 255, 0.05);
	color: #f1f5f9;
}
.loc-cell {
	background: var(--tc-surface, #ffffff) !important;
	border-right: 2px solid var(--tc-border, #e2e8f0);
}
[data-bs-theme="light"] .loc-cell {
	background: #f8fafc !important;
}
[data-bs-theme="dark"] .loc-cell {
	background: #1e293b !important;
}

.remaining-row {
	background: rgba(0, 113, 227, 0.07) !important;
	font-weight: 700;
}
[data-bs-theme="dark"] .remaining-row {
	background: rgba(0, 113, 227, 0.18) !important;
	color: #93c5fd;
}

.model-subsidy-header {
	background: rgba(16, 185, 129, 0.1) !important;
	color: #059669;
	font-weight: 700;
}
[data-bs-theme="dark"] .model-subsidy-header {
	background: rgba(16, 185, 129, 0.15) !important;
	color: #34d399;
}

@keyframes highlight-pulse {
	0% { background-color: rgba(234, 179, 8, 0.35); }
	50% { background-color: rgba(234, 179, 8, 0.15); }
	100% { background-color: transparent; }
}
.highlight-matched {
	animation: highlight-pulse 2.5s ease-out;
}

