/**
 * Custom CSS for Citroën Classics Portal
 * Bootstrap 5.3 + Custom Styling
 */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A5C;
    --secondary-color: #2C3E50;
    --accent-color: #D4AF37;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --light-gray: #F8F9FA;
    --medium-gray: #6C757D;
    --dark-gray: #343A40;
    --border-color: #DEE2E6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Vintage Colors */
    --vintage-cream: #F5F3F0;
    --vintage-brown: #8B4513;
    --vintage-gold: #D4AF37;
    --vintage-copper: #B87333;
    --vintage-navy: #1B2951;
    --vintage-sage: #9CAF88;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: none;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: none;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Typography */
body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mega Menu Styles */
@media (min-width: 992px) {
    .navbar .nav-item.dropdown {
        position: static;
    }

    .navbar .dropdown-menu.megamenu {
        width: 100%;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: 0;
        border: none;
        border-radius: 0 0 1.5rem 1.5rem;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        padding: 2.5rem;
        background: white;
        max-height: 85vh;
        overflow-y: auto;
    }

    .megamenu-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .megamenu-item {
        text-align: center;
        text-decoration: none;
        color: var(--vintage-navy);
        transition: all 0.2s ease;
        padding: 1rem;
        border-radius: 1rem;
    }

    .megamenu-item:hover {
        background: var(--vintage-cream);
        color: var(--primary-color);
        transform: translateY(-5px);
    }

    .megamenu-thumb {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 0.75rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .megamenu-item-name {
        display: block;
        font-weight: 700;
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .megamenu-item-count {
        font-size: 0.8125rem;
        color: var(--medium-gray);
    }
}


.navbar-brand-custom {
    display: block;
    height: 60px;
    position: relative;
    overflow: hidden;
    width: 260px;
}

.navbar-logo {
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding-bottom: 2rem;
    }

    .navbar-brand-custom {
        width: 180px;
        height: 50px;
    }

    .navbar-nav {
        padding: 1rem 0;
    }

    .dropdown-menu.megamenu {
        border-radius: 1.5rem;
        margin-top: 10px;
        padding: 1rem;
        border: 1px solid rgba(0,0,0,0.05);
        background: #fdfdfd;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .megamenu-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .megamenu-item {
        padding: 0.5rem;
        background: white;
        border: 1px solid #f0f0f0;
        border-radius: 1rem;
        display: flex;
        flex-direction: column;
        transition: all 0.2s ease;
        text-decoration: none !important;
    }

    .megamenu-item:active {
        transform: scale(0.97);
        background: #fafafa;
    }

    .megamenu-thumb {
        height: 110px;
        width: 100%;
        object-fit: cover;
        border-radius: 0.75rem;
    }

    .megamenu-item-name {
        display: block;
        font-weight: 700;
        font-size: 0.9375rem;
        color: var(--vintage-navy);
        margin-top: 0.75rem;
        text-align: center;
        text-decoration: none !important;
    }

    .megamenu-item-count {
        display: block;
        font-size: 0.75rem;
        color: var(--vintage-gold);
        font-weight: 600;
        margin-top: 0.125rem;
        text-align: center;
        text-decoration: none !important;
    }

    .navbar-collapse .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding: 1.5rem 0 0;
        border-top: 2px solid #f8f9fa;
    }

    .navbar-collapse .btn-vintage-primary {
        width: 100%;
        padding: 1rem;
        font-weight: 700;
    }
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Vintage Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--vintage-copper) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.05) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    opacity: 0.3;
}

.min-vh-75 {
    min-height: 75vh;
}

.vintage-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-line {
    width: 60px;
    height: 2px;
    background: var(--vintage-gold);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.text-accent {
    color: var(--vintage-gold);
}

.text-gradient {
    background: linear-gradient(45deg, var(--vintage-gold), #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 90%;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vintage-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vintage Buttons */
.btn-vintage-primary {
    background: var(--vintage-gold);
    border: 2px solid var(--vintage-gold);
    color: var(--vintage-navy);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn-vintage-primary:hover,
.btn-vintage-primary:focus {
    background: transparent;
    color: var(--vintage-gold);
    border-color: var(--vintage-gold);
    transform: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-vintage-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-vintage-outline:hover,
.btn-vintage-outline:focus {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.trust-indicators {
    margin-top: 2rem;
}

.trust-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hero Image */
.hero-image-container {
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.decoration-1 {
    width: 100px;
    height: 100px;
    top: -20px;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    bottom: -10px;
    left: -10px;
    animation: float 4s ease-in-out infinite reverse;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.floating-card {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.vintage-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.vintage-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
}

.card-header-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vintage-navy);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vintage-card .card-content {
    padding: 2rem;
}

.form-section-title {
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--vintage-cream);
}


.card-icon {
    width: 40px;
    height: 40px;
    background: var(--vintage-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-title {
    font-weight: 600;
    color: var(--vintage-navy);
    font-size: 0.875rem;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--medium-gray);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: 1.5rem;
}

/* Heritage Section */
.heritage-section {
    background: var(--vintage-cream);
    position: relative;
}

.section-badge {
    display: inline-block;
    background: var(--vintage-gold);
    color: var(--vintage-navy);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vintage-navy);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.heritage-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-title {
    font-weight: 600;
    color: var(--vintage-navy);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--medium-gray);
    margin: 0;
}

/* Heritage Gallery */
.heritage-gallery {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 400px;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.large {
    grid-row: 1 / 3;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--vintage-navy) 0%, var(--secondary-color) 100%);
    position: relative;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.search-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vintage-navy);
    margin-bottom: 1rem;
}

.search-subtitle {
    color: var(--medium-gray);
    font-size: 1.125rem;
    margin-bottom: 0;
}

.vintage-select {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vintage-select:focus {
    border-color: var(--vintage-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Vintage Cards */
.vintage-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
}

.vintage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vintage-card:hover .card-image {
    transform: scale(1.05);
}


/* --- Vehicle Showcase & Timeline Features --- */

/* Timeline Styles */
.vintage-timeline {
    position: relative;
    padding-left: 3rem;
}

.vintage-timeline::before {
    content: '';
    position: absolute;
    left: 20px; /* Precise fixed position */
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--vintage-gold);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-icon {
    position: absolute;
    left: -30px; /* (Container-line-left: 20px) - (Container-padding: 50px) = -30px */
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--vintage-gold);
    color: var(--vintage-navy);
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    z-index: 2;
}

.timeline-content {
    transition: transform 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
}

.timeline-delete-form {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 5;
}

.btn-timeline-delete {
    width: 24px;
    height: 24px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-timeline-delete i {
    font-size: 0.75rem;
}

.btn-timeline-delete:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.vintage-timeline {
    position: relative;
    padding-left: 50px; /* Matches fixed left: 20px line placement */
}

/* Comments Styles */
.comment-item {
    transition: all 0.3s ease;
}

.comment-avatar {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-text {
    border: 1px solid rgba(0,0,0,0.05);
}

.reply-btn {
    font-weight: 600;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.reply-btn:hover {
    color: var(--primary-color) !important;
}

/* Multimedia Styles */
.video-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Badge Enhancements */
.bg-vintage-gold {
    background-color: var(--vintage-gold) !important;
}

.bg-vintage-navy {
    background-color: var(--vintage-navy) !important;
}

.text-vintage-navy {
    color: var(--vintage-navy) !important;
}

.btn-vintage-navy {
    background: var(--vintage-navy);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-vintage-navy:hover {
    background: #0d162d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(27, 41, 81, 0.3);
}

/* Section Title Refinement */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--vintage-gold);
    margin-top: 0.5rem;
}

.cursor-pointer {
    cursor: pointer;
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vintage-badge-featured {
    background: var(--vintage-gold);
    color: var(--vintage-navy);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.vintage-badge-year {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.vintage-badge-new {
    background: var(--success-color);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vintage-card:hover .card-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.overlay-content i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}


.location {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.card-title {
    font-weight: 600;
    color: var(--vintage-navy);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-description {
    color: var(--medium-gray);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vintage-gold);
}

.views {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

.time-ago {
    color: var(--medium-gray);
    font-size: 0.875rem;
}

/* Model Cards */
.model-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.model-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--vintage-gold));
}

.model-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.model-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--vintage-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: transform 0.2s ease;
}

.model-card:hover .model-icon {
    transform: scale(1.05);
}

.model-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.model-name {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1.25rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 700;
    margin-top: -2.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 5;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.vintage-card:hover .model-name {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.5);
}

.model-years {
    color: var(--vintage-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.model-description {
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.model-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.listings-count {
    text-align: left;
}

.count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.label {
    font-size: 0.875rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explore-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--vintage-gold);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.model-card:hover .explore-btn {
    transform: translateX(3px);
}

/* Recent Cards */
.recent-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.recent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.recent-card .card-image {
    height: 200px;
}

.recent-card .card-content {
    padding: 1rem;
}

.recent-card .card-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Background Variants */
.bg-vintage-light {
    background: var(--vintage-cream);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--vintage-navy) 0%, var(--secondary-color) 100%);
    position: relative;
}

.cta-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vintage-navy);
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-features .feature-item {
    display: flex;
    align-items: center;
    color: var(--vintage-navy);
    font-weight: 500;
}

.cta-note {
    color: var(--medium-gray);
    font-style: italic;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.listing-card {
    overflow: hidden;
}

.listing-card .card-img-top {
    transition: transform 0.3s ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.05);
}

.model-card {
    text-align: center;
    transition: all 0.2s ease;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.model-card .model-icon {
    transition: transform 0.2s ease;
}

.model-card:hover .model-icon {
    transform: scale(1.05);
}

/* Forms */
.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: none;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1rem;
}

.carousel-indicators button {
    border-radius: 0.25rem;
    opacity: 0.7;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

/* Footer */
footer {
    background-color: var(--secondary-color) !important;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Utilities */
.text-light-emphasis {
    color: rgba(255, 255, 255, 0.75) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-card {
        padding: 2rem;
    }
    
    .search-card {
        padding: 2rem;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
        height: auto;
    }
    
    .gallery-item.large {
        grid-row: auto;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        margin: 0;
    }
    
    .trust-indicators .d-flex {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .cta-features {
        margin-top: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    .card-header {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-outline-primary {
        border-width: 2px;
    }
    
    .text-accent {
        color: var(--primary-color);
        font-weight: 700;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Improved contrast for better accessibility */
.text-muted {
    color: #5a6c7d !important;
}

.card-description {
    color: #5a6c7d;
}

.location {
    color: #5a6c7d;
}

.views {
    color: #5a6c7d;
}

.time-ago {
    color: #5a6c7d;
}

/* Better button focus states */
.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Improved form focus states */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 53, 0.25);
    outline: none;
}

/* Better link contrast */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-dark);
}

/* Improved card hover states for touch devices */
@media (hover: none) {
    .vintage-card:hover,
    .model-card:hover,
    .recent-card:hover {
        transform: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
}
/* Gallery Management */
.gallery-manage-item {
    transition: all 0.2s ease;
}

.gallery-manage-item:hover {
    transform: translateY(-2px);
}

.gallery-manage-item img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}
