.venue-preview, .venue-markers, .place-building-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.venue-preview { z-index: 4; isolation: isolate; }
.venue-markers { overflow: hidden; }

.venue-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  z-index: 1;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.venue-pin::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid #20201e;
  background: var(--layer-color);
  box-shadow: 0 0 0 1px var(--layer-color), 0 0 11px var(--layer-color);
  transform: rotate(45deg);
}
.venue-pin[data-footprint]::before {
  width: 14px;
  height: 14px;
  border-color: var(--layer-secondary, var(--layer-color));
  background: transparent;
  box-shadow: 0 0 5px var(--layer-color);
}
.venue-pin:hover::before, .venue-pin[aria-pressed="true"]::before {
  outline: 2px solid var(--layer-color);
  outline-offset: 3px;
}

.venue-directory {
  position: absolute;
  inset: 12px auto auto 12px;
  z-index: 2;
  width: min(203px, calc(100% - 24px));
  padding: 5px 9px;
  border: 1px solid #c4c4c4;
  background: #fff;
  color: #191919;
  pointer-events: auto;
  box-shadow: 0 4px 20px #0002;
}
.venue-directory h2 { margin: 0; }
.venue-directory .venue-layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0;
  border: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
}
.venue-layer-toggle span {
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}
.venue-layer-toggle[aria-expanded="false"] span { transform: rotate(-45deg); }
#venue-layer-body { border-top: 1px solid #ddd; }
.venue-directory label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.venue-directory label + label { border-top: 1px solid #eee; }
.venue-directory input { margin: 0; accent-color: #191919; width: 17px; height: 17px; }
.venue-swatch {
  flex: none;
  width: 9px;
  height: 9px;
  border: 1px solid #383838;
  border-radius: 2px;
  background: var(--layer-color);
}
.venue-layer-count { margin-inline-start: auto; padding-inline-start: 3px; color: #555; font-size: 12px; font-weight: 400; }
.venue-summary {
  margin: 2px 0 0;
  padding-top: 6px;
  border-top: 1px solid #ddd;
  color: #555;
  font-size: 12px;
  line-height: 1.4;
}
.venue-directory button { cursor: pointer; color: #191919; background: #fff; }
.venue-shared-view { padding: 4px 0 6px; border-bottom: 1px solid #ddd; }
.venue-shared-label { margin: 0; font-size: 13px; font-weight: 700; }
.venue-shared-actions { display: flex; flex-wrap: wrap; gap: 0 9px; }
.venue-shared-actions button { min-height: 44px; padding: 0; border: 0; text-decoration: underline; font-size: 12px; }
.venue-directory .venue-share-url {
  width: 100%;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #999;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
}
.venue-copy-status { margin: 0; font-size: 11px; line-height: 1.4; }
.venue-copy-status:empty { display: none; }
.venue-list-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.venue-list-actions > * { white-space: nowrap; }
.venue-list-toggle { min-height: 44px; border: 0; padding: 0; text-decoration: underline; font-size: 13px; }
.venue-suggest { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; text-underline-offset: 3px; }
#venue-list {
  max-height: min(30vh, 210px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border-top: 1px solid #ddd;
  scrollbar-color: #646464 #eee;
  list-style: none;
}
#venue-list::-webkit-scrollbar { width: 16px; }
#venue-list button { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid #eee; padding: 8px 0; text-align: left; font-size: 13px; }
#venue-list button:focus-visible { outline-offset: -2px; }
#venue-list button[aria-pressed="true"] { font-weight: 700; }

.venue-detail {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: min(252px, calc(100% - 16px));
  max-height: min(620px, calc(100% - 16px));
  overflow: hidden;
  border: 1px solid #c4c4c4;
  border-top: 3px solid var(--layer-color);
  background: #fff;
  color: #191919;
  pointer-events: auto;
  box-shadow: 0 4px 20px #0004;
}
.venue-detail-header { position: relative; flex: none; padding: 11px 12px 2px; border-bottom: 1px solid #eee; }
.venue-detail-body {
  min-height: 0;
  overflow: auto;
  padding: 0 12px 8px;
  scrollbar-color: #646464 #eee;
}
.venue-detail-body::-webkit-scrollbar { width: 16px; }
.venue-detail-body::-webkit-scrollbar-thumb { border: 3px solid #eee; border-radius: 9px; background: #646464; }
.venue-detail h2 { margin: 0 30px 4px 0; font-size: 16px; line-height: 1.2; }
.venue-detail h2:focus { outline-offset: 2px; }
.venue-address { margin: 0 20px 4px 0; color: #555; font-size: 12px; line-height: 1.4; }
.venue-description { margin: 8px 0; font-size: 12px; line-height: 1.5; }
.venue-categories { margin: 1px 0 5px; color: #555; font-size: 11px; }
.venue-links { display: flex; flex-wrap: wrap; gap: 0 8px; }
.venue-website,
.venue-street-view a { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; text-underline-offset: 3px; }
.venue-card-jump { min-height: 44px; border: 0; background: transparent; padding: 0 2px; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; cursor: pointer; }
.venue-street-view { border-top: 1px solid #ddd; }
.venue-detail-close {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: #191919;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .sac .has-place-detail .venue-detail { max-height: calc(100% - 100px); }
  .sac .has-place-detail .map-status { display: none; }
}

@media (max-width: 480px) {
  .venue-directory { inset: 8px auto auto 8px; width: min(178px, calc(100% - 16px)); }
  .venue-directory label { min-height: 41px; font-size: 13px; }
  .venue-detail { width: min(205px, calc(100% - 16px)); }
}
