:root {
  --font-scale: 1;
  --font-ui: Arial, sans-serif;
  --fs-caption: 0.75rem;
  --fs-small: 0.9rem;
  --fs-body: 1rem;
  --fs-lead: 1.08rem;
  --fs-title: 1.3rem;
  --bg: #f7f9f9;
  --surface: #ffffff;
  --surface-alt: #f7f9f9;
  --ink: #16283d;
  --ink-soft: #627a95;
  --line: #cfdbeb;
  --accent: #063e5c;
  --accent-strong: #042f46;
  --night: #dde7f3;
  --available: #4e9432;
  --reserved: #f77f00;
  --sold: #c73232;
  --vr360: #18a9ff;
  --shadow: 0 14px 28px rgba(26, 56, 96, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: calc(var(--fs-body) * var(--font-scale));
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  background: radial-gradient(circle at 12% 16%, #f8fbff 0, #edf3fb 48%, #e6eef8 100%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-boot-mode="landing"] body {
  background: #ffffff;
  overflow: hidden;
}

html[data-boot-mode="viewer"] .landing-shell {
  display: none;
}

html[data-boot-mode="landing"] .app-shell {
  display: none;
}

.landing-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.landing-stage {
  width: min(92vw, 1200px);
  padding: 2rem 1rem;
}

.landing-content {
  display: grid;
  justify-items: center;
}

.landing-brand-lockup {
  display: grid;
  justify-items: center;
  row-gap: 0.22rem;
}

.landing-title {
  margin: 0;
  color: #111111;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.7rem, 1.85vw, 1.6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-align: center;
}

.landing-powered {
  margin: 0;
  display: block;
  width: auto;
  padding-left: 0;
  transform: translateX(24%);
  color: #111111;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(0.4rem, 0.58vw, 0.54rem);
  line-height: 1;
  font-weight: 700;
  text-align: left;
}

.landing-powered-brand {
  color: #111111;
  font-weight: 700;
  text-decoration: none;
}

.landing-powered-brand:hover {
  text-decoration: underline;
}

body[data-theme-mode="DARK"] {
  color-scheme: dark;
  background: radial-gradient(circle at 12% 16%, #303030 0, #252525 48%, #1f1f1f 100%);
  --on-color-dark: #0d1623;
}

body[data-theme-mode="DARK"] .topbar {
  border-color: #3c4653;
  background: linear-gradient(120deg, #2c2c2c 0%, #252525 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body[data-theme-mode="DARK"] .topbar-link {
  border-color: #495566;
  background: #2f3742;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .brand-rail {
  border-color: #3c4653;
  background: #262626;
}

body[data-theme-mode="DARK"] .brand-rail-link:hover {
  color: #d7e5f5;
}

body[data-theme-mode="DARK"] .viewer-card,
body[data-theme-mode="DARK"] .list-card {
  border-color: #3c4653;
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

body[data-theme-mode="DARK"] .viewer-nav-dock,
body[data-theme-mode="DARK"] .viewer-utility-dock {
  border-color: rgba(78, 92, 111, 0.86);
  background: rgba(38, 38, 38, 0.74);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body[data-theme-mode="DARK"] .viewer-mode-panel-title,
body[data-theme-mode="DARK"] .icon-control-label {
  color: #dbe7f4;
}

body[data-theme-mode="DARK"] .icon-toggle-btn {
  border-color: #556173;
  background: #313944;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .viewer-legal-popover {
  border-color: rgba(132, 149, 171, 0.62);
  background: rgba(24, 29, 36, 0.74);
  color: #edf3fb;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(38px) saturate(120%) brightness(0.72);
  -webkit-backdrop-filter: blur(38px) saturate(120%) brightness(0.72);
}

body[data-theme-mode="DARK"] .viewer-legal-popover::after {
  background: rgba(24, 29, 36, 0.74);
  border-color: rgba(132, 149, 171, 0.62);
}

body[data-theme-mode="DARK"] .viewer-legal-popover-title {
  color: #ffffff;
}

body[data-theme-mode="DARK"] .viewer-legal-popover-summary {
  color: #b9cce0;
}

body[data-theme-mode="DARK"] .viewer-legal-popover-details {
  border-top-color: rgba(132, 149, 171, 0.32);
}

body[data-theme-mode="DARK"] .viewer-legal-popover-expand {
  border-color: rgba(132, 149, 171, 0.62);
  background: rgba(255, 255, 255, 0.08);
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .viewer-legal-popover-expand:hover {
  border-color: rgba(182, 198, 218, 0.68);
  background: rgba(255, 255, 255, 0.14);
}

body[data-theme-mode="DARK"] .view-mode-btn {
  border-color: rgba(85, 97, 115, 0.82);
  background: rgba(49, 57, 68, 0.62);
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .view-mode-btn:hover {
  background: rgba(57, 67, 79, 0.76);
  border-color: rgba(104, 119, 140, 0.92);
}

body[data-theme-mode="DARK"] .view-mode-btn.is-active,
body[data-theme-mode="DARK"] .icon-toggle-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-color-dark);
  text-shadow: none;
}

body[data-theme-mode="DARK"] .list-investment {
  border-bottom-color: #3c4653;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] #resultCount {
  color: #b6c5d7;
}

body[data-theme-mode="DARK"] .investment-logo-wrap {
  border-color: #3c4653;
  background: #ffffff;
}

body[data-theme-mode="DARK"] select,
body[data-theme-mode="DARK"] input,
body[data-theme-mode="DARK"] textarea {
  border-color: #4b5663;
  background: #2c3440;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .filter-field label,
body[data-theme-mode="DARK"] .mobile-select-control label {
  color: #d8e3ef;
}

body[data-theme-mode="DARK"] .filters select,
body[data-theme-mode="DARK"] .mobile-select-control select {
  border-color: #4b5663;
  background: #2c3440;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .filters select option,
body[data-theme-mode="DARK"] .mobile-select-control select option {
  background: #2c3440;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .listing-card {
  border-color: #3c4653;
  background: #262c33;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .listing-card:hover {
  border-color: #4b5663;
  background: #2b323a;
}

body[data-theme-mode="DARK"] .listing-card.is-active {
  border-color: #516072;
  background: #303842;
  color: #ffffff;
}

body[data-theme-mode="DARK"] .listing-card.is-active:hover {
  border-color: #5b6b7e;
  background: #343d47;
}

body[data-theme-mode="DARK"] .listing-card.status-location {
  --listing-accent: #3b4450;
}

body[data-theme-mode="DARK"] .listing-card.status-location::after {
  color: #f2f4f7;
}

body[data-theme-mode="DARK"] .listing-card.status-building {
  --listing-accent: var(--accent);
}

body[data-theme-mode="DARK"] .listing-card::after {
  color: var(--on-color-dark);
  text-shadow: none;
}

body[data-theme-mode="DARK"] .listing-title,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-title {
  color: #f4f7fb;
}

body[data-theme-mode="DARK"] .listing-meta span,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-meta span {
  border-color: #4b5663;
  background: #39424d;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .listing-card.has-actions .listing-meta,
body[data-theme-mode="DARK"] .listing-card.has-actions.is-active .listing-meta {
  color: #d8e2ef;
}

body[data-theme-mode="DARK"] .listing-card.has-actions .listing-meta span,
body[data-theme-mode="DARK"] .listing-card.has-actions.is-active .listing-meta span {
  border: 0;
  background: transparent;
  color: inherit;
}

body[data-theme-mode="DARK"] .listing-card.has-actions .listing-meta span + span::before,
body[data-theme-mode="DARK"] .listing-card.has-actions.is-active .listing-meta span + span::before {
  color: rgba(190, 206, 226, 0.7);
}

body[data-theme-mode="DARK"] .listing-pricing-label,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-pricing-label {
  color: #b5c0cb;
}

body[data-theme-mode="DARK"] .listing-price-base,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-price-base {
  color: #96a5b6;
}

body[data-theme-mode="DARK"] .listing-discount,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-discount {
  color: #8fbbe0;
}

body[data-theme-mode="DARK"] .listing-price-final,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-price-final {
  color: #ff7d7d;
}

body[data-theme-mode="DARK"] .listing-price-regular {
  color: #f0f4f8;
}

body[data-theme-mode="DARK"] .listing-card-footer {
  border-top-color: #445060;
}

body[data-theme-mode="DARK"] .listing-media-btn,
body[data-theme-mode="DARK"] .listing-mail-btn,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-media-btn,
body[data-theme-mode="DARK"] .listing-card.is-active .listing-mail-btn {
  border-color: #556173;
  background: #39424d;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .listing-row {
  border-bottom-color: #3b4450;
}

body[data-theme-mode="DARK"] .listing-row.is-active {
  border-color: #4a5563;
}

body[data-theme-mode="DARK"] .listing-row-title,
body[data-theme-mode="DARK"] .listing-row.is-active .listing-row-title {
  color: #eef3f8;
}

body[data-theme-mode="DARK"] .listing-row-meta,
body[data-theme-mode="DARK"] .listing-row-pzt .listing-row-meta {
  color: #b5c0cb;
}

body[data-theme-mode="DARK"] .listing-row-distance {
  color: #d5e2ef;
}

body[data-theme-mode="DARK"] .listing-section-title {
  color: #b9c8d8;
}

body[data-theme-mode="DARK"] .mobile-controls-tab.is-active {
  color: var(--on-color-dark);
}

body[data-theme-mode="DARK"] .building-picker {
  border-color: var(--accent);
  background: var(--accent);
}

body[data-theme-mode="DARK"] .building-picker-label,
body[data-theme-mode="DARK"] .building-picker-key,
body[data-theme-mode="DARK"] .building-picker-value,
body[data-theme-mode="DARK"] .building-picker-floor-title {
  color: var(--on-accent);
  text-shadow: none;
}

body[data-theme-mode="DARK"] .building-chip {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.78);
  color: var(--on-color-dark);
  text-shadow: none;
}

body[data-theme-mode="DARK"] .building-chip:hover {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.9);
  color: var(--on-color-dark);
}

body[data-theme-mode="DARK"] .building-chip.is-active {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body[data-theme-mode="DARK"] .building-chip-back {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.56);
  color: var(--on-color-dark);
}

body[data-theme-mode="DARK"] .badge.status-available,
body[data-theme-mode="DARK"] .badge.status-reserved,
body[data-theme-mode="DARK"] .badge.status-sold,
body[data-theme-mode="DARK"] .badge.status-building,
body[data-theme-mode="DARK"] .badge.status-location {
  color: var(--on-color-dark);
  text-shadow: none;
}

body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature {
  --info-feature-fill: #ff7a86;
  background: var(--info-feature-fill);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.16);
}

body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature::after,
body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature.mobile-label-pos-right::after,
body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature.mobile-label-pos-left::after {
  background: var(--info-feature-fill);
}

body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature .location-hotspot-title,
body[data-theme-mode="DARK"] .location-hotspot-link.is-info-feature .location-hotspot-meta {
  color: #ffffff;
  text-shadow: none;
}

body[data-theme-mode="DARK"] .location-hotspot-link.is-active .location-hotspot-status-band,
body[data-theme-mode="DARK"] .location-hotspot-link.is-interactive-selected .location-hotspot-status-band {
  color: #ffffff;
  text-shadow: none;
}

body[data-theme-mode="DARK"] .location-hotspot-link.is-investment.is-active .location-hotspot-status-band,
body[data-theme-mode="DARK"] .location-hotspot-link.is-investment.is-interactive-selected .location-hotspot-status-band {
  color: var(--on-color-dark);
}

body[data-theme-mode="DARK"] .modal-backdrop {
  background: rgba(5, 8, 12, 0.56);
  backdrop-filter: blur(4px);
}

body[data-theme-mode="DARK"] .modal-card,
body[data-theme-mode="DARK"] .gallery-modal-card,
body[data-theme-mode="DARK"] .apartment-media-modal-card {
  border-color: #3c4653;
  background: linear-gradient(180deg, rgba(38, 38, 38, 0.98) 0%, rgba(31, 31, 31, 0.98) 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.38);
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .modal-card h2,
body[data-theme-mode="DARK"] .modal-subtitle,
body[data-theme-mode="DARK"] #visualizationsModal .modal-subtitle,
body[data-theme-mode="DARK"] .gallery-empty,
body[data-theme-mode="DARK"] .gallery-counter,
body[data-theme-mode="DARK"] #leadModal .lead-status,
body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-status,
body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-details {
  color: #d8e3ef;
}

body[data-theme-mode="DARK"] .external-mode-stage,
body[data-theme-mode="DARK"] .gallery-media-wrap,
body[data-theme-mode="DARK"] #leadModal .lead-form-shell {
  border-color: #3c4653;
  background: #262c33;
}

body[data-theme-mode="DARK"] .apartment3d-room-panel {
  border-color: #3c4653;
  background: #222933;
}

body[data-theme-mode="DARK"] .apartment3d-card-heading,
body[data-theme-mode="DARK"] .apartment3d-room-total,
body[data-theme-mode="DARK"] .apartment3d-card-note {
  border-color: #3c4653;
}

body[data-theme-mode="DARK"] .apartment3d-room-row-type,
body[data-theme-mode="DARK"] .apartment3d-card-note {
  color: #9cadc0;
}

body[data-theme-mode="DARK"] .apartment3d-card-title,
body[data-theme-mode="DARK"] .apartment3d-section-title,
body[data-theme-mode="DARK"] .apartment3d-room-row-name,
body[data-theme-mode="DARK"] .apartment3d-room-total,
body[data-theme-mode="DARK"] .apartment3d-room-summary,
body[data-theme-mode="DARK"] .apartment3d-card-note h4 {
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .apartment3d-room-row {
  border-color: #3c4653;
}

body[data-theme-mode="DARK"] .apartment3d-room-row-area {
  color: #d8e3ef;
}

body[data-theme-mode="DARK"] .apartment3d-room-total span {
  color: #9cadc0;
}

body[data-theme-mode="DARK"] .gallery-loading {
  background: rgba(22, 28, 36, 0.82);
}

body[data-theme-mode="DARK"] .gallery-loading .loader-text {
  color: #d8e3ef;
}

body[data-theme-mode="DARK"] .gallery-nav-btn {
  border-color: #556173;
  background: rgba(44, 52, 64, 0.86);
  color: #edf3fb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body[data-theme-mode="DARK"] .gallery-nav-btn:hover {
  border-color: #6a788c;
  background: rgba(52, 61, 74, 0.94);
  color: #ffffff;
}

body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar {
  border-color: var(--accent);
  background: var(--accent);
}

body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar .list-investment {
  color: var(--on-accent);
}

body[data-theme-mode="DARK"] #apartment2dModal .apartment2d-download-inline,
body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-close-inline {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: var(--on-accent);
}

body[data-theme-mode="DARK"] #apartment2dModal .apartment2d-download-inline:hover,
body[data-theme-mode="DARK"] :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-close-inline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.22);
  color: var(--on-accent);
}

body[data-theme-mode="DARK"] #apartment2dModal .apartment2d-download-inline.is-disabled,
body[data-theme-mode="DARK"] #apartment2dModal .apartment2d-download-inline[aria-disabled="true"] {
  color: rgba(13, 22, 35, 0.54);
}

body[data-theme-mode="DARK"] .lead-form input,
body[data-theme-mode="DARK"] .lead-form textarea,
body[data-theme-mode="DARK"] #leadModal .lead-form input,
body[data-theme-mode="DARK"] #leadModal .lead-form textarea {
  border-color: #4b5663;
  background: #2c3440;
  color: #edf3fb;
}

body[data-theme-mode="DARK"] .lead-form input::placeholder,
body[data-theme-mode="DARK"] .lead-form textarea::placeholder,
body[data-theme-mode="DARK"] #leadModal .lead-form input::placeholder,
body[data-theme-mode="DARK"] #leadModal .lead-form textarea::placeholder {
  color: #97a7b9;
}

body[data-theme-mode="DARK"] .lead-form input:focus,
body[data-theme-mode="DARK"] .lead-form textarea:focus,
body[data-theme-mode="DARK"] #leadModal .lead-form input:focus,
body[data-theme-mode="DARK"] #leadModal .lead-form textarea:focus {
  background: #313944;
  box-shadow: 0 0 0 3px rgba(47, 107, 143, 0.22);
}

body[data-theme-mode="DARK"] #leadModal .lead-form .btn,
body[data-theme-mode="DARK"] .btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

body[data-theme-mode="DARK"] #leadModal .lead-form .btn:hover,
body[data-theme-mode="DARK"] .btn-accent:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: var(--on-accent-strong);
}

.topbar {
  width: calc(100% - 1.6rem);
  max-width: none;
  margin: 0.8rem auto;
  padding: 0.9rem 1rem;
  border: 1px solid #cfdbeb;
  border-radius: 16px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f8ff 100%);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 700;
  color: #f7fbff;
  background: linear-gradient(160deg, var(--accent), var(--accent-strong));
}

.brand-name {
  margin: 0;
  font-size: calc(var(--fs-lead) * var(--font-scale));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-sub {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: calc(var(--fs-small) * var(--font-scale));
  font-weight: 600;
  letter-spacing: -0.005em;
}

.topbar-link {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #bdd0e6;
  background: #f2f7ff;
  color: #1b4568;
  font-size: calc(var(--fs-small) * var(--font-scale));
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-rail {
  align-self: start;
  border: 1px solid #a6b2c3;
  border-left: 0;
  border-radius: 0 20px 20px 0;
  background: #f7f9f9;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  margin-left: -1px;
}

.brand-rail-tag {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  padding: 0.34rem 0.06rem 0.46rem;
  overflow: hidden;
}

.brand-rail-mark {
  order: 2;
  width: 1.44rem;
  height: 1.44rem;
  border-radius: 8px;
  font-size: calc(0.56rem * var(--font-scale));
}

.brand-rail-name {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  line-height: 1;
  white-space: nowrap;
}

.brand-rail-name {
  order: 1;
  color: var(--accent);
  font-size: calc(0.96rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0.008em;
  text-transform: none;
  text-shadow: none;
}

.brand-rail-link {
  text-decoration: none;
}

.brand-rail-link:hover {
  color: var(--accent-strong);
}

.app-shell {
  width: min(calc(100% - 1.6rem), 2000px);
  max-width: 2000px;
  margin: 0.8rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px 430px;
  gap: 0;
  height: calc(100vh - 1.6rem);
  height: calc(100dvh - 1.6rem);
  align-items: stretch;
}

.viewer-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.viewer-card {
  position: relative;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px 0 0 20px;
  border: 1px solid #cfdbeb;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 0;
  height: auto;
}

.viewer-card::before,
.viewer-card::after {
  content: none;
}

.viewer-info-stack {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 4;
  display: grid;
  gap: 0.36rem;
  width: fit-content;
  max-width: min(88%, 760px);
}

.viewer-stage {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  border-radius: 20px 0 0 20px;
  overflow: hidden;
  border: 0;
  transition: background 0.24s ease;
  z-index: 1;
}

.viewer-frame-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.viewer-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.tracking-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  user-select: none;
  z-index: 2;
}

.tracking-overlay-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  user-select: none;
  z-index: 2;
}

.tracking-overlay-svg[data-render-style="VIEW"] .tracking-overlay-polygon,
.tracking-overlay-svg[data-render-style="VIEW"] .tracking-overlay-polygon:hover,
.tracking-overlay-svg[data-render-style="VIEW"] .tracking-overlay-polygon.is-active {
  fill-opacity: 0 !important;
  stroke-opacity: 0 !important;
  stroke-width: 0 !important;
  filter: none !important;
}

.tracking-overlay-polygon {
  pointer-events: auto;
  cursor: pointer;
  vector-effect: non-scaling-stroke;
  transition:
    fill-opacity 0.14s ease,
    stroke-opacity 0.14s ease,
    stroke-width 0.14s ease,
    filter 0.14s ease;
}

.tracking-overlay-polygon:hover {
  fill-opacity: 0.24;
  stroke-opacity: 0.96;
  stroke-width: 2.1;
  filter: saturate(118%) brightness(1.05);
}

.tracking-overlay-polygon.is-active {
  fill-opacity: 0.3;
  stroke-opacity: 1;
  stroke-width: 3.2;
  filter: saturate(126%) brightness(1.06);
}

.tracking-overlay-polygon.status-available.is-active {
  filter: drop-shadow(0 0 10px rgba(78, 148, 50, 0.32));
}

.tracking-overlay-polygon.status-reserved.is-active {
  filter: drop-shadow(0 0 10px rgba(247, 127, 0, 0.32));
}

.tracking-overlay-polygon.status-sold.is-active {
  filter: drop-shadow(0 0 10px rgba(199, 50, 50, 0.32));
}

.tracking-overlay-polygon.status-building.is-active,
.tracking-overlay-polygon.status-location.is-active {
  filter: drop-shadow(0 0 10px rgba(6, 62, 92, 0.3));
}

.viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 0.45rem;
  background: rgba(17, 36, 59, 0.18);
  pointer-events: none;
}

.viewer-loading[hidden] {
  display: none !important;
}

.viewer-transition-overlay {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 28, 44, 0.2);
  -webkit-backdrop-filter: blur(0) brightness(1);
  backdrop-filter: blur(0) brightness(1);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    backdrop-filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.viewer-transition-overlay.is-active {
  opacity: 1;
  -webkit-backdrop-filter: blur(10px) brightness(0.86);
  backdrop-filter: blur(10px) brightness(0.86);
  transition-duration: 0.16s;
}

.viewer-transition-overlay[hidden] {
  display: none !important;
}

@keyframes viewerIntroSoftReveal {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.78;
  }
}

@keyframes viewerIntroBrandReveal {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  16% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  58% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
}

.viewer-intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  opacity: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 44%, rgba(19, 31, 45, 0.98) 0%, rgba(7, 13, 22, 0.99) 54%, #020408 100%);
  animation: viewerIntroSoftReveal 1.6s linear forwards;
  will-change: opacity;
}

.viewer-intro-brand {
  position: absolute;
  left: var(--intro-brand-x, 50%);
  top: var(--intro-brand-y, 50%);
  display: grid;
  gap: 0.72rem;
  min-width: min(50%, 300px);
  text-align: center;
  transform: translate(-50%, -50%);
  animation: viewerIntroBrandReveal 2.4s linear forwards;
  color: rgba(246, 250, 255, 0.96);
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.viewer-intro-title {
  margin: 0;
  font-size: clamp(0.71rem, 1.23vw, 1.43rem);
  line-height: 1;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: 0.018em;
}

.viewer-intro-signature {
  margin: 0;
  font-size: clamp(0.36rem, 0.49vw, 0.5rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
  color: rgba(221, 232, 243, 0.78);
}

.viewer-intro-overlay.is-fading {
  opacity: 0;
  animation: none;
}

.viewer-intro-overlay[hidden] {
  display: none !important;
}

.loader-text {
  margin: 0;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.48);
  font-size: calc(0.78rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
}

.loader-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  animation: loaderSpin 0.84s linear infinite;
}

.loader-spinner-sm {
  width: 1.6rem;
  height: 1.6rem;
  border-width: 2px;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.viewer-stage.day-mode {
  background: linear-gradient(160deg, #edf4ff 0%, #e3ecf9 45%, #d9e4f3 100%);
}

.viewer-stage.night-mode {
  background: linear-gradient(160deg, #dde6f3 0%, #d1dceb 50%, #c6d2e2 100%);
}

.viewer-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 23%, rgba(255, 255, 255, 0.85) 0 70px, transparent 72px),
    linear-gradient(0deg, rgba(77, 130, 184, 0.14), rgba(77, 130, 184, 0)),
    repeating-linear-gradient(
      100deg,
      rgba(118, 146, 182, 0.12),
      rgba(118, 146, 182, 0.12) 2px,
      transparent 2px,
      transparent 60px
    );
}

.viewer-stage.has-media-frame::before {
  opacity: 0.14;
}

.viewer-stage.night-mode::before {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 237, 165, 0.2) 0 45px, transparent 48px),
    linear-gradient(0deg, rgba(70, 93, 122, 0.18), rgba(70, 93, 122, 0)),
    repeating-linear-gradient(
      100deg,
      rgba(122, 146, 176, 0.12),
      rgba(122, 146, 176, 0.12) 2px,
      transparent 2px,
      transparent 60px
    );
}

.viewer-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.viewer-stage.has-media-frame::after {
  opacity: 0.34;
}

.viewer-stage.season-spring::after {
  background: linear-gradient(180deg, rgba(170, 233, 191, 0.12), rgba(170, 233, 191, 0));
}

.viewer-stage.season-summer::after {
  background: linear-gradient(180deg, rgba(255, 206, 95, 0.12), rgba(255, 206, 95, 0));
}

.viewer-stage.season-winter::after {
  background: linear-gradient(180deg, rgba(170, 213, 255, 0.14), rgba(170, 213, 255, 0));
}

.viewer-overlay {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 0.16rem;
  padding: 0.38rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(178, 198, 224, 0.7);
  color: #0d1623;
  background: rgba(255, 255, 255, 0.57);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  width: fit-content;
  max-width: 100%;
}

.viewer-overlay[hidden] {
  display: none !important;
}

.viewer-stage.night-mode .viewer-overlay {
  color: #0d1623;
}

.spin-compass {
  --compass-step-px: 9px;
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 1rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: grid;
  justify-items: stretch;
  gap: 0.18rem;
  min-width: 206px;
  padding: 0.34rem 0.42rem 0.28rem;
  border: 1px solid rgba(178, 198, 224, 0.7);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.57);
  box-shadow: 0 10px 28px rgba(10, 20, 35, 0.14);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  pointer-events: none;
}

.spin-compass[hidden] {
  display: none !important;
}

.spin-compass-track-wrap {
  position: relative;
  width: 100%;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(185, 205, 230, 0.74);
  background: rgba(244, 248, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 18px rgba(5, 18, 32, 0.08);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 6%,
    rgba(0, 0, 0, 0.42) 12%,
    rgba(0, 0, 0, 0.78) 18%,
    #000000 26%,
    #000000 74%,
    rgba(0, 0, 0, 0.78) 82%,
    rgba(0, 0, 0, 0.42) 88%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 6%,
    rgba(0, 0, 0, 0.42) 12%,
    rgba(0, 0, 0, 0.78) 18%,
    #000000 26%,
    #000000 74%,
    rgba(0, 0, 0, 0.78) 82%,
    rgba(0, 0, 0, 0.42) 88%,
    rgba(0, 0, 0, 0.12) 94%,
    transparent 100%
  );
}

.spin-compass-track {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
  transition: none;
}

.spin-compass-cell {
  position: relative;
  flex: 0 0 var(--compass-step-px);
  width: var(--compass-step-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  font-size: calc(0.49rem * var(--font-scale));
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: rgba(41, 73, 105, 0.95);
  text-transform: uppercase;
  text-shadow: none;
}

.spin-compass-cell::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 1px;
  height: 9px;
  border-radius: 999px;
  background: rgba(36, 68, 101, 0.58);
  transform: translateX(-50%);
}

.spin-compass-cell.is-major::after {
  width: 0;
  height: 0;
  bottom: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 7px solid rgba(36, 68, 101, 0.9);
  background: transparent;
}

.spin-compass-cell.is-major {
  padding-bottom: 12px;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.spin-compass-cell.is-major.is-north::after {
  border-top-color: #c73232;
}

.spin-compass-cell.is-minor {
  color: transparent;
  font-size: 0;
}

.spin-compass-cell.is-minor::after {
  width: 1px;
  height: 6px;
  bottom: 4px;
  border-radius: 999px;
  background: rgba(36, 68, 101, 0.42);
}

.spin-compass-pointer {
  justify-self: center;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid var(--accent);
  margin-top: -2px;
  filter: drop-shadow(0 2px 4px rgba(5, 18, 32, 0.18));
}

.spin-compass-text {
  margin: 0;
  text-align: center;
  font-size: calc(0.52rem * var(--font-scale));
  line-height: 1;
  font-weight: 800;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: none;
}

body[data-theme-mode="DARK"] .spin-compass {
  border-color: rgba(78, 92, 111, 0.86);
  background: rgba(38, 38, 38, 0.74);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

body[data-theme-mode="DARK"] .spin-compass-track-wrap {
  border-color: rgba(85, 97, 115, 0.82);
  background: rgba(31, 31, 31, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 18px rgba(0, 0, 0, 0.16);
}

body[data-theme-mode="DARK"] .spin-compass-cell {
  color: rgba(219, 231, 244, 0.94);
}

body[data-theme-mode="DARK"] .spin-compass-cell::after {
  background: rgba(219, 231, 244, 0.52);
}

body[data-theme-mode="DARK"] .spin-compass-cell.is-major::after {
  border-top-color: rgba(219, 231, 244, 0.92);
}

body[data-theme-mode="DARK"] .spin-compass-cell.is-major.is-north::after {
  border-top-color: #c73232;
}

body[data-theme-mode="DARK"] .spin-compass-cell.is-minor::after {
  background: rgba(219, 231, 244, 0.34);
}

.viewer-title {
  margin: 0;
  font-size: calc(var(--fs-body) * var(--font-scale) * 0.88);
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.15;
  color: #0d1623;
}

#selectedMeta {
  margin: 0;
  font-size: calc(0.74rem * var(--font-scale));
  font-weight: 600;
  letter-spacing: -0.004em;
  color: #0d1623;
  line-height: 1.2;
  background: rgba(10, 20, 33, 0.62);
  color: #ffffff;
  padding: 0.08rem 0.28rem;
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
}

.viewer-control-panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  --viewer-panel-gap: 0.34rem;
  pointer-events: none;
}

.viewer-nav-dock,
.viewer-utility-dock {
  position: absolute;
  pointer-events: auto;
  border-radius: 12px;
  border: 1px solid rgba(178, 198, 224, 0.7);
  background: rgba(255, 255, 255, 0.57);
  box-shadow: 0 10px 28px rgba(10, 20, 35, 0.14);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
}

.viewer-nav-dock {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 10rem);
  display: grid;
  gap: 0.28rem;
  padding: 0.38rem;
}

.viewer-utility-dock {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 0.38rem;
}

.viewer-utility-dock:not(:has(.icon-control-group:not([hidden]))) {
  display: none;
}

.viewer-powered-link {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-decoration: none;
  font-size: calc(0.94rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: -0.002em;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(8, 20, 35, 0.72);
}

.viewer-powered-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.viewer-corner-controls {
  display: grid;
  grid-auto-flow: row;
  align-items: stretch;
  gap: var(--viewer-panel-gap);
  width: auto;
}

.viewer-mode-panel-title {
  margin: 0;
  padding: 0 0.1rem;
  text-align: center;
  color: #2f547a;
  font-size: calc(0.62rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.icon-control-group {
  display: inline-flex;
  gap: 0.36rem;
  padding: 0.28rem;
  border-radius: 10px;
  border: 1px solid rgba(178, 198, 224, 0.85);
  background: rgba(255, 255, 255, 0.9);
}

.viewer-control-panel .icon-control-group {
  border: 0;
  background: transparent;
  padding: 0;
}

.viewer-nav-dock .viewer-mode-panel-title {
  color: #2b4e75;
}

.icon-control-group.with-label {
  display: grid;
  gap: 0.24rem;
  padding: 0.34rem 0.34rem 0.3rem;
}

.viewer-control-panel .icon-control-group.with-label {
  min-width: 0;
  gap: 0.2rem;
  padding: 0;
}

.icon-control-buttons {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--viewer-panel-gap);
  width: 100%;
}

.icon-control-label {
  margin: 0;
  text-align: center;
  color: #365e8f;
  font-size: calc(0.68rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.icon-control-group.is-disabled {
  opacity: 0.48;
}

#timeModeGroup[hidden],
#seasonGroup[hidden],
#overlayViewerControl[hidden],
#infoViewerControl[hidden] {
  display: none !important;
}

.icon-toggle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid #b9cde6;
  background: #f4f8ff;
  color: #294969;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.panel-icon-svg {
  width: 1rem;
  height: 1rem;
  display: block;
  margin: auto;
  fill: currentColor;
}

.overlay-toggle-icon {
  display: none;
}

.icon-toggle-btn[data-overlay-toggle="VISIBLE"] .overlay-toggle-icon-hide,
.icon-toggle-btn[data-overlay-toggle="HIDDEN"] .overlay-toggle-icon-show {
  display: block;
}

.viewer-control-panel .icon-toggle-btn {
  width: 100%;
  min-width: 0;
}

.viewer-utility-dock .icon-control-buttons {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-auto-rows: minmax(0, auto);
  width: auto;
}

.viewer-utility-dock .icon-toggle-btn {
  width: 2.1rem;
  height: 2.1rem;
}

.viewer-nav-dock .viewer-view-group {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--viewer-panel-gap);
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.viewer-utility-dock .icon-control-group.with-label {
  gap: 0;
}

.viewer-utility-dock #infoViewerControl {
  position: relative;
}

.viewer-utility-dock .icon-control-label {
  display: none;
}

.viewer-legal-popover {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.58rem);
  z-index: 20;
  width: min(15.5rem, calc(100vw - 2rem));
  max-height: min(68vh, 34rem);
  transform: translateY(-50%);
  padding: 0.82rem 0.9rem 0.86rem;
  border: 1px solid rgba(178, 198, 224, 0.62);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.74);
  color: #14273d;
  box-shadow: 0 18px 42px rgba(10, 20, 35, 0.2);
  backdrop-filter: blur(38px) saturate(126%) brightness(1.1);
  -webkit-backdrop-filter: blur(38px) saturate(126%) brightness(1.1);
  text-align: left;
  pointer-events: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.viewer-legal-popover[data-expanded="true"] {
  width: min(19rem, calc(100vw - 2rem));
}

.viewer-legal-popover[hidden] {
  display: none !important;
}

.viewer-legal-popover::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.36rem;
  width: 0.68rem;
  height: 0.68rem;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid rgba(178, 198, 224, 0.62);
  border-right: 1px solid rgba(178, 198, 224, 0.62);
  background: rgba(255, 255, 255, 0.74);
}

.viewer-legal-popover-title,
.viewer-legal-popover-summary,
.viewer-legal-popover p {
  margin: 0;
}

.viewer-legal-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.62rem;
}

.viewer-legal-popover-title {
  color: var(--accent);
  font-size: calc(0.78rem * var(--font-scale));
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex: 1 1 auto;
}

.viewer-legal-popover-summary {
  margin-top: 0.35rem;
  color: #476580;
  font-size: calc(0.7rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.38;
}

.viewer-legal-popover-details {
  margin-top: 0.56rem;
  padding-top: 0.56rem;
  border-top: 1px solid rgba(178, 198, 224, 0.42);
}

.viewer-legal-popover-details[hidden] {
  display: none !important;
}

.viewer-legal-popover p:not(.viewer-legal-popover-title):not(.viewer-legal-popover-summary) {
  margin-top: 0.46rem;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 600;
  line-height: 1.35;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.viewer-legal-popover a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.viewer-legal-popover-expand {
  flex: 0 0 auto;
  width: 1.38rem;
  height: 1.38rem;
  border: 1px solid rgba(178, 198, 224, 0.62);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.viewer-legal-popover-expand:hover {
  border-color: rgba(6, 62, 92, 0.62);
  background: rgba(255, 255, 255, 0.46);
}

.viewer-legal-popover-expand svg {
  width: 0.76rem;
  height: 0.76rem;
  display: block;
  transform: rotate(0deg);
  transition: transform 0.18s ease;
}

.viewer-legal-popover[data-expanded="true"] .viewer-legal-popover-expand svg {
  transform: rotate(180deg);
}

.icon-toggle-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.icon-toggle-btn:disabled {
  cursor: not-allowed;
}

.icon-toggle-btn.is-locked {
  opacity: 0.48;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

body.is-apartment3d-modal-open .viewer-frame-image,
body.is-apartment3d-modal-open .viewer-frame-canvas,
body.is-apartment3d-modal-open .tracking-overlay-canvas,
body.is-apartment3d-modal-open .tracking-overlay-svg,
body.is-apartment3d-modal-open .hotspot-layer,
body.is-apartment3d-modal-open .viewer-overlay,
body.is-apartment3d-modal-open .viewer-loading,
body.is-apartment3d-modal-open .spin-compass {
  display: none !important;
}

body.is-apartment3d-modal-open .viewer-stage::before,
body.is-apartment3d-modal-open .viewer-stage::after {
  opacity: 0 !important;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid #fff;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  pointer-events: auto;
  transition:
    transform 0.14s ease,
    box-shadow 0.14s ease,
    width 0.14s ease,
    height 0.14s ease;
}

.hotspot.kind-vr {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent);
  transform: translate(-50%, -100%);
  width: 2.32rem;
  height: 2.32rem;
  box-shadow: none;
}

.hotspot.kind-info-feature {
  display: none;
}

.hotspot.kind-info-feature::after {
  content: none;
}

.hotspot.kind-info-feature.is-active,
.hotspot.kind-info-feature.is-interactive-selected {
  display: none;
}

.hotspot.kind-info-feature.is-active::after,
.hotspot.kind-info-feature.is-interactive-selected::after {
  content: none;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1px dashed currentColor;
  opacity: 0.5;
}

.hotspot.kind-vr::before {
  content: none;
}

.hotspot.kind-vr::after {
  content: none;
}

.hotspot.kind-vr.is-active::before,
.hotspot.kind-vr.is-interactive-selected::before {
  content: none;
}

.hotspot.kind-vr.is-active::after,
.hotspot.kind-vr.is-interactive-selected::after {
  content: none;
}

.hotspot.kind-vr .vr360-symbol {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hotspot.kind-vr .vr360-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
}

.hotspot.kind-vr .vr360-pin-shape,
.hotspot.kind-vr .vr360-pin-base {
  fill: currentColor;
}

.hotspot.kind-vr .vr360-badge {
  display: none;
}

.hotspot:not(.kind-vr):not(.kind-info-feature):not(.is-active):not(.is-interactive-selected) {
  width: 0.9rem;
  min-width: 0.9rem;
  max-width: 0.9rem;
  height: 0.9rem;
  min-height: 0.9rem;
  max-height: 0.9rem;
  aspect-ratio: 1 / 1;
  border-radius: 50% !important;
  box-sizing: border-box;
  border-width: 1.6px;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hotspot:not(.kind-vr):not(.kind-info-feature):not(.is-active):not(.is-interactive-selected)::after {
  content: none;
}

.hotspot.status-available {
  color: var(--available);
  background: var(--available);
}

.hotspot.status-reserved {
  color: var(--reserved);
  background: var(--reserved);
}

.hotspot.status-sold {
  color: var(--sold);
  background: var(--sold);
}

.hotspot.status-location {
  color: #f7f9f9;
  background: #f7f9f9;
}

.hotspot.status-building {
  color: var(--accent);
  background: var(--accent);
}

.hotspot.kind-info-feature.status-building {
  color: rgba(255, 255, 255, 0.98);
  background: rgba(255, 255, 255, 0.98);
}

.hotspot.status-vr360 {
  color: var(--vr360);
  background: var(--vr360);
}

.hotspot.kind-vr.status-vr360 {
  color: var(--vr360);
  background: transparent;
}

.hotspot.is-active:not(.kind-info-feature):not(.kind-vr) {
  width: 1.15rem;
  height: 1.15rem;
}

.hotspot.status-location.is-active {
  width: 1.24rem;
  height: 1.24rem;
  color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 119, 222, 0.28);
}

.hotspot.status-building.is-active {
  width: 1.24rem;
  height: 1.24rem;
  color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 119, 222, 0.28);
}

.hotspot.kind-vr.is-active {
  width: 2.56rem;
  height: 2.56rem;
}

.hotspot.kind-vr.is-interactive-selected {
  width: 2.56rem;
  height: 2.56rem;
  box-shadow: none;
}

@keyframes vrHotspotFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(-3px);
  }
  70% {
    transform: translateY(2px);
  }
}

.hotspot.kind-vr .vr360-float {
  animation: none;
  transform-origin: 50% 50%;
}

@media (prefers-reduced-motion: reduce) {
  .hotspot.kind-vr .vr360-float {
    animation: none;
  }
}

.hotspot.is-interactive-selected:not(.kind-info-feature):not(.kind-vr) {
  z-index: 4;
  width: 1.34rem;
  height: 1.34rem;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.78),
    0 0 0 8px rgba(255, 255, 255, 0.22);
}

.hotspot.is-interactive-selected:not(.kind-info-feature):not(.kind-vr)::after {
  inset: -12px;
  border: 2px solid currentColor;
  border-style: solid;
  opacity: 0.92;
  animation: hotspotPulse 1.35s ease-in-out infinite;
}

.hotspot.is-pink-active:not(.kind-info-feature):not(.kind-vr) {
  z-index: 4;
  width: 1.24rem;
  height: 1.24rem;
  color: #ff7a86;
  background: #ff7a86;
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(255, 122, 134, 0.22);
}

.hotspot.is-pink-active:not(.kind-info-feature):not(.kind-vr)::after {
  content: none;
}

.location-hotspot-link {
  position: absolute;
  z-index: 6;
  --hotspot-label-lift: 30px;
  --hotspot-stem-length: 24px;
  --hotspot-side-gap: 20px;
  --hotspot-side-stem-clearance: 6px;
  --hotspot-bottom-gap: 16px;
  --hotspot-status-color: #48505f;
  transform: translate(-50%, calc(-100% - var(--hotspot-label-lift)));
  transform-origin: 50% 100%;
  border: 0 solid transparent;
  background: rgba(246, 250, 255, 0.96);
  color: #111821;
  border-radius: 0.72rem;
  padding: 0.44rem 0.56rem 0.46rem;
  display: grid;
  gap: 0.14rem;
  justify-items: start;
  text-align: left;
  font-family: inherit;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  pointer-events: auto;
  min-width: 8.8rem;
  max-width: min(56vw, 19rem);
  white-space: normal;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.12s ease;
}

.location-hotspot-link.is-investment {
  z-index: 9;
}

.location-hotspot-link.is-info-feature {
  --hotspot-status-color: #70798b;
  --hotspot-side-gap: 18px;
  --hotspot-bottom-gap: 14px;
  --info-feature-offset-x: 10px;
  --info-feature-offset-y: calc(-100% - 0.7rem);
  --info-feature-fill: #ff7a86;
  --info-feature-tail-height: 1.26rem;
  min-width: 0;
  max-width: min(24vw, 17rem);
  min-height: 0;
  padding: 0.28rem 0.82rem 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: none;
}

.location-hotspot-link.is-info-feature::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--info-feature-tail-height)) 0;
  z-index: -1;
  background: var(--info-feature-fill);
  -webkit-mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 18px rgba(9, 17, 28, 0.14));
}

.info-feature-anchor-line {
  position: absolute;
  z-index: 5;
  left: 0;
  top: 0;
  width: 0;
  height: 1.4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  transform-origin: 0 50%;
  pointer-events: none;
}

.location-hotspot-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: 1.2px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  opacity: 1;
  box-shadow: none;
  pointer-events: none;
}

.location-hotspot-link.is-info-feature::after {
  content: none;
}

.hotspot-layer.is-layouting .location-hotspot-link {
  transition: none !important;
}

.location-hotspot-link.mobile-label-pos-top {
  transform: translate(-50%, calc(-100% - var(--hotspot-label-lift)));
}

.location-hotspot-link.mobile-label-pos-top::after {
  left: 50%;
  right: auto;
  top: 100%;
  bottom: auto;
  transform: translateX(-50%);
  width: 1px;
  height: var(--hotspot-stem-length);
}

.location-hotspot-link.mobile-label-pos-right {
  transform: translate(var(--hotspot-side-gap), -50%);
}

.location-hotspot-link.mobile-label-pos-right::after {
  content: none;
}

.location-hotspot-link.mobile-label-pos-left {
  transform: translate(calc(-100% - var(--hotspot-side-gap)), -50%);
}

.location-hotspot-link.mobile-label-pos-left::after {
  content: none;
}

.location-hotspot-link.is-info-feature.mobile-label-pos-right::after {
  content: none;
}

.location-hotspot-link.is-info-feature.mobile-label-pos-right::before {
  content: "";
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left::after {
  content: none;
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left::before {
  content: "";
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-right {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left::before {
  -webkit-mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V90L86 47H4Q0 47 0 43V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V90L86 47H4Q0 47 0 43V4Q0 0 4 0Z'/%3E%3C/svg%3E");
}

.pzt-feature-label {
  all: unset;
  position: absolute;
  z-index: 5;
  --info-feature-tail-height: 1.26rem;
  transform: translate(0, calc(-100% - var(--info-feature-tail-height)));
  transform-origin: 0 100%;
  min-width: 0;
  max-width: min(17rem, 24vw);
  padding: 0.28rem 0.82rem 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  cursor: pointer;
  pointer-events: auto;
  isolation: isolate;
  box-shadow: none;
}

.pzt-feature-label::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--info-feature-tail-height, 1.08rem)) 0;
  z-index: -1;
  background: #ff7a86;
  -webkit-mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 18px rgba(9, 17, 28, 0.18));
}

.pzt-feature-label-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
  color: #ffffff;
  text-align: center;
}

.pzt-feature-label.is-active::before,
.pzt-feature-label.is-interactive-selected::before {
  background: #ef4f67;
  filter: drop-shadow(0 10px 22px rgba(118, 20, 44, 0.28));
}

.pzt-feature-label.is-active,
.pzt-feature-label.is-interactive-selected {
  padding: 0.34rem 0.96rem 0.38rem;
}

.pzt-feature-label.is-active .pzt-feature-label-title,
.pzt-feature-label.is-interactive-selected .pzt-feature-label-title {
  font-size: calc(0.84rem * var(--font-scale));
  font-weight: 900;
}

.location-hotspot-link.mobile-label-pos-bottom {
  transform: translate(-50%, var(--hotspot-bottom-gap));
}

.location-hotspot-link.mobile-label-pos-bottom::after {
  left: 50%;
  right: auto;
  top: auto;
  bottom: 100%;
  transform: translateX(-50%);
  width: 1px;
  height: var(--hotspot-bottom-gap);
}

.location-hotspot-title {
  display: block;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.18;
  color: #121a27;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-hotspot-link.is-info-feature .location-hotspot-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  text-shadow: none;
  text-align: center;
  transform: none;
}

.location-hotspot-distance {
  display: block;
  font-size: calc(0.68rem * var(--font-scale));
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
  opacity: 1;
}

.location-hotspot-status-band {
  text-transform: uppercase;
}

.location-hotspot-link.is-active .location-hotspot-title,
.location-hotspot-link.is-interactive-selected .location-hotspot-title {
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.location-hotspot-link.is-active .location-hotspot-distance,
.location-hotspot-link.is-interactive-selected .location-hotspot-distance {
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.location-hotspot-meta {
  display: block;
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.15;
  color: #1c2638;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-hotspot-link.is-info-feature .location-hotspot-meta {
  font-size: calc(0.61rem * var(--font-scale));
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.location-hotspot-link.is-info-feature:not(.is-active):not(.is-interactive-selected) .location-hotspot-meta,
.location-hotspot-link.is-info-feature .location-hotspot-status-band {
  display: none;
}

.location-hotspot-link.status-location {
  --hotspot-status-color: #48505f;
  border-color: rgba(143, 152, 165, 0.95);
}

.location-hotspot-link.status-building {
  --hotspot-status-color: var(--accent);
  border-color: rgba(47, 76, 121, 0.95);
}

.location-hotspot-link.status-vr360 {
  --hotspot-status-color: var(--accent);
  border-color: rgba(47, 76, 121, 0.95);
}

.location-hotspot-link.status-available {
  --hotspot-status-color: var(--available);
  border-color: rgba(46, 179, 126, 0.95);
}

.location-hotspot-link.status-reserved {
  --hotspot-status-color: var(--reserved);
  border-color: rgba(212, 153, 21, 0.95);
}

.location-hotspot-link.status-sold {
  --hotspot-status-color: var(--sold);
  border-color: rgba(220, 87, 87, 0.95);
}

.location-hotspot-link.status-available .location-hotspot-distance {
  color: #2e8f66;
}

.location-hotspot-link.status-reserved .location-hotspot-distance {
  color: #9a7112;
}

.location-hotspot-link.status-sold .location-hotspot-distance {
  color: #b03838;
}

.location-hotspot-link.status-building .location-hotspot-distance,
.location-hotspot-link.status-vr360 .location-hotspot-distance {
  color: #2f4c79;
}

.location-hotspot-link.status-location .location-hotspot-distance {
  color: #48505f;
}

.location-hotspot-link.is-interactive-label.status-building,
.location-hotspot-link.is-interactive-label.status-vr360,
.location-hotspot-link.is-interactive-label.status-available,
.location-hotspot-link.is-interactive-label.status-reserved,
.location-hotspot-link.is-interactive-label.status-sold {
  background: rgba(246, 250, 255, 0.96);
  color: #111821;
}

.location-hotspot-link.is-interactive-label.is-info-feature.status-building {
  background: transparent;
  color: #ffffff;
}

.location-hotspot-link.is-interactive-label.status-building.is-active,
.location-hotspot-link.is-interactive-label.status-building.is-interactive-selected {
  border-color: rgba(47, 76, 121, 0.95);
}

.location-hotspot-link.is-interactive-label.status-vr360.is-active,
.location-hotspot-link.is-interactive-label.status-vr360.is-interactive-selected {
  border-color: rgba(47, 76, 121, 0.95);
}

.location-hotspot-link.is-interactive-label.status-available.is-active,
.location-hotspot-link.is-interactive-label.status-available.is-interactive-selected {
  border-color: rgba(46, 179, 126, 0.95);
}

.location-hotspot-link.is-interactive-label.status-reserved.is-active,
.location-hotspot-link.is-interactive-label.status-reserved.is-interactive-selected {
  border-color: rgba(212, 153, 21, 0.95);
}

.location-hotspot-link.is-interactive-label.status-sold.is-active,
.location-hotspot-link.is-interactive-label.status-sold.is-interactive-selected {
  border-color: rgba(220, 87, 87, 0.95);
}

.location-hotspot-link.is-interactive-label.is-active:not(.is-info-feature) {
  box-shadow: none;
}

.location-hotspot-link.is-active:not(.is-info-feature)::after {
  height: 22px;
}

.location-hotspot-link.is-interactive-label.is-interactive-selected:not(.is-info-feature) {
  z-index: 8;
  transform: translate(-50%, calc(-100% - var(--hotspot-label-lift)));
  border-width: 0;
  box-shadow: none;
  filter: none;
}

.location-hotspot-link.is-info-feature.is-active,
.location-hotspot-link.is-info-feature.is-interactive-selected {
  justify-items: start;
  text-align: left;
  --info-feature-fill: #ff6878;
  background: transparent;
  box-shadow: none;
}

.location-hotspot-link.is-info-feature.is-active::before,
.location-hotspot-link.is-info-feature.is-interactive-selected::before {
  background: var(--info-feature-fill);
  filter: drop-shadow(0 10px 22px rgba(5, 16, 29, 0.18));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-top.is-active,
.location-hotspot-link.is-info-feature.mobile-label-pos-top.is-interactive-selected {
  transform: translate(-50%, calc(-100% - var(--hotspot-label-lift)));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-right.is-active,
.location-hotspot-link.is-info-feature.mobile-label-pos-right.is-interactive-selected {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left.is-active,
.location-hotspot-link.is-info-feature.mobile-label-pos-left.is-interactive-selected {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-right {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}

.location-hotspot-link.is-info-feature.mobile-label-pos-left {
  transform: translate(var(--info-feature-offset-x), var(--info-feature-offset-y));
}


.location-hotspot-link.is-info-feature.mobile-label-pos-bottom.is-active,
.location-hotspot-link.is-info-feature.mobile-label-pos-bottom.is-interactive-selected {
  transform: translate(-50%, var(--hotspot-bottom-gap));
}

.location-hotspot-link.is-interactive-label.is-interactive-selected:not(.is-info-feature)::after {
  height: 22px;
}

.location-hotspot-link.is-active:not(.is-info-feature) {
  border-width: 0;
  box-shadow: none;
  justify-items: center;
  text-align: center;
}

.location-hotspot-link.is-interactive-selected:not(.is-info-feature) {
  justify-items: center;
  text-align: center;
}

.location-hotspot-link.is-active:not(.is-info-feature)::after,
.location-hotspot-link.is-interactive-selected:not(.is-info-feature)::after {
  background: var(--hotspot-status-color);
}

.location-hotspot-link.is-active .location-hotspot-status-band,
.location-hotspot-link.is-interactive-selected .location-hotspot-status-band {
  display: block;
  justify-self: stretch;
  width: calc(100% + 1.12rem);
  box-sizing: border-box;
  margin: 0.22rem -0.56rem -0.46rem;
  padding: 0.24rem 0.56rem 0.22rem;
  background: var(--hotspot-status-color);
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  text-align: center;
  letter-spacing: 0.045em;
  line-height: 1;
  border-radius: 0 0 0.72rem 0.72rem;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
}

.location-hotspot-link.is-building-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 11.8rem;
  max-width: min(22rem, 28vw);
  padding: 0;
  gap: 0;
  overflow: visible;
  border-radius: 0.78rem;
  background: rgba(255, 255, 255, 0.98);
  color: #13263d;
  text-align: center;
  box-shadow: 0 14px 28px rgba(12, 23, 38, 0.14);
}

.location-hotspot-link.is-building-summary::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: 1.2px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 1;
  box-shadow: none;
  pointer-events: none;
}

.location-hotspot-header-band {
  display: block;
  order: 3;
  width: 100%;
  box-sizing: border-box;
  padding: 0.26rem 0.72rem 0.24rem;
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  font-size: calc(0.62rem * var(--font-scale));
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1.05;
  text-transform: uppercase;
  border-radius: 0 0 0.78rem 0.78rem;
}

.location-hotspot-link.is-building-summary .location-hotspot-title {
  display: block;
  order: 1;
  padding: 0.48rem 0.82rem 0 0.82rem;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 900;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  line-height: 1.18;
  color: #102236;
  text-align: center;
}

.location-hotspot-link.is-building-summary .location-hotspot-meta {
  display: block;
  padding: 0.18rem 0.82rem 0.5rem 0.82rem;
  font-size: calc(0.62rem * var(--font-scale));
  font-weight: 800;
  line-height: 1.2;
  color: #4a607c;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  text-align: center;
}

.location-hotspot-building-stats {
  display: grid;
  order: 2;
  gap: 0.08rem;
  padding: 0.18rem 0.82rem 0.42rem 0.82rem;
}

.location-hotspot-building-stats-row {
  display: block;
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
  color: #4a607c;
  white-space: nowrap;
  text-align: center;
}

.location-hotspot-link.is-mobile-label-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 761px) {
  .location-hotspot-link.is-interactive-label:not(.is-active):not(.is-interactive-selected) {
    width: fit-content;
    min-width: 0;
    max-width: min(30vw, 240px);
  }

  .location-hotspot-link.is-interactive-label:not(.is-active):not(.is-interactive-selected) .location-hotspot-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@keyframes hotspotPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.94;
  }
  60% {
    transform: scale(1.05);
    opacity: 0.52;
  }
  100% {
    transform: scale(1.14);
    opacity: 0.08;
  }
}


.viewer-view-group {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--viewer-panel-gap);
  padding: 0;
  border-top: 0;
  min-width: 132px;
}

.viewer-control-panel .viewer-view-group {
  position: relative;
  border: 0;
  border-radius: 12px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: hidden;
}

.viewer-control-panel .viewer-view-group::before {
  content: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.viewer-control-panel .viewer-view-group > * {
  position: relative;
  z-index: 1;
}

.view-mode-btn {
  min-height: 2rem;
  min-width: max-content;
  width: auto;
  border-radius: 8px;
  border: 1px solid rgba(185, 205, 230, 0.72);
  background: rgba(244, 248, 255, 0.38);
  box-shadow: none;
  color: #244465;
  font-family: inherit;
  font-size: calc(0.8rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.004em;
  padding: 0.38rem 0.56rem;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px) saturate(112%);
  -webkit-backdrop-filter: blur(8px) saturate(112%);
}

.view-mode-btn:hover {
  background: rgba(244, 248, 255, 0.46);
  border-color: rgba(185, 205, 230, 0.82);
}

.view-mode-btn-line {
  display: block;
  white-space: nowrap;
}

.view-mode-btn[data-view="INTERACTIVE"] .view-mode-btn-line {
  display: inline;
}

.view-mode-btn[data-view="INTERACTIVE"] .view-mode-btn-line + .view-mode-btn-line {
  margin-left: 0.18rem;
}

.view-mode-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

.list-card {
  border-radius: 20px;
  border: 1px solid #cfdbeb;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.list-column {
  align-self: start;
  min-height: 0;
  margin-left: 1rem;
}

.list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.list-branding {
  display: flex;
  align-items: center;
  gap: 0.54rem;
  margin: 0 0 0.58rem;
}

.list-mobile-shell {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.investment-logo-wrap {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 10px;
  border: 1px solid #d5e0ee;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.investment-logo-wrap[hidden] {
  display: none !important;
}

.investment-logo {
  width: auto;
  height: auto;
  max-width: 1.72rem;
  max-height: 1.72rem;
  object-fit: contain;
  display: block;
}

.list-investment {
  margin: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0 0 0.24rem;
  border: 0;
  border-bottom: 1px solid #d8e3f0;
  border-radius: 0;
  background: transparent;
  color: #1f3652;
  font-size: calc(1.12rem * var(--font-scale));
  font-weight: 900;
  letter-spacing: -0.014em;
  line-height: 1.15;
  box-shadow: none;
}

.list-head h2 {
  margin: 0;
  font-size: calc(var(--fs-title) * var(--font-scale));
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

#resultCount {
  margin: 0;
  color: #4e6b8f;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.004em;
  text-transform: uppercase;
  white-space: nowrap;
}

.filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.building-picker + .filters {
  margin-top: -0.28rem;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.5rem 0.46rem;
  border: 1px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--accent);
  box-shadow: none;
}

.building-picker + .filters .filter-field {
  gap: 0.14rem;
}

.building-picker + .filters .filter-field label {
  color: rgba(255, 255, 255, 0.9);
}

.building-picker + .filters select {
  min-height: 1.5rem;
  padding: 0.08rem 1.34rem 0.08rem 0.42rem;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.16);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.96) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 50%, transparent 50%);
  background-position:
    calc(100% - 0.82rem) calc(50% - 1px),
    calc(100% - 0.62rem) calc(50% - 1px);
  background-size: 0.22rem 0.22rem, 0.22rem 0.22rem;
  background-repeat: no-repeat;
  color: #ffffff;
  font-size: calc(0.65rem * var(--font-scale));
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.building-picker + .filters select:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background-color: rgba(255, 255, 255, 0.24);
}

.building-picker + .filters select:focus {
  border-color: rgba(255, 255, 255, 0.82);
  outline: none;
}

.building-picker + .filters select option {
  color: #1a3552;
}

.filters[hidden] {
  display: none !important;
  margin: 0 !important;
}

.filters.is-collapsed {
  display: none !important;
  margin: 0 !important;
}

.mobile-controls-panel {
  display: none;
}

.mobile-controls-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}

.mobile-controls-tab {
  width: 100%;
  min-height: 1.8rem;
  padding: 0.22rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(170, 190, 214, 0.9);
  background: #f2f7ff;
  color: #24486d;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
}

.mobile-controls-tab:hover {
  border-color: rgba(137, 165, 198, 0.96);
  background: #e9f2ff;
}

.mobile-controls-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.mobile-select-control {
  display: none;
  margin: 0 0 0.42rem;
}

.mobile-controls-panel[hidden],
.mobile-select-control[hidden] {
  display: none !important;
}

.mobile-select-control label {
  margin: 0 0 0.18rem;
  display: block;
  color: #4b6788;
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.mobile-select-control select {
  min-height: 1.82rem;
  padding: 0.24rem 0.48rem;
  font-size: calc(0.78rem * var(--font-scale));
}

.filter-field {
  display: grid;
  gap: 0.22rem;
}

.filter-field label {
  margin: 0;
  color: #4b6788;
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.filters select {
  min-height: 2.05rem;
  padding: 0.34rem 0.58rem;
  font-size: calc(0.8rem * var(--font-scale));
}

.building-picker {
  margin: 0;
  position: relative;
  isolation: isolate;
  border: 1px solid var(--accent);
  border-radius: 14px 14px 0 0;
  background: var(--accent);
  background-clip: padding-box;
  padding: 0.5rem 0.5rem 0.34rem;
  display: grid;
  gap: 0.38rem;
  box-shadow: none;
  overflow: hidden;
  clip-path: inset(0 round 14px 14px 0 0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.building-picker[hidden],
.building-picker.is-collapsed {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.building-picker-label {
  margin: 0;
  display: grid;
  width: auto;
  max-width: 100%;
  gap: 0.04rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  letter-spacing: -0.002em;
}

.building-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.building-picker-key {
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.15;
}

.building-picker-value {
  font-size: calc(0.94rem * var(--font-scale));
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.building-picker-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.building-picker-floor-row {
  display: grid;
  gap: 0.15rem;
}

.building-picker-floor-title {
  font-size: calc(0.58rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
}

.building-picker-floor-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  max-height: 3.28rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.08rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.58) transparent;
}

.building-picker-floor-buttons::-webkit-scrollbar {
  width: 4px;
}

.building-picker-floor-buttons::-webkit-scrollbar-track {
  background: transparent;
}

.building-picker-floor-buttons::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.building-chip {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-radius: 10px;
  min-height: 1.8rem;
  padding: 0.2rem 0.58rem;
  font-family: inherit;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.building-chip:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.24);
}

.building-chip.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent);
}

.building-chip-back {
  margin-left: auto;
  flex: 0 0 auto;
  align-self: flex-start;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.building-floor-chip {
  min-height: 1.46rem;
  min-width: 2.02rem;
  padding: 0.08rem 0.42rem;
  border-radius: 8px;
  font-size: calc(0.65rem * var(--font-scale));
  line-height: 1;
}

select,
input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.68rem 0.74rem;
  font: inherit;
  font-size: calc(var(--fs-small) * var(--font-scale));
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.003em;
  color: inherit;
  background: #ffffff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.listings {
  display: grid;
  grid-auto-rows: max-content;
  gap: 0.5rem;
  max-height: none;
  min-height: 0;
  overflow: auto;
  padding: 0 0.3rem 0.1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-content: start;
}

.listings::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (min-width: 761px) {
  .list-column {
    align-self: stretch;
    height: 100%;
    min-height: 0;
  }

  .list-card {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    height: 100%;
    min-height: 0;
  }

  .listings,
  #listings {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

.listing-card {
  --listing-accent: #8fa0b5;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  border: 1px solid #d6dfeb;
  border-radius: 14px;
  background: #fcfdff;
  padding: 0.42rem 0.56rem 0.38rem 2.16rem;
  position: relative;
  min-height: 88px;
  color: var(--ink);
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}

.listing-card:hover {
  border-color: #b8c5d6;
  background: #f7f9f9;
}

.listing-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.54rem;
  background: var(--listing-accent);
  opacity: 0.96;
}

.listing-card::after {
  content: attr(data-status-label);
  position: absolute;
  left: 0.17rem;
  top: 0.24rem;
  bottom: 0.24rem;
  width: 1.18rem;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #ffffff;
  font-size: calc(0.61rem * var(--font-scale));
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.listing-card.is-active {
  border-color: #8ea3bb;
  background: #e8eff7;
  color: #111111;
  box-shadow: none;
}

.listing-card.is-active:hover {
  border-color: #8097b1;
  background: #e2ebf5;
}

.listing-card.is-active::before {
  opacity: 1;
}

.listing-card.is-active .badge {
  box-shadow: none;
}

.listing-card.is-active .listing-price-base {
  color: #6a7d95;
}

.listing-card.is-active .listing-discount {
  color: #35597d;
}

.listing-card.is-active .listing-price-final {
  color: #b32626;
}

.listing-card.status-available {
  --listing-accent: var(--available);
}

.listing-card.status-reserved {
  --listing-accent: var(--reserved);
}

.listing-card.status-reserved::after {
  color: #ffffff;
  text-shadow: none;
}

.listing-card.status-sold {
  --listing-accent: var(--sold);
}

.listing-card.status-location {
  --listing-accent: #f7f9f9;
}

.listing-card.status-location::after {
  color: #111111;
  text-shadow: none;
}

.listing-card.status-building {
  --listing-accent: var(--accent);
}

.listing-select {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  padding-right: 0.2rem;
  padding-bottom: 0.18rem;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: inherit;
}

.listing-card.has-actions .listing-select {
  padding-right: 2.3rem;
  padding-bottom: 0;
}

.listing-status {
  display: none;
}

.listing-actions-media {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.34rem;
  width: calc((2.48rem * 3) + (0.34rem * 2));
  min-width: calc((2.48rem * 3) + (0.34rem * 2));
  flex: 0 0 calc((2.48rem * 3) + (0.34rem * 2));
}

.listing-actions-contact {
  position: absolute;
  right: 0.44rem;
  top: 0.34rem;
  display: inline-flex;
  align-items: center;
}

.listing-media-btn {
  width: 2.48rem;
  min-width: 2.48rem;
  height: 2.48rem;
  border: 1px solid #2f4d70;
  border-radius: 0.88rem;
  background: #2f4d70;
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.listing-media-btn:hover {
  border-color: #234f86;
  background: #234f86;
}

.listing-media-btn.is-loading {
  border-color: #17324d;
  background: #17324d;
  color: #ffffff;
}

.listing-media-btn[hidden] {
  display: none;
}

.listing-media-icon {
  width: 1.12rem;
  height: 1.12rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-media-icon-2d {
  width: 1.7rem;
  height: 1.7rem;
  stroke-width: 1.55;
}

.listing-media-icon-3d {
  width: 1.72rem;
  height: 1.28rem;
  fill: currentColor;
  stroke: none;
}

.listing-media-icon-vr {
  width: 1.8rem;
  height: 1.62rem;
  fill: currentColor;
  stroke: none;
}

.listing-mail-btn {
  position: static;
  width: 1.72rem;
  height: 1.72rem;
  border: 1px solid rgba(147, 168, 195, 0.46);
  border-radius: 10px;
  padding: 0;
  background: rgba(244, 248, 255, 0.9);
  color: #2f4d70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.listing-mail-btn svg {
  width: 0.94rem;
  height: 0.94rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.listing-mail-btn svg circle {
  fill: currentColor;
  stroke: none;
}

.listing-mail-btn:hover {
  border-color: rgba(120, 148, 183, 0.68);
  background: #f0f6ff;
}

.listing-card.is-active .listing-mail-btn {
  border-color: rgba(127, 145, 168, 0.56);
  background: rgba(255, 255, 255, 0.72);
  color: #244363;
}

.listing-card.is-active .listing-media-btn {
  border-color: #2f4d70;
  background: #2f4d70;
  color: #ffffff;
}

.listing-card-footer {
  margin-top: 0.24rem;
  padding-top: 0.22rem;
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0.4rem;
}

.listing-card-footer.has-visible-media {
  grid-template-columns: minmax(0, 1fr) auto;
}

.listing-pricing-wrap {
  min-width: 0;
}

.listing-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.34rem;
}

.listing-title,
.apartment3d-card-title {
  margin: 0;
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-size: calc(1rem * var(--font-scale));
  font-weight: 900;
  letter-spacing: -0.013em;
  line-height: 1.08;
}

.badge {
  display: none;
}

.badge.status-available {
  background: var(--available);
  border: 1px solid #3f7a28;
  color: #ffffff;
}

.badge.status-reserved {
  background: var(--reserved);
  border: 1px solid #d86f00;
  color: #ffffff;
}

.badge.status-sold {
  background: var(--sold);
  border: 1px solid #a92a2a;
  color: #ffffff;
}

.badge.status-location {
  background: #f7f9f9;
  border: 1px solid #d7dde3;
  color: #111111;
}

.badge.status-building {
  background: var(--accent);
  border: 1px solid var(--accent-strong);
  color: #ffffff;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem 0.24rem;
  margin: 0.16rem 0 0;
  color: inherit;
  font-size: calc(0.64rem * var(--font-scale));
  font-weight: 600;
  letter-spacing: -0.004em;
}

.listing-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.06rem 0.28rem;
  border-radius: 999px;
  border: 1px solid #d4e0ef;
  background: #f7f9f9;
  color: #111111;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.listing-card.has-actions .listing-meta {
  gap: 0.1rem 0.34rem;
  margin-top: 0.24rem;
  color: #556a85;
  font-size: calc(0.65rem * var(--font-scale));
  font-weight: 700;
}

.listing-card.has-actions .listing-meta span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-weight: 700;
  line-height: 1.1;
}

.listing-card.has-actions .listing-meta span + span::before {
  content: "•";
  display: inline-block;
  margin-right: 0.34rem;
  color: rgba(104, 124, 150, 0.78);
  font-weight: 900;
}

.listing-card.is-active .listing-meta span {
  border-color: rgba(128, 146, 170, 0.42);
  background: #f7f9f9;
  color: #111111;
}

.listing-card.has-actions.is-active .listing-meta {
  color: #4a607d;
}

.listing-card.has-actions.is-active .listing-meta span {
  border: 0;
  background: transparent;
  color: inherit;
}

.listing-price {
  margin: 0.4rem 0 0;
  font-family: var(--font-ui);
  font-size: calc(0.86rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0;
  color: #233a58;
}

.listing-pricing {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.04rem;
}

.listing-pricing-row {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.02rem;
  align-items: baseline;
}

.listing-pricing-label {
  color: #5f7390;
  font-size: calc(0.54rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.listing-pricing-value {
  justify-self: start;
  text-align: left;
  font-variant-numeric: normal;
  white-space: nowrap;
  min-width: 0;
}

.listing-price-base {
  color: #70839a;
  opacity: 0.95;
  text-decoration: line-through;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 600;
}

.listing-discount {
  font-size: calc(0.69rem * var(--font-scale));
  font-weight: 600;
  color: #37597d;
}

.listing-price-final {
  color: #c12b2b;
  font-family: var(--font-ui);
  font-size: calc(0.88rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0;
}

.listing-price-regular {
  color: #233a58;
}

.listing-pricing-single .listing-pricing-row {
  grid-template-columns: minmax(0, 1fr);
}

.listing-card.is-active .listing-pricing-label {
  color: #4a6280;
}

.listing-row {
  --listing-row-accent: #5f6b7c;
  width: 100%;
  border-bottom: 1px solid #dde5ef;
  background: transparent;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.listing-row:last-child {
  border-bottom: 0;
}

.listing-row.status-location {
  --listing-row-accent: #5f6b7c;
}

.listing-row-select {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0.62rem 0.22rem 0.62rem 0.18rem;
  display: grid;
  grid-template-columns: 1.3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  border-radius: 0.82rem;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.listing-row:hover {
  background: transparent;
  border-color: #dde5ef;
}

.listing-row:hover .listing-row-select {
  background: transparent;
  box-shadow: none;
}

.listing-row.is-active {
  background: transparent;
  border-color: #dde5ef;
}

.listing-row.is-active .listing-row-select {
  background: transparent;
  box-shadow: none;
}

.listing-row-status-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: var(--listing-row-accent);
  box-shadow: 0 0 0 3px rgba(95, 107, 124, 0.12);
  justify-self: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.listing-row-body {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.listing-row-title {
  display: block;
  font-size: calc(0.92rem * var(--font-scale));
  font-weight: 800;
  color: #1a2433;
  line-height: 1.2;
}

.listing-row-meta {
  display: block;
  font-size: calc(0.66rem * var(--font-scale));
  font-weight: 700;
  color: #5f7390;
  line-height: 1.2;
}

.listing-row-distance {
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 800;
  color: #314b69;
  white-space: nowrap;
}

.listing-row.is-active .listing-row-status-dot {
  background: #ef4f67;
  transform: scale(1.55);
  box-shadow: 0 0 0 5px rgba(239, 79, 103, 0.2);
}

.listing-row.is-active .listing-row-title {
  color: #0f1d2d;
}

.listing-section-title {
  margin: 0.92rem 0 0.42rem;
  padding: 0 0.18rem;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5e7392;
}

.listing-row-pzt {
  border-bottom-color: #e4ebf4;
}

.listing-row-pzt .listing-row-select {
  grid-template-columns: 1.3rem minmax(0, 1fr);
  padding-right: 0.18rem;
}

.listing-row-pzt .listing-row-meta {
  color: #667b98;
}

.lead-form {
  display: grid;
  gap: 0.65rem;
}

.lead-form input,
.lead-form textarea {
  border: 1px solid #c8d8ec;
  background: #f8fbff;
  color: #233a57;
}

.lead-form input::placeholder,
.lead-form textarea::placeholder {
  color: #6b7f98;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(47, 119, 222, 0.18);
}

.lead-form .btn {
  margin-top: 0.2rem;
}

.btn {
  border: none;
  border-radius: 11px;
  padding: 0.62rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: calc(var(--fs-body) * var(--font-scale));
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.btn-accent {
  background: linear-gradient(140deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 18px rgba(36, 59, 95, 0.26);
}

.btn-accent:hover {
  background: linear-gradient(140deg, #29446d, #1f3350);
}

.btn:disabled {
  background: #b8c2cf;
  cursor: not-allowed;
}

.status {
  margin: 0.75rem 0 0;
  font-size: calc(var(--fs-small) * var(--font-scale));
  color: #355f8f;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem 4px 4px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 38, 56, 0.26);
  backdrop-filter: blur(2px);
}

body.has-frozen-modal-backdrop .modal-backdrop {
  overflow: hidden;
  background: #101d2d;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}

body.has-frozen-modal-backdrop .modal-backdrop::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: 0;
  background-image: var(--modal-backdrop-image);
  background-position: center;
  background-size: cover;
  filter: blur(14px) brightness(0.72) saturate(0.9);
  opacity: 0.82;
  transform: scale(1.06);
  pointer-events: none;
}

body.has-frozen-modal-backdrop .modal-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.07), transparent 40%),
    linear-gradient(135deg, rgba(6, 18, 33, 0.52), rgba(6, 18, 33, 0.72));
  pointer-events: none;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #c7d8ee;
  padding: 1rem;
  box-shadow: 0 18px 46px rgba(15, 36, 64, 0.28);
}

.modal-card h2 {
  margin: 0 2rem 0.3rem 0;
  font-size: calc(1.15rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

#visualizationsModalTitle.gallery-investment-label {
  margin: 0 2.1rem 0.46rem 0;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 2.2rem);
  font-size: calc(0.94rem * var(--font-scale));
  font-weight: 900;
  line-height: 1.2;
}

.modal-subtitle {
  margin: 0 0 0.8rem;
  font-size: calc(var(--fs-small) * var(--font-scale));
  font-weight: 600;
  letter-spacing: -0.004em;
  color: #587495;
}

.external-mode-actions {
  display: flex;
  gap: 0.56rem;
  justify-content: flex-end;
}

.external-mode-modal-card {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.external-mode-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
}

.external-mode-modal-card {
  width: min(1400px, calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  max-width: calc(100vw - (var(--popup-edge-gap, 4px) * 2));
  height: min(92vh, calc(100dvh - (var(--popup-edge-gap, 4px) * 2)));
  max-height: calc(100dvh - (var(--popup-edge-gap, 4px) * 2));
}

.external-mode-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  display: block;
}

.external-mode-stage .gallery-empty {
  width: 100%;
  min-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-card {
  width: min(1180px, calc(100vw - 8px));
  max-width: calc(100vw - 8px);
  max-height: calc(100dvh - 1rem - 4px);
  height: min(82vh, calc(100dvh - 1rem - 4px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  row-gap: 8px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #c7d8ee;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 251, 255, 0.96) 100%);
  box-shadow: 0 24px 56px rgba(16, 39, 70, 0.28);
  padding: 0.9rem;
}

#visualizationsModal {
  padding: 1rem 4px 4px;
  place-items: center;
}

#visualizationsModal .gallery-modal-card {
  margin: 0 auto;
}

#visualizationsModal .modal-subtitle {
  margin: 0 0 0.15rem;
  color: #567291;
}

.gallery-stage {
  position: relative;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.gallery-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  border: 1px solid #c8d8ec;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 0.34rem;
  background: rgba(244, 248, 255, 0.78);
  pointer-events: none;
}

.gallery-loading .loader-text {
  color: #36597e;
  text-shadow: none;
}

.gallery-loading[hidden] {
  display: none !important;
}

.apartment3d-loader-progress {
  width: min(300px, 70%);
  height: 6px;
  border-radius: 999px;
  background: rgba(188, 206, 232, 0.62);
  overflow: hidden;
}

.apartment3d-loader-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.18s ease;
}

.gallery-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66vh, calc(82dvh - 250px));
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.gallery-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  max-width: min(92%, 640px);
  color: #4d6788;
  font-size: calc(var(--fs-small) * var(--font-scale));
  font-weight: 600;
  text-align: center;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 181, 212, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  color: #2f5f95;
  font-size: calc(1rem * var(--font-scale));
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(36, 74, 119, 0.22);
  cursor: pointer;
}

#galleryPrevBtn {
  left: 1rem;
}

#galleryNextBtn {
  right: 1rem;
}

.gallery-nav-btn:hover {
  border-color: #8eb0d9;
  background: rgba(255, 255, 255, 0.94);
  color: #214f86;
}

.gallery-nav-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.gallery-counter {
  margin: 0;
  min-width: 4.2rem;
  text-align: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #2e4663;
  font-size: calc(0.8rem * var(--font-scale));
  font-weight: 700;
}


.apartment-media-modal-card {
  width: fit-content;
  max-width: calc(100vw - (var(--popup-edge-gap, 4px) * 2));
  max-height: calc(100dvh - 1rem - 4px);
  height: auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  row-gap: 8px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #c7d8ee;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.96) 100%);
  box-shadow: 0 24px 56px rgba(16, 39, 70, 0.28);
  padding: 0.9rem;
}

#leadModal .lead-modal-card {
  --popup-content-width: min(calc(100vw - 64px), 760px);
  width: min(calc(100vw - (var(--popup-edge-gap, 4px) * 2)), calc(var(--popup-content-width) + 1.8rem));
  max-width: calc(100vw - (var(--popup-edge-gap, 4px) * 2));
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#apartment2dModal .apartment-media-modal-card {
  --apartment2d-content-width: min(calc(100vw - 64px), 1040px);
  --popup-content-width: var(--apartment2d-content-width);
  height: auto;
  max-height: calc(100dvh - (var(--popup-edge-gap, 4px) * 2));
  grid-template-rows: auto auto auto;
}

#apartment2dModal .apartment-media-modal-card[data-asset-kind="pdf"] {
  --apartment2d-content-width: min(calc(100vw - 48px), 1400px);
  height: min(92vh, calc(100dvh - (var(--popup-edge-gap, 4px) * 2)));
  grid-template-rows: minmax(0, 1fr) auto auto;
}

#apartment3dModal .apartment-media-modal-card {
  --popup-content-width: min(calc(100vw - 64px), 1320px);
  height: min(92dvh, calc(100dvh - (var(--popup-edge-gap, 4px) * 2)));
  max-height: calc(100dvh - (var(--popup-edge-gap, 4px) * 2));
  grid-template-rows: minmax(0, 1fr) auto auto;
}

:is(#apartment2dModal, #apartment3dModal) .apartment-media-modal-card {
  width: min(calc(100vw - (var(--popup-edge-gap, 4px) * 2)), calc(var(--popup-content-width) + 1.8rem));
  max-width: calc(100vw - (var(--popup-edge-gap, 4px) * 2));
}

#apartment3dModal .apartment-media-modal-card {
  width: fit-content;
}

#externalModeModal .external-mode-modal-card,
#visualizationsModal .gallery-modal-card {
  --popup-content-width: 100%;
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar {
  box-sizing: border-box;
  width: min(100%, var(--popup-content-width));
  max-width: min(100%, var(--popup-content-width));
  min-height: 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 11px;
  border: 1px solid var(--accent);
  background: var(--accent);
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar .list-investment {
  margin: 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  font-size: calc(0.9rem * var(--font-scale));
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-top-actions {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#apartment2dModal .apartment2d-download-inline {
  min-height: 1.8rem;
  padding: 0.2rem 0.58rem;
  gap: 0.22rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

#apartment2dModal .apartment2d-download-inline:hover {
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

#apartment2dModal .apartment2d-download-inline.is-disabled,
#apartment2dModal .apartment2d-download-inline[aria-disabled="true"] {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-close-inline {
  min-width: 1.8rem;
  width: 1.8rem;
  min-height: 1.8rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: calc(0.92rem * var(--font-scale));
  font-weight: 700;
  line-height: 1;
}

#apartment3dModal .apartment3d-back-inline {
  width: auto;
  min-width: 4.2rem;
  padding: 0.18rem 0.72rem;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-meta-row {
  width: min(100%, var(--popup-content-width));
  max-width: min(100%, var(--popup-content-width));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-status {
  margin: 0;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #2e4663;
  font-size: calc(0.8rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  justify-self: end;
}

:is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-details {
  margin: 0;
  color: #2e4663;
  font-size: calc(0.8rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  text-align: left;
}

#apartment2dModal .apartment-plan-stage {
  width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  max-width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  margin-inline: auto;
  min-height: 0;
  height: auto;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-start;
}

#apartment2dModal .apartment-media-modal-card[data-asset-kind="image"] .apartment-plan-stage {
  height: var(--apartment2d-stage-height, auto);
}

#apartment2dModal .apartment-media-modal-card[data-asset-kind="pdf"] .apartment-plan-stage {
  height: 100%;
}

#apartment2dModal .apartment-plan-image,
#apartment2dModal .apartment-plan-pdf {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

#apartment2dModal .apartment-plan-image {
  height: auto;
  max-height: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: block;
}

#apartment3dModal .apartment3d-layout {
  width: fit-content;
  max-width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  height: 100%;
  margin-inline: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(270px, 340px);
  align-items: stretch;
  gap: 10px;
}

#apartment3dModal .apartment-spin-stage {
  width: fit-content;
  max-width: min(960px, calc(100vw - 430px));
  height: 100%;
  min-height: 0;
  margin-inline: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
  padding: 0;
}

#apartment2dModal .apartment2d-topbar,
#apartment2dModal .apartment2d-meta-row,
#apartment3dModal .apartment2d-topbar,
#apartment3dModal .apartment2d-meta-row {
  width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  max-width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  margin-inline: auto;
}

#apartment3dModal .apartment2d-topbar,
#apartment3dModal .apartment2d-meta-row {
  width: 100%;
  max-width: 100%;
}

#apartment2dModal .apartment-plan-pdf {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  display: block;
}

#apartment3dModal .apartment-spin-image {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
  display: block;
}

.apartment3d-room-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.apartment3d-room-label {
  --info-feature-tail-height: 1.26rem;
  position: absolute;
  z-index: 5;
  left: var(--label-x, 50%);
  top: var(--label-y, 50%);
  transform: translate(-50%, calc(-100% - var(--info-feature-tail-height)));
  transform-origin: 50% 100%;
  min-width: 0;
  max-width: min(17rem, 24vw);
  padding: 0.28rem 0.82rem 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  isolation: isolate;
  transition: none;
}

.apartment3d-room-label::before {
  content: "";
  position: absolute;
  inset: 0 0 calc(-1 * var(--info-feature-tail-height)) 0;
  z-index: -1;
  background: #ff7a86;
  -webkit-mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  mask: no-repeat center / 100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M4 0H96Q100 0 100 4V43Q100 47 96 47H14L0 90V4Q0 0 4 0Z'/%3E%3C/svg%3E");
  filter: drop-shadow(0 8px 18px rgba(9, 17, 28, 0.18));
}

.apartment3d-room-label.is-active {
  z-index: 6;
  padding: 0.34rem 0.96rem 0.38rem;
  font-size: calc(0.84rem * var(--font-scale));
  font-weight: 900;
}

.apartment3d-room-label.is-active::before {
  background: #ef4f67;
  filter: drop-shadow(0 10px 22px rgba(118, 20, 44, 0.28));
}

.apartment3d-room-label.is-muted {
  opacity: 1;
}

.apartment3d-room-panel {
  --apartment3d-fs-title: calc(1rem * var(--font-scale));
  --apartment3d-fs-row: calc(0.92rem * var(--font-scale));
  --apartment3d-fs-small: calc(0.66rem * var(--font-scale));
  --apartment3d-ink: #1a2433;
  --apartment3d-muted: #5f7390;
  --apartment3d-rule: #dfe7f1;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
  font-family: var(--font-ui);
  overflow: hidden;
}

.apartment3d-card-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--apartment3d-rule);
  min-width: 0;
}

.apartment3d-card-title {
  margin: 0;
  min-width: 0;
  color: var(--apartment3d-ink);
}

.apartment3d-room-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  gap: 6px;
}

.apartment3d-section-title {
  margin: 0 0 6px;
  color: var(--apartment3d-muted);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apartment3d-section-title-placeholder {
  min-height: calc(var(--apartment3d-fs-small) * 1.2);
}

.apartment3d-room-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  padding-right: 2px;
  padding-left: 0.35rem;
}

.apartment3d-room-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.72rem;
  row-gap: 2px;
  padding: 0.52rem 0.1rem 0.52rem 0;
  border: 0;
  border-bottom: 1px solid var(--apartment3d-rule);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.apartment3d-room-row:hover,
.apartment3d-room-row.is-active {
  background: transparent;
}

.apartment3d-room-row:last-child {
  border-bottom: 0;
}

.apartment3d-room-row-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #9aa8b9;
  box-shadow: 0 0 0 3px rgba(95, 107, 124, 0.12);
  justify-self: center;
}

.apartment3d-room-row.is-active .apartment3d-room-row-dot {
  background: #ef4f67;
  transform: scale(1.45);
  box-shadow: 0 0 0 5px rgba(239, 79, 103, 0.2);
}

.apartment3d-room-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--apartment3d-ink);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-row);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.apartment3d-room-row-type {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--apartment3d-muted);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-small);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.apartment3d-room-row-area {
  color: var(--apartment3d-ink);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-row);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.apartment3d-room-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--apartment3d-rule);
  color: var(--apartment3d-ink);
}

.apartment3d-room-total span {
  color: var(--apartment3d-ink);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-row);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
}

.apartment3d-room-summary {
  min-width: 0;
  color: var(--apartment3d-ink);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-row);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.apartment3d-card-note {
  align-self: end;
  padding-top: 8px;
  border-top: 1px solid var(--apartment3d-rule);
  color: var(--apartment3d-muted);
}

.apartment3d-card-note h4 {
  margin: 0 0 3px;
  color: var(--apartment3d-muted);
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-small);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apartment3d-card-note p {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--apartment3d-fs-small);
  font-weight: 600;
  line-height: 1.28;
  text-align: justify;
  text-align-last: left;
}

.apartment3d-card-note p + p {
  margin-top: 3px;
}

.apartment3d-room-empty {
  margin: 0;
  align-self: start;
  padding: 0.72rem 0.1rem;
  border: 1px dashed #c9d7e8;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  color: #72879f;
  font-size: calc(0.72rem * var(--font-scale));
  font-weight: 700;
  line-height: 1.32;
}

#visualizationsModal .gallery-counter-inline {
  min-width: 4.2rem;
  text-align: right;
}

#leadModal .lead-form-shell {
  width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  max-width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  margin-inline: auto;
  min-height: 0;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
}

#leadModal .apartment2d-meta-row,
#leadModal .lead-modal-actionbar {
  width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  max-width: min(var(--popup-content-width), calc(100vw - (var(--popup-edge-gap, 4px) * 2)));
  margin-inline: auto;
}

#leadModal .lead-form {
  gap: 8px;
}

#leadModal .lead-form input,
#leadModal .lead-form textarea {
  border: 1px solid #c8d8ec;
  background: #f8fbff;
  color: #233a57;
  border-radius: 10px;
  padding: 0.62rem 0.7rem;
  font-size: calc(0.8rem * var(--font-scale));
  font-weight: 600;
  line-height: 1.3;
}

#leadModal .lead-form textarea {
  min-height: 7rem;
  resize: vertical;
}

#leadModal .lead-status {
  margin: 0;
  min-height: 1.2rem;
  color: #355f8f;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 600;
  letter-spacing: 0;
}

#leadModal .lead-modal-actionbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
}

#leadModal .lead-modal-actionbar-title {
  margin: 0;
  min-width: 0;
  color: #ffffff;
  font-size: calc(0.9rem * var(--font-scale));
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

#leadModal .lead-modal-actionbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.42rem;
}

#leadModal .lead-modal-close-btn,
#leadModal .lead-modal-submit-btn {
  min-height: 1.86rem;
  padding: 0.22rem 0.68rem;
  border-radius: 10px;
  font-size: calc(0.76rem * var(--font-scale));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  box-shadow: none;
}

#leadModal .lead-modal-close-btn {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

#leadModal .lead-modal-close-btn:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

#leadModal .lead-modal-submit-btn {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: var(--accent);
}

#leadModal .lead-modal-submit-btn:hover {
  border-color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar {
    padding: 6px 6px;
    gap: 6px;
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-topbar .list-investment {
    font-size: calc(0.82rem * var(--font-scale));
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-top-actions {
    gap: 6px;
  }

  #apartment2dModal .apartment2d-download-inline {
    max-width: 6.9rem;
    padding: 0.2rem 0.46rem;
    font-size: calc(0.7rem * var(--font-scale));
  }

  #apartment2dModal .apartment2d-download-extra {
    display: none;
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-close-inline {
    min-width: 1.66rem;
    width: 1.66rem;
    min-height: 1.66rem;
  }

  #apartment3dModal .apartment3d-back-inline {
    width: auto;
    min-width: 3.7rem;
    padding-inline: 0.58rem;
    font-size: calc(0.7rem * var(--font-scale));
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal, #visualizationsModal) .apartment2d-meta-row {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  /* Popupy mobile: 2D/3D/360/Kontakt - marginesy wewnętrzne x2 mniejsze */
  #leadModal .lead-modal-card,
  #apartment2dModal .apartment-media-modal-card,
  #apartment3dModal .apartment-media-modal-card,
  #externalModeModal .external-mode-modal-card {
    padding: 0.45rem;
    row-gap: 4px;
  }

  #leadModal .lead-modal-card {
    width: min(calc(100vw - (var(--popup-edge-gap, 0.3rem) * 2)), calc(var(--popup-content-width) + 0.9rem));
  }

  :is(#apartment2dModal, #apartment3dModal) .apartment-media-modal-card {
    width: min(calc(100vw - (var(--popup-edge-gap, 0.3rem) * 2)), calc(var(--popup-content-width) + 0.9rem));
  }

  #apartment3dModal .apartment-media-modal-card {
    width: min(calc(100vw - (var(--popup-edge-gap, 0.3rem) * 2)), calc(var(--popup-content-width) + 0.9rem));
  }

  #leadModal .lead-form-shell {
    padding: 6px;
  }

  #leadModal .lead-form {
    gap: 6px;
  }

  #leadModal .lead-modal-actionbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0.45rem;
    padding: 0.44rem 0.5rem;
  }

  #leadModal .lead-modal-actionbar-title {
    font-size: calc(0.82rem * var(--font-scale));
  }

  #leadModal .lead-modal-actionbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.38rem;
  }

  #leadModal .lead-modal-close-btn,
  #leadModal .lead-modal-submit-btn {
    width: 100%;
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal) .apartment2d-topbar {
    padding: 3px 4px;
    gap: 4px;
  }

  :is(#leadModal, #apartment2dModal, #apartment3dModal, #externalModeModal) .apartment2d-meta-row {
    gap: 4px;
  }

  #apartment3dModal .apartment3d-layout {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(13.5rem, 36vh);
    gap: 6px;
  }

  #apartment3dModal .apartment-spin-stage {
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 0;
  }

  #apartment3dModal .apartment-spin-image {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
  }

  .apartment3d-room-panel {
    max-height: none;
    padding: 8px 9px;
    gap: 6px;
  }

  .apartment3d-room-row {
    padding: 0.42rem 0.1rem 0.42rem 0;
  }

  .apartment3d-card-note p {
    font-size: var(--apartment3d-fs-small);
  }

  .apartment3d-room-label {
    max-width: 8.6rem;
    padding: 0.3rem 0.44rem;
    font-size: calc(0.66rem * var(--font-scale));
  }

  #leadModal,
  #apartment3dModal,
  #apartment2dModal,
  #externalModeModal {
    --popup-edge-gap: max(0.3rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --popup-top-gap: calc(0.35rem + env(safe-area-inset-top, 0px));
  }
}

#leadModal,
#apartment3dModal,
#apartment2dModal,
#externalModeModal,
#visualizationsModal {
  padding: var(--popup-top-gap, 1rem) var(--popup-edge-gap, 4px) var(--popup-edge-gap, 4px);
  place-items: center;
}

.apartment-spin-stage {
  position: relative;
  min-height: 0;
  border: none;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(calc(100vw - 64px), 1040px);
  margin: 0 auto;
  padding: 0;
  user-select: none;
}

.apartment-plan-stage {
  position: relative;
  min-height: 0;
  border: none;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(calc(100vw - 64px), 1040px);
  margin: 0 auto;
  padding: 0;
}

.apartment-spin-image,
.apartment-plan-image {
  width: auto;
  height: auto;
  max-width: min(calc(100vw - 64px), 1040px);
  max-height: min(62vh, 560px);
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.apartment-spin-image {
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
}

.apartment-plan-image {
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
  max-height: min(62vh, 560px);
}

.apartment-plan-pdf {
  width: min(calc(100vw - 64px), 1040px);
  height: min(62vh, 560px);
  border: 1px solid #c8d8ec;
  border-radius: 12px;
  background: #ffffff;
}

#apartment2dModal .apartment-plan-stage > [hidden] {
  display: none !important;
}

.apartment-plan-actions {
  margin: 0 0 0.18rem;
  display: flex;
  justify-content: flex-start;
  width: min(calc(100vw - 64px), 1040px);
}

.apartment-plan-download-btn {
  min-height: 1.92rem;
  padding: 0.3rem 0.68rem;
  border-radius: 9px;
  border: 1px solid #bfcde0;
  background: #eef3f9;
  color: #2e4766;
  font-size: calc(0.78rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: -0.004em;
  box-shadow: none;
}

.apartment-plan-download-btn:hover {
  border-color: #a9bdd5;
  background: #e5edf7;
  color: #233b57;
}

.apartment-plan-download-btn.is-disabled,
.apartment-plan-download-btn[aria-disabled="true"] {
  background: #eef3f9;
  border-color: #c8d4e4;
  color: #89a0bc;
}

.apartment-plan-close-btn {
  min-width: 1.92rem;
  width: 1.92rem;
  padding: 0;
  font-size: calc(1rem * var(--font-scale));
  font-weight: 700;
  line-height: 1;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #b9cde6;
  background: #f4f8ff;
  color: #46698d;
  font-size: calc(1.15rem * var(--font-scale));
  cursor: pointer;
}

.brand-name,
.brand-sub,
.viewer-title,
#selectedMeta,
.control-label,
.toggle-btn,
.view-mode-btn,
.list-head h2,
#resultCount,
select,
input,
textarea,
.listing-title,
.badge,
.listing-meta,
.listing-price,
.btn,
.status,
.modal-card h2,
.modal-subtitle {
  letter-spacing: 0;
}

.empty {
  margin: 0;
  padding: 1rem 0.8rem;
  border: 1px dashed #bfd0e6;
  border-radius: 12px;
  color: var(--ink-soft);
  background: #f5f9ff;
}

@media (max-width: 1180px) {
  .landing-stage {
    width: min(94vw, 1100px);
    padding: 1.2rem;
  }

  .viewer-powered-link {
    display: inline-flex;
  }

  .brand-rail {
    display: none;
  }

  .app-shell {
    width: calc(100% - 1rem);
    max-width: none;
    margin: 0.5rem auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    height: auto;
    min-height: auto;
    align-items: start;
  }

  .viewer-card {
    border-radius: 18px;
    display: grid;
    grid-template-rows: auto auto;
    align-items: start;
    justify-items: stretch;
    overflow: visible;
    gap: 0.46rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .viewer-stage {
    border-radius: 18px;
    margin: 0 auto;
    max-width: 100%;
  }

  .list-column {
    margin-left: 0;
  }

  .viewer-card {
    height: auto;
  }

  .list-card {
    border-radius: 18px;
    padding: 0.88rem;
    height: auto;
  }

  .listings {
    max-height: 44vh;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .filters select {
    min-height: 1.9rem;
  }

  .viewer-info-stack {
    top: 0.68rem;
    left: 0.68rem;
    max-width: min(78%, 680px);
  }

  .viewer-control-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 0.34rem;
    border-radius: 11px;
    gap: 0.28rem;
    width: 100%;
  }

  .viewer-nav-dock,
  .viewer-utility-dock {
    position: static;
    transform: none;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .viewer-mode-panel-title {
    font-size: calc(0.6rem * var(--font-scale));
  }

  .viewer-corner-controls {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 0.26rem;
    width: 100%;
  }

  .viewer-control-panel .icon-control-group.with-label {
    display: grid;
    align-items: stretch;
    gap: 0.22rem;
  }

  .icon-control-label {
    font-size: calc(0.62rem * var(--font-scale));
  }

  .icon-toggle-btn {
    width: 1.72rem;
    height: 1.72rem;
    font-size: 0.9rem;
  }

  .viewer-view-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
    gap: 0.24rem;
    padding: 0;
  }

  .view-mode-btn {
    min-height: 1.72rem;
    font-size: calc(0.66rem * var(--font-scale));
    padding: 0.22rem 0.34rem;
    border-radius: 8px;
  }

  .view-mode-btn-line {
    display: inline;
  }

  .viewer-powered-link {
    left: 0.72rem;
    bottom: 0.66rem;
    font-size: calc(0.78rem * var(--font-scale));
  }

  .listing-card {
    min-height: 90px;
    padding: 0.46rem 0.5rem 0.46rem 1.96rem;
  }

  .listing-card::before {
    width: 1.36rem;
  }

  .listing-card::after {
    left: 0.12rem;
    width: 1.08rem;
    font-size: calc(0.56rem * var(--font-scale));
  }

  .listing-card.has-actions .listing-select {
    padding-right: 2rem;
  }

  .listing-actions-media {
    gap: 0.26rem;
    width: calc((2.16rem * 3) + (0.26rem * 2));
    min-width: calc((2.16rem * 3) + (0.26rem * 2));
    flex-basis: calc((2.16rem * 3) + (0.26rem * 2));
  }

  .listing-actions-contact {
    right: 0.36rem;
    top: 0.28rem;
  }

  .listing-media-btn {
    width: 2.16rem;
    min-width: 2.16rem;
    height: 2.16rem;
    border-radius: 0.78rem;
  }

  .listing-mail-btn {
    width: 1.56rem;
    height: 1.56rem;
    border-radius: 9px;
  }

  .listing-card-footer {
    margin-top: 0.22rem;
    padding-top: 0.2rem;
    gap: 0.34rem;
  }

  .listing-media-icon {
    width: 0.98rem;
    height: 0.98rem;
  }

}

@media (max-width: 760px) {
  .landing-title {
    font-size: clamp(0.72rem, 4.8vw, 1.2rem);
  }

  .landing-powered {
    transform: translateX(16%);
    font-size: clamp(0.34rem, 1.5vw, 0.38rem);
  }

  :root {
    --mobile-safe-top: env(safe-area-inset-top, 0px);
    --mobile-safe-right: env(safe-area-inset-right, 0px);
    --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
    --mobile-safe-left: env(safe-area-inset-left, 0px);
  }

  body.mobile-sticky-viewer {
    overflow: hidden;
  }

  body.mobile-sticky-viewer .app-shell {
    height: calc(100dvh - 0.75rem - var(--mobile-safe-top) - var(--mobile-safe-bottom));
    overflow: hidden;
  }

  body.mobile-sticky-viewer .viewer-column {
    position: sticky;
    top: calc(0.3rem + var(--mobile-safe-top));
    z-index: 14;
  }

  .viewer-column {
    display: block;
    height: auto;
    min-height: 0;
  }

  .viewer-card {
    display: grid;
    grid-template-areas:
      "controls"
      "stage";
    grid-template-rows: auto auto;
    align-items: start;
    justify-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    gap: 0.42rem;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .viewer-control-panel {
    grid-area: controls;
    order: -1;
  }

  .viewer-stage {
    grid-area: stage;
    order: 0;
  }

  body {
    overflow-x: hidden;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-link {
    width: 100%;
  }

  .app-shell {
    width: calc(100% - 0.6rem - var(--mobile-safe-left) - var(--mobile-safe-right));
    margin: calc(0.3rem + var(--mobile-safe-top)) auto calc(0.45rem + var(--mobile-safe-bottom));
    gap: 0.42rem;
  }

  .viewer-card,
  .viewer-stage,
  .list-card {
    border-radius: 14px;
  }

  .list-card {
    padding: 0.58rem;
  }

  .landing-title {
    font-size: clamp(3.1rem, 19vw, 5.2rem);
  }

  .landing-powered {
    padding-left: min(24vw, 120px);
    font-size: clamp(0.92rem, 4.2vw, 1.08rem);
  }

  body.mobile-sticky-viewer .list-column {
    height: var(--mobile-list-height, auto);
    min-height: 0;
    margin-top: 0.42rem;
  }

  body.mobile-sticky-viewer .list-card {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  body.mobile-sticky-viewer #listings {
    max-height: none;
    min-height: 0;
    overflow: auto;
  }

  .mobile-controls-panel {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0 0 0.34rem;
  }

  .mobile-filters-toggle-btn {
    width: auto;
    min-width: 6.2rem;
    min-height: 1.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-family: inherit;
    font-size: calc(0.76rem * var(--font-scale));
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-align: center;
    padding: 0.2rem 0.58rem;
    cursor: pointer;
    box-shadow: none;
    transition:
      border-color 0.16s ease,
      background 0.16s ease,
      color 0.16s ease;
  }

  .mobile-filters-toggle-btn::after {
    content: "▸";
    font-size: calc(0.7rem * var(--font-scale));
    font-weight: 900;
    line-height: 1;
    opacity: 0.92;
    transition: transform 0.18s ease;
  }

  .mobile-filters-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.56);
    background: rgba(255, 255, 255, 0.24);
  }

  .mobile-filters-toggle-btn.is-open::after {
    content: "▾";
  }

  .mobile-filters-toggle-btn.is-open {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--accent);
  }

  .mobile-filters-panel {
    margin: 0 0 0.34rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 0.34rem;
  }

  .mobile-filters-panel[hidden] {
    display: none !important;
    margin: 0 !important;
  }

  .mobile-filters-panel .mobile-select-control {
    display: block;
    margin: 0;
    min-width: 0;
  }

  #mobileBuildingControl {
    grid-column: 1;
  }

  #mobileFloorControl {
    grid-column: 2;
  }

  .mobile-filters-panel .filters {
    grid-column: 1 / -1;
    margin: 0;
  }

  .mobile-controls-tab {
    min-height: 1.62rem;
    border-radius: 8px;
    font-size: calc(0.72rem * var(--font-scale));
  }

  .mobile-select-control {
    display: block;
  }

  .filters.is-mobile-collapsed {
    display: none !important;
    margin: 0 !important;
  }

  body.mobile-sticky-viewer .building-picker {
    display: none !important;
  }

  .list-mobile-shell {
    display: block;
    margin: 0 0 0.42rem;
    padding: 0.52rem;
    border-radius: 12px;
    border: 1px solid var(--accent-strong);
    background: var(--accent);
    box-shadow: none;
  }

  .list-mobile-shell .list-branding {
    margin: 0 0 0.38rem;
  }

  .list-mobile-shell .investment-logo-wrap {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.14);
  }

  .list-mobile-shell .investment-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .list-mobile-shell .list-investment {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.35);
    padding-bottom: 0.18rem;
  }

  .list-mobile-shell .list-head {
    margin-bottom: 0.4rem;
  }

  .list-mobile-shell .list-head h2 {
    color: #ffffff;
  }

  .list-mobile-shell #resultCount {
    color: rgba(239, 247, 255, 0.9);
  }

  .list-mobile-shell .mobile-controls-tab {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .list-mobile-shell .mobile-controls-tab:hover {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.24);
  }

  .list-mobile-shell .mobile-controls-tab.is-active {
    border-color: rgba(255, 255, 255, 0.9);
    background: #ffffff;
    color: var(--accent);
  }

  .list-mobile-shell .mobile-select-control label,
  .list-mobile-shell .filter-field label {
    color: #eef5ff;
  }

  .list-mobile-shell .mobile-select-control select,
  .list-mobile-shell .filters select {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(205, 222, 241, 0.95);
    color: #1a3552;
  }

  .list-branding {
    margin-bottom: 0.42rem;
  }

  .list-investment {
    font-size: calc(1.08rem * var(--font-scale));
  }

  .list-head {
    margin-bottom: 0.55rem;
  }

  .list-head h2 {
    font-size: calc(1.14rem * var(--font-scale));
  }

  #resultCount {
    font-size: calc(0.74rem * var(--font-scale));
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.34rem;
    margin-bottom: 0.55rem;
  }

  .filter-field {
    min-width: 0;
  }

  .filter-field label {
    font-size: calc(0.68rem * var(--font-scale));
  }

  .filters select {
    min-height: 1.66rem;
    padding: 0.2rem 0.42rem;
    font-size: calc(0.76rem * var(--font-scale));
  }

  .building-picker {
    margin-bottom: 0.56rem;
    border-radius: 11px;
    padding: 0.36rem;
    gap: 0.3rem;
  }

  .building-picker-buttons,
  .building-picker-floor-buttons {
    gap: 0.24rem;
  }

  .building-chip,
  .building-floor-chip {
    min-height: 1.34rem;
    border-radius: 7px;
    padding: 0.06rem 0.34rem;
    font-size: calc(0.58rem * var(--font-scale));
  }

  .listings {
    max-height: 41vh;
    gap: 0.42rem;
  }

  .viewer-info-stack {
    display: none !important;
  }

  .spin-compass {
    --compass-step-px: 8px;
    top: calc(env(safe-area-inset-top, 0px) + 0.34rem);
    min-width: 182px;
    gap: 0.12rem;
  }

  .spin-compass-track-wrap {
    height: 22px;
  }

  .spin-compass-cell {
    font-size: calc(0.46rem * var(--font-scale));
  }

  .spin-compass-text {
    font-size: calc(0.45rem * var(--font-scale));
  }

  .viewer-overlay {
    padding: 0.24rem 0.34rem;
    border-radius: 8px;
  }

  .viewer-title {
    font-size: calc(0.82rem * var(--font-scale));
  }

  #selectedMeta {
    font-size: calc(0.69rem * var(--font-scale));
    padding: 0.07rem 0.24rem;
  }

  .viewer-control-panel {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 0.28rem;
    border-radius: 10px;
    border: 1px solid var(--accent-strong);
    background: var(--accent);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    gap: 0.24rem;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    align-items: stretch;
  }

  .viewer-nav-dock,
  .viewer-utility-dock {
    position: static;
    transform: none;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .viewer-mode-panel-title {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    text-align: center;
    font-size: calc(0.68rem * var(--font-scale));
    color: #ffffff;
  }

  .viewer-corner-controls {
    display: contents;
  }

  .viewer-control-panel .icon-control-group.with-label {
    display: contents;
    padding: 0;
    gap: 0;
  }

  .icon-control-label {
    display: none;
  }

  .icon-control-buttons {
    display: contents;
  }

  .viewer-view-group {
    display: contents;
    min-width: 0;
    padding: 0;
  }

  .view-mode-btn,
  .icon-toggle-btn {
    width: 100%;
    min-width: 0;
    height: 1.52rem;
    min-height: 1.52rem;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: calc(0.792rem * var(--font-scale));
    line-height: 1.05;
    padding: 0 0.24rem;
    text-align: center;
  }

  .view-mode-btn:hover,
  .icon-toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.24);
  }

  .view-mode-btn.is-active,
  .icon-toggle-btn.is-active {
    border-color: #ffffff;
    background: #ffffff;
    color: var(--accent);
    box-shadow: none;
  }

  .viewer-legal-popover {
    position: fixed;
    left: 0.76rem;
    right: 0.76rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 5.1rem);
    top: auto;
    width: auto;
    transform: none;
    z-index: 60;
  }

  .viewer-legal-popover::after {
    display: none;
  }

  .view-mode-btn {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .view-mode-btn-line {
    display: block;
  }

  .view-mode-btn[data-view="LOCATION"] {
    grid-column: 1 / span 4;
    grid-row: 2;
    height: 1.74rem;
    min-height: 1.74rem;
  }

  .view-mode-btn[data-view="INTERACTIVE"] {
    grid-column: 5 / span 4;
    grid-row: 2;
    height: 1.74rem;
    min-height: 1.74rem;
  }

  .view-mode-btn[data-view="INTERACTIVE"] .view-mode-btn-line {
    display: inline;
  }

  .view-mode-btn[data-view="INTERACTIVE"] .view-mode-btn-line + .view-mode-btn-line {
    margin-left: 0.18rem;
  }

  .view-mode-btn[data-view="MODEL3D"] {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .view-mode-btn[data-view="VISUALIZATIONS"] {
    grid-column: 3 / span 2;
    grid-row: 3;
  }

  .view-mode-btn[data-view="INTERACTIVE_BUILDINGS"] {
    grid-column: 3 / span 2;
    grid-row: 3;
  }

  .location-hotspot-link.is-interactive-label:not(.is-active):not(.is-interactive-selected) {
    width: fit-content;
    min-width: 0;
    max-width: min(44vw, 154px);
    padding: 0.28rem 0.4rem 0.32rem;
    border-radius: 10px;
  }

  .location-hotspot-link.is-interactive-label:not(.is-active):not(.is-interactive-selected) .location-hotspot-title {
    font-size: calc(0.73rem * var(--font-scale));
    line-height: 1.12;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .viewer-view-group.is-mobile-apartment-navigation .view-mode-btn[data-view="LOCATION"] {
    grid-column: 1 / span 3;
    grid-row: 2;
    height: 1.74rem;
    min-height: 1.74rem;
  }

  .viewer-view-group.is-mobile-apartment-navigation .view-mode-btn[data-view="INTERACTIVE"] {
    grid-column: 4 / span 3;
    grid-row: 2;
    height: 1.74rem;
    min-height: 1.74rem;
  }

  .viewer-view-group.is-mobile-apartment-navigation .view-mode-btn[data-view="INTERACTIVE_BUILDINGS"] {
    grid-column: 7 / span 2;
    grid-row: 2;
    height: 1.74rem;
    min-height: 1.74rem;
  }

  #timeModeGroup [data-time="DAY"] {
    grid-column: 5;
    grid-row: 3;
  }

  #timeModeGroup [data-time="NIGHT"] {
    grid-column: 6;
    grid-row: 3;
  }

  #seasonGroup [data-season="SUMMER"] {
    grid-column: 7;
    grid-row: 3;
  }

  #seasonGroup [data-season="WINTER"] {
    grid-column: 8;
    grid-row: 3;
  }

  #timeModeGroup.is-disabled .icon-toggle-btn,
  #seasonGroup.is-disabled .icon-toggle-btn {
    opacity: 0.5;
  }

  .viewer-powered-link {
    left: 0.5rem;
    bottom: 0.5rem;
    font-size: calc(0.7rem * var(--font-scale));
  }

  .listing-card {
    min-height: 84px;
    padding: 0.42rem 0.44rem 0.42rem 1.9rem;
    border-radius: 12px;
  }

  .listing-card::before {
    width: 1.22rem;
  }

  .listing-card::after {
    left: 0.08rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 0.98rem;
    font-size: calc(0.5rem * var(--font-scale));
  }

  .listing-card.has-actions .listing-select {
    padding-right: 1.82rem;
    padding-left: 0.12rem;
    padding-bottom: 0;
  }

  .listing-title,
  .apartment3d-card-title {
    font-size: calc(1rem * var(--font-scale));
  }

  .listing-meta {
    margin-top: 0.16rem;
    gap: 0.16rem 0.24rem;
    font-size: calc(0.66rem * var(--font-scale));
  }

  .listing-meta span {
    padding: 0.06rem 0.25rem;
  }

  .listing-pricing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.08rem;
  }

  .listing-pricing-label {
    font-size: calc(0.6rem * var(--font-scale));
  }

  .listing-price-base {
    font-size: calc(0.7rem * var(--font-scale));
  }

  .listing-price-final {
    font-size: calc(0.82rem * var(--font-scale));
  }

  .listing-actions-media {
    gap: 0.2rem;
    width: calc((1.96rem * 3) + (0.2rem * 2));
    min-width: calc((1.96rem * 3) + (0.2rem * 2));
    flex-basis: calc((1.96rem * 3) + (0.2rem * 2));
  }

  .listing-actions-contact {
    right: 0.28rem;
    top: 0.2rem;
  }

  .listing-media-btn {
    width: 1.96rem;
    min-width: 1.96rem;
    height: 1.96rem;
    border-radius: 0.72rem;
  }

  .listing-mail-btn {
    width: 1.38rem;
    height: 1.38rem;
    border-radius: 8px;
  }

  .listing-mail-btn svg {
    width: 0.8rem;
    height: 0.8rem;
  }

  .listing-card-footer {
    margin-top: 0.18rem;
    padding-top: 0.18rem;
    gap: 0.26rem;
  }

  .listing-media-icon {
    width: 0.9rem;
    height: 0.9rem;
  }

  .gallery-stage {
    padding: 0;
  }

  .gallery-modal-card {
    width: min(95vw, calc(100vw - 8px));
    max-width: calc(100vw - 8px);
    max-height: calc(100dvh - 1rem - 4px);
    height: min(80vh, calc(100dvh - 1rem - 4px));
    padding: 0.65rem;
  }

  .gallery-nav-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  #galleryPrevBtn {
    left: 0.55rem;
  }

  #galleryNextBtn {
    right: 0.55rem;
  }

}
