.venue-map {
  --map-ink: #17392b;
  --map-green: #105c40;
  --map-floor: #eaf2e9;
  --map-line: #c9d9cd;
  color: var(--map-ink);
}

.venue-map__image {
  margin: 0 0 1rem;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 1rem;
}

.venue-map__image img {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.venue-map__image-area {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.venue-map__marker {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.venue-map__marker::before {
  width: 1.125rem;
  height: 1.125rem;
  background: var(--map-green);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--map-green);
  content: "";
}

.venue-map__marker[aria-pressed="true"] {
  z-index: 2;
}

.venue-map__marker[aria-pressed="true"]::before {
  background: #f0c761;
  border: 3px solid var(--map-green);
  box-shadow: 0 0 0 2px #fff;
}

.venue-map__marker:focus-visible {
  z-index: 3;
  outline: 2px solid #945800;
  outline-offset: -4px;
}

.venue-map__schematic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding: clamp(0.7rem, 3vw, 1.1rem);
  background-color: #f5f7f1;
  background-image: radial-gradient(#d6e1d4 0.85px, transparent 0.85px);
  background-size: 12px 12px;
  border: 1px solid var(--map-line);
  border-radius: 1.25rem;
}

.venue-map__building {
  min-width: 0;
  padding: 0.65rem;
  background: #fff;
  border: 1px solid var(--map-line);
  border-top: 3px solid #91af9b;
  border-radius: 0.9rem;
}

.venue-map__building--wide,
.venue-map__building:only-child {
  grid-column: 1 / -1;
}

.venue-map__building-name {
  margin: 0 0 0.35rem;
  color: var(--map-ink);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.venue-map__floor {
  display: grid;
  gap: 0.38rem;
}

.venue-map__floor + .venue-map__floor {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e0e8df;
}

.venue-map__floor-name {
  width: fit-content;
  margin: 0;
  padding: 0.15rem 0.46rem;
  color: #285642;
  background: var(--map-floor);
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.venue-map__rooms {
  display: grid;
  gap: 0.35rem;
}

.venue-map__building--wide .venue-map__rooms {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
}

.venue-map__place {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.45rem;
  color: var(--map-ink);
  background: #f8faf7;
  border: 1px solid #d3e0d4;
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.venue-map__place:hover {
  background: #edf4eb;
}

.venue-map__place[aria-pressed="true"] {
  color: #fff;
  background: var(--map-green);
  border-color: var(--map-green);
}

.venue-map__place:focus-visible {
  outline: 2px solid #945800;
  outline-offset: 2px;
}

.venue-map__place::before {
  box-sizing: border-box;
  display: block;
  flex: 0 0 auto;
  width: 0.62rem;
  height: 0.62rem;
  border: 1.5px solid #56826d;
  border-radius: 50%;
  content: "";
}

.venue-map__place[aria-pressed="true"]::before {
  background: #f0c761;
  border: 2px solid var(--map-green);
  box-shadow: 0 0 0 1.5px #fff;
}

.venue-map__place-name {
  overflow-wrap: anywhere;
}

.venue-map__reception {
  margin-top: 0.2rem;
  padding: 0.5rem;
  background: #f5f7f1;
  border: 1px dashed #a9c2af;
  border-radius: 0.65rem;
}

.venue-map__reception-label {
  margin: 0 0 0.35rem;
  color: #385a48;
  font-size: 0.875rem;
  line-height: 1.35;
}

.venue-map__reception-desks {
  display: grid;
  grid-template-columns: repeat(var(--desk-count), minmax(0, 1fr));
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.venue-map__reception-desk {
  display: grid;
  place-items: center;
  min-height: 2.1rem;
  padding: 0.3rem 0.2rem;
  color: var(--map-ink);
  background: #fff;
  border: 1px solid var(--map-line);
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
}

.venue-map__reception-desk[aria-current="true"] {
  color: var(--map-green);
  background: #fff7da;
  border: 2px solid var(--map-green);
  font-weight: 800;
}

.venue-map__note {
  margin: 0.65rem 0 0;
  color: #476251;
  font-size: 0.875rem;
  line-height: 1.55;
}

@media (max-width: 330px) {
  .venue-map__schematic {
    grid-template-columns: minmax(0, 1fr);
  }
}
