.spot-layer {
  position: absolute;
  inset: 0;
  /* Between geographical labels (2) and the map controls (4). */
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.spot-pin {
  pointer-events: auto;
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #ffcbde;
  border-radius: 14px 14px 14px 3px;
  background: #56243f;
  color: #ffe3ed;
  box-shadow: 0 3px 12px #110e2080;
  cursor: pointer;
}
.spot-pin[hidden] {
  display: none;
}
.spot-pin .ic {
  width: 18px;
  height: 18px;
}
.spot-community {
  color: #b5fff7;
  background: #194440;
  border-color: #72dacf;
}
.spot-selected {
  color: #fff;
  background: #8c436d;
  border: 2px solid #ffdcf2;
}
.spot-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(360px, calc(100vw - 32px));
  height: fit-content;
  max-height: min(84dvh, 660px);
  overflow: auto;
  padding: 20px;
  color: #f5eff6;
  border: 1px solid #584050;
  border-radius: 22px;
  background: linear-gradient(150deg, #2b2130, #1a1822 82%);
  box-shadow: 0 25px 70px #08060d90;
  font:
    400 14px/1.45 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.spot-dialog::backdrop {
  background: #0b081165;
  backdrop-filter: blur(2px);
}
.spot-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.spot-head h2 {
  margin: 0;
  text-wrap: balance;
  font-size: 21px;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.spot-dialog button {
  cursor: pointer;
}
.spot-close {
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #73586d;
  background: #423140;
  color: #fbe8f0;
  width: 42px;
  height: 42px;
  flex: none;
}
.spot-close .ic {
  width: 16px;
  height: 16px;
}
.spot-close span {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.spot-action {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-bottom: 1px solid #76566a42;
  text-align: left;
  background: transparent;
  padding: 9px 4px;
  font: inherit;
  color: #fbeaf2;
}
.spot-action .ic {
  width: 19px;
  height: 19px;
  color: #ffb0d3;
}
.spot-action:hover,
.spot-action:focus-visible {
  background: #ffffff0c;
  border-radius: 8px;
}
.spot-dialog :focus-visible {
  outline: 2px solid #feb7d8;
  outline-offset: 2px;
}
.spot-library {
  display: flex;
  gap: 5px;
  padding-top: 8px;
}
.spot-library .spot-action {
  width: auto;
  color: #e0bfd6;
  font-size: 12px;
  padding-inline: 6px;
  border-bottom: 0;
}
.spot-description,
.spot-status {
  color: #ccbfc9;
  font-size: 12px;
  line-height: 1.45;
  margin: 9px 0 0;
}
.spot-status:empty {
  display: none;
}
.spot-dialog label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  font-weight: 600;
}
.spot-dialog input,
.spot-dialog select,
.spot-dialog textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #17141d;
  border: 1px solid #705568;
  padding: 10px 11px;
  border-radius: 9px;
}
.spot-dialog textarea {
  resize: vertical;
  min-height: 74px;
}
.spot-submit {
  font: inherit;
  font-weight: 650;
  border: 0;
  border-radius: 12px;
  background: #ffc0dd;
  color: #371829;
  margin-top: 12px;
  padding: 11px 17px;
}
@media (max-width: 600px) {
  .spot-dialog {
    inset: auto 0 0;
    margin: 0 auto;
    width: 100%;
    max-height: 78dvh;
    border-radius: 23px 23px 0 0;
    padding: 17px 20px max(18px, env(safe-area-inset-bottom));
  }
  .spot-dialog input,
  .spot-dialog select,
  .spot-dialog textarea {
    font-size: 16px;
  }
}
