/* Dealers / service / spare locator hub */
.dl-page {
    --dl-red: #d81416;
    --dl-ink: #12263a;
    --dl-muted: #6b7280;
    --dl-border: #e8ecf0;
    --dl-bg: #f5f6f8;
    background: var(--dl-bg);
    padding-bottom: 40px;
}

.dl-page .breadCrumn {
    background: #fff;
    border-bottom: 1px solid var(--dl-border);
}

.dl-page .breadcrumb {
    margin: 0;
    padding: 12px 0;
    background: transparent;
}

.dl-hero {
    position: relative;
    overflow: visible;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 50%, #fff5f5 100%);
    border-bottom: 1px solid var(--dl-border);
    padding: 28px 0 8px;
}

.dl-hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--dl-red) 0%, #f07178 100%);
}

.dl-hero__eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dl-red);
}

.dl-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    color: var(--dl-ink);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.dl-hero__sub {
    margin: 0 0 18px;
    max-width: 48rem;
    font-size: 15px;
    line-height: 1.55;
    color: var(--dl-muted);
}

/* Hero intro: show full text (no 3-line clamp / nested card chrome) */
.dl-hero .rm-footer-wrap.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}
.dl-hero .rm-footer-wrap {
    margin-bottom: 0;
}
.dl-hero .rm-footer {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}
.dl-hero .rm-footer__inner {
    padding: 0;
}
.dl-hero .rm-footer__preview,
.dl-hero .rm-footer__preview--full,
.dl-hero .rm-footer:not(.is-expanded) .rm-footer__preview:not(.rm-footer__preview--full),
.rm-footer__preview--full {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    font-size: 15px;
    line-height: 1.55;
    color: var(--dl-muted);
}

/* Related brands: single horizontal row (no 2-line wrap) */
.dl-brand-cloud {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 72px;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 6px;
    max-width: 100%;
}
.dl-brand-cloud .brand-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 56px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 10px;
}
.dl-brand-cloud .brand-logo img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Tools For Help: keep carousel inside the page frame */
.tb-footer-tools,
.dl-page .tb-services-section,
.tb-services-section.popular-services-container {
    overflow: hidden;
    max-width: 100%;
    clear: both;
    position: relative;
    z-index: 2;
    width: 100%;
    float: none;
    content-visibility: visible;
    contain-intrinsic-size: none;
}
.dl-tools-above-footer {
    clear: both !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    position: relative;
    z-index: 2;
    background: #fff;
    margin: 0;
}
.tb-footer,
footer.tb-footer {
    clear: both !important;
    position: relative;
    z-index: 1;
}
.tb-services-carousel-wrap {
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}
.tb-services-track {
    max-width: 100%;
    box-sizing: border-box;
}

.dl-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.dl-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dl-border);
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.dl-pill i {
    color: var(--dl-red);
}

/* Locator form card */
.dl-locator {
    margin: 0 0 22px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(36, 39, 44, 0.06);
}

.dl-locator__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dl-ink);
}

.dl-locator__hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--dl-muted);
    line-height: 1.45;
}

.dl-locator__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.dl-locator__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.dl-locator__row > div[id$="updatePanel1"] {
    flex: 1 1 70%;
    min-width: 240px;
}

.dl-locator__cascade-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.dl-locator__action {
    flex: 0 1 200px;
    min-width: 160px;
}

.dl-locator__field label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.dl-locator__field .form-control,
.dl-locator select.form-control {
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: var(--dl-ink);
    font-size: 14px;
    box-shadow: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.dl-locator__field .form-control:focus,
.dl-locator select.form-control:focus {
    border-color: rgba(216, 20, 22, 0.45);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 20, 22, 0.08);
    outline: none;
}

.dl-locator__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: var(--dl-red);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.dl-locator__submit:hover,
.dl-locator__submit:focus {
    background: #b91214;
    color: #fff !important;
    outline: none;
}

/* Content sections */
.dl-section {
    margin: 0 0 18px;
    padding: 22px 22px 20px;
    background: #fff;
    border: 1px solid var(--dl-border);
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(36, 39, 44, 0.05);
}

.dl-section__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dl-ink);
    line-height: 1.35;
}

.dl-section__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.dl-brand-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.dl-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 12px;
    background: #fafbfc;
    border: 1px solid var(--dl-border);
    border-radius: 12px;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dl-brand-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 20, 22, 0.28);
    box-shadow: 0 8px 18px rgba(18, 38, 58, 0.08);
    text-decoration: none !important;
}

.dl-brand-card img {
    max-width: 100%;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dl-main {
    margin-top: 20px;
}

/* Override legacy banner chrome when locator sits in hero */
.dl-page .dlab-bnr-inr,
.dl-page .used-car-banner,
.dl-page .sale-car {
    background: transparent !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.dl-page .dlab-bnr-inr-entry,
.dl-page .overlay-black-middle {
    background: transparent !important;
}

.dl-page .used-car {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 991px) {
    .dl-locator__cascade-inner {
        grid-template-columns: 1fr;
    }

    .dl-locator__row > div[id$="updatePanel1"],
    .dl-locator__action {
        flex: 1 1 100%;
    }

    .dl-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .dl-hero {
        padding: 20px 0 6px;
    }

    .dl-locator {
        padding: 14px;
    }

    .dl-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl-section {
        padding: 16px;
    }

    .dl-brand-card:hover {
        transform: none;
    }
}

/* Dealer listing / detail cards */
.dl-dealer-list {
    position: relative;
    min-height: 148px;
}

.dl-dealer-skel {
    display: none;
    height: 140px;
    border-radius: 14px;
    background: linear-gradient(90deg, #f3f4f6 0%, #eef0f3 40%, #f3f4f6 80%);
    background-size: 200% 100%;
    animation: dlSkel 1.1s ease-in-out infinite;
}

.dl-dealer-skel.is-loading {
    display: block;
}

@keyframes dlSkel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.dl-dealer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dl-dealer-card {
    background: #fafbfc;
    border: 1px solid var(--dl-border);
    border-radius: 14px;
    padding: 16px 16px 14px;
}

.dl-dealer-card__title {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dl-ink);
}

.dl-dealer-card__title a {
    color: #1d4f7c;
    text-decoration: none;
}

.dl-dealer-card__title a:hover {
    color: var(--dl-red);
}

.dl-dealer-card__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    min-height: 72px;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.dl-dealer-card__meta li {
    margin: 0 0 4px;
}

.dl-dealer-card__meta .fa {
    color: var(--dl-red);
    width: 14px;
    margin-right: 4px;
}

.dl-dealer-card__cta .n-Button,
.dl-dealer-card__cta a.n-Button,
.dl-dealer-card__cta a.card-link,
.dl-page .n-Button,
.dl-page .b-Button,
.dl-page a.n-Button,
.dl-page a.b-Button,
.dl-page a.card-link.n-Button {
    max-width: 100%;
    border-radius: 10px !important;
    background: #d81416 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    min-height: 40px;
    height: auto !important;
    padding: 10px 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 767px) {
    .dl-dealer-grid {
        grid-template-columns: 1fr;
    }

    .dl-hero h1 {
        font-size: 1.35rem;
    }

    .dl-dealer-card {
        padding: 14px;
    }

    .dl-dealer-card__meta {
        min-height: 0;
        font-size: 13px;
    }
}
