/* ═══════════════════════════════════════════════
   TRITON Distributor (Where to buy) — triton.de only
   Scopes: .distributor-page wraps plugin output (.tx-tritonlab from tritonlab).
   Pairs with: global.css, ol.css, tarb_distributor-*.css (map behaviour).
   ═══════════════════════════════════════════════ */

.distributor-page {
  --distributor-max: var(--section-max, 1500px);
  padding: calc(60px + 2.5rem) var(--section-pad, 5vw) 4rem;
  max-width: var(--distributor-max);
  margin: 0 auto;
  /* Fließtext / Standard-Schrift auf der Seite */
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.distributor-page .distributor-page__inner {
  display: block;
}

.distributor-page__section {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.distributor-page__section h2,
.distributor-page__h2 {
  font-family: var(--h);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--aq);
  margin-bottom: 1.5rem;
}

.distributor-page__section ul:not(.distributor-list) {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.distributor-page__section ul:not(.distributor-list) a {
  color: var(--aq);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.distributor-page__section ul:not(.distributor-list) a:hover {
  color: var(--w);
}

/* Map + loader */
.distributor-page .distributor-page__map-wrap {
  position: relative;
  margin: 0 0 1.5rem;
}

.distributor-page #map.map,
.distributor-page .map {
  width: 100%;
  min-height: 360px;
  height: 45vh;
  max-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(133, 255, 199, 0.12);
  background: rgba(1, 24, 39, 0.5);
}

.distributor-page .map-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  color: var(--aq);
  font-size: 1.5rem;
}

.distributor-page .map-loader.map-loader-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Type filter chips (legacy IDs preserved for JS) */
.distributor-page .distributor-page__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.25rem;
}

.distributor-page .distributor-filter-box {
  font-family: var(--h);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(133, 255, 199, 0.2);
  border-radius: 4px;
  background: rgba(1, 24, 39, 0.45);
  cursor: default;
}

#select_distr_country_wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 0.5rem;
}

#select_distr_country_wrapper label {
  font-family: var(--h);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

#select_distr_country {
  font: inherit;
  color: var(--w);
  background: rgba(1, 24, 39, 0.6);
  border: 1px solid rgba(133, 255, 199, 0.2);
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  min-width: 12rem;
}

/* Distributor cards (listings) */
.distributor-page .distributor {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(133, 255, 199, 0.1);
  border-radius: 8px;
  background: rgba(1, 24, 39, 0.4);
}

/* Händlername — Aquamarin, eigene Größe (nicht 1.8 Zeilenabstand) */
.distributor-page .distributor-card__title,
.distributor-page .distributor > h2 {
  font-family: var(--h);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--aq);
  margin: 0 0 1rem;
  max-width: 32ch;
}

.distributor-page .distributor figure {
  margin: 0 0 1rem;
  max-width: min(100%, 18rem);
  /* Logos/Assets aus dem Backend: oft hochauflösend; ohne Cap sprengen sie die Karte */
}

.distributor-page .distributor figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 12rem;
  object-fit: contain;
  object-position: left center;
}

.distributor-page .distributor .contact-general {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
  font-size: 1em;
  line-height: inherit;
}

.distributor-page .distributor .contact-general td {
  padding: 0.25rem 0.5rem 0.25rem 0;
  vertical-align: top;
  color: inherit;
}

.distributor-page .distributor .contact-general a {
  color: var(--aq);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.distributor-page .distributor .contact-general a:hover {
  color: var(--w);
}

/* Trenner + Adresse: volle Breite, linksbündig (überschreibt ggf. Legacy-Layouts) */
.distributor-page .distributor-card__divider,
.distributor-page .distributor .address-hr {
  display: block;
  width: 100%;
  clear: both;
  height: 0;
  margin: 1.1rem 0 0.9rem;
  border: 0;
  border-top: 1px solid rgba(133, 255, 199, 0.2);
  background: none;
}

.distributor-page .distributor address.distributor-card__address,
.distributor-page .distributor-card__address {
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0;
  font-style: normal;
  text-align: left;
  clear: both;
  float: none;
}

.distributor-page .distributor-card__address-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  font-size: 1em;
  line-height: inherit;
  color: inherit;
  word-break: break-word;
}

.distributor-page .distributor-card__address-line {
  display: block;
  width: 100%;
  text-align: left;
}

.distributor-page p.distributor-card__map-link {
  margin: 0;
  padding: 0;
  clear: both;
  text-align: left;
}

.distributor-page .distributor-card__map-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 1em;
  font-weight: 700;
  color: var(--aq);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.distributor-page .distributor-card__map-link a:hover {
  color: var(--w);
}

@media (max-width: 600px) {
  .distributor-page #map.map,
  .distributor-page .map {
    min-height: 280px;
    height: 40vh;
  }
}
