/* The elevation stays fixed while the reader changes the plan focus. */
.plan-visit {
  margin-block: clamp(48px, 7vw, 96px);
  padding: clamp(18px, 3.8vw, 52px);
  background: #f1e5d2;
  border: 1px solid #91795b;
  border-top: 3px solid #914027;
  scroll-margin-top: 20px;
}
.plan-visit-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}
.plan-visit-head h2,
.plan-visit-head p {
  margin-bottom: 0;
}
.plan-visit-head .eyebrow {
  color: #773824;
  margin-bottom: 7px;
}
.plan-visit-head > p {
  max-width: 34ch;
}
.plan-visit-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  min-width: 0;
}
.plan-zone-legend,
.plan-visit-zones input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.plan-visit-zones label {
  cursor: pointer;
}
.plan-visit-zones label span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  border: 1px solid #91795b;
  color: #2f3025;
  font-size: .93rem;
}
.plan-visit-zones input:checked + span {
  background: #743722;
  color: #fffaf1;
  border-color: #743722;
}
.plan-visit-zones input:focus-visible + span {
  outline: 2px solid #2f3025;
  outline-offset: 3px;
}
.plan-visit-layout {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(0,1fr);
  align-items: center;
  gap: clamp(14px, 4vw, 55px);
}
.plan-visit-layout figure {
  margin: 0;
}
.plan-visit-map {
  position: relative;
  overflow: hidden;
  --zone-left: 11.2%;
  --zone-top: 16.8%;
  --zone-width: 47%;
  --zone-height: 66.4%;
}
.plan-visit-map img {
  display: block;
  width: 100%;
  height: auto;
}
.plan-visit-focus {
  position: absolute;
  inset: var(--zone-top) auto auto var(--zone-left);
  width: var(--zone-width);
  height: var(--zone-height);
  border: 3px solid #914027;
  box-shadow: 0 0 0 100vmax #2f30252f;
  pointer-events: none;
}
.plan-visit:has([value="rest"]:checked) .plan-visit-map {
  --zone-left: 58.2%;
  --zone-width: 31%;
  --zone-height: 37.1%;
}
.plan-visit:has([value="services"]:checked) .plan-visit-map {
  --zone-left: 58.2%;
  --zone-top: 53.6%;
  --zone-width: 31%;
  --zone-height: 29.8%;
}
.plan-visit-notes article {
  display: none;
}
.plan-visit:has([value="living"]:checked) .plan-note-living,
.plan-visit:has([value="rest"]:checked) .plan-note-rest,
.plan-visit:has([value="services"]:checked) .plan-note-services {
  display: block;
}
.plan-visit-notes h3 {
  margin-bottom: .6em;
}
@media (max-width: 760px) {
  .plan-visit-head {
    display: block;
  }
  .plan-visit-head h2 {
    margin-bottom: 9px;
  }
  .plan-visit-layout {
    grid-template-columns: minmax(0,1fr);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plan-visit-focus {
    transition: inset .48s cubic-bezier(.24,.68,.28,1), width .48s cubic-bezier(.24,.68,.28,1), height .48s cubic-bezier(.24,.68,.28,1);
  }
  .plan-visit-notes article {
    animation: zone-note-in .35s ease-out both;
  }
  @keyframes zone-note-in {
    from { opacity: .45; transform: translateY(5px); }
    to { opacity: 1; transform: none; }
  }
}
