.bayi-harita-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

/* === Map === */
.bayi-harita-map-area {
	margin-bottom: 20px;
}

.bayi-harita-wrapper {
	position: relative;
	width: 100%;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
	border: 1px solid #e0e0e0;
}

.bayi-harita-wrapper .leaflet-container {
	border-radius: 8px;
	background: #f0f0f0;
}

.bayi-harita-wrapper #bayi-harita-map {
	min-height: 300px;
	width: 100%;
	height: 100%;
}

/* === City Panel (map corner) === */
#bayi-harita-city-panel {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	max-height: calc(100% - 20px);
	overflow-y: auto;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	font-size: 12px;
	width: 200px;
}

.bayi-city-panel-title {
	padding: 10px 12px 6px;
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1e3a5f;
	border-bottom: 1px solid #eee;
}

.bayi-city-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 260px;
	overflow-y: auto;
}

.bayi-city-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 12px;
	cursor: pointer;
	transition: background 0.15s;
}

.bayi-city-item:hover {
	background: #f0f5ff;
}

.bayi-city-name {
	color: #333;
	font-weight: 500;
}

.bayi-city-count {
	background: #1e3a5f;
	color: #fff;
	border-radius: 10px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
}

/* === Filter === */
.bayi-harita-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 8px 8px 0 0;
	flex-wrap: wrap;
}

.bayi-harita-filter select {
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 13px;
	min-width: 180px;
	background: #fff;
	cursor: pointer;
}

.bayi-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 18px;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.bayi-btn-primary {
	background: #1e3a5f;
	color: #fff;
}

.bayi-btn-primary:hover {
	background: #15304f;
}

.bayi-btn-secondary {
	background: #e9ecef;
	color: #495057;
}

.bayi-btn-secondary:hover {
	background: #dee2e6;
}

.bayi-btn-sm {
	padding: 5px 12px;
	font-size: 12px;
	border-radius: 5px;
}

.bayi-btn-detail {
	background: #1e3a5f;
	color: #fff;
}

.bayi-btn-detail:hover {
	background: #2d5f8a;
}

.bayi-harita-count {
	margin-left: auto;
	font-size: 13px;
	color: #666;
	font-weight: 500;
}

/* === Table === */
.bayi-harita-table-wrap {
	border: 1px solid #e0e0e0;
	border-top: none;
	border-radius: 0 0 8px 8px;
	overflow-x: auto;
}

.bayi-harita-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.bayi-harita-table thead {
	background: #1e3a5f;
	color: #fff;
}

.bayi-harita-table thead th {
	padding: 12px 14px;
	text-align: left;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	white-space: nowrap;
}

.bayi-harita-table tbody tr {
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.15s;
}

.bayi-harita-table tbody tr:hover {
	background: #f0f5ff;
}

.bayi-harita-table tbody tr:last-child {
	border-bottom: none;
}

.bayi-harita-table tbody td {
	padding: 10px 14px;
	color: #333;
	vertical-align: middle;
}

.bayi-harita-table tbody td:first-child {
	color: #999;
	font-weight: 500;
	width: 40px;
	text-align: center;
}

/* === Popup === */
.leaflet-popup-content-wrapper {
	border-radius: 12px !important;
	padding: 0 !important;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22) !important;
	overflow: hidden;
	max-width: 300px !important;
}

.leaflet-popup-content {
	margin: 0 !important;
	padding: 0 !important;
	max-width: 300px !important;
	width: 300px !important;
}

.bayi-popup {
	width: 300px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: #333;
	line-height: 1.5;
}

.bayi-popup-header {
	background: linear-gradient(135deg, #1e3a5f, #2d5f8a);
	padding: 14px 16px 10px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.bayi-popup-logo {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
	flex-shrink: 0;
	padding: 2px;
}

.bayi-popup-title {
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	word-break: break-word;
}

.bayi-popup-body {
	padding: 12px 16px 16px;
}

.bayi-popup-row {
	font-size: 12px;
	color: #555;
	margin-bottom: 6px;
	display: flex;
	gap: 6px;
	line-height: 1.5;
}

.bayi-popup-row:last-child {
	margin-bottom: 0;
}

.bayi-popup-row .bayi-label {
	font-weight: 600;
	color: #1e3a5f;
	white-space: nowrap;
	min-width: 40px;
}

.bayi-popup-row .bayi-val {
	color: #333;
	word-break: break-word;
}

.bayi-popup-row a {
	color: #2d5f8a;
	text-decoration: none;
	font-weight: 500;
}

.bayi-popup-row a:hover {
	text-decoration: underline;
	color: #1e3a5f;
}

.bayi-popup-divider {
	height: 1px;
	background: #e8e8e8;
	margin: 8px 0;
}

/* === Pin === */
.bayi-pin-marker {
	background: transparent !important;
	border: none !important;
}

.leaflet-popup-tip {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	background: #fff !important;
}

.leaflet-popup-close-button {
	font-size: 20px !important;
	color: #999 !important;
	top: 6px !important;
	right: 8px !important;
	z-index: 10;
	width: 24px !important;
	height: 24px !important;
	line-height: 22px !important;
	text-align: center;
	transition: color 0.2s;
}

.leaflet-popup-close-button:hover {
	color: #333 !important;
}

.leaflet-control-attribution {
	font-size: 10px !important;
	background: rgba(255, 255, 255, 0.85) !important;
	padding: 2px 6px !important;
}

.leaflet-control-zoom {
	border: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
	border-radius: 8px !important;
	overflow: hidden;
}

.leaflet-control-zoom a {
	border: none !important;
	color: #333 !important;
	font-weight: bold;
}

/* === Responsive === */
@media (max-width: 768px) {
	.bayi-harita-filter {
		flex-direction: column;
		align-items: stretch;
	}

	.bayi-harita-filter select {
		min-width: auto;
		width: 100%;
	}

	.bayi-harita-count {
		margin-left: 0;
		text-align: center;
	}

	#bayi-harita-city-panel {
		width: 160px;
		font-size: 11px;
	}

	.bayi-harita-table {
		font-size: 12px;
	}

	.bayi-harita-table thead th,
	.bayi-harita-table tbody td {
		padding: 8px 10px;
	}
}
