@import url("partials/short-hero.css");

#map {
    position: relative;
    border-radius: 20px;
}

#map::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 20px;
    box-shadow: inset 0 0 15px -5px #000;
    z-index: 500;
    pointer-events: none;
}

.leaflet-tile {
    transition: filter .3s ease;
}

/* Map Theme */
html[site-theme="dark"] .leaflet-tile {
    filter: hue-rotate(180deg) invert(100%);
}

html[site-theme="dark"] #map {
    background-color: #13100a;
}

@media (max-width: 992px) {
    #map {
        min-height: auto;
        aspect-ratio: 1;
    }
}

.dealer-item {
    height: 100px;
    padding: 5px;
    border-style: none;
    background-color: transparent;
}

.dealer-item:hover {
    background-color: #ddd;
}

.dealer-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.dealer-item__img-container {
    height: 100%;
    aspect-ratio: 1;
}

.dealer-item__info {
    min-width: 0;
}

.dealer-item__name {
    font-size: 1.3rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    font-family: var(--primary-text-font);
}

.dealer-item__address {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #888;
    font-size: .9rem;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.2rem;
    max-height: calc(1.2rem * 3);
    font-family: var(--primary-text-font);
}

.dealer-item__link {
    font-family: var(--primary-text-font);
    font-weight: 300;
    font-size: .9rem;
    color: var(--secondary-color);
    text-decoration: underline;
    align-self: end;
}

.dealer-item__name,
.dealer-item__address,
.dealer-item__link {
    text-align: initial;
    margin: 0;
}

.marker-cluster > div {
    background-color: var(--primary-color);
}

.marker-cluster {
    background-color: rgba(var(--primary-color-values), .4);
    color: white;
}

.subheader {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin: 0 0 10px 10px;
    font-weight: 600;
    font-family: var(--secondary-text-font);
}
