/* Oto İlan — Ekspertiz şeması (Sahibinden tarzı haç düzen) */

.oto-ilan-expertise-wrap {
	--exo-base: #d8dee6;
	padding: 0;
}

.oto-expertise-toolbar {
	margin-bottom: 16px;
}

.oto-expertise-hint {
	margin: 0 0 10px;
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
}

.oto-expertise-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.oto-expertise-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: #475569;
}

.oto-expertise-legend__dot {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	flex-shrink: 0;
}

.oto-expertise-legend__count {
	margin-left: auto;
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	background: #f1f5f9;
	padding: 4px 10px;
	border-radius: 20px;
}

/* Sol liste + sağ şema */
.oto-expertise-body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}

.oto-expertise-sidebar {
	flex: 0 0 280px;
	max-width: 100%;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 12px;
	overflow: visible;
}

.oto-expertise-summary__list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.oto-expertise-sidebar__note {
	margin: 12px 0 0;
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.45;
}

.oto-expertise-summary__item.no-schema {
	opacity: 0.85;
}

/* Şema alanı */
.oto-expertise-schema-container {
	position: relative;
	flex: 1 1 400px;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 12px 8px;
	min-height: 340px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba( 15, 23, 42, 0.06 );
}

.oto-expertise-svg {
	width: 100%;
	max-width: 220px;
	height: auto;
	min-height: 0;
	display: block;
	margin: 0 auto;
	user-select: none;
}

.oto-expertise-error {
	color: #b91c1c;
	font-size: 13px;
	text-align: center;
	padding: 24px;
}

.oto-car-outline,
.oto-car-deco {
	pointer-events: none;
}

.oto-expertise-view-label {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 12px;
	font-weight: 700;
	fill: #94a3b8;
	letter-spacing: 0.12em;
}

.oto-car-part {
	cursor: pointer;
	outline: none;
}

.oto-car-part-surface {
	transition: fill 0.2s ease, filter 0.15s ease;
	stroke: none;
	stroke-width: 0;
}

.oto-car-part:hover .oto-car-part-surface,
.oto-car-part:focus-visible .oto-car-part-surface {
	filter: brightness( 0.94 );
}

.oto-car-part.is-active .oto-car-part-surface {
	stroke: none;
	stroke-width: 0;
	filter: none;
}

.oto-car-part.is-highlight .oto-car-part-surface {
	stroke: none;
	stroke-width: 0;
	filter: brightness( 0.9 );
}

.oto-ilan-expertise-wrap--readonly .oto-car-part {
	cursor: default;
	pointer-events: none;
}

.oto-ilan-expertise-wrap--readonly .oto-car-part:hover .oto-car-part-surface,
.oto-ilan-expertise-wrap--readonly .oto-car-part.is-highlight .oto-car-part-surface {
	filter: none;
	stroke: none;
	stroke-width: 0;
}

.oto-expertise-summary__label {
	flex: 1 1 auto;
	min-width: 0;
}

/* Durum menüsü */
.oto-expertise-context-menu {
	position: fixed;
	z-index: 100100;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 16px 48px rgba( 15, 23, 42, 0.2 );
	min-width: 220px;
	overflow: hidden;
}

.oto-expertise-menu__title {
	padding: 10px 14px;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.oto-expertise-menu__option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 10px 14px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	text-align: left;
	color: #334155;
}

.oto-expertise-menu__option:hover {
	background: #eff6ff;
	color: #c11a27;
}

.oto-expertise-menu__option.is-selected {
	background: #dbeafe;
	font-weight: 600;
}

.oto-expertise-menu__dot {
	width: 14px;
	height: 14px;
	border-radius: 3px;
	border: 1px solid rgba( 0, 0, 0, 0.1 );
	flex-shrink: 0;
}

/* Parça listesi */
.oto-expertise-summary {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
}

.oto-expertise-summary__heading {
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
}

.oto-expertise-summary__item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 12px;
	border: 1px solid #e2e8f0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
	font-family: inherit;
	text-align: left;
	box-sizing: border-box;
}

.oto-expertise-summary__item.is-active-part {
	border-color: #E31F2E;
	box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.2 );
	background: #eff6ff;
}

.oto-expertise-summary__item:disabled {
	cursor: default;
}

.oto-expertise-summary__item:not( :disabled ):hover {
	border-color: #93c5fd;
	box-shadow: 0 0 0 2px rgba( 37, 99, 235, 0.15 );
}

.oto-expertise-summary__item.has-status {
	border-color: #cbd5e1;
}

.oto-expertise-summary__dot {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
	border: 1px solid rgba( 0, 0, 0, 0.08 );
}

.oto-expertise-summary__label {
	font-weight: 600;
	color: #334155;
}

.oto-expertise-summary__status {
	color: #64748b;
	font-size: 11px;
}

/* Tekil ilan / sekme */
.oto-ilan-single .oto-expertise-schema-container,
.oto-ilan-tabs__panel .oto-expertise-schema-container {
	border: none;
	box-shadow: none;
	background: transparent;
	padding: 4px 0;
	min-height: 0;
}

.oto-ilan-single .oto-expertise-svg,
.oto-ilan-tabs__panel .oto-expertise-svg {
	max-width: 300px;
	min-height: 0;
}

.oto-ilan-single .oto-expertise-body,
.oto-ilan-tabs__panel .oto-expertise-body {
	gap: 12px;
}

.oto-ilan-single .oto-expertise-sidebar,
.oto-ilan-tabs__panel .oto-expertise-sidebar {
	flex: 0 0 200px;
	padding: 10px 8px;
	overflow: visible;
}

.oto-ilan-single .oto-expertise-toolbar,
.oto-ilan-tabs__panel .oto-expertise-toolbar {
	margin-bottom: 10px;
}

.oto-ilan-single .oto-expertise-hint,
.oto-ilan-tabs__panel .oto-expertise-hint {
	display: none;
}

@media ( max-width: 900px ) {
	.oto-expertise-body {
		flex-direction: column;
	}

	.oto-expertise-sidebar {
		flex: 1 1 auto;
		width: 100%;
	}

	.oto-expertise-schema-container {
		width: 100%;
		min-height: 300px;
	}

	.oto-expertise-svg {
		max-width: 200px;
	}
}

@media ( max-width: 600px ) {
	.oto-expertise-schema-container {
		padding: 12px 4px;
	}

	.oto-expertise-legend__count {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}
