.geomap-adventure-golf {
  --geomap-pin: #dfdacd;
  --geomap-pin-active: #527867;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--minigolfs-page, #f7f5f0);
  font-family: var(--minigolfs-font-body, "DM Sans", system-ui, sans-serif);
}

.geomap-adventure-golf__map,
.geomap-adventure-golf .leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 0;
  isolation: isolate;
  background: var(--minigolfs-page, #f7f5f0);
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

.geomap-adventure-golf .leaflet-overlay-pane {
  z-index: 400;
}

.geomap-adventure-golf .leaflet-networkDots-pane {
  z-index: 450;
  pointer-events: none;
}

.geomap-adventure-golf .leaflet-marker-pane {
  z-index: 600;
}

.geomap-adventure-golf .leaflet-interactive {
  cursor: pointer;
}

.geomap-adventure-golf .custom-pin {
  cursor: pointer;
  background: none !important;
  border: none !important;
}

.geomap-adventure-golf .custom-pin.is-network {
  cursor: default;
  pointer-events: none;
}

.geomap-adventure-golf .custom-pin.is-network .geomap-dot {
  width: 8px;
  height: 8px;
  background: var(--geomap-pin, #dfdacd);
  transition: none;
}

.geomap-adventure-golf .geomap-dot {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--geomap-pin-active, #527867);
  opacity: 0.2;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.geomap-adventure-golf .custom-pin.is-active .geomap-dot {
  background: var(--geomap-pin-active, #527867);
  opacity: 1;
}

.geomap-adventure-golf__overlay {
  position: absolute;
  left: 64px;
  top: 56%;
  bottom: auto;
  transform: translateY(-50%);
  z-index: 500;
  width: min(466px, calc(100% - 48px));
  pointer-events: none;
}

.geomap-adventure-golf__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-height: min(669px, calc(100vh - 260px));
  padding: 8px 8px 40px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--minigolfs-card, #fefefe);
  color: inherit;
  text-decoration: none;
  pointer-events: auto;
  box-shadow: 0 18px 40px rgba(18, 38, 30, 0.06);
}

.geomap-adventure-golf__card[hidden] {
  display: none;
}

.geomap-adventure-golf__media {
  position: relative;
  flex: 0 0 280px;
  min-height: 0;
  height: 280px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--minigolfs-border, #dfdacd);
}

.geomap-adventure-golf__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
}

.geomap-adventure-golf__badges {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: calc(100% - 48px);
}

.geomap-adventure-golf__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 26px;
  padding: 0 13px;
  border: 1px solid #fefefe;
  border-radius: 999px;
  background: rgba(254, 254, 254, 0.1);
  color: #fefefe;
  font-family: var(--minigolfs-font-body, "DM Sans", sans-serif);
  font-size: 12px;
  letter-spacing: 0.24px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.geomap-adventure-golf__tag-icon {
  display: flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.geomap-adventure-golf__tag-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.geomap-adventure-golf__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px;
  flex: 0 0 auto;
}

.geomap-adventure-golf__title {
  margin: 0;
  color: var(--minigolfs-ink, #2c3632);
  font-family: var(--minigolfs-font-display, "Cabinet Grotesk", sans-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.geomap-adventure-golf__place {
  margin: 0;
  color: var(--minigolfs-accent, #527867);
  font-family: var(--minigolfs-font-body, "DM Sans", sans-serif);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.geomap-adventure-golf__meta {
  margin: 0;
  color: var(--minigolfs-muted, #66736c);
  font-family: var(--minigolfs-font-mono, "PT Mono", monospace);
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 1119px) {
  .bde-adventure-golf-map .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay,
  .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay {
    left: calc(24px + var(--minigolfs-gutter, 24px));
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(360px, calc(100vw - 48px));
  }

  .geomap-adventure-golf__card {
    max-height: min(520px, calc(100% - 48px));
    gap: 24px;
    padding-bottom: 24px;
  }

  .geomap-adventure-golf__media {
    flex-basis: 200px;
    min-height: 200px;
    height: 200px;
  }
}

@media (max-width: 767px) {
  .bde-adventure-golf-map .geomap-adventure-golf[data-geomap-root],
  .geomap-adventure-golf {
    height: 78vh;
  }

  .bde-adventure-golf-map .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay,
  .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay {
    left: calc(16px + var(--minigolfs-gutter, 16px));
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: min(260px, calc(100vw - 32px));
  }

  .geomap-adventure-golf__card {
    gap: 16px;
    max-height: min(420px, calc(100% - 32px));
    padding: 8px 8px 20px;
    border-radius: 28px;
  }

  .geomap-adventure-golf__media {
    flex-basis: 160px;
    min-height: 160px;
    height: 160px;
    border-radius: 20px;
  }

  .geomap-adventure-golf__badges {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
  }

  .geomap-adventure-golf__body {
    gap: 8px;
    padding: 0 12px;
  }

  .geomap-adventure-golf__title {
    font-size: 18px;
  }

  .geomap-adventure-golf__place {
    font-size: 14px;
  }

  .geomap-adventure-golf__meta {
    font-size: 11px;
  }
}

@media (max-width: 479px) {
  .bde-adventure-golf-map .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay,
  .geomap-adventure-golf[data-geomap-root] .geomap-adventure-golf__overlay {
    left: calc(12px + var(--minigolfs-gutter, 16px));
    width: min(240px, calc(100vw - 24px));
  }

  .geomap-adventure-golf__badges {
    display: none;
  }
}
