/* Model Details Modal - Select model configuration */

.model-details-content {
    box-sizing: border-box;
    width: min(760px, 94vw);
    max-height: 80vh;
    padding: 24px 24px 24px 24px;
    gap: 18px;
    display: flex;
    flex-direction: column;
}

.model-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.model-details-title-wrap h3 {
    margin: 0;
    text-align: left;
}

.model-details-selected-car {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    flex-shrink: 0;
}

.model-details-logo-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.model-details-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.model-details-logo-placeholder {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.model-details-logo-placeholder.show {
    opacity: 1;
}

.model-details-logo-placeholder i {
    font-size: 20px;
    color: rgba(6, 182, 212, 0.6);
}

.model-details-brand-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.model-details-model-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
}

.model-details-variants {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
}

.model-details-variants::-webkit-scrollbar { width: 6px; }
.model-details-variants::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); border-radius: 3px; }
.model-details-variants::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
.model-details-variants::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.model-variants-year {
    margin-top: 6px;
    margin-bottom: 2px;
    color: #f1f5f9;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.model-variant-item {
    border: 1px solid #334155;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.75);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    min-width: 0;
}

.model-variant-item:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(15, 23, 42, 0.92);
}

.model-variant-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.model-variant-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.model-variant-spec {
    color: #cbd5e1;
    font-size: 0.95rem;
}

.model-variant-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.model-estimate-badge {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 0.82rem;
    font-weight: 700;
}

.model-variant-select {
    border: none;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    font-size: 1.1rem;
}

.model-variant-select:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .model-details-content {
        width: min(96vw, 640px);
        max-height: 86vh;
        padding: 18px;
    }

    .model-variant-item {
        align-items: flex-start;
    }

    .model-variant-actions {
        align-self: center;
    }
}
