.distributor-page {
  --dist-red: #d6001e;
  --dist-red-bright: #ee2641;
  --dist-red-dark: #8d0015;
  --dist-ink: #171a1d;
  --dist-muted: #666d71;
  --dist-line: #d9dddf;
  --dist-paper: #f3f4f2;
  --dist-white: #fff;
  background: var(--dist-white);
  color: var(--dist-ink);
  font-family: "Inter", Kanit, Arial, sans-serif;
}

.distributor-page *,
.distributor-page *::before,
.distributor-page *::after {
  box-sizing: border-box;
}

.distributor-page .distributorMain {
  overflow: hidden;
}

.distributorShell {
  width: min(100% - 48px, 1540px);
  margin-inline: auto;
}

.distributorHero {
  position: relative;
  min-height: clamp(370px, 46vw, 620px);
  display: flex;
  align-items: end;
  padding: clamp(92px, 12vw, 180px) 0 clamp(70px, 8vw, 118px);
  background:
    linear-gradient(112deg, rgba(214, 0, 30, 0.055) 0%, rgba(214, 0, 30, 0) 42%),
    var(--dist-paper);
  border-bottom: 1px solid var(--dist-line);
}

.distributorHero::before {
  position: absolute;
  content: "";
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--dist-red);
}

.distributorHeroInner {
  max-width: 1150px;
}

.distributorBreadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(42px, 6vw, 76px);
  color: #70767a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.distributorBreadcrumb a {
  color: inherit;
  transition: color 180ms ease;
}

.distributorBreadcrumb a:hover,
.distributorBreadcrumb a:focus-visible {
  color: var(--dist-red);
}

.distributorEyebrow {
  margin: 0 0 18px;
  color: var(--dist-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.distributorHero h1 {
  max-width: 1100px;
  margin: 0;
  color: var(--dist-ink);
  font-size: clamp(58px, 8.2vw, 126px);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.distributorHeroIntro {
  max-width: 760px;
  margin-top: clamp(30px, 4vw, 52px);
  color: var(--dist-muted);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.55;
}

.distributorHeroIntro p {
  margin: 0;
}

.distributorExplorerSection {
  padding: clamp(82px, 9vw, 138px) 0 clamp(96px, 10vw, 154px);
  background: var(--dist-white);
}

.distributorExplorerHeader {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.distributorExplorerHeader h2 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 76px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.distributorNetworkSummary {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--dist-line);
  border-bottom: 1px solid var(--dist-line);
}

.distributorNetworkSummary > div {
  min-width: 132px;
  padding: 20px 24px;
  border-left: 1px solid var(--dist-line);
}

.distributorNetworkSummary > div:last-child {
  border-right: 1px solid var(--dist-line);
}

.distributorNetworkSummary strong,
.distributorNetworkSummary span {
  display: block;
}

.distributorNetworkSummary strong {
  color: var(--dist-red);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.distributorNetworkSummary span {
  margin-top: 8px;
  color: var(--dist-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.distributorSearchWrap {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 76px;
  margin-bottom: 20px;
  border: 1px solid #bdc2c4;
  background: var(--dist-white);
  box-shadow: 0 14px 40px rgba(23, 26, 29, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.distributorSearchWrap:focus-within {
  border-color: var(--dist-red);
  box-shadow: 0 14px 44px rgba(214, 0, 30, 0.09);
}

.distributorSearchIcon {
  width: 72px;
  height: 74px;
  display: grid;
  place-items: center;
  color: var(--dist-red);
  flex: 0 0 auto;
}

.distributorSearchIcon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.distributorSearchWrap input {
  min-width: 0;
  width: 100%;
  height: 74px;
  padding: 0 72px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dist-ink);
  font: inherit;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 500;
}

.distributorSearchWrap input::placeholder {
  color: #858b8e;
  opacity: 1;
}

.distributorSearchWrap input::-webkit-search-cancel-button {
  display: none;
}

.distributorSearchClear {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #656b6e;
  transform: translateY(-50%);
  cursor: pointer;
}

.distributorSearchClear svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.distributorSearchClear:hover,
.distributorSearchClear:focus-visible {
  color: var(--dist-red);
}

.distributorSearchResults {
  position: absolute;
  inset: calc(100% + 8px) 0 auto;
  max-height: 390px;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
  border: 1px solid #bdc2c4;
  background: var(--dist-white);
  box-shadow: 0 24px 64px rgba(17, 20, 22, 0.16);
  list-style: none;
}

.distributorSearchResults li {
  margin: 0;
  padding: 0;
}

.distributorSearchOption {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 9px 22px;
  border: 0;
  background: transparent;
  color: var(--dist-ink);
  text-align: left;
  cursor: pointer;
}

.distributorSearchOption:hover,
.distributorSearchOption:focus-visible,
.distributorSearchOption.is-active {
  outline: 0;
  background: #f4f5f3;
}

.distributorSearchOptionMark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 0, 30, 0.3);
  color: var(--dist-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.distributorSearchOptionName {
  min-width: 0;
  font-size: 16px;
  font-weight: 650;
}

.distributorSearchOptionMeta {
  color: var(--dist-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.distributorExplorer {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(360px, 0.72fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--dist-line);
  background: var(--dist-line);
}

.distributorGlobePanel,
.distributorResultsPanel {
  min-width: 0;
  background: var(--dist-white);
}

.distributorGlobePanel {
  padding: clamp(18px, 2.4vw, 38px);
  background: #f5f6f4;
}

.distributorGlobeStage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 520px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.35) 43%, rgba(223, 226, 225, 0.5) 100%),
    #eceeec;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.distributorGlobeStage.is-dragging {
  cursor: grabbing;
}

.distributorGlobeStage:focus-visible {
  outline: 3px solid rgba(214, 0, 30, 0.55);
  outline-offset: -3px;
}

.distributorGlobeCanvas,
.distributorGlobeOverlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.distributorGlobeOverlay {
  overflow: visible;
  pointer-events: none;
}

.distributorActiveCountry {
  fill: var(--dist-red-bright);
  stroke: #760012;
  stroke-width: 1.2;
  opacity: 0;
  filter: drop-shadow(0 7px 6px rgba(66, 0, 10, 0.3));
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 120ms ease, transform 160ms cubic-bezier(0.2, 0.8, 0.25, 1);
  vector-effect: non-scaling-stroke;
}

.distributorActiveCountry.is-visible {
  opacity: 1;
  transform: translateY(-3px) scale(1.026);
}

.distributorMapMarker {
  fill: var(--dist-red-dark);
  stroke: #fff;
  stroke-width: 2.5;
  filter: drop-shadow(0 3px 3px rgba(35, 0, 6, 0.28));
  vector-effect: non-scaling-stroke;
}

.distributorMapMarkerPulse {
  fill: none;
  stroke: rgba(141, 0, 21, 0.46);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: distributor-marker-pulse 2.4s ease-out infinite;
  vector-effect: non-scaling-stroke;
}

@keyframes distributor-marker-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.25);
  }
}

.distributorGlobeLoading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  background: rgba(245, 246, 244, 0.95);
  color: var(--dist-muted);
  text-align: center;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.distributorGlobeLoading.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.distributorGlobeLoading span {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(214, 0, 30, 0.17);
  border-top-color: var(--dist-red);
  border-radius: 50%;
  animation: distributor-spin 850ms linear infinite;
}

.distributorGlobeLoading p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

@keyframes distributor-spin {
  to {
    transform: rotate(360deg);
  }
}

.distributorCountryTooltip {
  position: absolute;
  z-index: 8;
  max-width: 220px;
  padding: 9px 12px;
  border-left: 3px solid var(--dist-red);
  background: rgba(20, 23, 25, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(14px, calc(-100% - 12px));
}

.distributorGlobeBadge {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(23, 26, 29, 0.13);
  background: rgba(255, 255, 255, 0.86);
  color: #4d5357;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(7px);
}

.distributorGlobeBadge > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dist-red);
  box-shadow: 0 0 0 5px rgba(214, 0, 30, 0.11);
}

.distributorGlobeControls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  display: grid;
  border: 1px solid rgba(23, 26, 29, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(23, 26, 29, 0.1);
  backdrop-filter: blur(7px);
}

.distributorGlobeControls button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(23, 26, 29, 0.12);
  background: transparent;
  color: var(--dist-ink);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.distributorGlobeControls button:first-child {
  border-top: 0;
}

.distributorGlobeControls button:hover,
.distributorGlobeControls button:focus-visible {
  outline: 0;
  background: var(--dist-red);
  color: #fff;
}

.distributorGlobeControls svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.distributorGlobeInstruction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px 0;
  color: #747a7e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.distributorDragCue {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--dist-red);
}

.distributorDragCue svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.distributorResultsPanel {
  min-height: 100%;
}

.distributorResultsContent {
  height: 100%;
  min-height: 690px;
  max-height: min(890px, 82vw);
  padding: clamp(36px, 4.2vw, 64px) clamp(28px, 3.7vw, 56px);
  overflow-y: auto;
}

.distributorResultsKicker {
  margin: 0 0 22px;
  color: var(--dist-red);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.distributorResultsContent > h3,
.distributorResultsHeading h3 {
  margin: 0;
  color: var(--dist-ink);
  font-size: clamp(31px, 3.2vw, 50px);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.distributorResultsContent > p:not(.distributorResultsKicker),
.distributorResultsHeading > p {
  margin: 22px 0 0;
  color: var(--dist-muted);
  font-size: 16px;
  line-height: 1.65;
}

.distributorResultsCount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  color: var(--dist-muted);
  font-size: 13px;
  font-weight: 650;
}

.distributorResultsCount strong {
  color: var(--dist-red);
  font-size: 28px;
  line-height: 1;
}

.distributorCards {
  margin-top: 38px;
  border-top: 1px solid var(--dist-line);
}

.distributorCard {
  padding: 32px 0 36px;
  border-bottom: 1px solid var(--dist-line);
}

.distributorCardHeader {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
}

.distributorCardLogo {
  width: 78px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--dist-line);
  background: #fff;
}

.distributorCardLogo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.distributorCardEyebrow {
  margin: 0 0 7px;
  color: var(--dist-red);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.distributorCard h4 {
  margin: 0;
  color: var(--dist-ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.distributorCardSummary {
  margin: 22px 0 0;
  color: var(--dist-muted);
  font-size: 14px;
  line-height: 1.65;
}

.distributorContactList {
  display: grid;
  gap: 14px;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.distributorContactItem {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.distributorContactItem strong {
  color: #747a7d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.distributorContactItem span,
.distributorContactItem a {
  overflow-wrap: anywhere;
  color: var(--dist-ink);
}

.distributorContactItem a {
  text-decoration: underline;
  text-decoration-color: rgba(214, 0, 30, 0.32);
  text-underline-offset: 3px;
}

.distributorContactItem a:hover,
.distributorContactItem a:focus-visible {
  color: var(--dist-red);
}

.distributorCardWebsite {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  color: var(--dist-red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.distributorCardWebsite span {
  transition: transform 160ms ease;
}

.distributorCardWebsite:hover span,
.distributorCardWebsite:focus-visible span {
  transform: translate(3px, -3px);
}

.distributorEmptyState {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.distributorEmptyRule {
  width: 58px;
  height: 4px;
  margin-bottom: 30px;
  background: var(--dist-red);
}

.distributorEmptyActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.distributorButton {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border: 1px solid var(--dist-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.distributorButtonPrimary {
  border-color: var(--dist-red);
  background: var(--dist-red);
  color: #fff;
}

.distributorButtonPrimary:hover,
.distributorButtonPrimary:focus-visible {
  border-color: var(--dist-red-dark);
  background: var(--dist-red-dark);
  color: #fff;
}

.distributorButtonSecondary {
  background: transparent;
  color: var(--dist-ink);
}

.distributorButtonSecondary:hover,
.distributorButtonSecondary:focus-visible {
  border-color: var(--dist-ink);
  background: var(--dist-ink);
  color: #fff;
}

.distributorCta {
  position: relative;
  padding: clamp(82px, 10vw, 152px) 0;
  background: #171a1d;
  color: #fff;
}

.distributorCta::before {
  position: absolute;
  content: "";
  inset: 0 0 auto;
  height: 5px;
  background: var(--dist-red);
}

.distributorCtaInner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 80px;
}

.distributorCta h2 {
  max-width: 920px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 78px);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.distributorCtaActions {
  display: grid;
  min-width: 310px;
  gap: 12px;
}

.distributorCta .distributorButton {
  min-height: 58px;
}

.distributorCta .distributorButtonSecondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.distributorCta .distributorButtonSecondary:hover,
.distributorCta .distributorButtonSecondary:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--dist-ink);
}

.distributorVisuallyHidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media screen and (max-width: 1280px) {
  .distributorExplorer {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.72fr);
  }

  .distributorGlobeStage {
    min-height: 460px;
  }

  .distributorResultsContent {
    min-height: 620px;
  }
}

@media screen and (max-width: 1000px) {
  .distributorExplorerHeader {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .distributorNetworkSummary {
    width: fit-content;
  }

  .distributorExplorer {
    grid-template-columns: 1fr;
  }

  .distributorGlobeStage {
    min-height: 0;
  }

  .distributorResultsContent {
    min-height: 430px;
    max-height: none;
  }

  .distributorCtaInner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
  }

  .distributorCtaActions {
    min-width: 0;
    width: min(100%, 460px);
  }
}

@media screen and (max-width: 700px) {
  .distributorShell {
    width: min(100% - 30px, 1540px);
  }

  .distributorHero {
    min-height: 420px;
    padding: 94px 0 66px;
  }

  .distributorHero h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.96;
  }

  .distributorHeroIntro {
    font-size: 17px;
  }

  .distributorExplorerSection {
    padding: 72px 0 92px;
  }

  .distributorExplorerHeader {
    gap: 30px;
    margin-bottom: 38px;
  }

  .distributorExplorerHeader h2 {
    font-size: 39px;
  }

  .distributorNetworkSummary {
    width: 100%;
  }

  .distributorNetworkSummary > div {
    min-width: 0;
    flex: 1;
    padding: 18px;
  }

  .distributorSearchWrap {
    min-height: 64px;
  }

  .distributorSearchIcon {
    width: 58px;
    height: 62px;
  }

  .distributorSearchWrap input {
    height: 62px;
    padding-right: 56px;
    font-size: 17px;
  }

  .distributorSearchClear {
    right: 10px;
  }

  .distributorSearchOption {
    grid-template-columns: 38px minmax(0, 1fr);
    padding-inline: 14px;
  }

  .distributorSearchOptionMeta {
    display: none;
  }

  .distributorGlobePanel {
    padding: 10px;
  }

  .distributorGlobeBadge {
    top: 12px;
    left: 12px;
    min-height: 34px;
    max-width: calc(100% - 78px);
    padding-inline: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .distributorGlobeControls {
    right: 12px;
    bottom: 12px;
  }

  .distributorGlobeControls button {
    width: 40px;
    height: 40px;
  }

  .distributorGlobeInstruction {
    align-items: flex-start;
    padding-inline: 6px;
    font-size: 11px;
    text-align: left;
  }

  .distributorResultsContent {
    min-height: 390px;
    padding: 40px 24px;
  }

  .distributorResultsContent > h3,
  .distributorResultsHeading h3 {
    font-size: 34px;
  }

  .distributorCardHeader {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 15px;
  }

  .distributorCardLogo {
    width: 66px;
    height: 56px;
  }

  .distributorContactItem {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .distributorCta {
    padding: 78px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .distributorActiveCountry,
  .distributorMapMarkerPulse,
  .distributorGlobeLoading span,
  .distributorButton,
  .distributorCardWebsite span {
    animation: none !important;
    transition: none !important;
  }
}
