:root {
    --re-red: #A32020;
    --re-red-hover: #8B1A1A;
    --dark-charcoal: #1C1C1C;
    --darker-bg: #121212;
    --off-white: #F5F5F0;
    --text-muted: #A0A0A0;
    --glass-bg: rgba(28, 28, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-charcoal);
    color: var(--off-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Utilities */
.text-re-red { color: var(--re-red); }
.bg-re-red { background-color: var(--re-red); }
.text-muted { color: #C0C0C0 !important; }

/* Buttons */
.btn-primary {
    background-color: var(--re-red);
    border-color: var(--re-red);
    border-radius: 0;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--re-red-hover);
    border-color: var(--re-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 32, 32, 0.4);
}

.btn-outline-light {
    border-radius: 0;
    padding: 10px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(18, 18, 18, 0.95);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-re { color: var(--re-red); }
.brand-own { color: var(--off-white); }

.nav-link {
    color: var(--off-white) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover, .footer-links a:hover {
    color: var(--re-red) !important;
    padding-left: 5px;
}

/* Insta Post Hover */
.insta-post:hover img {
    transform: scale(1.1);
}
.insta-post:hover .insta-overlay {
    opacity: 1 !important;
}

/* Page Content */
.page-content {
    min-height: calc(100vh - 400px);
    padding-top: 80px; /* offset for fixed navbar */
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--glass-border);
}

.footer-brand {
    font-weight: 800;
    font-size: 32px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--re-red);
    color: white;
    transform: translateY(-3px);
}

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

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--re-red);
}

.footer-contact li {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-divider {
    border-color: var(--glass-border);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* Cards (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(5px);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Form Elements */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--off-white);
    border-radius: 4px;
    padding: 12px 15px;
}

.form-select option, .form-select optgroup {
    background-color: Canvas !important;
    color: CanvasText !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--re-red);
    color: var(--off-white);
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Compact Search & Filter Section */
.search-filter-bar {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    width: 100%;
}

.search-filter-bar label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #C0C0C0;
    margin-bottom: 4px;
    display: block;
    text-align: left;
}

.search-filter-bar .form-select-sm,
.search-filter-bar .btn-sm {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    height: 38px;
}

/* Inline Results View */
#hero-results-container {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    margin-top: 15px;
}

#hero-results-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--re-red) rgba(255, 255, 255, 0.05);
}

#hero-results-grid::-webkit-scrollbar {
    width: 6px;
}

#hero-results-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

#hero-results-grid::-webkit-scrollbar-thumb {
    background: var(--re-red);
    border-radius: 4px;
}

#hero-results-grid::-webkit-scrollbar-thumb:hover {
    background: var(--re-red-hover);
}

/* Small Cards inside Hero */
.hero-bike-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
    height: 100%;
}

.hero-bike-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-bike-card img {
    object-fit: cover;
    height: 130px;
    width: 100%;
}

.hero-bike-card .card-body {
    padding: 12px;
    text-align: left;
}

.hero-bike-card h5 {
    font-size: 15px;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-bike-card .price-tag {
    color: var(--re-red);
    font-weight: 700;
    font-size: 14px;
}

.hero-bike-card .spec-info {
    font-size: 12px;
    color: var(--text-muted) !important;
}

/* Fade animation classes */
.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* In-line details panel */
#hero-details-container {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    margin-top: 15px;
    width: 100%;
}

.spec-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 15px;
    height: 100%;
    text-align: left;
}

.spec-badge span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.spec-badge strong {
    font-size: 16px;
    color: #fff;
    display: block;
    margin-top: 2px;
}

.condition-pill {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
}

.condition-pill.excellent {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.condition-pill.good {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.condition-pill.average {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

/* Model Filter Chips / Pills */
.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.filter-chip.active {
    background: var(--re-red);
    border-color: var(--re-red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(163, 32, 32, 0.4);
}

/* Bike Details Media and Tabs styling */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #a82e2e;
    color: #fff !important;
    border-color: #a82e2e;
    box-shadow: 0 0 10px rgba(168, 46, 46, 0.5);
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.1rem !important;
    font-weight: 800;
}

.media-tab-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 6px 18px !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px !important;
}
.media-tab-btn:hover {
    border-color: #a82e2e !important;
    color: #fff !important;
}
.media-tab-btn.active {
    background-color: #a82e2e !important;
    border-color: #a82e2e !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(168, 46, 46, 0.3);
}

.hover-red:hover {
    color: #A32020 !important;
    text-decoration: underline !important;
}
.store-location-link:hover span {
    border-bottom-color: #a82e2e !important;
    color: #a82e2e !important;
}
.store-location-link:hover .arrow-icon {
    transform: translate(3px, -3px);
}
@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.spin-slow {
    animation: spinSlow 8s linear infinite;
}
.hover-scale:hover {
    transform: translateX(-50%) scale(1.05) !important;
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.media-card-container {
    width: 100%;
    background: #0a0a0a !important;
    border-radius: 8px;
    overflow: hidden;
}
.media-active-view {
    width: 100%;
    aspect-ratio: 16 / 10;
}
@media (min-width: 992px) {
    .media-active-view {
        height: 420px; /* Fixed height on desktop */
        aspect-ratio: auto;
    }
}

/* ==========================================
   Responsive Design Media Queries
========================================== */

/* Tablet & Smaller Laptops */
@media (max-width: 991px) {
    .page-content {
        padding-top: 70px;
    }
    
    .navbar-brand {
        font-size: 24px;
    }

    .hero-bike-card img {
        height: 180px; /* Make images taller on stacked views */
    }

    #hero-details-container {
        padding: 15px;
    }

    .footer-brand {
        font-size: 26px;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    h1.display-4 {
        font-size: 2.2rem;
    }
    
    .page-content {
        padding-top: 60px;
    }

    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .glass-card {
        padding: 20px !important;
    }

    .hero-bike-card img {
        height: 200px;
    }
    
    .btn-primary, .btn-outline-light {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer {
        text-align: center;
    }

    .footer .row > div {
        margin-bottom: 30px;
    }
    
    .social-links {
        justify-content: center;
        display: flex;
        gap: 10px;
    }
}
