/* ============================================
   DEALER COMMON STYLES
   resources/css/dealer.css
   ============================================ */

/* ── LOCATION BAR ── */
.location-bar {
    background: rgb(17, 24, 39);
    border-bottom: 3px solid #DC2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.location-icon {
    width: 20px;
    height: 20px;
    background: #DC2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
}

/* ── QUICK SEARCH ── */
.quick-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.quick-search:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-search input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 13px;
    width: 200px;
    font-weight: 500;
}

.quick-search input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.quick-search-btn {
    background: #DC2626;
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.quick-search-btn:hover {
    background: #B91C1C;
}

/* ── BUTTONS ── */
.btn-primary {
    background: #DC2626;
    color: white;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: rgb(30, 58, 138);
    color: white;
    font-weight: 700;
    padding: 16px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgb(23, 37, 84);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #DC2626;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 8px;
    border: 2px solid #DC2626;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #DC2626;
    color: white;
    transform: translateY(-2px);
}

.btn-submit {
    background: #DC2626;
    color: white;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

/* ── BADGES ── */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.badge-red    { background: #DC2626; color: white; }
.badge-blue   { background: #1E3A8A; color: white; }
.badge-gold   { background: #F59E0B; color: white; }
.badge-green  { background: #059669; color: white; }

.section-badge {
    display: inline-block;
    background: #FEE2E2;
    color: #DC2626;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* ── DEAL RIBBON ── */
.deal-ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ── RV CARDS ── */
.rv-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.rv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border-color: #DC2626;
}

.rv-card-image {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: #f8fafc;
}

.rv-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rv-card:hover .rv-card-image img {
    transform: scale(1.08);
}

/* ── CATEGORY CARDS ── */
.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 340px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.category-card:hover::after {
    background: linear-gradient(to top, rgba(220,38,38,0.9) 0%, rgba(30,58,138,0.6) 50%, transparent 100%);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.25);
}

.category-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
}

.category-card img {
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

/* ── FEATURE BOXES ── */
.feature-box {
    background: white;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    border-color: #DC2626;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

/* ── SEARCH ── */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.search-select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

.search-select:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-select:hover {
    border-color: #9ca3af;
}

/* ── TESTIMONIALS ── */
.testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.testimonial-card:hover {
    border-color: #1E3A8A;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(30, 58, 138, 0.15);
}

/* ── SERVICE CARDS ── */
.service-card {
    background: linear-gradient(135deg, #040404 0%, #090909 100%);
    border-radius: 12px;
    padding: 36px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.3);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(30, 58, 138, 0.4);
}

/* ── POPULAR TAGS ── */
.popular-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.popular-tag:hover {
    border-color: #DC2626;
    color: #DC2626;
    background: #fef2f2;
}

/* ── BRAND GRID ── */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    align-items: center;
}

.brand-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── SECTION TITLES ── */
.section-title {
    font-size: 42px;
    font-weight: 900;
    color: #111827;
    margin-bottom: 24px;
    line-height: 1.2;
}

.section-description {
    font-size: 18px;
    color: #6B7280;
    margin-bottom: 32px;
    line-height: 1.6;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

/* ── STAT CARDS ── */
.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 4px solid #DC2626;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #DC2626;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── VALUE / FEATURE CARDS ── */
.value-card {
    background: white;
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

/* ── TEAM CARDS ── */
.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* ── LOCATION CARDS ── */
.location-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.location-header {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    padding: 32px;
    color: white;
}

/* ── CONTACT FORM ── */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.required { color: #DC2626; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
}

/* ── QUICK CONTACT CARDS ── */
.quick-contact-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #DC2626;
}

.quick-contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.quick-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

/* ── PRICE CARD ── */
.price-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.price-main {
    font-size: 42px;
    font-weight: 900;
    color: #DC2626;
    line-height: 1;
    margin-bottom: 8px;
}

/* ── TABS ── */
.tabs-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 32px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #E5E7EB;
    overflow-x: auto;
}

.tab-button {
    padding: 20px 32px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: #6B7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-button:hover { color: #DC2626; }
.tab-button.active {
    color: #DC2626;
    border-bottom-color: #DC2626;
}

.tab-content {
    padding: 32px;
    display: none;
}

.tab-content.active { display: block; }

/* ── GALLERY ── */
.gallery-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    position: relative;
    height: 600px;
    background: #f3f4f6;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-strip {
    display: flex;
    gap: 12px;
    padding: 20px;
    overflow-x: auto;
    background: #f9fafb;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active { border-color: #DC2626; }

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── SPEC CARDS ── */
.spec-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.spec-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}

/* ── TIMELINE ── */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #DC2626;
    transform: translateX(-50%);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #DC2626;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid white;
    box-shadow: 0 0 0 4px #DC2626;
}

/* ── HERO VARIANTS ── */
.hero-section,
.hero-about,
.hero-contact,
.hero-tradein {
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #E5E7EB;
    max-width: 800px;
    margin: 0 auto;
}

/* ── MAP ── */
.map-container {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── STICKY HEADER ── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* ── SMOOTH SCROLL ── */
.smooth-scroll { scroll-behavior: smooth; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 28px; }
    .price-main { font-size: 32px; }
    .stat-number { font-size: 36px; }

    .main-image-container { height: 300px; }

    .timeline::before { left: 20px; }
    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }
    .timeline-content { width: 100%; }
    .timeline-dot { left: 20px; }
}