.venue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .4fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: start;
}

.venue-map-column { min-width: 0; }

.venue-map-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #eaf0e7;
}

#venue-canvas {
  width: 100%;
  height: clamp(360px, 56vh, 570px);
  background: #eaf0e7;
  font-family: inherit;
}

.venue-map-actions {
  position: absolute;
  z-index: 500;
  top: 12px;
  right: 12px;
  display: flex;
  max-width: calc(100% - 68px);
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.venue-map-actions .button {
  min-height: 36px;
  padding: 5px 10px;
  border-color: #cad7c8;
  background: #fff;
  box-shadow: 0 2px 3px #132c2114;
}

.venue-map-actions [aria-pressed="true"] { border-color: #163e2b; background: #163e2b; color: white; }
.venue-map-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 8px 2px 0; color: var(--muted); font-size: .83rem; }
.venue-map-summary a { text-underline-offset: .2em; }

.venue-map-message {
  position: absolute;
  z-index: 510;
  bottom: 23px;
  inset-inline: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 9px;
  background: white;
  color: #1c352a;
  box-shadow: 0 2px 12px #132c2120;
  font-size: .82rem;
}

.venue-directory {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: clamp(360px, 56vh, 570px);
  overflow: auto;
  scrollbar-gutter: stable;
  padding: 1px 6px 1px 1px;
}

.venue-result {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  text-align: start;
}

.venue-result small { color: #37634d; font-weight: 750; }
.venue-result strong { overflow-wrap: anywhere; line-height: 1.25; }
.venue-result > span { color: var(--muted); font-size: .83rem; }
.venue-result .venue-result-note { color: #536858; font-size: .73rem; }
.venue-result:hover, .venue-result[aria-pressed="true"] { border-color: #54745e; background: #eef4ec; }
.venue-empty { padding: 12px; color: var(--muted); }

.venue-info {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: clamp(13px, 2vw, 23px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.venue-info h2 { font-size: clamp(1.15rem, 2.2vw, 1.55rem); }
.venue-info .venue-address { font-weight: 650; color: var(--ink); }
.venue-coordinate-note { font-size: .83rem; color: var(--muted); }
.venue-info-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 16px; padding-top: 4px; }
.venue-info-links a { font-size: .87rem; font-weight: 700; overflow-wrap: anywhere; text-underline-offset: .2em; }

#venue-canvas .venue-marker::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50% 50% 50% 14%;
  background: #16452e;
  box-shadow: 0 1px 5px #092b1ca3;
  transform: rotate(-45deg);
}

#venue-canvas .venue-marker-club::before { background: #315d51; border-radius: 50%; }
#venue-canvas .venue-marker-group::before { top: 3px; left: 4px; width: 20px; height: 20px; }
#venue-canvas .venue-marker-group span {
  position: absolute;
  top: 5px;
  left: 4px;
  width: 20px;
  text-align: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
}
#venue-canvas .venue-marker:is(:hover, :focus-visible)::before { outline: 2px solid #16452e; outline-offset: 1px; }
#venue-canvas .leaflet-control-zoom a { width: 34px; height: 34px; line-height: 34px; color: #16452e; }

.venue-map-choices { display: grid; gap: 4px; min-width: 155px; }
.venue-map-choices button { border: 0; border-radius: 4px; background: #f0f5ed; color: #17362a; padding: 7px 8px; text-align: start; }
.venue-map-choices button:hover { background: #deeadd; }

@media (max-width: 720px) {
  .venue-layout { grid-template-columns: minmax(0, 1fr); }
  #venue-canvas { height: clamp(282px, 48vh, 440px); }
  .venue-directory { max-height: 420px; }
  .venue-map-actions { top: 8px; right: 8px; }
  .venue-map-actions .button { min-height: 32px; font-size: .75rem; }
}
