.popup.popup_type_property {
  --property-panel-duration: 560ms;
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  width: 100vw;
  height: 100dvh;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  outline: 0;
  background: transparent;
  transition: background-color 420ms ease;
}

.popup_type_property:is(.popup_is-opened, .popup_is-closing) { visibility: visible; pointer-events: auto; }
.popup_type_property.popup_is-opened { background: rgba(0, 0, 0, 0.6); }
body:has(.popup_type_property.popup_is-opened) .popup.popup_type_form_quarter { z-index: 21; background: transparent; }

.popup_type_property .property-dialog__panel {
  position: relative;
  display: block;
  width: min(600px, calc(100% - 80px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: #f8edd9;
  color: #161d2d;
  font-family: "Manrope-Variable", var(--ff-main);
  transform: translateX(100%);
  transition: transform var(--property-panel-duration) cubic-bezier(0.22, 0.78, 0.24, 1);
}

.popup_type_property[data-has-image="true"] .property-dialog__panel { width: min(calc(302px + 100dvh * 763 / 1080), calc(100% - 80px)); max-width: 1065px; }
.popup_type_property.popup_is-opened .property-dialog__panel { transform: translateX(0); }
.property-dialog__layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); height: 100%; background: #f8edd9; }
.popup_type_property[data-has-image="true"] .property-dialog__layout { grid-template-columns: 302px minmax(0, 1fr); }
.property-dialog__body { display: flex; flex-direction: column; justify-content: safe center; align-items: center; gap: 56px; width: 100%; min-width: 0; min-height: 0; padding: 80px 48px; overflow-y: auto; overscroll-behavior: contain; }
.popup_type_property :is(.property-dialog__body, .property-dialog__panel) { scrollbar-width: none; }
.popup_type_property :is(.property-dialog__body, .property-dialog__panel)::-webkit-scrollbar { display: none; }
.property-dialog__heading { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; text-align: center; }
.property-dialog__category { color: #7c7a74; font-size: 16px; line-height: 1.4; text-transform: uppercase; }
.property-dialog__title { color: #161d2d; font-size: 56px; font-weight: 400; line-height: 1.1; overflow-wrap: anywhere; }
.property-dialog__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; width: 100%; margin: 0; }
.property-dialog__detail { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.property-dialog__label { color: #7c7a74; font-size: 14px; line-height: 1.4; font-weight: 400; text-transform: uppercase; }
.property-dialog__value { margin: 0; color: #161d2d; font-size: 24px; line-height: 1.3; font-weight: 400; overflow-wrap: anywhere; }
.popup_type_property .property-dialog__request { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; align-self: stretch; width: 100%; min-height: 56px; height: auto; padding: 16px 20px; border: 1px solid rgba(22, 29, 45, 0.3); border-radius: 999px; color: #161d2d; background: transparent; font-size: 16px; line-height: 1.4; letter-spacing: 0; text-align: center; cursor: pointer; }
.property-dialog__request:is(:hover:where(html[data-hover-enabled="true"] *), :focus-visible) { color: #fff; border-color: #0474dc; background: #0474dc; }
.property-dialog__request:focus-visible { outline: 2px solid #42b0f9; outline-offset: 3px; }
.property-dialog__media { display: flex; min-width: 0; height: 100%; overflow: hidden; background: #f8edd9; }
.property-dialog__media[hidden] { display: none; }
.property-dialog__image { display: block; width: 100%; height: 100%; object-fit: cover; }
.popup_type_property[data-image-kind="plan"] .property-dialog__media { background: #fff; }
.popup_type_property[data-image-kind="plan"] .property-dialog__image { object-fit: contain; }
.popup_type_property[data-has-image="true"] .property-dialog__body { gap: 64px; padding-inline: 40px; }
.popup_type_property[data-has-image="true"] .property-dialog__details { grid-template-columns: minmax(0, 1fr); gap: 32px; }

.popup_type_property .property-dialog__close {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: #30343a;
  color: #fff;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.78, 0.24, 1), visibility 0s linear 280ms;
}

.popup_type_property.popup_is-opened .property-dialog__close { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: calc(var(--property-panel-duration) + 80ms), calc(var(--property-panel-duration) + 80ms); }
.property-dialog__close:focus-visible { outline: 2px solid #42b0f9; outline-offset: -4px; }
.popup_type_property .property-dialog__close svg { width: 40px; height: 40px; transition: transform 280ms ease; }
.property-dialog__close svg rect { fill: #fff; }
.property-dialog__close:hover:where(html[data-hover-enabled="true"] *) svg { transform: rotate(90deg); }

@media (min-width: 601px) and (max-width: 1100px) {
  .popup_type_property .property-dialog__panel { width: min(600px, 100%); }
  .popup_type_property[data-has-image="true"] .property-dialog__panel { width: 100%; }
  .popup_type_property .property-dialog__close { right: 0; transform: none; transition-delay: 0s; }
  .property-dialog__body { padding-top: 96px; }
}

@media (max-width: 600px) {
  .popup.popup_type_property { align-items: flex-end; }
  .popup_type_property .property-dialog__panel,
  .popup_type_property[data-has-image="true"] .property-dialog__panel { width: 100%; height: auto; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); }
  .popup_type_property[data-has-image="true"] .property-dialog__panel { height: 100dvh; }
  .popup_type_property.popup_is-opened .property-dialog__panel { transform: translateY(0); }
  .property-dialog__layout,
  .popup_type_property[data-has-image="true"] .property-dialog__layout { display: flex; flex-direction: column; height: auto; min-height: 100%; }
  .property-dialog__body,
  .popup_type_property[data-has-image="true"] .property-dialog__body { flex: 0 0 auto; gap: 32px; padding: 80px 20px 40px; overflow: visible; }
  .property-dialog__heading { gap: 12px; }
  .property-dialog__category { font-size: 14px; }
  .property-dialog__title { font-size: 40px; }
  .property-dialog__details,
  .popup_type_property[data-has-image="true"] .property-dialog__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .property-dialog__label { font-size: 12px; }
  .property-dialog__value { font-size: 20px; }
  .popup_type_property .property-dialog__request { font-size: 14px; }
  .property-dialog__media { flex: 0 0 auto; width: 100%; height: auto; }
  .property-dialog__image { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .popup_type_property[data-image-kind="plan"] .property-dialog__image { aspect-ratio: auto; }
  .popup_type_property .property-dialog__close,
  .popup_type_property.popup_is-opened .property-dialog__close { position: absolute; top: 0; right: 0; width: 64px; height: 64px; transform: none; transition: none; transition-delay: 0s; }
  .popup_type_property:is(.popup_is-opened, .popup_is-closing) .property-dialog__close { visibility: visible; }
  .popup_type_property .property-dialog__close svg,
  .popup_type_property .property-dialog__close:hover:where(html[data-hover-enabled="true"] *) svg { width: 32px; height: 32px; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .popup.popup_type_property { --property-panel-duration: 0.01ms; }
  .popup_type_property,
  .popup_type_property .property-dialog__panel,
  .popup_type_property .property-dialog__close,
  .property-dialog__close svg { transition-duration: 0.01ms; }
  .popup_type_property.popup_is-opened .property-dialog__close { transition-delay: 0s; }
}
