@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --dl-dark: #101828;
    --dl-blue-bg: #182731;
    --dl-orange: #E44310;
    --dl-white: #FFFFFF;
    --dl-grey-label: #101828;
    --dl-grey-text: #101828;
    --dl-border: #182731;
    --dl-font: 'Urbanist', sans-serif;
}

.dealer-locator-wrapper {
    font-family: var(--dl-font);
    width: min(100%, 1480px);
    margin: 50px auto;
    background: var(--dl-white);
    color: var(--dl-dark);
}

/* TOP SECTION */
.dl-top-flex {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    column-gap: 0;
    border: 1px solid #182731;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.dl-map-side {
    flex: 1;
    min-height: 451px;
    padding: 10px 38px 32px 30px;
    box-sizing: border-box;
}

.dl-section-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 25px;
    color: #182731;
    text-align: left;
}

.dl-map-container {
    width: 100%;
    height: 349.758px;
    background: #f0f0f0;
}

.dl-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}



.dl-filter-side {
    width: 450px;
    flex-shrink: 0;
    min-height: 451px;
    background: var(--dl-blue-bg);
    padding: 10px 32px 36px;
    color: var(--dl-white);
    border-left: 1px solid var(--dl-border);
    box-sizing: border-box;
}

.dl-filter-side .dl-section-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    color: #ffffff;
    margin-bottom: 25px;
}

.dl-search-group {
    position: relative;
    margin-bottom: 25px;
}

.dl-search-input {
    width: 100% !important;
    background: transparent !important;
    border: 1px solid #fff !important;
    padding: 8px 15px !important;
    padding-right: 40px !important;
    color: #fff !important;
    border-radius: 0px !important;
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    outline: none !important;
    box-sizing: border-box;
}

.dl-search-input::placeholder {
    color: #fff !important;
}

.dl-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-search-icon svg {
    display: block;
}

.dl-or {
    text-align: center;
    color: #fff;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    margin: 30px 0;
    position: relative;
    text-transform: uppercase;
}

.dl-select-field {
    width: 100% !important;
    background: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.625 0.625L5.625 5.625L10.625 0.625' stroke='%23737D8F' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    border: 1px solid #fff !important;
    color: white !important;
    padding: 8px 15px !important;
    margin-bottom: 15px !important;
    font-family: 'Urbanist', sans-serif !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 22px !important;
    appearance: none !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
}

.dl-select-field option {
    background: var(--dl-blue-bg);
    color: white;
}

.dl-search-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 25px;
    font-family: 'Urbanist', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    transition: all 0.3s;
    border-radius: 0px !important;
}

.dl-search-btn:hover {
    background: var(--dl-white);
    color: #000000;
}

.dl-search-btn:focus,
.dl-search-btn:active {
    outline: none;
    box-shadow: none;
    background: transparent;
    color: white;
}

.dl-search-btn svg {
    flex-shrink: 0;
}

/* RESULTS SECTION */
.dl-results-container {
    display: none;
}

.dl-results-container.dl-results-visible {
    display: block;
}

.dl-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    row-gap: 44px;
    padding: 56px 0 0;
    align-items: start;
}

.dl-card {
    display: flex;
    flex-direction: column;
    padding: 0 84px 0 0;
    position: relative;
    align-self: start;
}

.dl-card:not(:nth-child(3n + 1)) {
    padding-left: 84px;
}

.dl-card:not(:nth-child(3n + 1))::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--dl-border);
}

.dl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
}

.dl-marker {
    width: 12px;
    height: 12px;
    background: var(--dl-orange);
    margin-top: 7px;
    flex-shrink: 0;
}

.dl-dealer-name {
    font-family: var(--dl-font);
    font-weight: 700;
    font-size: 16px;
    line-height: 26px;
    margin: 0;
    color: var(--dl-dark);
}

.dl-info-row {
    margin-bottom: 1px;
}

.dl-label {
    font-family: var(--dl-font);
    font-weight: 600;
    font-size: 12px;
    line-height: 22px;
    display: inline;
    margin-right: 4px;
    color: var(--dl-grey-label);
}

.dl-value {
    font-family: var(--dl-font);
    font-weight: 400;
    font-size: 12px;
    line-height: 22px;
    display: inline;
    color: var(--dl-grey-text);
}

.dl-direction-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #182731;
    padding: 14px 18px;
    width: fit-content;
    text-decoration: none !important;
    color: var(--dl-dark) !important;
    font-family: var(--dl-font);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    margin-top: 24px;
    transition: 0.3s ease;
}

.dl-direction-btn:hover {
    background: var(--dl-dark);
    color: var(--dl-white) !important;
}

.dl-direction-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 12px;
    line-height: 1;
}

.dl-direction-icon svg {
    display: block;
    width: 13px;
    height: 12px;
}
.dl-direction-btn:hover .dl-direction-icon svg {
    stroke: #fff;
    fill: #fff;
}

.dl-loading, .dl-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 1.2rem;
}

@media (max-width: 1180px) {
    .dl-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-card {
        padding-right: 48px;
        padding-bottom: 36px;
    }

    .dl-card:not(:nth-child(3n + 1)) {
        padding-left: 0;
    }

    .dl-card:not(:nth-child(3n + 1))::before {
        content: none;
    }

    .dl-card:nth-child(even) {
        padding-left: 48px;
    }

    .dl-card:nth-child(even)::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 1px;
        background: var(--dl-border);
    }
}

@media (max-width: 900px) {
    .dealer-locator-wrapper {
        width: 100%;
        margin: 10px auto;
        /* padding: 0 20px; */
        box-sizing: border-box;
    }

    .dl-top-flex {
        display: flex;
        flex-direction: column;
        border: none;
        width: 100%;
    }

    .dl-map-side {
        width: 100%;
        height: auto;
        padding: 0;
        margin-bottom: 30px;
    }

    .dl-map-side .dl-section-title {
        font-family: 'Urbanist', sans-serif;
        font-weight: 700;
        font-size: 30px;
        line-height: 100%;
        color: #182731;
        margin-bottom: 24px;
        display: block;
    }

    .dl-map-container {
        width: 100%;
        height: 300px;
        border: 1px solid #182731;
    }

    .dl-filter-side {
        width: 100%;
        height: auto;
        background: #182731;
        padding: 30px 20px;
        border-left: none;
        margin-top: 20px;
    }

    .dl-filter-side .dl-section-title {
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        color: #ffffff;
        margin-bottom: 25px;
    }

    .dl-search-input {
        font-family: 'Urbanist', sans-serif !important;
        font-weight: 400 !important;
        font-size: 14px !important;
        line-height: 100% !important;
        color: #fff !important;
        border: 0.77px solid #fff !important;
        height: 48px !important;
        border-radius: 0 !important;
    }

    .dl-or {
        font-size: 12px;
        margin: 20px 0;
    }

    .dl-select-field {
        font-family: 'Urbanist', sans-serif !important;
        font-weight: 400 !important;
        font-size: 12px !important;
        line-height: 100% !important;
        color: #fff !important;
        border: 0.77px solid #fff !important;
        height: 48px !important;
        margin-bottom: 12px !important;
        border-radius: 0 !important;
    }

    .dl-search-btn {
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        color: #FFFFFF;
        border: 1px solid #FFFFFF;
        padding: 12px 30px;
        margin-top: 20px;
        width: fit-content;
    }

    .dl-results-grid {
        grid-template-columns: 1fr;
        padding-top: 20px;
        row-gap: 0;
    }

    .dl-card {
        padding: 30px 0;
        border-bottom: 1px solid #D9D9D9;
        display: block;
    }

    .dl-card:not(:nth-child(3n + 1)) {
        padding-left: 0;
    }

    .dl-card:nth-child(even) {
        padding-left: 0;
    }

    .dl-card:nth-child(even)::before,
    .dl-card:not(:nth-child(3n + 1))::before {
        content: none;
    }

    .dl-card-header {
        margin-bottom: 12px;
    }

    .dl-marker {
        width: 10px;
        height: 10px;
        margin-top: 4px;
    }

    .dl-dealer-name {
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        color: #182731;
    }

    .dl-info-row {
        margin-bottom: 4px;
    }

    .dl-label, .dl-value {
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        font-size: 12px;
        line-height: 22px;
        color: #182731;
    }

    .dl-direction-btn {
        font-family: 'Urbanist', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        color: #182731 !important;
        border: 1px solid #182731;
        padding: 12px 24px;
        margin-top: 24px;
        display: inline-flex;
    }
}

@media (max-width: 900px) {
    .dl-map-side {
        flex: 1;
        min-height: auto !important;
        padding: 0px !important;
        box-sizing: border-box;
    }
}
