/* Dealer landing page (/{portal code}). The dealer picks one of four hero layouts and a brand colour;
   the page sets --dealer on <body> and every shade below is derived from it. */

body {
  --dealer: #15803d;
  --dealer-dark: color-mix(in srgb, var(--dealer) 62%, #000);
  --dealer-deep: color-mix(in srgb, var(--dealer) 35%, #000);
  --dealer-soft: color-mix(in srgb, var(--dealer) 10%, #fff);
  --dealer-tint: color-mix(in srgb, var(--dealer) 4%, #fff);
  --dealer-line: color-mix(in srgb, var(--dealer) 30%, #fff);
  --dh-radius: 14px;
  --dh-shadow: 0 1px 2px rgba(13, 59, 36, .05), 0 12px 32px rgba(13, 59, 36, .08);
  --dh-glass: rgba(255, 255, 255, .14);
  --dh-glass-line: rgba(255, 255, 255, .3);
}

/* ---------- Shared hero pieces ---------- */

.dh { position: relative; }
.dh-cover {
  background:
    radial-gradient(700px 260px at 85% 10%, rgba(255, 255, 255, .14), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px),
    linear-gradient(100deg, var(--dealer-deep) 0%, var(--dealer-dark) 50%, var(--dealer) 100%);
}

/* Slider: slow zoom on the active slide, a soft shade so captions read, glass controls. */
.dh-slider { position: relative; overflow: hidden; background: var(--dealer-deep); }
.dh-slider .carousel-inner, .dh-slider .carousel-item { height: 100%; }
.dh-slider .carousel-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-slider .carousel-item.active img { animation: dh-zoom 14s ease-out both; }
@keyframes dh-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.dh-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 28%, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.dh-caption {
  position: absolute; z-index: 2; left: clamp(1rem, 3vw, 2.25rem); bottom: 2.75rem; max-width: min(34rem, 60%);
  background: color-mix(in srgb, var(--dealer-deep) 55%, transparent); color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid var(--dealer); border-radius: 0 10px 10px 0;
  padding: .7rem 1.1rem; font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.dh-dots { z-index: 3; margin-bottom: 1rem; }
.dh-dots [data-bs-target] {
  width: 26px; height: 4px; margin: 0 3px; border: 0; border-radius: 4px;
  background-color: var(--lg-card); opacity: .45; transition: width .35s ease, opacity .35s ease;
}
.dh-dots .active { width: 44px; opacity: 1; }
.dh-counter {
  position: absolute; z-index: 3; top: 1rem; right: 1rem;
  padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .05em; color: #fff;
  background: rgba(0, 0, 0, .3); border: 1px solid var(--dh-glass-line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dh-slider .carousel-control-prev, .dh-slider .carousel-control-next { z-index: 3; width: 5rem; opacity: 0; transition: opacity .25s ease; }
.dh-slider:hover .carousel-control-prev, .dh-slider:hover .carousel-control-next,
.dh-slider .carousel-control-prev:focus-visible, .dh-slider .carousel-control-next:focus-visible { opacity: 1; }
.dh-arrow {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; color: #fff;
  background: var(--dh-glass); border: 1px solid var(--dh-glass-line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s ease, color .2s ease;
}
.dh-slider .carousel-control-prev:hover .dh-arrow, .dh-slider .carousel-control-next:hover .dh-arrow { background: var(--lg-card); color: var(--dealer-deep); }
@media (hover: none) { .dh-slider .carousel-control-prev, .dh-slider .carousel-control-next { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dh-slider .carousel-item.active img { animation: none; } }

.dh-logo {
  flex: none; width: 120px; height: 120px; background: var(--lg-card); border-radius: 18px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16), 0 16px 40px rgba(0, 0, 0, .3);
  display: grid; place-items: center; overflow: hidden; padding: .6rem;
}
.dh-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dh-logo span { font-size: 2.6rem; font-weight: 800; color: var(--dealer); letter-spacing: -.03em; }

.dh-identity { min-width: 0; }
.dh-badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.dh-badges .badge { padding: .35rem .6rem; border-radius: 999px; font-weight: 600; letter-spacing: .01em; }
.dh-badge-rated { background: #2fb344; color: #fff; }
.dh-name { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin: .55rem 0 .2rem; line-height: 1.1; letter-spacing: -.025em; }
.dh-tagline { font-size: 1.1rem; margin: 0 0 .55rem; opacity: .9; }
.dh-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .875rem; opacity: .85; }
.dh-meta i { margin-right: .35rem; }

.dh-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
body.site .dh-cta .btn, body.site .dh-contact-actions .btn, body.site .dh-mobile-bar .btn {
  border-radius: 10px; font-weight: 600; padding: .65rem 1.2rem;
}
body.site .dh-cta .btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
body.site .dh-btn-wa { background: #25d366; border: 1px solid #25d366; color: #fff; }
body.site .dh-btn-wa:hover, body.site .dh-btn-wa:focus-visible { background: #1da851; border-color: #1da851; color: #fff; }
.dh-btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.dh-btn-ghost:hover { background: var(--lg-card); color: var(--dealer-dark); border-color: #fff; }

/* On dark (coloured) heroes everything reads white and the verified badge turns to glass. */
.dh-full .dh-strip, .dh-split-info, .dh-spot { color: #fff; }
body.site .dh-full .dh-name, body.site .dh-split .dh-name, body.site .dh-spot .dh-name { color: #fff; }
body.site :is(.dh-strip, .dh-split-info, .dh-spot) .verified-agency {
  background: var(--dh-glass); color: #fff; border-color: var(--dh-glass-line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.dh-btn-ghost { border-color: rgba(255, 255, 255, .55); }

/* ---------- 1. Full banner: clean slider, identity on a coloured strip below ---------- */

.dh-full-media { height: clamp(240px, 38vw, 480px); }
.dh-strip {
  background:
    radial-gradient(600px 200px at 90% 0%, rgba(255, 255, 255, .12), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 14px),
    linear-gradient(100deg, var(--dealer-deep), var(--dealer-dark) 55%, var(--dealer));
  border-top: 1px solid rgba(255, 255, 255, .15);
}
/* Bottom padding leaves room for the stats bar that overlaps the strip. */
.dh-strip-inner { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 4.75rem; }
.dh-strip .dh-logo { position: relative; z-index: 4; margin-top: -84px; border: 4px solid #fff; }
.dh-strip .dh-identity { flex: 1 1 320px; }

/* ---------- 2. Split: identity left, slider right ---------- */

/* The slider column takes the wider share and its height follows the slides' 16:9 shape, so banners are not cropped. */
.dh-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.dh-split-info {
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(255, 255, 255, .1), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--dealer-deep), var(--dealer-dark) 60%, var(--dealer));
}
.dh-split-inner { width: 100%; max-width: 36rem; padding: 2.5rem clamp(1.5rem, 3vw, 3rem); display: grid; gap: 1.1rem; }
.dh-split-inner .dh-logo { width: 96px; height: 96px; }
.dh-split-media { aspect-ratio: 16 / 9; min-height: 300px; }
.dh-split-media > * { height: 100%; }

/* ---------- 3. Spotlight: one image under a colour overlay, identity centred ---------- */

.dh-spot { background-size: cover; background-position: center; text-align: center; }
.dh-spot::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .15), rgba(0, 0, 0, .45) 80%),
    linear-gradient(180deg, color-mix(in srgb, var(--dealer-deep) 40%, transparent),
                            color-mix(in srgb, var(--dealer-deep) 92%, transparent));
}
.dh-spot.dh-cover::before { display: none; }
.dh-spot-inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; padding-top: 4.5rem; padding-bottom: 6.5rem; }
.dh-spot .dh-badges, .dh-spot .dh-meta { justify-content: center; }
.dh-spot .dh-name { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.dh-spot .dh-tagline { font-size: 1.25rem; max-width: 42rem; margin-inline: auto; }

/* ---------- 4. Boxed: rounded slider in the page, profile card overlapping it ---------- */

.dh-boxed { padding-top: 1.5rem; }
.dh-boxed-media { height: clamp(220px, 32vw, 420px); border-radius: 18px; overflow: hidden; box-shadow: var(--dh-shadow); }
body.site .dh-boxed-card {
  position: relative; z-index: 4; margin: -72px 1.5rem 0; padding: 1.5rem 1.75rem;
  display: flex; flex-direction: row; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border: 0; border-radius: var(--dh-radius); box-shadow: 0 18px 44px rgba(13, 59, 36, .16);
}
.dh-boxed-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: var(--dh-radius) var(--dh-radius) 0 0;
  background: linear-gradient(90deg, var(--dealer-dark), var(--dealer));
}
.dh-boxed-card .dh-logo { width: 104px; height: 104px; box-shadow: 0 6px 18px rgba(13, 59, 36, .1); border: 1px solid var(--lg-line); }
.dh-boxed-card .dh-identity { flex: 1 1 320px; }
body.site .dh-boxed-card .dh-name { color: var(--lg-ink); }
.dh-boxed-card .dh-meta, .dh-boxed-card .dh-tagline { color: var(--lg-muted); opacity: 1; }
.dh-boxed-card .dh-btn-ghost { color: var(--dealer-dark); border-color: var(--dealer-line); }
.dh-boxed-card .dh-btn-ghost:hover { background: var(--dealer); color: #fff; border-color: var(--dealer); }
body.site .dh-boxed + * { margin-top: 0; }

/* ---------- Page body ---------- */

body.site .dh-page .card { border-radius: var(--dh-radius); }
.dh-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dealer);
}
.dh-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--dealer); }
body.site .dh-heading { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--lg-ink); letter-spacing: -.02em; margin: .35rem 0 .9rem; }
.dh-subhead { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lg-muted); margin-bottom: .65rem; }

/* Stats: a floating bar that tucks into the hero on the full-banner and spotlight layouts. */
.dh-stats {
  position: relative; z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--lg-card); border-radius: var(--dh-radius); box-shadow: 0 18px 44px rgba(13, 59, 36, .12); overflow: hidden;
}
.dh-stats::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--dealer-dark), var(--dealer)); }
body.site:has(.dh-stats-lift) .page-body { margin-top: 0; }
.dh-stats-lift { margin-top: -3.25rem; }
body.site:has(.dh-boxed) .dh-stats { margin-top: 1.5rem; }
.dh-stat { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1.5rem; }
.dh-stat + .dh-stat { border-left: 1px solid var(--lg-line); }
.dh-stat-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
  background: var(--dealer-soft); color: var(--dealer-dark);
}
.dh-stat-v { font-size: 1.65rem; font-weight: 800; line-height: 1; color: var(--lg-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dh-stat-l { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lg-muted); margin-top: .3rem; }

/* In-page links */
.dh-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 1.5rem; }
.dh-tabs a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--lg-card); border: 1px solid var(--lg-line); color: var(--lg-ink); font-weight: 600; font-size: .875rem; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.dh-tabs a:hover { background: var(--dealer-soft); border-color: var(--dealer-line); color: var(--dealer-dark); }
.dh-tabs a i { color: var(--dealer); }
.dh-tabs a.is-active { background: var(--dealer); border-color: var(--dealer); color: #fff; }
.dh-tabs a.is-active i { color: #fff; }
.dh-tabs a.is-active .dh-tab-count { background: var(--lg-card); color: var(--dealer-dark); }
.dh-tab-count { background: var(--dealer); color: #fff; border-radius: 999px; padding: 0 .5rem; font-size: .72rem; line-height: 1.5; }
.dh-page :is(#about, #listings, #contact) { scroll-margin-top: 1rem; }

/* About */
.dh-panel { background: var(--lg-card); border: 1px solid var(--lg-line); border-radius: var(--dh-radius); box-shadow: var(--dh-shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.dh-lead { font-size: 1rem; line-height: 1.75; color: #3a4655; margin-bottom: 0; white-space: pre-line; }
.dh-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: 1.5rem; }
.dh-point { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border-radius: 12px; background: var(--dealer-tint); border: 1px solid color-mix(in srgb, var(--dealer) 12%, #fff); }
.dh-point-icon {
  flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--dealer), var(--dealer-dark)); color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--dealer) 35%, transparent);
}
.dh-point-t { font-weight: 700; font-size: .9rem; color: var(--lg-ink); }
.dh-point-d { font-size: .8rem; color: var(--lg-muted); line-height: 1.45; margin-top: .15rem; }
.dh-areas { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px dashed var(--lg-line); }
.dh-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px;
  background: var(--dealer-soft); color: var(--dealer-dark); border: 1px solid var(--dealer-line); font-size: .85rem; font-weight: 500;
}

/* Listings */
.dh-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 2.5rem 0 1.25rem; }
.dh-count { flex: none; white-space: nowrap; background: var(--dealer-soft); color: var(--dealer-dark); border: 1px solid var(--dealer-line); padding: .35rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
body.site .dh-page .listing-card { box-shadow: var(--dh-shadow); }
body.site .dh-page .listing-card:hover { border-color: var(--dealer); box-shadow: 0 18px 40px rgba(13, 59, 36, .16); transform: translateY(-3px); }
body.site .dh-page .listing-card { transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }

/* Contact sidebar */
.dh-aside { display: grid; gap: 1rem; }
@media (min-width: 992px) { .dh-aside { position: sticky; top: 1rem; } }
body.site .dh-contact { overflow: hidden; border: 0; box-shadow: var(--dh-shadow); }
.dh-contact-head {
  display: flex; align-items: center; gap: .9rem; padding: 1.25rem; color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
    linear-gradient(120deg, var(--dealer-deep), var(--dealer-dark) 60%, var(--dealer));
}
.dh-logo.dh-logo-sm { width: 56px; height: 56px; border-radius: 12px; padding: .3rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.dh-logo.dh-logo-sm span { font-size: 1.3rem; }
.dh-contact-name { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.dh-contact-sub { font-size: .8rem; opacity: .85; display: flex; align-items: center; gap: .3rem; margin-top: .15rem; }
.dh-contact-actions { display: grid; gap: .5rem; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--lg-line); }
.dh-body .contact-list .icon-wrap { background: var(--dealer-soft); color: var(--dealer-dark); border-radius: 10px; }
.dh-contact-foot { display: flex; gap: .45rem; align-items: flex-start; padding: .85rem 1.25rem; font-size: .8rem; background: var(--dealer-tint); color: var(--dealer-dark); border-top: 1px solid var(--lg-line); }
.dh-contact-foot i { font-size: 1rem; }
/* Contact rows: each number is a tile that lights up on hover. */
.dh-contact .contact-list .list-group-item {
  align-items: center; padding: .6rem .65rem; margin: 0 -.65rem; border-radius: 10px; background: transparent;
  transition: background .15s ease;
}
.dh-contact .contact-list .list-group-item:hover { background: var(--dealer-tint); }
.dh-contact .contact-list .list-group-item + .list-group-item { border-top: 1px dashed var(--lg-line); }
.dh-contact .contact-list .icon-wrap { width: 2.5rem; height: 2.5rem; font-size: 1.15rem; }
.dh-contact .contact-list .small.text-secondary { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dh-contact .contact-list a.fw-medium { color: var(--lg-ink); font-size: .95rem; text-decoration: none; }
.dh-contact .contact-list a.fw-medium:hover { color: var(--dealer-dark); }
.dh-wa-pill {
  display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: #e8f9ef; color: #1da851; text-decoration: none; border: 1px solid #bfeccf;
}
.dh-wa-pill:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* Share card */
body.site .dh-share { overflow: hidden; border: 1px solid var(--lg-line); box-shadow: var(--dh-shadow); }
.dh-share-head {
  display: flex; gap: .8rem; align-items: center; padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, var(--dealer-soft), #fff 75%); border-bottom: 1px solid var(--lg-line);
}
.dh-share-icon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--dealer), var(--dealer-dark)); box-shadow: 0 6px 14px color-mix(in srgb, var(--dealer) 35%, transparent);
}
.dh-share-title { font-weight: 700; color: var(--lg-ink); }
.dh-share-sub { font-size: .8rem; color: var(--lg-muted); line-height: 1.4; }
.dh-share-link {
  display: flex; align-items: center; gap: .5rem; padding: .3rem .3rem .3rem .75rem;
  border: 1px solid var(--lg-line); border-radius: 10px; background: var(--lg-surface);
}
.dh-share-link > i { color: var(--lg-muted); }
.dh-share-link input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: .8rem; color: var(--lg-ink); outline: none; text-overflow: ellipsis; }
.dh-share-link button {
  flex: none; display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 8px; padding: .4rem .75rem;
  background: var(--dealer); color: #fff; font-size: .8rem; font-weight: 600; transition: background .15s ease;
}
.dh-share-link button:hover { background: var(--dealer-dark); }
.dh-share-link button.copied { background: #2fb344; }
.dh-share-grid { display: flex; justify-content: space-between; gap: .25rem; margin-top: 1rem; }
.dh-share-grid > .dh-sh { flex: 1 1 0; min-width: 0; }
.dh-sh {
  display: grid; justify-items: center; gap: .35rem; padding: .25rem 0; border: 0; background: none;
  font-size: .72rem; font-weight: 600; color: var(--lg-muted); text-decoration: none; cursor: pointer;
}
.dh-sh span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dh-sh:hover { color: var(--lg-ink); }
.dh-sh:hover span { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(13, 59, 36, .18); }
.dh-sh-wa span { background: #25d366; }
.dh-sh-fb span { background: #1877f2; }
.dh-sh-x span { background: #111; }
.dh-sh-mail span { background: var(--dealer); }
.dh-sh-more span { background: var(--lg-surface); color: var(--lg-ink); border: 1px solid var(--lg-line); }
.dh-share-code {
  display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: .6rem .85rem;
  border: 1px dashed var(--dealer-line); border-radius: 10px; background: var(--dealer-tint); font-size: .8rem; color: var(--lg-muted);
}
.dh-share-code strong { color: var(--dealer-dark); font-family: var(--tblr-font-monospace); letter-spacing: .03em; }

/* Empty listings: invite the visitor to ask instead of a dead end. */
body.site .dh-empty { border: 1px dashed var(--dealer-line); background: var(--dealer-tint); box-shadow: none; }
.dh-empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; padding: 0 1rem 1.75rem; }
body.site .dh-empty-actions .btn { border-radius: 10px; font-weight: 600; }

/* Closing call to action */
.dh-band {
  position: relative; overflow: hidden; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-radius: 18px; color: #fff;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(255, 255, 255, .16), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px),
    linear-gradient(110deg, var(--dealer-deep), var(--dealer-dark) 55%, var(--dealer));
  box-shadow: 0 20px 48px color-mix(in srgb, var(--dealer-deep) 35%, transparent);
}
.dh-band-text { max-width: 40rem; }
.dh-band-title { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.dh-band-sub { opacity: .85; margin-top: .35rem; }

/* Phones: fixed call / WhatsApp bar */
.dh-mobile-bar {
  position: fixed; z-index: 1030; left: 0; right: 0; bottom: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem;
  padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--lg-line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 -8px 24px rgba(13, 59, 36, .08);
}
@media (max-width: 991.98px) { body.site:has(.dh-mobile-bar) { padding-bottom: 4.5rem; } }

/* ---------- Smaller screens ---------- */

@media (max-width: 991.98px) {
  .dh-split { grid-template-columns: 1fr; }
  .dh-split-media { min-height: 0; }
  .dh-split-inner { max-width: none; padding: 2rem 1rem; }
}

/* Tablets: contact and share cards sit side by side under the listings. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .dh-aside { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 767.98px) {
  .dh-logo { width: 92px; height: 92px; }
  .dh-logo span { font-size: 2rem; }
  .dh-strip .dh-logo { margin-top: -56px; }
  body.site .dh-boxed-card { margin: -40px .5rem 0; padding: 1.1rem; }
  .dh-caption { display: none; }
  .dh-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dh-stat { padding: 1rem; gap: .65rem; }
  .dh-stat + .dh-stat { border-left: 0; }
  .dh-stat:nth-child(even) { border-left: 1px solid var(--lg-line); }
  .dh-stat:nth-child(n + 3) { border-top: 1px solid var(--lg-line); }
  .dh-stat:last-child:nth-child(odd) { grid-column: span 2; }
  .dh-stat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  .dh-stat-v { font-size: 1.35rem; }
  .dh-band .dh-cta { width: 100%; }
  .dh-band .dh-cta .btn { flex: 1 1 0; }

  /* Hero buttons: call and WhatsApp share the row, email becomes a square icon button. */
  .dh .dh-cta { display: grid; grid-template-columns: 1fr 1fr auto; width: 100%; }
  .dh .dh-cta .dh-btn-ghost { font-size: 0; padding-inline: .9rem; }
  .dh .dh-cta .dh-btn-ghost i { font-size: 1.1rem; margin: 0 !important; }
  .dh-spot .dh-cta { max-width: 26rem; }

  /* Quick links scroll sideways instead of wrapping. */
  .dh-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -.75rem; padding-inline: .75rem; }
  .dh-tabs::-webkit-scrollbar { display: none; }
  .dh-tabs a { flex: none; padding: .45rem .8rem; font-size: .8rem; }

  .dh-points { grid-template-columns: 1fr; }
  .dh-section-head { flex-wrap: nowrap; align-items: center; margin-top: 2rem; }
  body.site .dh-section-head .dh-heading { font-size: 1.2rem; }
  .dh-point { padding: .8rem; }
  .dh-band { border-radius: 14px; }
}

/* ---------- Dealer colour across the whole page ----------
   When a dealer picks a colour, the site chrome follows it on their page (nav bar, buttons, links, ticker, footer),
   so the portal reads as one brand. The logo mark and yellow calls to action stay as the site's. */

body.site:has(.dh-themed) {
  --tblr-primary: var(--dealer);
  --tblr-link-color: var(--dealer-dark);
  --tblr-link-hover-color: var(--dealer-deep);
  --brand: var(--dealer);
  --brand-dark: var(--dealer-dark);
  --brand-soft: var(--dealer-soft);
}
body.site:has(.dh-themed) .btn-primary {
  --tblr-btn-bg: var(--dealer); --tblr-btn-border-color: var(--dealer);
  --tblr-btn-hover-bg: var(--dealer-dark); --tblr-btn-hover-border-color: var(--dealer-dark);
  --tblr-btn-active-bg: var(--dealer-dark); --tblr-btn-active-border-color: var(--dealer-dark);
}
body.site:has(.dh-themed) .btn-outline-primary {
  --tblr-btn-color: var(--dealer-dark); --tblr-btn-border-color: var(--dealer);
  --tblr-btn-hover-bg: var(--dealer); --tblr-btn-hover-border-color: var(--dealer); --tblr-btn-hover-color: #fff;
}
body.site:has(.dh-themed) .site-search .form-control:focus { border-color: var(--dealer); }
body.site:has(.dh-themed) .site-nav.navbar { background: var(--dealer); }
body.site:has(.dh-themed) .site-nav .nav-item.active > .nav-link { background: var(--dealer-dark); }
body.site:has(.dh-themed) .news-ticker { background: var(--dealer-deep); }
body.site:has(.dh-themed) .site-footer { background: var(--dealer-deep); }
body.site:has(.dh-themed) .site-footer-bottom { background: color-mix(in srgb, var(--dealer-deep) 70%, #000); }
body.site:has(.dh-themed) .page-link { color: var(--dealer-dark); }

/* Split: show the whole banner (dealers upload banners of any shape) on the dealer's dark colour. */
.dh-split-media { background: var(--dealer-deep); }
.dh-split .carousel-item img { object-fit: contain; }
.dh-split .dh-shade { background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35) 100%); }
