@layer layout {
.spots--show,
.spots--edit {
  & .button--new-spot {
    display: none;
  }

  & h1 {
    margin: 0;
  }

  & .hero--desktop {
    margin: auto calc(var(--spacing-md) * -1);
    margin-bottom: var(--margin-large);
  }

  /* Inside the 2-1-2 overview grid the map is a fixed-size column item, not
     a full-bleed section, so it needs its own size instead of the page-wide
     50vh/edge-bleed rule above — a 19:9 rectangle sized from the column's
     width (safe: never overflows the column, unlike deriving width from a
     stretched height). At the column's 760px reference width this lands at
     360px tall, which spot-list.css's card sizing is tuned to match exactly
     so the map's bottom border lands on the cards' bottom border. */
  & .spot-overview__map .hero--desktop {
    width: 100%;
    aspect-ratio: 19 / 9;
    height: auto;
    min-height: unset;
    max-height: unset;
    margin: 0;
  }
}

.spots--show,
.spots--edit,
.spots--show.spots--web-mobile,
.sessions--new.sessions--web-mobile {
  & .header {
    display: none;
  }

  & .sub-header--mobile {
    margin-bottom: 0;
  }

  & main {
    padding-top: 0;
  }

  /* & .spot__map-container {
    margin-left: calc(var(--spacing-md) * -1);
    margin-right: calc(var(--spacing-md) * -1);
    width: calc(100% + var(--spacing-md) * 2);
  } */
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--margin-small);

  & h2 {
    margin: 0;
  }
}

.spots--edit,
.spots--new.body--desktop,
.spots--new.body--mobile {
  background-color: var(--background-color-variant-2);

  & .header,
  & .footer {
    display: none;
  }

  & .sub-header {
    padding: 1rem;
  }

  & main {
    max-width: 700px;
    margin-bottom: var(--margin-large);
  }

  & .form-group--coordinates .form-group {
    margin-bottom: 0;
  }
}

.spots--new.body--mobile { 
  & .sub-header {
    margin-bottom: 0;
  }
}
}
