.dm {
    width: 100%;
    display: grid;
    grid-template-columns: 450px 1fr;
    grid-template-rows: 1fr;
    color: #585959;
    font-family: 'Favorit', sans-serif;
    overflow: hidden;
}

.dm * {
    box-sizing: border-box;
}

.dm .dm-map {
    position: relative;
}

.dm .dm-control {
    background-color: #E9E9E8;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dm #dealer-search-form {
    position: relative;
}

.dm #dealer-search-dropdown {
    display: none;
    flex-direction: column;
    width: calc(100% - 30px);
    position: absolute;
    top: 40px;
    background-color: #fff;
    border: 1px solid #939598;
    border-top-color: #fff;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    gap: 15px;
    padding: 5px;
    padding-top: 10px;
    z-index: 9999;
    left: 15px;
}

.dm #dealer-search-dropdown .dropdown-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm #dealer-search-dropdown .dropdown-section h6 {
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.dm #dealer-search-dropdown .dropdown-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dm #dealer-search-dropdown .dropdown-options .dropdown-option {
    background-color: #E9E9E7;
    padding: 8px 5px;
    width: 100%;
    border-radius: 2px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dm #dealer-search-dropdown .dropdown-options .dropdown-option:hover {
    background-color: #939598;
    color: #E9E9E7;
}

.dm .dm-search {
    width: 100%;
    background-color: #fff;
    border: 1px solid #939598;

    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 8px 15px;
}

.dm .dm-search .dm-search__bar {
    position: relative;
    width: 100%;
    border: 1px solid #939598;
    border-radius: 99px;
    padding: 10px 40px 10px 40px;
}

.dm .dm-search .dm-search__bar .location-icon img {
    position: absolute;
    left: 14px;
    top: 0;
    bottom: 0;
    height: 20px;
    margin: auto;
    width: auto;
    user-select: none;
}

.dm .dm-search .dm-search__bar #search-icon img {
    position: absolute;
    right: 14px;
    top: 0;
    bottom: 2px;
    height: 20px;
    margin: auto;
    width: auto;
    cursor: pointer;
}

.dm .dm-search .dm-search__bar input {
    width: 100%;
    background-color: transparent;
    font-size: 16px;
    padding: 0;
    font-family: inherit;
}

.dm .dm-search .dm-search__bar input::selection {
    background-color: #E9E9E8;
}

.dm .dm-search #dm-search__filters {
    position: relative;
}

.dm .dm-search #dm-search__filters img {
    height: 32px;
    width: auto;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}

.dm .dm-search #dm-search__filters #filter-count, 
.dm .dm-search #dm-mobile-search__filters #mobile-filter-count {
    color: #fff;
    background-color: #000;
    position: absolute;
    top: -5px;
    right: -7px;
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 99px;
    font-size: 12px;
    aspect-ratio: 1 / 1;
    width: 18px;
    font-weight: bold;
}

.dm .dm-search #dm-mobile-search__filters #mobile-filter-count {
    top: 0px;
    right: -4px;
}

#dm-results {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    align-items: center;
}

#dm-results .no-results {
    font-size: 20px;
}

.dm .result-card-wrap {
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
}

.dm .result-card-wrap .tier-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    padding: 6px;
    color: #fff;
    font-weight: bold;
    padding-top: 10px;
    font-size: 14px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
} 

.dm .result-card-wrap .tier-banner.platinum {
    background-color: #000;
}

.dm .result-card {
    position: relative;
    width: 100%;
    padding: 20px;
    padding-bottom: 15px;
    display: flex;
    flex-direction: column;
    min-height: 110px;
    font-weight: lighter;
    cursor: pointer;
    justify-content: space-between;
}

.dm .result-card__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 44px;
}

.dm .result-card__header {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dm .result-card__header h4 {
    font-size: 20px;
}

.dm .result-card__header h6 {
    font-size: 14px;
}

.dm .result-card .result-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    margin-left: 4px;
}

.dm .result-card .miles-indicator {
    position: absolute;
    right: 15px;
    top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.dm .result-card .miles-indicator svg {
    height: 26px;
    width: auto;
    fill: #585959;
}

.dm .result-card__bottom-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-end;
}

.dm .result-card__bottom-info .dealer-tag-wrap {
    display: flex;
    gap: 2px;
    row-gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.dm .result-card__bottom-info .dealer-tag-wrap .dealer-tag {
    padding: 5px 16px;
    border: 1px solid #585959;
    border-radius: 99px;
    font-size: 14px;
}

.dm .result-card .get-directions  {
    display: flex;
    gap: 5px;
    font-size: 12px;
    align-items: center;
    font-weight: 100;
    cursor: pointer;
    white-space: nowrap;
    height: fit-content;
}

.dm .result-card .get-directions svg {
    height: 20px;
    width: auto;
    fill: #585959;
}

.dm .result-card .get-directions:hover {
    color: #63B2F9;
}

.dm .result-card .get-directions:hover svg {
    fill: #63B2F9;
}

.dm .result-card .info-line {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
}

.dm .result-card .info-line svg {
    height: 16px;
    width: auto;
    fill: #585959;
}

.dm .result-card .info-line.website a {
    font-weight: lighter;
    color: inherit;
}

.dm .result-card .info-line.website:hover svg {
    fill: #63B2F9;
}

.dm .result-card .info-line.website:hover a {
   color: #63B2F9;
}

#map {
    height: 100%;
    width: 100%;
}

.dm .red-text {
    color: #B16A6E;
    font-weight: bold;
}

.mapboxgl-canvas {
    width: auto !important;
    height: 100% !important;
}

.mapboxgl-ctrl-group button {
    padding: 4px !important;
}

.dm #error-banner {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background-color: #ec474f;
    text-align: center;
    color: #FFF;
    padding: 10px 20px;
    border-radius: 99px;
    width: fit-content;
    max-width: 70%;
    z-index: 99;
    display: none;
    font-weight: bold;
    animation: dropdown 0.5s ease-in-out;
}

@keyframes dropdown {
    0% {
        top: -60px;
    }

    100% {
        top: 10px;
    }
}

.dm #dm-filters {
    display: none;
    height: 100%;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 40px;
    gap: 40px;
    z-index: 30;
}

.dm #dm-filters button {
    background-color: #000;
    color: #fff;
    border-radius: 99px;
    font-weight: bold !important;
    outline: none;
    border: none;
    padding: .65em .5em;
    font-size: 20px;
    font-family: inherit;
}

.dm #dm-filters button:disabled {
    color: #939598;
    background-color: #E9E9E8;
    cursor: not-allowed;
}

.dm .checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm .checkbox {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}

.dm .checkbox span {
    pointer-events: none;
}

.dm .checkbox .checkbox__box {
    height: 30px;
    width: 30px;
    border: 2px solid #939598;
    border-radius: 5px;
    pointer-events: none;
    transition: all 0.25s ease-in-out;
    background-color: white;
}

.dm .checkbox.checked .checkbox__box {
    background-color: #000;
}

.dm #dm-filters .filter-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dm #dm-filters .filter-section h4 {
    font-size: 20px;
    font-weight: bold;
}

.dm .ow-marker {
    cursor: pointer;
}

#dm .mapboxgl-marker {
    cursor: pointer;
}

.dm .ow-marker-wrap {
    width: fit-content;
}

.dm .ow-marker-wrap.selected {
    z-index: 99;
}

.dm .ow-marker-wrap:hover {
    z-index: 100;
}

.dm .ow-marker-hover {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    background-color: #fff;
    left: -80px;
    right: -80px;
    padding: 5px;
    border: 2px solid #000;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.dm .ow-marker-hover .door {
    font-size: 12px;
    font-weight: normal;
}

.dm .ow-marker-hover.platinum {
    padding-top: 25px;
}

.dm .ow-marker-hover.platinum::before {
    content: "Platinum Dealer";
    position: absolute;
    top: 0;
    color: #fff;
    background-color: #000;
    width: 100%;
    font-size: 10px;
    text-transform: uppercase;
}

.dm .ow-marker-wrap:hover .ow-marker-hover,
.dm .ow-marker-wrap.selected .ow-marker-hover{
    display: flex;
}

.dm .dm-mobile-menu {
    display: none;
}

.dm #dm-mobile-search__filters {
    display: none;
}

.dm #selected-result {
    display: none;
}

@media (max-width: 800px)  {
    .dm {
        display: flex;
        flex-direction: column;
    }

    .dm .dm-control {
        height: fit-content;
        overflow: visible;
    }

    .dm .dm-search {
        gap: 0px;
        padding: 10px 15px;
        display: flex;
        flex-direction: column;
    }
    
    .dm .dm-mobile-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: fit-content;
        font-size: 14px;
        text-align: center;

        position: absolute;
        top: 75px;
        left: 10px;
        z-index: 20;
    }    

    .dm .dm-mobile-menu.map-view {
        left: 0;
        right: 0;
        margin: auto;
    }

    .dm .dm-mobile-menu span {
        padding: 5px;
        width: 80px;
        height: 29px;
        cursor: pointer;
        background-color: #FFF;
        box-shadow: 0 0 0 2px #0000001a;
        border-radius: 4px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dm .dm-mobile-menu span.selected {
        display: none;
    }

    .dm #dm-mobile-search__filters {
        display: unset;
        position: absolute;
        right: 14px;
        top: 0;
        bottom: 0;
        margin: auto;
        width: auto;
        cursor: pointer;
        height: fit-content;
    }

    .dm .dm-search .dm-search__bar {
        padding: 10px 50px 10px 40px;
    }

    .dm #dm-mobile-search__filters img {
        height: 32px;
        width: auto;
        aspect-ratio: 1 / 1;
        cursor: pointer;
        padding: 2px;
    }

    .dm .dm-search > #dm-search__filters,
    .dm .dm-search #search-icon {
        display: none;
    }

    .dm .dm-control #dm-results {
        display: none;
        padding-top: 60px;
    }

    .dm .dm-map {
        height: 100%;
    }

    .dm .ow-marker-hover {
        display: none !important;
    }

    .dm #selected-result {
        display: unset;
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        margin: auto 10px;
        z-index: 10;
    }
}

#search-here {
    position: absolute;
    z-index: 10;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: auto;
    display: none;
    width: fit-content;
    background-color: #fff;
    border-radius: 99px;
    padding: 10px 20px !important;
    border: none;
}

#search-here:hover {
    background-color: rgb(238, 238, 238);
}