.apartment-plan { display: grid; justify-items: center; }
.apartment-plan-frame { position: relative; width: fit-content; max-width: 100%; }
.floor-render .apartment-plan-frame img { width: auto; max-width: 100%; }
.apartment-pin {
  position: absolute; transform: translate(-50%, -50%); width: 2.25rem; height: 2.25rem;
  border: 2px solid white; border-radius: 50%; background: #104956; color: white;
  font-weight: 700; box-shadow: 0 2px 12px #092e5360; cursor: pointer;
}
.apartment-pin:hover, .apartment-pin:focus-visible { background: #247974; outline: 2px solid white; }
.apartment-gallery {
  width: min(920px, calc(100% - 24px)); max-height: 92dvh; overflow: auto; 
  border: 1px solid #cee2df; border-radius: 12px; padding: clamp(16px, 3vw, 32px);
  color: #113846; background: #f5fbf9;
}
.apartment-gallery::backdrop { background: #061f2bd0; }
.apartment-gallery header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.apartment-gallery h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.apartment-gallery p { margin: 6px 0 16px; }
.apartment-gallery button { padding: 8px 12px; cursor: pointer; }
.apartment-photos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.apartment-photos figure { margin: 0; background: white; }
.apartment-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.apartment-photos figcaption { padding: 10px 12px; font-weight: 600; }
@media (max-width: 540px) { .apartment-photos { grid-template-columns: 1fr; } }
.apartment-gallery { margin: auto; }
