/* Inter, served from this folder.
   Four static weights rather than the variable file: 96 KB in total, and the weights the site
   actually uses are the ones downloaded. `display: swap` keeps text visible while the file
   loads — the fallback is the system grotesque, close enough that line lengths barely move. */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/inter-400.woff2") format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/inter-500.woff2") format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/inter-600.woff2") format("woff2");
}
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/inter-700.woff2") format("woff2");
}

/* ==========================================================================
   site.css - YOUR stylesheet, lifted out of the <style> blocks in header (1).php,
   cars_info.php and car_details.php. Nothing in here was written for this rebuild:
   it is the CSS the live site already renders with.

   The rules that mattered most, and that were guessed wrong before they were read:
   .header-bg (the navy gradient), .nav-link (its hover is #f54242, not the amber the
   markup's Tailwind class asks for - this file loads later and wins), .sidebar-section
   h3 (the 2px #f3f4f6 underline: the browse column is NOT a card), .custom-select
   (the filter dropdowns' 36px height), .search-bar-wrapper.

   It loads AFTER assets/app.css, so it wins any tie - which is the order the live
   site's cascade uses too, its <style> coming after Tailwind's. Change a colour here
   and it takes effect everywhere, without touching app.css.
   ========================================================================== */
/* ---- header (1).php — site chrome: header, nav, search, mobile icons ---- */
/* Arial first, by request. It is wider than the system stack this used to name, so
   anything sized to a measured string is now a little tighter — which is why the spec
   grid's label column below has been re-measured rather than left where it was. */
body { font-family: Inter, -apple-system, Roboto, sans-serif; }
    /* Default order */
    aside { order: 1; }
    main { order: 2; }

    @media (max-width: 768px) {
        aside { order: 2; }
        main { order: 1; }
    }

    /* Ensure group-hover works everywhere */
    .group:hover .group-hover\:visible { visibility: visible !important; }
    .group:hover .group-hover\:opacity-100 { opacity: 1 !important; }

    /* ============================================================ */
    /* HEADER STYLING */
    /* ============================================================ */
    .header-bg {
        background: linear-gradient(135deg, #24243f, #1e2b4e, #154a80);
    }

    /* White on the navy bar, as it always was. The image is black ink on transparency, so the
       filter inverts it; the PNG itself is now clean-edged, which is what made the old one
       show a pale box around the wordmark. */
    .header-logo {
        display: block;
        max-height: 26px;
        width: auto;
        filter: brightness(0) invert(1);
    }

    /* The wordmark, when there is no logo file to show. Sized to the height the image would have
       taken, so swapping one for the other does not move the header. */
    .header-logo-word {
        font-size: 22px; font-weight: 800; letter-spacing: .04em;
        line-height: 40px; color: #fff; white-space: nowrap;
    }

    /* Search bar - desktop smaller */
    .search-bar-wrapper {
        max-width: 420px;
        width: 100%;
    }
    .search-bar-wrapper input {
        height: 38px;
        font-size: 14px;
        padding: 0 14px;
    }
    .search-bar-wrapper button {
        height: 38px;
        padding: 0 14px;
    }

    /* Search bar - mobile thinner */
    @media (max-width: 768px) {
        .search-bar-wrapper {
            max-width: 100%;
            margin-top: 8px;
        }
        .search-bar-wrapper input {
            height: 34px;
            font-size: 13px;
            padding: 0 12px;
        }
        .search-bar-wrapper button {
            height: 34px;
            padding: 0 12px;
        }
        .search-bar-wrapper svg {
            width: 16px;
            height: 16px;
        }
        .header-mobile-row {
            flex-wrap: wrap;
        }
        .header-logo {
            max-height: 24px;
        }
    }

    /* Nav links */
    .nav-link {
        padding: 6px 14px;
        border-radius: 6px;
        transition: background 0.2s ease, color 0.2s ease;
        font-weight: 500;
    }
    .nav-link:hover {
        background: rgba(255,255,255,0.08);
        color: #f54242;
    }
    .nav-link.active {
        background: rgba(245,176,66,0.12);
        color: #f5b042;
    }

    @media (min-width: 769px) {
    }

    /* Desktop nav gap */
    .nav-gap {
        gap: 4px;
    }
    @media (min-width: 768px) {
        .nav-gap { gap: 6px; }
    }
    @media (min-width: 1024px) {
        .nav-gap { gap: 10px; }
    }

                html {
                    scroll-behavior: smooth;
                }

                @media (max-width: 768px) {

                    
                    
                    body {
    padding-bottom: 65px; /* Space for the fixed footer */
}

                    #main-car-image {
                        height: auto !important;
                        max-height: 450px;
                        background: transparent !important;
                    }
                }

                .sidebar-section h3 {
                    color: #1f2937;
                    border-bottom: 2px solid #f3f4f6;
                    padding-bottom: 0.5rem;
                }

                .sidebar-section a {
                    transition: all 0.2s ease;
                }

                .sidebar-section a:hover {
                    color: #dc2626;
                    transform: translateX(4px);
                }

                .thumbnail-link.active::after {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    border: 2px solid #ef4444;
                    border-radius: 0.5rem;
                    pointer-events: none;
                }

                @keyframes soldPulse {

                    0%,
                    100% {
                        opacity: 0.6;
                        transform: translate(-50%, -50%) rotate(-45deg) scale(1);
                    }

                    50% {
                        opacity: 0.8;
                        transform: translate(-50%, -50%) rotate(-45deg) scale(1.05);
                    }
                }

                .sold-overlay-corner.top-right {
                    top: 30px;
                    right: 30px;
                    border-left: none;
                    border-bottom: none;
                }

                @media (min-width: 768px) {
                }

                @media (min-width: 640px) {
                }

                @media (min-width: 768px) {
                }

                    @media (min-width: 640px) {
                    }

                    @media (min-width: 768px) {
                    }
                                                .custom-dropdown-content.show {
                                                    display: block;
                                                }
                                                .custom-select {
                                                    padding: 7px 24px 7px 12px; /* Adjusted to match custom-dropdown-button */
                                                    height: 36px; /* Fixed height to match custom-dropdown-button */
                                                    line-height: 20px; /* Matches text-sm line-height */
                                                }
        html {
            scroll-behavior: smooth;
        }
        @media (max-width: 768px) {
            body {
                padding-bottom: 120px;
            }
        }
        .sidebar-section h3 {
            color: #1f2937;
            border-bottom: 2px solid #f3f4f6;
            padding-bottom: 0.5rem;
        }
        .sidebar-section a {
            transition: all 0.2s ease;
        }
        .sidebar-section a:hover {
            color: #dc2626;
            transform: translateX(4px);
        }
        .thumbnail-link.active::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid #ef4444;
            border-radius: 0.5rem;
            pointer-events: none;
        }
        @keyframes soldPulse {
            0%, 100% {
                opacity: 0.6;
                transform: translate(-50%, -50%) rotate(-45deg) scale(1);
            }
            50% {
                opacity: 0.8;
                transform: translate(-50%, -50%) rotate(-45deg) scale(1.05);
            }
        }
        .sold-overlay-corner.top-right {
            top: 30px;
            right: 30px;
            border-left: none;
            border-bottom: none;
        }
        @media (min-width: 640px) {
        }
        @media (min-width: 768px) {
        }
        @media (min-width: 640px) {
        }
        @media (min-width: 768px) {
        }

/* The footer wordmark, same idea as the header's. */
.foot-logo-word { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: inherit; }
