.object-window {
  width: min(1180px, calc(100% - 48px));
  max-width: none;
  max-height: min(92dvh, 100% - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d4cdbd;
  border-radius: 18px;
  background: #f1eee4;
  box-shadow: 0 24px 90px #14251e40;
  overflow: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-padding-top: 76px;
}

.object-window::backdrop { background: #14251e9c; }
html:has(.object-window[open]) { overflow: hidden; }

.object-window-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(20px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
  background: #f1eee4;
  font-size: 14px;
  font-weight: 700;
}

.object-window-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c9c4b2;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.object-window-close:hover { background: #e7e3d8; }
.object-window-bar > [tabindex="-1"]:focus { outline: none; }

/* The window contains full sections with their original layouts. */
.object-window img { width: 100%; max-height: none; margin: 0; object-fit: cover; }
.object-window p { padding: 0; text-align: revert; }
.object-window .house-gallery-caption,
.object-window .house-gallery-description { text-align: center; }
.object-window > .house-section { padding-block: clamp(26px, 5vw, 56px); }
.object-window > .water-suite { padding-top: clamp(26px, 5vw, 56px); }

@media (min-width: 761px) {
  .object-window > .house-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 24px clamp(24px, 5vw, 72px);
    align-items: start;
  }
  .object-window .house-heading { display: block; grid-area: 1 / 2; margin: 0; }
  .object-window .house-tariff { margin-top: 24px; }
  .object-window .house-gallery {
    --card-width: min(78%, 390px, 49dvh);
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .object-window .house-gallery-description {
    grid-column: 2;
    margin: 0;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .object-window {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: calc(100dvh - max(clamp(48px, 9dvh, 80px), env(safe-area-inset-top)));
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 22px 22px 0 0;
  }
  .object-window .house-heading { margin: 28px 0 0; }
  .object-window > .house-section,
  .object-window > .pricing { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
}


.spa-addon-rate {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 13px;
}
.spa-addon-rate span { font-weight: 700; color: var(--ink); }
.spa-addon-rate + p { margin-top: 6px; }
.spa-details p + p { margin-top: 10px; }
.object-window .house-slide img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #e7e3d8;
}

.object-window .house-tariff { border-radius: clamp(28px, 4vw, 48px); }


.object-window-bar {
  padding-inline-start: clamp(16px, 2.4vw, 30px);
  font-family: 'Segoe UI Variable Display', 'Segoe UI', Arial, sans-serif;
  font-weight: 650;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.2;
}
.object-window-close { flex: 0 0 44px; }
#space .house-tariff .button { font-size: 15px; }

@media (max-width: 760px) {
  .object-window-bar,
  .object-window .house-heading h2 {
    font-family: Manrope, 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: .008em;
  }

  .object-window .house-heading {
    gap: 14px;
    margin-top: 22px;
  }

  .object-window .house-heading h2 {
    font-size: clamp(23px, 6.2vw, 30px);
    line-height: 1.15;
  }

  .object-window .house-tariff {
    padding: 15px 16px;
    border-radius: 22px;
  }

  .object-window .house-tariff p { margin-top: 10px; }

  .object-window .house-tariff .button,
  #space .house-tariff .button {
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 16px;
    font-size: 13px;
  }

  a[href^="tel:"] { touch-action: manipulation; }
}
