/* ==========================================================================
   OPTIONAL - LOCAL PREVIEW ONLY. DO NOT DEPLOY.

   In production the theme stylesheet (inline :root variables + base classes)
   is already on the page, so this file is not needed and is not loaded.

   It exists so test-drive.php can be opened and reviewed on its own machine
   (php -S localhost:8080) without the ClickDealer template. Everything is
   scoped to body.test-drive / #test-drive-pg so it cannot leak.

   Values are copied from the live theme (:root of the site) - they are not
   new design decisions.
   ========================================================================== */

body.test-drive {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-color);
    background: #fff;
}

/* --- theme tokens ------------------------------------------------------- */
:root {
    --primary-color: #2e2c45;
    --accent-color: #119ae1;      /* theme root declares #ffb400, then overrides with this */
    --text-color: #000;
    --heading-color: #000;
    --border-color: #ddd;
    --heading-weight: 700;
    --body-font-weight: 400;
    --heading-font: "Nunito Sans", sans-serif;
    --space-0: 0;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-9: 36px;
    --space-10: 40px;
    --space-11: 44px;
    --space-12: 48px;
    --space-13: 52px;
    --space-14: 56px;
    --space-15: 60px;
    --space-16: 64px;
}

/* --- layout primitives (mirror of the theme's own values) --------------- */
body.test-drive #main-wrap {
    display: block;
}

body.test-drive #test-drive-pg .wrapper {
    display: block;
    padding: 0 10px;
    max-width: 1140px;
    margin: 0 auto;
}

body.test-drive #test-drive-pg .container {
    width: 100%;
    padding: 0 0 20px;
}

body.test-drive #test-drive-pg .row {
    display: block;
    width: 100%;
    clear: both;
}

body.test-drive #test-drive-pg .row::after {
    content: "";
    display: table;
    clear: both;
}

body.test-drive #test-drive-pg .twelvecol {
    width: 100%;
    float: left;
}

body.test-drive #test-drive-pg .eightcol {
    width: 66%;
    float: left;
    margin-right: 2%;
}

body.test-drive #test-drive-pg .fourcol {
    width: 32%;
    float: left;
}

body.test-drive #test-drive-pg .last {
    margin-right: 0;
}

body.test-drive #test-drive-pg .pad-20 {
    padding: 20px;
}

body.test-drive #test-drive-pg .pad-15 {
    padding: 15px;
}

body.test-drive #test-drive-pg .overflow-hidden {
    overflow: hidden;
}

/* --- page header -------------------------------------------------------- */
body.test-drive .page-hdr {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    margin: 0 0 40px;
    background: #7a7a7a;
}

body.test-drive .page-hdr::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

body.test-drive .page-hdr h1 {
    position: relative;
    margin: 0;
    font-size: 30px;
    color: #fff;
    text-align: center;
}

/* --- buttons ------------------------------------------------------------ */
body.test-drive #test-drive-pg .btn {
    display: inline-block;
    margin: 0;
    padding: 8px 15px;
    background: var(--accent-color);
    font-family: var(--heading-font);
    font-size: 12px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    border: 0;
    border-radius: 3px;
    box-sizing: border-box;
    transition: 0.2s linear;
    color: #fff;
}

body.test-drive #test-drive-pg .btn:hover {
    background: #35b0f0;
}

/* --- messages ----------------------------------------------------------- */
body.test-drive #test-drive-pg .message_red {
    color: #333;
    margin: 0 0 20px;
    padding: 15px 15px 15px 50px;
    border-radius: 5px;
    background: #f5dcd8;
    border: 1px solid #cdbfbe;
}

body.test-drive #test-drive-pg .message_red a {
    color: #cb2a19;
    font-weight: 700;
}

/* --- sidebar widgets ---------------------------------------------------- */
body.test-drive #test-drive-pg .sidebar-widget {
    margin-bottom: 20px;
    background: #f2f2f2;
    border-top: 3px solid var(--accent-color);
}

body.test-drive #test-drive-pg .sidebar-widget h3 {
    display: flex;
    align-items: center;
    margin: 0 0 15px;
    font-family: var(--heading-font);
    font-size: 20px;
    color: #212121;
}

body.test-drive #test-drive-pg .sidebar-widget h3 span {
    margin-right: 5px;
    font-size: 75%;
}

body.test-drive #test-drive-pg .sidebar-widget p {
    font-size: 16px;
}

body.test-drive #test-drive-pg .sidebar-widget select {
    width: 100%;
    max-width: 100%;
    height: 40px;
    margin: 0 0 10px;
    padding: 0 10px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: #fff;
}

body.test-drive #test-drive-pg #get-in-touch {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.test-drive #test-drive-pg #get-in-touch li {
    margin-bottom: 10px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
}

body.test-drive #test-drive-pg #get-in-touch a {
    color: #111;
    text-decoration: none;
}

body.test-drive #test-drive-pg #get-in-touch a:hover {
    color: var(--accent-color);
}

/* --- responsive helpers ------------------------------------------------- */
@media (max-width: 767px) {
    body.test-drive .mobile-hidden {
        display: none !important;
    }

    body.test-drive .page-hdr {
        height: 140px;
        margin: 0 0 20px;
    }

    body.test-drive #test-drive-pg .eightcol,
    body.test-drive #test-drive-pg .fourcol {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

@media (min-width: 768px) {
    body.test-drive .desktop-hidden {
        display: none !important;
    }
}

/* ==========================================================================
   FALLBACK ICONS - PREVIEW ONLY.

   The real site has the ClickIcons icon font, so the .icon spans show glyphs
   there. This standalone preview does not load that font, so the spans would
   be empty space. The rules below draw the five icons used by the sidebar
   widgets as inline SVG data URIs applied with CSS mask-image, which means
   the colour follows currentColor:

     - .icon-search  "Vehicles for Sale" heading  (heading colour)
     - .icon-phone   "Get In Touch" heading       (heading colour)
     - .icon-phone-2 landline list item           (var(--accent-color))
     - .icon-mobile  mobile list item             (var(--accent-color))
     - .icon-mail    "Email Us" list item         (var(--accent-color))

   No external files, no CDN, no libraries. This file only loads when
   theme.preview_tokens is true, so production keeps its icon font and can
   never show doubled icons.
   ========================================================================== */

#test-drive-pg .icon-phone {
    --td-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

#test-drive-pg .icon-phone-2 {
    --td-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
}

#test-drive-pg .icon-mobile {
    --td-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 18H7V5h10v14z'/%3E%3C/svg%3E");
}

#test-drive-pg .icon-mail {
    --td-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

#test-drive-pg .icon-search {
    --td-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}

/* Shared geometry. background-color follows currentColor, so heading icons
   pick up the heading colour and the list icons pick up the blue the section
   stylesheet already gives those spans. The three "Get In Touch" list icons
   are then pinned to var(--accent-color) explicitly. */
#test-drive-pg .icon-phone,
#test-drive-pg .icon-phone-2,
#test-drive-pg .icon-mobile,
#test-drive-pg .icon-mail,
#test-drive-pg .icon-search {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: var(--space-1);
    background-color: currentColor;
    -webkit-mask: var(--td-icon) center / contain no-repeat;
            mask: var(--td-icon) center / contain no-repeat;
}

#test-drive-pg #get-in-touch .icon-phone-2,
#test-drive-pg #get-in-touch .icon-mobile,
#test-drive-pg #get-in-touch .icon-mail {
    background-color: var(--accent-color);
}
