/* Bayi Detay Page Styles */

/* Page Layout */
.dealer-detail-page {
    background: linear-gradient(180deg, #fdfdfd 0%, #f4f1e8 100%);
    padding: clamp(2rem, 4vw, 3.5rem) 0 4.5rem;
}

/* Hero Section */
.dealer-detail-hero {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dealer-surface {
    padding: clamp(1.25rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

    .dealer-surface::before {
        content: "";
        position: absolute;
        width: 210px;
        height: 210px;
        background: radial-gradient(circle at 30% 30%, rgba(251, 217, 40, 0.18), rgba(251, 217, 40, 0));
        top: -80px;
        left: -70px;
        transform: rotate(8deg);
    }

    .dealer-surface::after {
        content: "";
        position: absolute;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle at 70% 50%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0));
        right: -110px;
        bottom: -120px;
        transform: rotate(-10deg);
    }

/* Dealer Meta */
.dealer-meta {
    position: relative;
    z-index: 1;
}

.dealer-title {
    letter-spacing: 0.03em;
    color: #2f2f30;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
}

/* Info List */
.dealer-info-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.dealer-info-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-icon {
    width: 44px;
    height: 44px;
    color: #3b3b3c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: #f5f5f5;
    border-radius: 12px;
}

.info-label {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: #797979;
    margin-bottom: 0.2rem;
}

.dealer-info-item p {
    color: #4f4f4f;
    line-height: 1.5;
}

/* Dealer Actions */
.dealer-actions {
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.dealer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 14px;
    border: 1px solid #111;
    background: var(--yellow, #f9d42e);
    color: #1f1f20;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

    .dealer-btn:hover {
        transform: translateY(-2px);
        color: #0f0f10;
        box-shadow: 0 6px 20px rgba(249, 212, 46, 0.3);
    }

    .dealer-btn.outline {
        background: #fff;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    }

        .dealer-btn.outline:hover {
            background: var(--yellow, #f9d42e);
        }

/* Gallery Section */
.dealer-gallery-section {
    padding: 0 0 clamp(2.5rem, 4vw, 3.5rem);
}

.dealer-section-head {
    margin-bottom: 0.75rem;
}

    .dealer-section-head h2 {
        letter-spacing: 0.12em;
        color: #2f3136;
        text-transform: uppercase;
        font-size: clamp(1.25rem, 3vw, 1.5rem);
        margin-bottom: 0.3rem;
    }

/* Slider */
.dealer-slider {
    position: relative;
    background: #2f3136;
    padding: 3rem 15rem;
    overflow: hidden;
    border-radius: 24px;
}

.dealer-slider-window {
    overflow: hidden;
    border-radius: 16px;
}

.dealer-slider-track {
    display: flex;
    transition: transform 0.45s ease;
}

.dealer-slide {
    min-width: 100%;
    user-select: none;
}

    .dealer-slide img {
        width: 100%;
        height: clamp(220px, 50vw, 420px);
        object-fit: cover;
        border-radius: 12px;
    }

/* Slider Navigation */
.dealer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d3c7a4;
    background: var(--yellow, #f9d42e);
    color: #1f1f20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
    cursor: pointer;
}

    .dealer-nav:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    }

    .dealer-nav.prev {
        left: 166px;
    }

    .dealer-nav.next {
        right: 166px;
    }

/* Slider Dots */
.dealer-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dealer-dot {
    width: 12px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #fff;
    background: #b8b8b8;
    opacity: 0.7;
    transition: all 0.2s ease;
    cursor: pointer;
}

    .dealer-dot.active {
        background: var(--yellow, #f9d42e);
        opacity: 1;
        border-color: #f0d02a;
    }

/* Map Section */
.dealer-map-section {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

.dealer-map-card {
    padding: clamp(0.75rem, 2vw, 1.1rem);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.map-frame {
    border-radius: 16px;
    overflow: hidden;
    background: #dfe2e8;
}

    .map-frame iframe {
        display: block;
        width: 100%;
        height: 420px;
        border: none;
    }

/* Responsive */
@media (max-width: 1400px) {
    .dealer-slider {
        padding: 3rem 10rem;
    }

    .dealer-nav.prev {
        left: 120px;
    }

    .dealer-nav.next {
        right: 120px;
    }
}

@media (max-width: 1200px) {
    .dealer-slider {
        padding: 3rem 5rem;
    }

    .dealer-nav.prev {
        left: 60px;
    }

    .dealer-nav.next {
        right: 60px;
    }
}

@media (max-width: 992px) {
    .dealer-slider {
        padding: 2rem 3rem;
        border-radius: 18px;
    }

    .dealer-nav.prev {
        left: 15px;
    }

    .dealer-nav.next {
        right: 15px;
    }

    .dealer-nav {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .dealer-detail-page {
        padding: clamp(1.5rem, 3vw, 2rem) 0 3rem;
    }

    .dealer-surface {
        border-radius: 16px;
    }

    .dealer-title {
        font-size: 1.3rem;
    }

    .dealer-actions {
        flex-direction: column;
    }

    .dealer-btn {
        width: 100%;
        justify-content: center;
    }

    .dealer-slider {
        padding: 1.5rem 2rem;
    }

    .dealer-slide img {
        height: 250px;
    }

    .map-frame iframe {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .dealer-slider {
        padding: 1rem 1.5rem;
    }

    .dealer-nav {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

        .dealer-nav.prev {
            left: 10px;
        }

        .dealer-nav.next {
            right: 10px;
        }

    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .dealer-slide img {
        height: 200px;
    }
}
