.course-map-hint {
  width: fit-content;
  margin: 18px auto 14px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #eaf5ed;
  color: #07552d;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.course-map-stage {
  position: relative;
  width: min(803px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.course-map-stage > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.course-map-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(22px, 3.5vw, 32px);
  aspect-ratio: 1;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 2px solid #07552d;
  border-radius: 50%;
  background: #fff;
  color: #07552d;
  box-shadow: 0 2px 7px rgba(0, 38, 20, .28);
  font: 900 clamp(.62rem, 1.5vw, .82rem)/1 Arial, sans-serif;
  cursor: zoom-in;
  touch-action: manipulation;
}

.course-map-hotspot.is-in {
  border-color: #d91e3d;
  background: #d91e3d;
  color: #fff;
}

.course-map-hotspot::after {
  content: '';
  position: absolute;
  inset: -7px;
}

.course-map-hotspot:hover,
.course-map-hotspot:focus-visible {
  z-index: 3;
  outline: 3px solid #f4b323;
  outline-offset: 2px;
  transform: translate(-50%, -50%) scale(1.1);
}

.course-hole-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(803px, 100%);
  margin: 20px auto 0;
}

.course-hole-index section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #c9dccf;
  border-radius: 8px;
  background: #f7faf7;
}

.course-hole-index h3 {
  margin: 0 0 10px;
  color: #07552d;
  font-size: 1rem;
}

.course-hole-index section:last-child h3 { color: #a71935; }

.course-hole-index section > div {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
}

.course-hole-index button,
.hole-dialog button {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #07552d;
  border-radius: 6px;
  background: #fff;
  color: #07552d;
  font: 800 .9rem/1 Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.course-hole-index section:last-child button {
  border-color: #d91e3d;
  color: #a71935;
}

.course-hole-index button:hover,
.course-hole-index button:focus-visible,
.hole-dialog button:focus-visible {
  outline: 3px solid #f4b323;
  outline-offset: 2px;
}

.hole-dialog {
  box-sizing: border-box;
  width: min(390px, calc(100vw - 20px));
  max-width: none;
  max-height: calc(100vh - 20px);
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #123c2c;
  overflow-x: hidden;
  overflow-y: auto;
}

.hole-dialog::backdrop { background: rgba(0, 22, 12, .82); }

.hole-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hole-dialog__bar h3 {
  margin: 0;
  color: #07552d;
  font-size: 1.15rem;
}

.hole-dialog .hole-dialog__close {
  flex: 0 0 auto;
  padding: 8px 12px;
  background: #07552d;
  color: #fff;
}

.hole-dialog__image-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.hole-dialog__image-wrap img {
  display: block;
  width: min(293px, 100%);
  height: auto;
  object-fit: contain;
}

.hole-dialog__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.has-hole-dialog { overflow: hidden; }

@media (max-width: 600px) {
  .course-map-panel { padding-inline: 10px; }
  .course-map-hint { width: 100%; margin-top: 14px; padding: 8px 10px; border-radius: 6px; font-size: .88rem; }
  .course-map-hotspot { width: 22px; border-width: 1px; font-size: .6rem; }
  .course-map-hotspot::after { inset: -6px; }
  .course-hole-index { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .course-hole-index section > div { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .hole-dialog { width: calc(100vw - 12px); padding: 10px; }
  .hole-dialog__bar { gap: 8px; }
  .hole-dialog__bar h3 { font-size: 1rem; }
}
