.dist-hero {
  position: relative;
  color: #fff;
  background: #036dc1 url("../images/distributor-banner.png") center center / cover no-repeat;
  min-height: calc(100vw * 800 / 3838);
}

.dist-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vw * 800 / 3838);
  padding: 56px 8vw 28px;
}

.dist-hero .breadcrumb {
  position: absolute;
  top: 16px;
  left: 8vw;
  margin: 0;
}

.dist-hero .breadcrumb li:not(:last-child)::after {
  content: "|";
}

.dist-hero__kicker {
  font-size: clamp(18px, 1.7vw, 32px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.dist-hero__title {
  margin-top: 8px;
  font-size: clamp(32px, 3.15vw, 58px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.dist-board {
  padding: 48px 0 220px;
  background: #fff;
}

.dist-map {
  position: relative;
  width: min(800px, calc(100% - 48px));
  margin: 8px auto 0;
}

.dist-map > svg:first-child {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.dist-map__image {
  display: block;
  width: 100%;
  height: auto;
}

.dist-pin {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate(-50%, -28px);
  cursor: pointer;
}

.dist-pin span {
  display: block;
  max-width: 86px;
  text-shadow:
    0 0 3px #fff,
    0 0 3px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
}

.dist-pin__icon {
  width: 24px;
  height: 30px;
  display: block;
  overflow: visible;
}

.dist-pin.is-active {
  color: #0a63d6;
}

/* Pin tip positions aligned to design map */
.dist-pin--africa { left: 20.3%; top: 58.4%; }
.dist-pin--middle-east { left: 32.4%; top: 44.3%; }
.dist-pin--central-asia { left: 47.6%; top: 33.9%; }
.dist-pin--south-asia { left: 47%; top: 50.7%; }
.dist-pin--southeast-asia { left: 61.1%; top: 62.6%; }

.dist-filters {
  width: min(1180px, calc(100% - 48px));
  margin: 20px auto 36px;
}

.dist-filters fieldset {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  width: 100%;
}

.dist-filters .finder__select {
  flex: 0 0 210px;
  width: 210px;
  height: 42px;
  border: 1px solid #d7dee6;
  border-radius: 2px;
  background-color: #fff;
  background-image: url("../images/icon-chevron.png");
  background-size: 12px 6px;
  color: #8b97a3;
}

.dist-directory {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.dist-region__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 0 18px 0 22px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  scroll-margin-top: 16px;
  cursor: pointer;
}

.dist-region:first-child .dist-region__bar {
  margin-top: 0;
}

.dist-region__icon {
  width: 22px;
  height: 22px;
  background: url("../images/icon-plus.png") center / 16px 16px no-repeat;
}

.dist-region.is-open .dist-region__icon {
  background-image: url("../images/icon-minus.png");
  background-size: 16px 2px;
}

.dist-region__panel {
  display: none;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-top: 0;
}

.dist-region.is-open .dist-region__panel {
  display: block;
}

.dist-dealer {
  display: grid;
  /* Country | details | products — fixed side columns keep row borders aligned */
  grid-template-columns: 118px minmax(0, 1fr) 320px;
  align-items: stretch;
  border-bottom: 1px solid #e4e8ee;
}

.dist-dealer:last-child {
  border-bottom: 0;
}

.dist-dealer__country {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  border-right: 1px solid #e4e8ee;
  color: #a0a8b2;
  font-size: 14px;
}

.dist-dealer__body {
  padding: 18px 28px 18px 22px;
  border-right: 1px solid #e4e8ee;
  color: #4d5966;
  font-size: 14px;
  line-height: 1.45;
}

.dist-dealer__body h3 {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dist-dealer__content {
  margin: 0;
  white-space: pre-line;
}

.dist-dealer__body a {
  color: inherit;
  text-decoration: none;
  word-break: break-word;
}

.dist-dealer__body a:hover {
  text-decoration: underline;
}

.dist-dealer__products {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  gap: 12px 12px;
  align-content: center;
  justify-content: start;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 16px 18px;
  list-style: none;
}

.dist-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 88px;
  margin: 0;
  color: #66717c;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.dist-product img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.dist-empty {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  .dist-hero__inner {
    padding: 52px 20px 24px;
  }

  .dist-hero .breadcrumb {
    left: 20px;
  }

  .dist-hero__title {
    font-size: 28px;
  }

  .dist-pin {
    max-width: 68px;
    font-size: 9px;
  }

  .dist-pin__icon {
    width: 18px;
    height: 22px;
  }

  .dist-filters .finder__select {
    flex-basis: 100%;
    width: min(100%, 360px);
  }

  .dist-dealer {
    grid-template-columns: 1fr;
  }

  .dist-dealer__country,
  .dist-dealer__body {
    border-right: 0;
  }

  .dist-dealer__country {
    justify-content: flex-start;
    padding: 12px 16px 0;
  }

  .dist-dealer__products {
    padding: 0 16px 16px;
  }
}
