/* Styles for detailed models block (extracted from views/cars/_detailed_models.php). */
.detailed-models-section {
    margin: 40px 0;
}

.detailed-models-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 0;
}

.detailed-models-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.detailed-models-stats {
    display: flex;
    gap: 20px;
}

.detailed-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detailed-stat-value {
    font-size: 22px;
    font-weight: 700;
    color: #0c73fe;
}

.detailed-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
}

.detailed-grid-body {
    background: white;
    border-radius: 8px;
    overflow: visible;
    padding: 10px 20px;
}

.detailed-model-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 8px 0px;
    align-items: center;
    transition: background 0.2s;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}

.detailed-model-row:hover {
    background: #fafafa;
}

.detailed-grid-cell {
    display: flex;
    align-items: center;
}

.detailed-image-col {
    justify-content: center;
}

.detailed-model-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.model-photo {
    width: 100%;
    object-fit: cover;
}

.detailed-image-placeholder {
    font-size: 56px;
    color: #ccc;
}

.detailed-model-name-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.detailed-model-name-wrapper {
    display: flex;
    flex-direction: row;
    gap: 14px;
    text-decoration: none;
    align-items: center;
}

.detailed-model-name-wrapper a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.detailed-model-name-wrapper a:hover strong {
    color: #0c73fe;
}

.detailed-model-name-wrapper strong {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.detailed-years-text {
    font-size: 13px;
    color: #999;
}

.electric-icon {
    color: #10b981;
    flex-shrink: 0;
}



.detailed-generations-list {
    display: block;
    grid-column: 1 / -1;
    background: transparent;
    padding: 0px 0;
}

.detailed-generation-item {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 12px;
    padding: 2px 16px 2px 16px;
    align-items: center;
    transition: background 0.2s;
    position: relative;
}

.detailed-generation-item:hover {
    background: #ffffff;
}

.detailed-generation-image {
    width: 170px;
    height: 115px;
    background: #ffffff;
    border: 2px solid #f0f0f0;
}

.detailed-generation-image .detailed-image-placeholder {
    font-size: 36px;
    color: #ddd;
}

.detailed-generation-image .model-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detailed-generation-name {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s;
}

a:hover .detailed-generation-name {
    color: #0c73fe;
}

.detailed-generation-years {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}



@media (max-width: 768px) {
    .detailed-models-section {
        margin: 20px -10px;
    }
    
    .detailed-models-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 15px;
    }
    
    .detailed-models-header h2 {
        font-size: 20px;
    }
    
    .detailed-grid-body {
        border-radius: 0;
    }
    
    .detailed-model-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 0px;
    }
    
    .detailed-model-name-col {
        grid-column: 1;
    }
    
    .detailed-model-image {
        width: 90px;
        height: 90px;
    }
    
    .detailed-image-placeholder {
        font-size: 42px;
    }
    
    .detailed-model-name-wrapper strong {
        font-size: 14px;
    }
    
    .detailed-years-text {
        font-size: 12px;
    }
    
    .detailed-generation-item {
        grid-template-columns: 70px 1fr;
        padding: 10px 0px 10px 35px;
        gap: 12px;
    }
    
    .detailed-generation-image {
        width: 60px;
        height: 60px;
        border-width: 1px;
    }
    
    .detailed-generation-image .detailed-image-placeholder {
        font-size: 28px;
    }
    
    .detailed-generation-name {
        font-size: 13px;
    }
    
    .detailed-generation-years {
        font-size: 11px;
    }
}
