.atlas {
  padding-block: clamp(44px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 12px;
}
.atlas-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.atlas h2 {
  font: 400 clamp(42px, 6vw, 80px)/0.98 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
}
.plan-switch {
  display: flex;
  gap: 3px;
  background: #ecebe1;
  padding: 3px;
  border-radius: 30px;
}
.plan-switch button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  min-height: 44px;
  border-radius: 25px;
  font-size: 14px;
}
.plan-switch [aria-pressed="true"] {
  color: white;
  background: var(--ink);
}
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(235px, 0.85fr);
  gap: clamp(12px, 2vw, 32px);
}
.plan-plate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #d7d3c6;
  border-radius: 2px;
  background-color: #f2eee4;
  background-image:
    linear-gradient(#b8aa9220 1px, transparent 1px),
    linear-gradient(90deg, #b8aa9220 1px, transparent 1px);
  background-size: 24px 24px;
  padding: clamp(6px, 1.5vw, 20px);
}
.plan-drawing {
  position: relative;
  width: 100%;
  aspect-ratio: 860/550;
}
.plan-drawing img {
  width: 100%;
  height: 100%;
  display: block;
}
.plan-pins button {
  position: absolute;
  transform: translate(-50%, -50%);
  height: clamp(24px, 2.1vw, 29px);
  width: clamp(24px, 2.1vw, 29px);
  padding: 0;
  border: 1px solid #4b5c47;
  border-radius: 50%;
  background: #f9f6eb;
  color: #263a2d;
  font: 600 12px/1 var(--body);
  box-shadow: 0 1px 3px #58463222;
}
.plan-pins button:hover,
.plan-pins [aria-pressed="true"] {
  color: #fff;
  background: #86452d;
  border-color: #70371f;
  z-index: 1;
}
.plan-foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.plan-scale {
  border-inline: 1px solid;
  border-top: 2px solid;
  display: block;
  width: 10%;
  min-height: 5px;
  position: relative;
  margin: 14px 0 1px;
  color: #4e5a4e;
}
.plan-scale span {
  position: absolute;
  font: 11px var(--body);
  bottom: 6px;
  white-space: nowrap;
}
.plan-floor-note {
  font: 12px/1.35 var(--body);
  max-width: 65%;
  text-align: right;
}
.plan-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: end;
}
.plan-side select {
  font: 600 15px var(--body);
  padding: 11px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 100%;
  min-height: 44px;
}
.plan-preview {
  display: flex;
  flex-direction: column;
  background: #e7e9dd;
  overflow: hidden;
}
.plan-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}
.plan-preview > span {
  padding: 14px clamp(13px, 2vw, 23px);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.plan-room-name {
  font: 400 clamp(26px, 3vw, 46px)/1.07 var(--display);
}
.plan-preview small {
  white-space: nowrap;
  font-size: 13px;
}
@media (max-width: 720px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .atlas-head {
    align-items: start;
  }
  .plan-side {
    display: grid;
    grid-template-columns: 1fr;
  }
  .plan-preview {
    display: grid;
    grid-template-columns: 32% 1fr;
  }
  .plan-preview img {
    height: 100%;
    aspect-ratio: 1.5;
    object-fit: cover;
  }
  .plan-preview > span {
    align-items: start;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
  }
  .plan-switch button {
    padding-inline: 13px;
  }
  .atlas-head {
    gap: 16px;
  }
  .plan-pins button {
    font-size: 10px;
  }
  .plan-floor-note {
    font-size: 11px;
  }
}
@media (max-width: 390px) {
  .plan-plate {
    padding: 3px;
  }
  .plan-pins button {
    width: 21px;
    height: 21px;
  }
  .plan-side select {
    font-size: 16px;
  }
}
