/* Floor plans beside the description; scoped to the four supplied accommodations. */
.suite-property .suite-overview.has-floorplans {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro plans" "request plans";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 28px clamp(36px, 5vw, 80px);
}
.has-floorplans > .suite-intro { grid-area: intro; }
.has-floorplans > .floorplan-viewer { grid-area: plans; }
body.grand-style.image-led.suite-property .has-floorplans > .suite-request {
  grid-area: request;
  align-self: start;
  width: 100%;
  max-width: 440px;
  margin: 0;
}
.floorplan-viewer { min-width: 0; color: #343e35; }
.floorplan-viewer-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-bottom: 18px;
}
.floorplan-viewer h3 {
  margin: 0;
  font: 600 23px/1.3 var(--sans);
  letter-spacing: -.02em;
}
.floorplan-tabs, .floorplan-dialog-floors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.floorplan-tabs button, .floorplan-dialog-floors button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid #343e3533;
  border-radius: 999px;
  background: #fff;
  color: #343e35;
  font: 500 13px/1.4 var(--sans);
}
.floorplan-tabs button[aria-selected="true"],
.floorplan-dialog-floors button[aria-pressed="true"] {
  color: #fff;
  background: #343e35;
  border-color: #343e35;
}
.floorplan-panel { margin: 0; min-width: 0; }
.floorplan-panel + .floorplan-panel { margin-top: 24px; }
.floorplan-viewer[data-enhanced="true"] .floorplan-panel { margin-top: 0; }
.floorplan-preview {
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: #343e35;
  overflow: visible;
  cursor: zoom-in;
}
.floorplan-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.floorplan-enlarge {
  position: static;
  display: inline-flex;
  width: max-content;
  margin: 12px 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #343e3526;
  border-radius: 999px;
  background: #fffffff2;
  box-shadow: none;
  font: 500 13px/1.4 var(--sans);
}
.floorplan-enlarge > span { font-size: 21px; line-height: 1; }
.floorplan-panel figcaption {
  margin-top: 11px;
  font: 500 14px/1.5 var(--sans);
  color: #343e35;
}
.floorplan-note {
  margin: 7px 0 0;
  color: #6a6d64;
  font: 400 12px/1.6 var(--sans);
}
#floorplan-dialog {
  position: fixed;
  inset: 0;
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
  height: min(960px, 94dvh);
  max-height: 94dvh;
  padding: 0;
  margin: auto;
  border: 1px solid #343e3526;
  background: #fff;
  color: #343e35;
  overflow: hidden;
}
#floorplan-dialog[open] { display: flex; flex-direction: column; }
#floorplan-dialog::backdrop { background: #17221ce6; }
.floorplan-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #343e3526;
}
#floorplan-dialog h2 {
  margin: 0;
  font: 600 20px/1.4 var(--sans);
  letter-spacing: -.015em;
}
.floorplan-dialog-header p {
  margin: 3px 0 0;
  font: 400 13px/1.5 var(--sans);
  color: #656b60;
}
.floorplan-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: #fff;
  border: 1px solid #343e3533;
  border-radius: 50%;
  color: #343e35;
  font-size: 28px;
  line-height: 1;
}
.floorplan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 10px 20px;
  padding: 12px 22px;
}
.floorplan-zoom-controls { display: flex; align-items: center; gap: 7px; }
.floorplan-zoom-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #343e3533;
  border-radius: 999px;
  color: #343e35;
  font: 500 14px/1.3 var(--sans);
}
.floorplan-zoom-controls [data-floorplan-zoom] { font-size: 22px; }
.floorplan-zoom-controls output {
  min-width: 48px;
  text-align: center;
  font: 500 12px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
}
.floorplan-stage {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 16px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f4f4ef;
  touch-action: pan-x pan-y pinch-zoom;
}
.floorplan-stage[data-zoomed="true"] { cursor: grab; }
.floorplan-stage[data-dragging="true"] { cursor: grabbing; }
.floorplan-canvas {
  display: grid;
  place-items: center;
  min-width: 100%;
  min-height: 100%;
}
#floorplan-dialog .floorplan-full-image {
  display: block;
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
}
.floorplan-load-status {
  margin: 0;
  padding: 24px;
  font: 400 14px/1.6 var(--sans);
}
.floorplan-dialog-footer {
  flex: 0 0 auto;
  padding: 11px 22px;
  color: #656b60;
  font: 400 12px/1.6 var(--sans);
}
@media (hover: hover) {
  .floorplan-tabs button:hover:not([aria-selected="true"]),
  .floorplan-dialog-floors button:hover:not([aria-pressed="true"]),
  .floorplan-zoom-controls button:hover:not(:disabled),
  .floorplan-close:hover { background: #f1f2eb; }
}
@media (max-width: 980px) {
  .suite-property .suite-overview.has-floorplans {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "plans" "request";
    grid-template-rows: auto;
    gap: 28px;
  }
  .floorplan-viewer { width: 100%; max-width: 680px; }
}
@media (max-width: 700px) {
  .floorplan-viewer h3 { font-size: 21px; }
  .floorplan-viewer-header { gap: 12px; margin-bottom: 14px; }
  .floorplan-tabs button { padding-inline: 13px; }
  #floorplan-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
  }
  .floorplan-dialog-header { padding: 14px 16px; }
  #floorplan-dialog h2 { font-size: 18px; }
  .floorplan-dialog-header p { font-size: 12px; }
  .floorplan-toolbar { padding: 10px 14px; gap: 10px; }
  .floorplan-dialog-floors button { padding-inline: 12px; }
  .floorplan-zoom-controls { gap: 4px; }
  .floorplan-zoom-controls button { padding-inline: 10px; }
  .floorplan-dialog-footer { padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
}

/* Keep tall plans balanced with the description on desktop. */
@media (min-width: 981px) {
  .floorplan-preview img { max-height: 570px; }
}

/* Keep wrapped floor selectors centered beneath the heading. */
.floorplan-viewer-header .floorplan-tabs { justify-content: center; }
