body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100svh;
}

/* Set the size of the div element that contains the map */

.locator {
    flex-grow: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    position: relative;
    min-height: calc(100dvh - 203px);
}

#map {
    height: 100%;
    flex: 1;
}

[data-elementor-type="footer"], [data-elementor-type="header"] {
    width: 100%;
}

.dealers {
    width: 450px;
    overflow-y: auto;
    height: 100%;
}
.dealers ul {
    list-style: none;
    padding: 0;
}

.dealer {
    padding: 2rem;
    border-bottom: 2px solid #eee;
    color: #666; /* Brand specific */
    font-size: 0.85rem;
}

.dealer .dealer-name {
    font-family: 'Anton',sans-serif; /* Brand specific */
    font-size: 1.25rem;
    color: var( --e-global-color-b28f996 ); /* Brand specific */
}

.dealer .links {
    margin-top: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.dealer .links a {
    background: var( --e-global-color-4da2dd4 ); /* Brand specific */
    color: white;
    display: inline-block;
    border-radius: 0.2rem;
    padding: 0.2rem 1rem;
    text-decoration: none;
}

.dealer .links a:hover {
    background-color: var( --e-global-color-4c92a08 ); /* Brand specific */
}

.form-wrapper {
    width: 100%;
    padding: 2rem 0;
    background-color: var( --e-global-color-b28f996 ); /* Brand specific */
    margin-top: 85px;
}

form {
    width: 100%;
    max-width: 80%;
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0 auto;
}

form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    background-color: #fff;
    color: var( --e-global-color-b28f996 ); /* Brand specific */
    font-family: 'Anton',sans-serif; /* Brand specific */
    font-weight: 600;
    letter-spacing: .07rem;
    text-transform: uppercase !important;
    font-size: 1rem;
}

form label {
    font-family: 'Anton',sans-serif; /* Brand specific */
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    text-wrap: nowrap;
    letter-spacing: .07rem;
}

form input[type="text"]:focus {
    outline-color: var( --e-global-color-accent ); /* Brand specific */
}

form button[type="submit"] {
    background-color: var( --e-global-color-accent ); /* Brand specific */
    color: #fff;
    font-family: 'PT Sans',sans-serif; /* Brand specific */
    font-weight: 600;
    letter-spacing: .07rem;
    text-transform: uppercase !important;
    font-size: 1rem;
    border: none;
    padding: 0.75rem 1rem;
    margin: 0;
    cursor: pointer;
    margin-left: -3rem;
    border-radius: 0;
}

form button[type="submit"]:hover {
    background-color: #fff;
    color: var( --e-global-color-accent );
}

.select-a-dealer {
    text-align: center;
    width: 100%;
    height: 100%;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::after {
    content: '';
    display: block;
    width: 50px;
    height: 50px;
    border: 3px solid var( --e-global-color-accent ); /* Brand specific */
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gm-style-iw-d a {
    font-weight: 600;
}

@media screen and (max-width: 768px) {
    .locator {
        flex-direction: column;
    }

    .dealers {
        height: 167px;
        width: 100%;
        overflow-y: scroll;
    }

    .dealer {
        padding: 1rem 2rem;
    }

    #map {
        min-height: calc(100% - 218px);
        width: 100%;
    }
}