/* Araç Ekspertiz Diyagramı — Resim tabanlı */
.expertise-wrapper {
    padding: 10px 0;
}

.expertise-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 14px 20px;
    background: #fafaf5;
    border-radius: 8px;
    border: 1px solid #e9e9e0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1px solid rgba(0,0,0,0.08);
}

.expertise-main-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Resim konteyner */
.car-diagram-container {
    flex: 0 0 340px;
    max-width: 340px;
}

.car-image-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    background: #f5f3ed;
    border-radius: 12px;
    border: 1px solid #ddd8cc;
    overflow: hidden;
}

.car-plan-image {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
}

/* Tıklanabilir overlay bölgeleri */
.car-part-overlay {
    position: absolute;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 2px solid transparent;
}

.car-part-overlay:hover {
    background: rgba(0,0,0,0.08) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}

.car-part-overlay.active:hover {
    filter: brightness(1.1);
    box-shadow: none;
}

.part-overlay-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}

/* Sidebar */
.expertise-sidebar {
    flex: 1;
    min-width: 0;
}

.expertise-status-group {
    margin-bottom: 20px;
}

.expertise-status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

.expertise-status-header .legend-color {
    width: 14px;
    height: 14px;
}

.expertise-parts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-parts-list li {
    font-size: 14px;
    color: #555;
    padding: 4px 0 4px 8px;
    line-height: 1.5;
}

.expertise-all-original {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 14px;
    font-weight: 500;
}

/* Readonly */
.expertise-readonly .car-part-overlay {
    cursor: default !important;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .expertise-main-layout {
        flex-direction: column;
    }
    .car-diagram-container {
        flex: none;
        max-width: 320px;
        margin: 0 auto;
    }
}
