/**
 * Türkiye Bayi Haritası — ön yüz stilleri
 * Renkler ayarlar sayfasından CSS değişkenleriyle gelir
 */

.tbh-wrap {
	position: relative;
	margin: 0 auto;
	max-width: 1100px;
}

/* ---------- Harita ---------- */

.tbh-harita {
	width: 100%;
	line-height: 0;
}

.tbh-harita svg {
	width: 100%;
	height: auto;
	display: block;
}

.tbh-harita-yukleniyor {
	padding: 60px 20px;
	text-align: center;
	color: #6b7280;
	line-height: 1.5;
}

/* İl şekilleri */
.tbh-svg .tbh-il,
.tbh-svg .tbh-il path {
	fill: var(--tbh-renk-normal, #d7dee6) !important;
	stroke: #ffffff;
	stroke-width: 1;
	cursor: pointer;
	transition: fill 0.15s ease;
	outline: none;
}

.tbh-svg .tbh-il-bayili,
.tbh-svg .tbh-il-bayili path {
	fill: var(--tbh-renk-bayili, #4f86c6) !important;
}

.tbh-svg .tbh-il:hover,
.tbh-svg .tbh-il:hover path,
.tbh-svg .tbh-il:focus,
.tbh-svg .tbh-il:focus path {
	fill: var(--tbh-renk-hover, #9db8d2) !important;
}

.tbh-svg .tbh-il-secili,
.tbh-svg .tbh-il-secili path,
.tbh-svg .tbh-il-secili:hover,
.tbh-svg .tbh-il-secili:hover path {
	fill: var(--tbh-renk-secili, #1f5fa8) !important;
}

/* İl adı yazıları varsa tıklamayı engellemesin */
.tbh-svg text {
	pointer-events: none;
}

/* ---------- Bayi sayısı rozetleri ---------- */

.tbh-rozetler {
	pointer-events: none; /* Tıklamalar alttaki ile geçsin */
}

.tbh-rozetler circle {
	fill: var(--tbh-renk-secili, #1f5fa8);
	stroke: #ffffff;
	stroke-width: 1.5;
	opacity: 0.95;
}

.tbh-rozetler text {
	fill: #ffffff !important;
	font-weight: 700;
	font-family: inherit;
}

/* ---------- İpucu balonu ---------- */

.tbh-tooltip {
	display: none;
	position: absolute;
	z-index: 20;
	background: #111827;
	color: #ffffff;
	font-size: 13px;
	line-height: 1;
	padding: 7px 10px;
	border-radius: 6px;
	pointer-events: none;
	white-space: nowrap;
}

/* ---------- Filtreler ---------- */

.tbh-filtreler {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0 10px;
}

.tbh-filtreler select {
	flex: 1 1 200px;
	min-width: 160px;
	padding: 9px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	background: #ffffff;
	font-size: 14px;
}

.tbh-temizle {
	padding: 9px 18px;
	border: none;
	border-radius: 8px;
	background: var(--tbh-renk-vurgu, #1f5fa8);
	color: #ffffff;
	font-size: 14px;
	cursor: pointer;
}

.tbh-temizle:hover {
	opacity: 0.9;
}

/* ---------- Sonuç listesi ---------- */

.tbh-sonuc {
	margin-top: 12px;
}

.tbh-sonuc-baslik {
	margin: 10px 0 14px;
	font-size: 20px;
}

.tbh-sonuc-baslik:empty {
	display: none;
}

.tbh-bilgi {
	padding: 24px;
	text-align: center;
	background: #f3f4f6;
	border-radius: 10px;
	color: #4b5563;
}

.tbh-kartlar {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.tbh-kart {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 18px;
	background: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.15s ease;
}

.tbh-kart:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tbh-kart-ust {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f3f4f6;
}

.tbh-kart-baslik {
	font-weight: 700;
	font-size: 16px;
	color: #111827;
}

.tbh-kart-etiketler {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.tbh-kart-konum {
	display: inline-block;
	font-size: 12px;
	color: var(--tbh-renk-vurgu, #1f5fa8);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Bayi türü rozeti */
.tbh-kart-tur {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--tbh-renk-vurgu, #1f5fa8);
	color: #ffffff;
	letter-spacing: 0.02em;
}

.tbh-kart-tur.tbh-tur-servis {
	background: #b45309; /* Yetkili servis: turuncu ton */
}

.tbh-kart-tur.tbh-tur-bayi_servis {
	background: #047857; /* Bayi ve servis: yeşil ton */
}

.tbh-kart-detay {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #374151;
}

.tbh-kart-detay li {
	margin: 4px 0;
}

.tbh-etiket {
	font-weight: 600;
	color: #111827;
}

.tbh-kart-detay a {
	color: var(--tbh-renk-vurgu, #1f5fa8);
	text-decoration: none;
}

.tbh-kart-detay a:hover {
	text-decoration: underline;
}

/* ---------- Mobil ---------- */

@media (max-width: 600px) {
	.tbh-kartlar {
		grid-template-columns: 1fr;
	}

	.tbh-filtreler select,
	.tbh-temizle {
		flex: 1 1 100%;
	}
}
