/* Dealer Hub CSS file */
/* ------------------------------------------------- */

/* Locations Section */
/* ------------------------------------------------- */

section.locations {
    padding: var(--space-10) 0;
    background: var(--neutral-100);
}

section.locations .wrap {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
}

.locations-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.locations-map {
    position: relative;
}

.locations-map img {
    top: 10%;
    object-fit: cover;
    position: absolute;
    z-index: 0;
}

@media (max-width: 960px) {
    section.locations .wrap {
        grid-template-columns: 1fr;
    }
}

.dealers-filter {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.dealers-filter .select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 450px;
}

.dealers-filter select {
    display: flex;
    padding: var(--space-3) var(--space-4);
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 450px;
    font-size: 16px;
    font-family: "Circular Std", sans-serif;
    font-style: normal;
    font-weight: 450;
    line-height: 150%;
    border: 1px solid var(--neutral-300);
    background: var(--neutral-25);
    color: var(--neutral-500);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.dealers-filter select:valid {
    color: var(--neutral-950);
}

.dealers-filter .select-chevron {
    position: absolute;
    right: var(--space-4);
    color: var(--neutral-950);
    pointer-events: none;
}

[x-cloak] {
    display: none !important;
}

/* Dealers Section */
/* ------------------------------------------------- */

section.dealers {
    padding: 0 0 var(--space-11) 0;
    background: var(--neutral-100);
}

section.dealers .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
}

section.dealers .heading-2 {
    color: var(--blue-700);
    position: relative;
    z-index: 1;
}

section.dealers .heading-4 {
    position: relative;
    z-index: 1;
}

.dealers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.dealer-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    height: calc(100% - var(--space-6) * 2);
    width: calc(100% - var(--space-6) * 2);
    border: 1px solid var(--neutral-200);
    background: var(--neutral-50);
    position: relative;
    z-index: 1;
}

.dealer-card .heading-4 {
    color: var(--neutral-950);
}

.dealer-card-location,
.dealer-card-phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-500);
    text-decoration: none;
}

.dealer-card-location svg,
.dealer-card-phone svg {
    flex-shrink: 0;
}

.dealer-card-divider {
    height: 1px;
    background: var(--neutral-200);
}

.dealer-card-services {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.dealer-card-services .heading-5 {
    color: var(--neutral-950);
}

.dealer-card-services-list {
    color: var(--neutral-500);
    font-size: 14px;
    line-height: 1.5;
}

.dealer-card .button {
    width: fit-content;
}

.dealer-card-button {
    margin-top: auto;
}

@media (max-width: 960px) {
    .dealers-grid {
        grid-template-columns: 1fr;
    }
}
