﻿/* BANNER */

.vw-banner-section {
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 780px;
    overflow: hidden;
    background: #1a1a1a;
}

.vw-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.vw-banner__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 48px 64px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
}

.vw-banner__title {
    font-family: 'VWHead', 'Arial Narrow', Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.1;
    max-width: 560px;
}

.vw-banner__btn {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    color: #001e50;
    font-family: 'VWHead', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.vw-banner__btn:hover {
    background: #001e50;
    color: #ffffff;
}


/* MODELS */

.vw-models-section {
    background: #f5f4f0;
    padding: 64px 48px;
}

.vw-models__heading {
    font-family: 'VWHead', 'Arial Narrow', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #001e50;
    text-align: center;
    margin: 0 0 48px;
}

.vw-models__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.vw-model-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.vw-model-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.vw-model-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vw-model-card__img-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    color: #ffffff;
    font-family: 'VWHead', Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.vw-model-card__body {
    padding: 24px;
}

.vw-model-card__title {
    font-family: 'VWHead', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #001e50;
    margin: 0 0 12px;
}

.vw-model-card__desc {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    margin: 0 0 20px;
}

.vw-model-card__footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 16px;
}

.vw-model-card__footer-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.vw-model-card__footer-note {
    font-size: 0.75rem;
    color: #666666;
    margin: 0;
}


/* DEALERS */

.vw-dealers-section {
    background: #f5f4f0;
    padding: 64px 48px;
}

.vw-dealers__heading {
    font-family: 'VWHead', 'Arial Narrow', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #001e50;
    margin: 0 0 12px;
}

.vw-dealers__subtext {
    font-size: 0.92rem;
    color: #444;
    margin: 0 0 24px;
    max-width: 680px;
    line-height: 1.6;
}

.vw-dealers__search-wrap {
    margin-bottom: 24px;
}

.vw-dealers__search {
    width: 280px;
    padding: 12px 16px 12px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.92rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.415l-3.868-3.833zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat 12px center;
    outline: none;
}

.vw-dealers__search:focus {
    border-color: #001e50;
}

.vw-dealers__body {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.vw-dealers__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.vw-dealers__map {
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.vw-dealer-card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vw-dealer-card:hover {
    border-color: #001e50;
}

.vw-dealer-card.active {
    border-color: #001e50;
    box-shadow: 0 0 0 2px #001e50;
}

.vw-dealer-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.vw-dealer-card__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #001e50;
    margin: 0 0 6px;
    letter-spacing: 0.3px;
}

.vw-dealer-card__address {
    font-size: 0.82rem;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.vw-dealer-card__radio {
    margin-top: 2px;
    accent-color: #001e50;
    flex-shrink: 0;
}

.vw-dealer-card__rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.vw-dealer-card__stars .star {
    color: #ccc;
    font-size: 0.95rem;
}

.vw-dealer-card__stars .star.filled {
    color: #f5a623;
}

.vw-dealer-card__rating-num {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.vw-dealer-card__reviews {
    font-size: 0.78rem;
    color: #666;
}

.vw-dealer-card__link {
    font-size: 0.82rem;
    color: #001e50;
    text-decoration: underline;
}

.vw-dealer-card__link:hover {
    color: #0040c1;
}

.vw-dealers__empty {
    font-size: 0.92rem;
    color: #666;
}


/* FORM */

.vw-form-section {
    background: #f5f4f0;
    padding: 64px 48px;
    border-top: 1px solid #e5e5e5;
}

.vw-form__heading {
    font-family: 'VWHead', 'Arial Narrow', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #001e50;
    margin: 0 0 8px;
}

.vw-form__subtext {
    font-size: 0.92rem;
    color: #444;
    margin: 0 0 32px;
    line-height: 1.6;
}

.vw-form__section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #001e50;
    letter-spacing: 1px;
    margin: 0 0 16px;
}

.vw-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.vw-form__field {
    display: flex;
    flex-direction: column;
}

.vw-form__input {
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.92rem;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.vw-form__input:focus {
    border-color: #e8a000;
}

.vw-form__input--readonly {
    background: #f0f0f0;
    color: #666;
    cursor: not-allowed;
}

.vw-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #ffffff;
    padding-right: 36px;
    cursor: pointer;
}

.vw-input--error {
    border-color: #c0392b !important;
    background-color: #fff8f8;
}

.vw-form__error-msg {
    font-size: 0.75rem;
    color: #c0392b;
    margin-top: 4px;
    display: block;
    min-height: 16px;
}

.vw-form__success {
    background: #e6f4ea;
    color: #2d7a3a;
    border: 1px solid #a8d5b0;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.92rem;
    font-weight: 600;
}

.vw-form__error-banner {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.vw-form__actions {
    margin: 24px 0 12px;
}

.vw-form__submit {
    background: #001e50;
    color: #ffffff;
    font-family: 'VWHead', Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vw-form__submit:hover {
    background: #0040c1;
}

.vw-form__mandatory-note {
    font-size: 0.82rem;
    color: #444;
    margin: 0 0 40px;
}

.vw-form__terms {
    border-top: 1px solid #ddd;
    padding-top: 32px;
}

.vw-form__terms-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #001e50;
    letter-spacing: 1px;
    margin: 0 0 12px;
}

.vw-form__terms-text {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
    max-width: 700px;
}


/* RESPONSIVE */

@media (max-width: 767px) {
    .vw-banner-section {
        height: 75vw;
        max-height: 480px;
    }
    .vw-banner__overlay {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 0 20px 36px;
        gap: 20px;
    }
    .vw-banner__title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .vw-banner__btn {
        font-size: 0.88rem;
        padding: 12px 22px;
    }
    .vw-models-section {
        padding: 40px 20px;
    }
    .vw-models__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .vw-models__heading {
        font-size: 1.5rem;
        margin-bottom: 32px;
    }
    .vw-dealers-section {
        padding: 40px 20px;
    }
    .vw-dealers__body {
        grid-template-columns: 1fr;
    }
    .vw-dealers__map {
        height: 350px;
        position: static;
    }
    .vw-dealers__search {
        width: 100%;
    }
    .vw-dealers__list {
        max-height: 400px;
    }
    .vw-form-section {
        padding: 40px 20px;
    }
    .vw-form__row {
        grid-template-columns: 1fr;
    }
}


/* ── Dealer Map Section ── */

.vw-dealer-locator {
    padding: 48px 24px;
    /*    background: #f7f7f7;
*/
}

.vw-dealer-locator__header {
    margin-bottom: 24px;
}

.vw-dealer-locator__header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #001e50;
    margin-bottom: 8px;
}

.vw-dealer-locator__header p {
    font-size: 0.9rem;
    color: #555;
    max-width: 580px;
    line-height: 1.5;
}


/* ── Search ── */

.vw-dealer-search {
    position: relative;
    margin-bottom: 20px;
    max-width: 300px;
}

.vw-dealer-search input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: #fff;
}

.vw-dealer-search input:focus {
    border-color: #001e50;
}

.vw-dealer-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 14px;
}


/* ── Layout: cards left, map right ── */

.vw-dealer-body {
    display: flex;
    gap: 0;
    height: 540px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}


/* ── Cards panel ── */

.vw-dealer-cards {
    width: 310px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e0e0e0;
}

.vw-dealer-card {
    padding: 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.vw-dealer-card:hover {
    background: #f5f7ff;
}

.vw-dealer-card.active {
    background: #eef2ff;
    border-left: 3px solid #001e50;
}

.vw-dealer-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.vw-dealer-card__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #001e50;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.vw-dealer-card__radio {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #001e50;
    width: 16px;
    height: 16px;
}

.vw-dealer-card__address {
    font-size: 0.78rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.vw-dealer-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
}


/* Stars */

.vw-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.vw-star {
    width: 14px;
    height: 14px;
    fill: #ccc;
}

.vw-star.filled {
    fill: #f5a623;
}

.vw-star.half {
    fill: url(#half-gradient);
}

.vw-dealer-card__reviews {
    font-size: 0.75rem;
    color: #666;
    margin-left: 4px;
}

.vw-dealer-card__info-btn {
    font-size: 0.75rem;
    color: #001e50;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}


/* ── Map panel ── */

#dealerMap {
    flex: 1;
    height: 540px;
    /* explicit px — Google Maps requirement */
}


/* ── No dealers ── */

.vw-no-dealers {
    padding: 24px 16px;
    color: #888;
    font-size: 13px;
}


/* ── Mobile ── */

@media (max-width: 768px) {
    .vw-dealer-body {
        flex-direction: column;
        height: auto;
    }
    .vw-dealer-cards {
        width: 100%;
        height: 260px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    #dealerMap {
        height: 320px;
        flex: none;
    }
    .vw-dealer-search {
        max-width: 100%;
    }
}


/* ── Wrapper ── */

.vwpc-locator {
    padding: 48px 48px 64px;
    background: #f5f4f0;
}

.vwpc-locator__header {
    margin-bottom: 24px;
}

.vwpc-locator__header h2 {
    font-family: "VWTextWeb-Bold";
    color: #1b2236;
    font-size: 38px;
    line-height: 42px;
    font-family: "VWTextWeb-Bold";
}

.vwpc-locator__header p {
    font-size: 16px;
    color: #555;
    /* max-width: 640px; */
    line-height: 1.55;
    margin: 0;
}


/* ── Body grid: cards LEFT (fixed 460px), map RIGHT (flex:1) ── */

.vwpc-locator__body {
    display: flex;
    overflow: hidden;
    min-height: 620px;
    flex-wrap: wrap;
}


/* ── Map (RIGHT) ── */

#dealerMap {
    height: 620px;
    width: 100%;
    order: 2;
}


/* ── Cards panel (LEFT) ── */

.vwpc-dealer-panel {
    display: flex;
    overflow: hidden;
    max-height: 620px;
    border-left: none;
    background: #f5f4f0;
    order: 1;
    padding-right: 20px;
    width: 350px;
}

.vwpc-dealer-panel__scroll {
    overflow-y: auto;
    flex: 1;
    background: #f5f4f0;
    padding: 0px 2px;
}


/* ─────────────────────────────────────
   ACCORDION CARD  — Image 1 style
   Expanded card gets a blue border box
───────────────────────────────────── */

.vwpc-dcard {
    border-bottom: 1px solid #e8e8e8;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #fff;
}

.vwpc-dcard:last-child {
    border-bottom: none;
    margin-bottom: 0px;
}


/* .vwpc-dcard:hover,
.vwpc-dcard.open:hover {
    background: #f7f9ff;
} */


/* Open / active card gets the blue outline box like Image 1 */

.vwpc-dcard.open {
    background: #fff;
    border: 2px solid #997F67;
}


/* ── Card header (always visible) ── */

.vwpc-dcard__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 16px;
    gap: 12px;
}

.vwpc-dcard__header-left {
    flex: 1;
}

.vwpc-dcard__name {
    font-size: 16px;
    font-family: "VWTextWeb-Bold";
    color: #001e50;
    margin: 0 0 4px;
    line-height: 18px;
}


/* "View Rating" link  — exactly as Image 1 */

.vwpc-dcard__view-rating {
    font-size: 0.80rem;
    color: #001e50;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-block;
}


/* Chevron  — rotates 180° when open */

.vwpc-dcard__chevron {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #001e50;
    flex-shrink: 0;
    margin-top: 2px;
    transition: transform 0.25s ease;
}

.vwpc-dcard.open .vwpc-dcard__chevron {
    transform: rotate(180deg);
}


/* ── Expanded body ── */

.vwpc-dcard__body {
    padding: 0 20px 20px;
}

.vwpc-dcard.open .vwpc-dcard__body {
    display: block;
}


/* Address row */

.vwpc-dcard__address {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    font-size: 0.82rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
}

.vwpc-dcard__address svg {
    flex-shrink: 0;
    color: #555;
    margin-top: 2px;
}


/* Meta rows (phone, email, website) */

.vwpc-dcard__meta {
    display: none;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 10px;
}

.vwpc-dcard.open {
    .vwpc-dcard__meta {
        display: flex;
    }
}

.vwpc-dcard__meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: #333;
}

.vwpc-dcard__meta-row svg {
    flex-shrink: 0;
    color: #555;
    width: 14px;
    height: 14px;
}

.vwpc-dcard__meta-row a {
    color: #001e50;
    text-decoration: none;
}

.vwpc-dcard__meta-row a:hover {
    text-decoration: underline;
}


/* Sales Head line */

.vwpc-dcard__sales-head {
    font-size: 0.82rem;
    color: #333;
    margin-bottom: 14px;
}

.vwpc-dcard__sales-head span {
    font-weight: 600;
}


/* Action buttons */

.vwpc-dcard__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.vwpc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #001e50;
    color: #fff;
    font-family: "VWTextWeb-Regular";
    font-size: 12px;
    padding: 9px 16px;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    width: 100%;
}

.vwpc-btn-primary:hover {
    background: #0040c1;
    color: #fff;
}

.vwpc-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #001e50;
    font-family: "VWTextWeb-Regular";
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1.5px solid #001e50;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}

.vwpc-btn-outline:hover {
    background: #001e50;
    color: #fff;
}

.vwpc-dist-badge {
    font-size: 0.75rem;
    color: #555;
    font-weight: 400;
}


/* no dealers */

.vwpc-no-dealers {
    padding: 24px;
    font-size: 0.9rem;
    color: #888;
}


/* ── Responsive ── */

@media (max-width: 960px) {
    .vwpc-locator {
        padding: 32px 20px 48px;
    }
    .vwpc-locator__body {
        min-height: auto;
    }
    #dealerMap {
        height: 320px;
        order: 1;
    }
    .vwpc-dealer-panel {
        max-height: 420px;
        border-right: none;
    }
}

@media (max-width: 767px) {
    .vwpc-locator__body {
        flex-direction: column-reverse;
    }
    .vwpc-locator {
        padding: 20px 20px 20px;
    }
    .vwpc-dealer-panel {
        padding-right: 0px;
        margin-top: 20px;
    }
    .vwpc-dealer-panel {
        width: 100%;
    }
}


/* map css */

.gm-style-iw-ch {
    display: none;
}

.gm-style-iw-chr button.gm-ui-hover-effect {
    position: absolute !important;
    right: 10px !important;
    width: auto !important;
    height: auto !important;
    top: 10px;
}

.gm-style-iw-chr button.gm-ui-hover-effect span {
    margin: 0px !important;
    width: 16px !important;
    height: 16px !important;
}

.map-tooltip-head {
    text-align: center;
    font-family: "VWTextWeb-Bold";
    background: #001e50;
    font-size: 16px;
    padding-top: 20px;
}

.vwpc-dealer-panel__scroll::-webkit-scrollbar {
    width: 5px;
}

.vwpc-dealer-panel__scroll::-webkit-scrollbar-thumb {
    background-color: #001e50;
    border-radius: 2px;
}