/**
 * Single Dealer Page Styles
 */

/* Page Layout */
.dealer-single-page {
    background: #f8f9fa;
    min-height: 80vh;
}

.dealer-single-loading {
    text-align: center;
    padding: 6rem 2rem;
    color: #6c757d;
}

.dealer-single-loading__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top-color: #FDB521;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.dealer-single-error {
    text-align: center;
    padding: 6rem 2rem;
}

.dealer-single-error__content {
    max-width: 400px;
    margin: 0 auto;
}

.dealer-single-error svg {
    margin-bottom: 1.5rem;
    stroke: #adb5bd;
}

.dealer-single-error h2 {
    font-size: 1.5rem;
    color: #212529;
    margin-bottom: 0.5rem;
}

.dealer-single-error p {
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: #FDB521;
    color: #000;
}

.btn--primary:hover {
    background: #e5a01e;
    color: #000;
}

.btn--outline {
    background: transparent;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn--outline:hover {
    border-color: #FDB521;
    color: #FDB521;
}

/* Header Section */
.dealer-single-header {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid #e9ecef;
}

.dealer-single-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.dealer-single-header__region {
    display: inline-block;
    font-size: 0.8125rem;
    color: #6c757d;
    background: #f1f3f4;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.dealer-single-header__name {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    margin: 0;
    color: #000;
}

/* Tier Badges */
.dealer-tier-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dealer-tier-badge--finalfit {
    background: linear-gradient(135deg, #FDB521 0%, #E5A01E 100%);
    color: #000;
}

.dealer-tier-badge--pro {
    background: #212529;
    color: #fff;
}

/* Sections */
.dealer-single-section {
    padding: 2.5rem 0;
}

.dealer-single-section__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dealer-single-section__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Product Lines Section */
.dealer-single-products {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.dealer-product-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dealer-product-type {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
}

.dealer-product-type__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 1rem 0;
}

.dealer-product-type__title svg {
    width: 24px;
    height: 24px;
    stroke: #FDB521;
}

.dealer-product-type__lines {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dealer-product-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #FDB521;
    color: #000;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dealer-product-badge--empty {
    background: #e9ecef;
    color: #6c757d;
}

/* Services Grid */
.dealer-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.dealer-service-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.dealer-service-card svg {
    width: 32px;
    height: 32px;
    stroke: #adb5bd;
    margin-bottom: 0.75rem;
}

.dealer-service-card__name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #adb5bd;
    margin-bottom: 0.25rem;
}

.dealer-service-card__desc {
    display: block;
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Active Service */
.dealer-service-card--active {
    background: #fff;
    border: 2px solid #FDB521;
    box-shadow: 0 4px 12px rgba(200, 169, 107, 0.15);
}

.dealer-service-card--active svg {
    stroke: #FDB521;
}

.dealer-service-card--active .dealer-service-card__name {
    color: #212529;
}

.dealer-service-card--active .dealer-service-card__desc {
    color: #6c757d;
}

/* Certification Cards */
.dealer-service-card--cert {
    border: 1px dashed #dee2e6;
    background: #fafafa;
}

.dealer-service-card--cert.dealer-service-card--active {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e6 100%);
    border: 2px solid #FDB521;
}

/* Contact Section */
.dealer-single-contact-section {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
}

.dealer-contact-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dealer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

a.dealer-contact-item:hover {
    border-color: #FDB521;
    background: #fff;
    box-shadow: 0 4px 12px rgba(200, 169, 107, 0.1);
}

.dealer-contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: #FDB521;
    margin-top: 2px;
}

.dealer-contact-item__content {
    flex: 1;
}

.dealer-contact-item__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.dealer-contact-item__value {
    display: block;
    font-size: 1rem;
    color: #212529;
    font-weight: 500;
}

.dealer-contact-item__action {
    display: block;
    font-size: 0.8125rem;
    color: #FDB521;
    margin-top: 0.5rem;
    font-weight: 600;
}

.dealer-contact-item--phone .dealer-contact-item__value {
    font-size: 1.25rem;
    font-weight: 700;
}

.dealer-contact-empty {
    color: #6c757d;
    font-style: italic;
}

/* Description */
.dealer-description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #495057;
    white-space: pre-line;
    margin: 0;
}

/* Actions */
.dealer-single-actions {
    background: #fff;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .dealer-single-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dealer-product-lines-grid {
        grid-template-columns: 1fr;
    }
    
    .dealer-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dealer-services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .dealer-service-card {
        padding: 1rem;
    }
    
    .dealer-service-card svg {
        width: 24px;
        height: 24px;
    }
    
    .dealer-service-card__name {
        font-size: 0.8125rem;
    }
    
    .dealer-service-card__desc {
        display: none;
    }
}
