/* Floating report quick navigation. Closed: one compact launcher, no layout width.
   Opened: every marker has its full Persian title on BOTH desktop and mobile. */
.hd-section-dots {
  position: fixed;
  z-index: 45;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  direction: rtl;
}
.hd-section-dots[hidden], .hd-section-list[hidden] { display: none !important; }

.hd-section-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #e8d9dc;
  background: #fff;
  color: #a62e43;
  box-shadow: 0 5px 20px #20202b20;
  padding: 8px;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hd-section-toggle:hover,
.hd-section-dots.is-open .hd-section-toggle {
  color: #fff;
  background: #a62e43;
  border-color: #a62e43;
}
.hd-section-toggle svg { width: 21px; height: 21px; display: block; }
.hd-section-toggle:focus-visible,
.hd-section-dot:focus-visible {
  outline: 2px solid #a62e43;
  outline-offset: 2px;
}

.hd-section-list {
  position: absolute;
  left: calc(100% + 9px);
  top: 50%;
  transform: translateY(-50%);
  width: min(270px, calc(100vw - 70px));
  max-height: min(72dvh, 600px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px;
  margin: 0;
  border: 1px solid #ecdfe2;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 35px #1f202a2b;
  direction: rtl;
}
.hd-section-dot {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 37px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #47434a;
  cursor: pointer;
  text-align: right;
  font: 600 12px/1.7 Vazirmatn, Tahoma, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.hd-section-dot:hover,
.hd-section-dot:focus-visible {
  background: #faf3f4;
  border-color: #f2e4e7;
}
.hd-section-dot.is-active {
  color: #9d263b;
  background: #fff1f3;
  border-color: #f2dce1;
  font-weight: 800;
}
.hd-section-dot-core {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 99px;
  background: #aeb5be;
  transition: background .15s ease, height .15s ease;
}
.hd-section-dot.is-active .hd-section-dot-core {
  width: 7px;
  height: 17px;
  background: #ae3046;
}
.hd-section-dot:hover .hd-section-dot-core { background: #ae3046; }
.hd-section-dot-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 750px) {
  .hd-section-dots {
    left: 8px;
    right: auto;
    top: auto;
    bottom: calc(81px + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
  .hd-section-list {
    top: auto;
    bottom: calc(100% + 9px);
    left: 0;
    transform: none;
    width: min(275px, calc(100vw - 16px));
    max-height: min(66dvh, 540px);
  }
  .hd-section-dot { min-height: 41px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-section-dot-core { transition: none; }
}
