.dealers-page {
    background: #ffffff;
    padding-bottom: 90px;
}

/* Intro */
.dealers-intro-section {
    padding-bottom: 65px;
}

.dealers-intro-box {
    position: relative;
    background: #f7f7f7;
    border-left: 4px solid var(--pbmit-global-color, #DA8A45);
    padding: 32px 36px;
    border-radius: 0 18px 18px 0;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .055);
}

.dealers-intro-box p {
    margin: 0;
    color: #565656;
    line-height: 1.75;
}

.dealers-intro-box p + p {
    margin-top: 12px;
}

/* Dealer portal entry */
.dealers-portal-banner {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    margin-top: 48px;
    padding: 36px 42px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: linear-gradient(112deg, #16222d 0%, #203548 100%);
    box-shadow: 0 20px 48px rgba(22, 34, 45, .16);
}

.dealers-portal-banner::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--pbmit-global-color, #DA8A45), rgba(218, 138, 69, 0) 65%);
}

.dealers-portal-banner::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 320px;
    height: 320px;
    right: -115px;
    top: -185px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .025);
    pointer-events: none;
}

.dealers-portal-content {
    min-width: 0;
}

.dealers-portal-logo {
    position: relative;
    width: min(100%, 420px);
    margin-bottom: 24px;
}

.dealers-portal-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.dealers-portal-logo-white-text {
    position: absolute;
    inset: 0;
    pointer-events: none;
    filter: brightness(0) invert(1);
    clip-path: inset(69% 18% 8% 37%);
}

.dealers-portal-content h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(25px, 2.3vw, 34px);
    font-weight: 700;
    line-height: 1.18;
}

.dealers-portal-content p {
    margin: 0;
    color: #cbd4dd;
    font-size: 15px;
    line-height: 1.65;
}

.dealers-portal-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.dealers-portal-cta.pbmit-btn {
    max-width: 100%;
    text-transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
}

.dealers-portal-cta.pbmit-btn:focus-visible {
    outline: 3px solid #efaa6d;
    outline-offset: 3px;
}

/* Sections */
.dealers-section {
    position: relative;
}

.dealers-section-local {
    background: #f8f8f8;
}

.dealers-section-international {
    background: #ffffff;
}

.dealers-heading-desc {
    max-width: 720px;
    margin: 0 auto;
}

.dealers-row {
    row-gap: 26px;
}

/* Filters */
.dealer-filter-wrapper {
    display: flex;
    justify-content: center;
    margin: 32px 0 42px;
}

.dealer-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
}

.dealer-filter-btn {
    border: 0;
    outline: none;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: 999px;
    background: transparent;
    color: #151515;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: all .22s ease;
}

.dealer-filter-btn:hover,
.dealer-filter-btn.active {
    background: var(--pbmit-global-color, #DA8A45);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(218, 138, 69, .25);
}

/* Business card style */
.dealer-card {
    position: relative;
    height: 100%;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    padding: 0;
    background:
            linear-gradient(135deg, rgba(218, 138, 69, .08) 0%, rgba(218, 138, 69, 0) 42%),
            #ffffff;
    border: 1px solid rgba(0, 0, 0, .085);
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .055);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dealer-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--pbmit-global-color, #DA8A45);
    opacity: .95;
}

.dealer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(218, 138, 69, .38);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .10);
}

/* Card header */
.dealer-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 24px 18px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, .065);
}

.dealer-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--pbmit-global-color, #DA8A45);
    border: 1px solid rgba(218, 138, 69, .28);
    box-shadow: 0 8px 20px rgba(218, 138, 69, .10);
    overflow: hidden;
}

.dealer-logo span {
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.dealer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 9px;
    display: block;
}

.dealer-title {
    flex: 1;
    min-width: 0;
}

.dealer-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 6px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: rgba(218, 138, 69, .12);
    color: var(--pbmit-global-color, #DA8A45);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dealer-title h3 {
    margin: 0 0 7px;
    color: #151515;
    font-size: 21px;
    line-height: 1.22;
    font-weight: 800;
}

.dealer-location {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6d6d6d;
    font-size: 14px;
    font-weight: 600;
}

.dealer-country-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    min-width: 21px;
    font-size: 18px;
    line-height: 1;
}

/* Card content */
.dealer-info-list {
    flex: 1;
    margin: 0;
    padding: 18px 24px 6px 28px;
    list-style: none;
}

.dealer-info-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 0;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}

.dealer-info-icon {
    width: 28px;
    height: 28px;
    margin-top: -2px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(218, 138, 69, .10);
    color: var(--pbmit-global-color, #DA8A45);
}

.dealer-info-icon svg {
    width: 14px;
    height: 14px;
    display: block;
    fill: currentColor;
}

.dealer-info-list a {
    color: #151515;
    text-decoration: none;
    font-weight: 700;
    word-break: break-word;
    transition: color .22s ease;
}

.dealer-info-list a:hover {
    color: var(--pbmit-global-color, #DA8A45);
}

/* Card footer */
.dealer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding: 14px 24px 22px 28px;
}

.dealer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pbmit-global-color, #DA8A45);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: color .22s ease;
}

.dealer-map-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(218, 138, 69, .12);
    font-size: 13px;
    line-height: 1;
    transition: all .22s ease;
}

.dealer-map-link:hover {
    color: #151515;
}

.dealer-map-link:hover span {
    background: var(--pbmit-global-color, #DA8A45);
    color: #ffffff;
    transform: translate(2px, -2px);
}

/* Empty state */
.dealers-empty {
    margin: 30px auto 0;
    max-width: 560px;
    padding: 20px 26px;
    text-align: center;
    border-radius: 14px;
    background: rgba(218, 138, 69, .10);
    color: #7a4a22;
    font-weight: 700;
    border: 1px dashed rgba(218, 138, 69, .45);
}

.dealer-item[hidden] {
    display: none !important;
}

/* Responsive */
@media (max-width: 991px) {
    .dealers-intro-box {
        margin-top: 25px;
    }

    .dealers-portal-banner {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 38px;
        padding: 32px;
    }

    .dealer-filter {
        border-radius: 22px;
    }

    .dealer-filter-btn {
        padding: 11px 18px;
    }
}

@media (max-width: 767px) {
    .dealers-page {
        padding-bottom: 70px;
    }

    .dealers-intro-section {
        padding-bottom: 50px;
    }

    .dealers-intro-box {
        padding: 28px 25px;
    }

    .dealers-portal-banner {
        margin-top: 32px;
        padding: 28px 24px;
        border-radius: 18px;
    }

    .dealers-portal-logo {
        margin-bottom: 20px;
    }

    .dealers-portal-action,
    .dealers-portal-cta {
        width: 100%;
    }

    .dealers-portal-cta.pbmit-btn {
        white-space: normal;
    }

    .dealers-portal-cta.pbmit-btn .pbmit-button-content-wrapper {
        align-items: center;
        justify-content: flex-start;
    }

    .dealers-portal-cta.pbmit-btn .pbmit-button-icon {
        flex: 0 0 18px;
    }

    .dealers-portal-cta.pbmit-btn .pbmit-button-text,
    .dealers-portal-cta.pbmit-btn:hover .pbmit-button-text {
        display: block;
        overflow: visible;
        white-space: normal;
        text-align: left;
        color: #16222d;
        text-shadow: none;
        background: none;
    }

    .dealer-filter-wrapper {
        margin: 28px 0 35px;
    }

    .dealer-filter {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 18px;
    }

    .dealer-filter-btn {
        width: 100%;
    }

    .dealer-card {
        min-height: auto;
    }

    .dealer-card-top {
        padding: 22px 22px 17px 26px;
        gap: 14px;
    }

    .dealer-logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .dealer-logo span {
        font-size: 22px;
    }

    .dealer-title h3 {
        font-size: 19px;
    }

    .dealer-info-list {
        padding: 16px 22px 4px 26px;
    }

    .dealer-actions {
        padding: 12px 22px 20px 26px;
    }
}

@media (max-width: 480px) {
    .dealer-filter {
        grid-template-columns: 1fr;
    }

    .dealer-card-top {
        align-items: flex-start;
    }

    .dealer-title h3 {
        font-size: 18px;
    }

    .dealer-info-list li {
        font-size: 13.5px;
    }
}
