:root {
    --ather-black: #1a1a1a;
    --ather-grey: #f4f4f4;
    --card-radius: 20px;
}

/* Apply to both html and body to ensure coverage */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    
    /* Hide scrollbar for Firefox */
    scrollbar-width: none; 
    
    /* Hide scrollbar for IE and Edge */
    -ms-overflow-style: none; 
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

/* Optional: Hide scrollbar globally for ALL elements (like modals) */
*::-webkit-scrollbar {
    display: none;
}
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

:root {
    --ather-black: #1a1a1a;
    --ather-grey: #f4f4f4;
    --card-radius: 20px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ather-black);
    background-color: #fff;
    /* Allow vertical scrolling but hide the bar */
    overflow-y: scroll; 
}

/* Navbar */
.navbar {
    /* Stronger blur effect */
    backdrop-filter: blur(20px); 
    /* Darker, semi-transparent background */
    background-color: rgba(206, 206, 206, 0.582); 
    /* Maintain padding */
    padding-top: 15px;
    padding-bottom: 15px;
    /* Add a lighter border for contrast */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    /* Set text color to white for readability on dark background */
    color: white; 
}

/* Hero Section */
.hero-section {
    /* Full viewport height */
    min-height: 100vh;
    width: 100%;
    
    /* Vertically center the content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Maintain existing styles */
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.display-heading {
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 600px;
    /* adjust as needed */
    margin-bottom: 1rem;
    /* mb-4 equivalent */
}

.hero-search-icon {
    position: absolute;
    left: 10px;
    font-size: 1.2rem;
    color: #6c757d;
    /* grey color, adjust as needed */
}

.hero-search-input {
    width: 100%;
    padding: 10px 45px 10px 35px;
    /* left padding to make space for the icon */
    border-radius: 25px;
    border: 1px solid #ced4da;
    outline: none;
}

.hero-search-input:focus {
    border-color: #343a40;
    box-shadow: 0 0 5px rgba(52, 58, 64, 0.3);
}

.hero-search-container button {
    z-index: 2;
    /* ensures button is above input */
}


.inventory-header{
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}


.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f1f1f1;
    color: #343a40;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-chip i {
    font-size: 0.95rem;
}

.filter-chip:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.filter-chip.active {
    background-color: #343a40;
    color: #fff;
    border-color: #343a40;
}



/* Process Section */
.step-card {
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: 0.3s;
    background: #fff;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #000;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 10px;
}

/* Product Cards */
/* ===============================
   BIKEDEKHO DARK SMALL CARD
================================ */
.bikedekho-dark {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;

    /* DARKER SHADOW */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bikedekho-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

/* ===============================
   IMAGE (FULL SPREAD)
================================ */
.bike-img {
    height: 150px;
    background: #f1f3f5;
}

.bike-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* image spreads fully */
}

/* ===============================
   BODY
================================ */
.bike-body {
    padding: 12px 14px 14px;
}

/* ===============================
   TEXT SIZE BOOST
================================ */

/* Title */
.bike-title {
    font-size: 1.05rem;   /* was 0.95 */
    font-weight: 800;
    line-height: 1.3;
}

/* Vehicle number */
.bike-number {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;    /* was 0.72 */
    font-weight: 600;
}

/* Meta info */
.bike-meta {
    font-size: 0.8rem;    /* was 0.72 */
    font-weight: 600;
}

/* Price (most important) */
.bike-price {
    font-size: 1.15rem;   /* was 1rem */
    font-weight: 900;
}

/* View button icon */
.btn-view {
    font-size: 15px;
}

/* Status badge */
.badge-status {
    font-size: 0.6rem;
    font-weight: 800;
}

/* ===============================
   FOOTER
================================ */
.bike-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* PRICE HIGHLIGHT */
.bike-price {
    font-size: 1rem;
    font-weight: 800;
    color: #000;
}

/* VIEW BUTTON */
.btn-view {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #000;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

/* ===============================
   STATUS BADGE
================================ */
.badge-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 0.55rem;
    font-weight: 800;
    border-radius: 999px;
    color: #fff;
    z-index: 2;
}

.bg-available { background: #198754; }
.bg-sold { background: #dc3545; }

/* ===============================
   MOBILE OPTIMIZATION
================================ */
@media (max-width: 768px) {
    .bikedekho-dark:hover {
        transform: none;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    }

    .bike-img {
        height: 130px;
    }
}

@media (max-width: 768px) {
    .bike-title {
        font-size: 1rem;
    }

    .bike-price {
        font-size: 1.05rem;
    }
}



.spec-chip {
    background: var(--ather-grey);
    color: #333;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Badges */
.badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.bg-available {
    background: #000;
    color: #fff;
}

.bg-sold {
    background: #fff;
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Map styling */
.footer-map-frame {
    border-radius: 20px;
    width: 100%;
    height: 250px;
    border: 0;
    filter: grayscale(100%);
    transition: 0.3s;
}

.footer-map-frame:hover {
    filter: grayscale(0%);
}

/* Footer */
/* 3. Updated Footer styles */
footer {
    flex-shrink: 0; /* Prevents the footer from squishing */
    background: #111;
    color: #fff;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    margin-top: 50px;
    padding: 3rem 0; /* Add some padding for structure */
}

/* Loading Screen Container */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    /* Stacks items vertically */
    justify-content: center;
    /* Vertically centers (because of column direction) */
    align-items: center;
    /* Horizontally centers */
    text-align: center;
    /* Ensures text inside is centered */

    margin: 0 !important;
    padding: 0 !important;
}

/* Content Wrapper (Optional, ensures inner items align) */
.loader-content {
    width: 100%;
    text-align: center;
}

/* Text Styling */
.loader-content h2 {
    margin-top: -30px;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    color: #343a40;
    letter-spacing: 2px;
    font-size: 1.9rem;
    word-wrap: break-word;
}

/* Video Styling */
.bike-video {
    width: 150px;
    height: auto;
    display: block;
    object-fit: contain;

    /* THE FIX: This centers a block element horizontally */
    margin: 0 auto;
}


/* =========================================
   RESPONSIVE MEDIA QUERIES
   ========================================= */

/* Tablet (Portrait) and Mobile Landscape */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 60px;
        /* Allow height to grow if content overflows on tablets */
        height: auto;
        min-height: 100vh;
    }

    .display-heading {
        font-size: 2.5rem; /* Smaller heading for tablets */
    }

    /* Adjust Grid Gap for cards */
    .row {
        --bs-gutter-y: 1.5rem;
    }
}

/* Mobile Devices (Portrait) */
@media (max-width: 767px) {
    .navbar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero-section {
        padding-top: 100px; 
        padding-bottom: 40px;
    }

    /* Stack the search bar elements if needed, or keep them fluid */
    .hero-search-container {
        width: 100%;
        max-width: 100%;
    }

    .hero-search-input {
        font-size: 0.9rem;
        padding: 12px 45px 12px 40px; /* Larger touch target */
    }

    .display-heading {
        font-size: 2rem; /* Mobile heading size */
        letter-spacing: -1px;
    }
    
    /* Make the filter chips scrollable horizontally on mobile */
    .inventory-header .d-flex.gap-2 {
        overflow-x: auto;
        padding-bottom: 10px;
        white-space: nowrap;
        justify-content: flex-start !important; /* Override center alignment */
        -webkit-overflow-scrolling: touch;
    }

    .filter-chip {
        flex-shrink: 0; /* Prevent chips from squishing */
    }

    .product-img-wrapper {
        height: 180px; /* Optimize image height for mobile */
    }
}