/* Front-end: ACF Image Hotspots */

.acf-ih {
  max-width: 100%;
}

.acf-ih--full-width {
  width: 100%;
  max-width: none;
}

.acf-ih-stage {
  position: relative;
  display: inline-block;
  max-width: 100%;
  line-height: 0;
  overflow: visible;
}

.acf-ih--full-width .acf-ih-stage {
  display: block;
  width: 100%;
  max-width: none;
}

.acf-ih-stage .acf-ih-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.acf-ih--full-width .acf-ih-stage .acf-ih-image,
.acf-ih--full-width .acf-ih-stage img {
  width: 100%;
  max-width: none;
  height: auto;
}

.acf-ih-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.acf-ih-highlight-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.acf-ih-shade {
  opacity: 0;
  transition: opacity 0.15s ease;
}

.acf-ih-shade.is-active {
  opacity: 1;
}

.acf-ih-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  z-index: 2;
}

.acf-ih-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--acf-ih-bg, #1d4ed8);
  color: var(--acf-ih-fg, #fff);
  font-family: var(--acf-ih-marker-font, sans-serif);
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--acf-ih-border, #fff);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: default;
  line-height: 1;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.acf-ih-hotspot:hover .acf-ih-marker {
  transform: scale(var(--acf-ih-hover-scale, 1.05));
}

.acf-ih-marker-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acf-ih-fg, #fff);
}

.acf-ih--dot-markers .acf-ih-marker-number {
  display: none;
}

.acf-ih--dot-markers .acf-ih-marker-dot {
  display: block;
}

.acf-ih--no-shadow .acf-ih-marker,
.acf-ih--no-shadow .acf-ih-list-marker {
  box-shadow: none;
}

.acf-ih-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 240px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
  text-align: left;
  white-space: normal;
  z-index: 10;
}

.acf-ih-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.acf-ih-markers > .acf-ih-tooltip {
  z-index: 20;
}

.acf-ih-tooltip-title {
  display: block;
  margin-bottom: 4px;
  font-family: var(--acf-ih-tooltip-title-font, sans-serif);
  font-size: 15px;
  color: var(--acf-ih-tooltip-title-color, #1f2937);
  font-weight: var(--acf-ih-tooltip-title-weight, 700);
}

.acf-ih-tooltip-content {
  font-family: var(--acf-ih-tooltip-content-font, sans-serif);
  font-size: 14px;
  color: var(--acf-ih-tooltip-content-color, #1f2937);
  font-weight: var(--acf-ih-tooltip-content-weight, 400);
}

.acf-ih-tooltip-content p:first-child {
  margin-top: 0;
}

.acf-ih-tooltip-content p:last-child {
  margin-bottom: 0;
}

.acf-ih-list {
  display: none;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.acf-ih-list-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

.acf-ih-list-item:last-child {
  border-bottom: none;
}

.acf-ih-list-item--interactive {
  cursor: pointer;
  border-radius: 6px;
  margin: 0 -8px;
  padding-left: 8px;
  padding-right: 8px;
  transition: background-color 0.15s ease;
}

.acf-ih-list-item--interactive:hover,
.acf-ih-list-item--interactive:focus-visible {
  background-color: #f3f4f6;
  outline: none;
}

.acf-ih-list-item--interactive.is-active {
  background-color: #e5e7eb;
}

.acf-ih-list-marker {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--acf-ih-bg, #1d4ed8);
  color: var(--acf-ih-fg, #fff);
  border: 2px solid var(--acf-ih-border, #fff);
}

.acf-ih-list-number {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.acf-ih-list-title {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.acf-ih-list-content {
  font-size: 15px;
  line-height: 1.5;
  color: #374151;
}

.acf-ih-list-content p:first-child {
  margin-top: 0;
}

.acf-ih-list-content p:last-child {
  margin-bottom: 0;
}
