/* R203: Celistra / The Ark composition adapted to Infinity's admitted inventory. */
:root {
  --surface:#fcfcf8;
  --surface-soft:#f2f3ec;
  --ink:#28372e;
  --muted:#6d776e;
  --line:#e4e7df;
  --green:#263e35;
  --shadow:0 12px 40px #203a3314;
  --font:Outfit,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif
}

* {
  box-sizing:border-box
}
html,body {
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden
}
body {
  font-family:var(--font);
  color:var(--ink);
  line-height:1.45;
  background:#dae5e7;
  -webkit-font-smoothing:antialiased
}
html:lang(he) {
  --font:Heebo,Arial,sans-serif
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.55
}
button,select,input {
  color:inherit
}
button {
  border:0
}
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible {
  outline:3px solid #4b806c;
  outline-offset:3px
}
[hidden] {
  display:none!important
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
h1,h2,p {
  margin:0
}
h2 {
  font-size:22px;
  line-height:1.25;
  font-weight:600
}
.eyebrow {
  font-size:10px;
  letter-spacing:.18em;
  font-weight:600;
  text-transform:uppercase;
  color:var(--muted)
}

.spinner-viewport {
  position:fixed;
  inset:0;
  overflow:hidden;
  cursor:grab;
  touch-action:pan-y;
  background:#dce6e7
}
.spinner-viewport:active {
  cursor:grabbing
}
.canvas-container {
  position:absolute;
  inset:0;
  width:100%;
  height:100%
}
.scene-zoom {
  position:absolute;
  left:0;
  top:0;
  width:1920px;
  height:1080px;
  transform-origin:0 0;
  will-change:transform
}
#spinnerCanvas,#polygonOverlay {
  position:absolute;
  inset:0;
  width:1920px;
  height:1080px;
  display:block;
  pointer-events:none;
  user-select:none
}

.floating-header {
  position:fixed;
  top:max(28px,env(safe-area-inset-top));
  left:max(32px,env(safe-area-inset-left));
  z-index:10;
  pointer-events:none
}
.header-brand {
  padding:13px 20px;
  border:1px solid #ffffff8c;
  border-radius:18px;
  background:#fcfcf8e8;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px)
}
.brand-text h1 {
  font-size:17px;
  letter-spacing:.17em;
  line-height:1.1;
  font-weight:650
}
.subtitle {
  font-size:10px;
  letter-spacing:.07em;
  color:var(--muted);
  margin-top:5px
}

.floating-toolbar {
  position:fixed;
  top:max(28px,env(safe-area-inset-top));
  right:max(32px,env(safe-area-inset-right));
  z-index:12;
  display:flex;
  gap:8px;
  align-items:center
}
.icon-button,.inventory-toggle,.round-control {
  height:46px;
  min-width:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:13px;
  background:#fcfcf8ed;
  border:1px solid #ffffff8c;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  font-size:13px;
  font-weight:500
}
.icon-button:hover,.round-control:hover {
  background:white
}
.inventory-toggle {
  padding:0 18px;
  color:#fff;
  background:var(--green);
  border-color:var(--green);
  box-shadow:0 6px 20px #203a3329
}
.inventory-toggle:hover {
  background:#203a33
}
.fit-button {
  padding:0 12px
}
.fit-button[aria-pressed=true] {
  background:var(--green);
  color:white;
  border-color:var(--green)
}
.language-selector {
  position:relative
}
.language-button {
  padding:0 11px;
  gap:7px
}
.language-button svg {
  width:18px
}
.language-menu {
  position:absolute;
  top:54px;
  inset-inline-end:0;
  width:180px;
  padding:6px;
  border-radius:13px;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow)
}
.language-option {
  width:100%;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  text-align:start;
  border-radius:8px;
  background:transparent;
  padding:0 12px;
  font-size:14px
}
.language-option:hover {
  background:var(--surface-soft)
}
.language-option.active {
  background:#e9efe8;
  color:var(--green);
  font-weight:600
}

.nav-arrow {
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  z-index:8;
  width:50px;
  height:50px;
  border-radius:50%;
  background:#fcfcf8d9;
  border:1px solid #ffffff9c;
  box-shadow:var(--shadow);
  display:grid;
  place-items:center;
  backdrop-filter:blur(14px)
}
.nav-arrow.left {
  left:max(28px,env(safe-area-inset-left))
}
.nav-arrow.right {
  right:max(28px,env(safe-area-inset-right))
}
.nav-arrow:hover {
  background:white
}
.orbit-footer {
  position:fixed;
  inset:auto 32px max(26px,env(safe-area-inset-bottom));
  z-index:9;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:end;
  gap:20px;
  pointer-events:none
}
.orbit-caption,.orbit-meta {
  display:flex;
  flex-direction:column;
  gap:4px;
  max-width:250px;
  color:var(--ink);
  font-size:14px;
  text-shadow:0 1px 8px #fff
}
.orbit-meta {
  text-align:end;
  justify-self:end;
  font-size:11px;
  color:#526156
}
.orbit-controls {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid #ffffff94;
  padding:7px 14px 7px 7px;
  border-radius:19px;
  background:#fcfcf8e8;
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  pointer-events:auto
}
.round-control {
  border:0;
  box-shadow:none;
  background:#e9eee6;
  border-radius:13px;
  width:44px;
  min-width:44px;
  height:44px;
  font-size:21px
}
.gesture-hint {
  font-size:11px;
  white-space:nowrap;
  color:var(--muted)
}
.view-dots {
  display:flex;
  gap:0;
  align-items:center
}
.view-dots button {
  display:grid;
  place-items:center;
  position:relative;
  width:44px;
  height:44px;
  background:transparent;
  border-radius:10px
}
.view-dots button::before {
  content:'';
  height:7px;
  width:7px;
  display:block;
  border:1px solid #7a897d;
  border-radius:50%;
  background:transparent;
  transition:background .12s
}
.view-dots button.active::before {
  background:var(--green);
  border-color:var(--green)
}
.view-dots button:hover {
  background:#eef1e9
}

.unit-tooltip {
  position:fixed;
  z-index:11;
  min-width:240px;
  max-width:320px;
  padding:17px 18px;
  border:1px solid #ffffffb3;
  border-radius:16px;
  background:#fcfcf8f7;
  box-shadow:0 12px 36px #203a3329;
  backdrop-filter:blur(18px);
  pointer-events:none
}
.tooltip-header {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  justify-content:space-between
}
.tooltip-header strong {
  font-size:18px;
  font-weight:600
}
.tooltip-meta {
  font-size:12px;
  color:var(--muted);
  margin:8px 0
}
.tooltip-price {
  font-size:18px;
  font-weight:600
}
.unit-tooltip.tap-preview {
  pointer-events:auto;
  inset:auto max(32px,env(safe-area-inset-right)) 120px auto;
  width:320px
}
.preview-actions {
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-top:12px
}
.primary-button {
  background:var(--green);
  color:white;
  min-height:44px;
  border:1px solid var(--green);
  border-radius:10px;
  padding:10px 16px;
  font-weight:500;
  font-size:13px
}
.primary-button:hover {
  background:#203a33
}
.text-button {
  min-height:44px;
  background:transparent;
  color:var(--green);
  font-size:12px;
  padding:8px 10px;
  text-decoration:none
}
.text-button:hover {
  text-decoration:underline
}

.status-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  border-radius:7px;
  font-size:10px;
  line-height:1.2;
  font-weight:600;
  padding:6px 8px;
  white-space:nowrap;
  background:#edf0eb;
  color:#637062
}
.status-badge::before {
  content:'';
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0
}
.status-badge.sale {
  background:#e8f4ed;
  color:#22784f
}
.status-badge.reserved,.status-badge.deposit {
  background:#fff1dc;
  color:#976e1d
}
.status-badge.sold,.status-badge.blocked {
  background:#fce9e6;
  color:#bd4a3d
}
.status-badge.unknown {
  background:#e9edf0;
  color:#626f7c
}

.drawer-backdrop {
  position:fixed;
  inset:0;
  background:#20342a33;
  backdrop-filter:blur(3px);
  z-index:30
}
.inventory-drawer {
  position:fixed;
  inset:0 0 0 auto;
  width:min(440px,100vw);
  height:100dvh;
  max-height:100%;
  z-index:31;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  box-shadow:-12px 0 50px #203a3326
}
.drawer-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:24px 24px 18px;
  flex-shrink:0
}
.drawer-header .icon-button,.close-modal {
  background:var(--surface-soft);
  box-shadow:none;
  border:1px solid var(--line)
}
.inventory-filters {
  margin:0 24px 16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
  flex-shrink:0
}
.inventory-filters>summary {
  display:none
}
.filters-panel {
  display:flex;
  flex-direction:column;
  gap:17px
}
.filter-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.filter-pair label,.filter-group {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:11px;
  color:var(--muted)
}
select {
  height:44px;
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:9px;
  padding:0 11px;
  font-size:13px;
  cursor:pointer
}
.beds-selector {
  display:flex;
  gap:6px
}
.bed-chip {
  height:44px;
  min-width:44px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:8px;
  background:white;
  font-size:12px
}
.bed-chip.active {
  background:var(--green);
  color:white;
  border-color:var(--green)
}
.slider-labels {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px
}
.slider-labels>span {
  color:var(--ink);
  font-size:12px
}
input[type=range] {
  width:100%;
  min-height:44px;
  margin:-8px 0;
  accent-color:var(--green);
  cursor:pointer
}
.unit-list-container {
  min-height:0;
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:0 24px 24px
}
.unit-count-summary {
  font-size:11px;
  margin:6px 0 14px;
  color:var(--muted)
}
.inventory-feedback {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:24px;
  gap:8px
}
#inventoryHealth {
  font-size:11px;
  color:#718273
}
#inventoryHealth.warning {
  color:#9b782d
}
.inventory-feedback .text-button {
  font-size:11px
}
.unit-scroll-list {
  display:grid;
  gap:10px
}
.unit-card {
  width:100%;
  text-align:start;
  padding:16px;
  border:1px solid var(--line);
  border-radius:13px;
  background:#fff;
  color:var(--ink)
}
.unit-card:hover {
  border-color:#b6c6b6;
  background:#f8faf5
}
.unit-card.active {
  border-color:#789983;
  box-shadow:0 0 0 1px #789983
}
.card-top,.card-bottom {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:8px
}
.card-top strong {
  font-size:18px;
  font-weight:600
}
.card-meta {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin:9px 0 12px
}
.card-bottom strong {
  font-size:17px;
  font-weight:600
}
.card-bottom>span {
  font-size:19px;
  color:#7c897f
}
.inventory-stale {
  display:block;
  font-size:11px;
  color:#9b782d;
  margin-top:7px
}
.empty-state {
  padding:30px 10px;
  text-align:center;
  font-size:13px;
  color:var(--muted)
}

.detail-dialog {
  margin:auto;
  width:min(940px,calc(100vw - 64px));
  max-height:92dvh;
  overflow:auto;
  padding:36px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 20px 80px #17281c29
}
.detail-dialog::backdrop {
  background:#20342a55;
  backdrop-filter:blur(5px)
}
.close-modal {
  position:absolute;
  top:20px;
  inset-inline-end:20px
}
.detail-intro {
  padding-inline-end:60px;
  margin-bottom:28px
}
.detail-intro h2 {
  font-size:34px;
  margin:10px 0 13px;
  font-weight:500
}
.detail-layout {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:32px
}
.detail-specifications {
  margin:0;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
  align-content:start
}
.specification {
  padding:13px 0;
  border-top:1px solid var(--line)
}
.detail-specifications dt {
  font-size:11px;
  color:var(--muted)
}
.detail-specifications dd {
  font-size:18px;
  margin:5px 0 0
}
.detail-summary {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:24px;
  background:var(--surface-soft);
  border-radius:14px;
  font-size:12px
}
.detail-summary>strong {
  font-size:30px;
  font-weight:500;
  line-height:1.15
}
.data-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.7;
  margin:8px 0 12px
}
.preview-loading {
  position:fixed;
  z-index:40;
  bottom:110px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100vw - 32px);
  background:var(--surface);
  box-shadow:var(--shadow);
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:11px;
  font-size:12px;
  text-align:center
}
.preview-loading:empty {
  display:none
}

[dir=rtl] .floating-header {
  left:auto;
  right:max(32px,env(safe-area-inset-right))
}
[dir=rtl] .floating-toolbar {
  right:auto;
  left:max(32px,env(safe-area-inset-left))
}
[dir=rtl] .inventory-drawer {
  right:auto;
  left:0
}
[dir=rtl] .unit-tooltip.tap-preview {
  right:auto;
  left:max(32px,env(safe-area-inset-left))
}
[dir=rtl] .orbit-controls {
  padding:7px 7px 7px 14px
}
[dir=rtl] .orbit-controls,[dir=rtl] .view-dots {
  direction:ltr
}

@media(max-width:900px) {
  .orbit-caption {
  font-size:12px
}
.orbit-meta {
  display:none
}
.orbit-footer {
  grid-template-columns:1fr auto
}
.gesture-hint {
  display:none
}
.floating-header {
  left:20px;
  top:20px
}
.floating-toolbar {
  right:20px;
  top:20px
}
[dir=rtl] .floating-header {
  right:20px
}
[dir=rtl] .floating-toolbar {
  left:20px
}

}

@media(max-width:640px) {
  .floating-header {
  top:max(14px,env(safe-area-inset-top));
  left:max(12px,env(safe-area-inset-left))
}
.header-brand {
  padding:12px 14px;
  border-radius:14px
}
.brand-text h1 {
  font-size:13px;
  letter-spacing:.13em
}
.subtitle {
  font-size:9px;
  margin-top:4px
}
.floating-toolbar {
  top:max(14px,env(safe-area-inset-top));
  right:max(12px,env(safe-area-inset-right));
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:calc(100vw - 180px)
}
.icon-button,.inventory-toggle {
  height:44px;
  min-width:44px;
  border-radius:11px
}
.fit-button {
  padding:0;
  width:44px
}
.fit-button span {
  display:none
}
.fullscreen-mobile-hide {
  display:none
}
.language-button {
  padding:0 8px;
  gap:5px
}
.language-button svg {
  display:none
}
.inventory-toggle {
  width:44px;
  padding:0
}
.inventory-toggle span {
  display:none
}
.floating-toolbar #fullscreen {
  display:none
}
.nav-arrow {
  height:44px;
  width:44px
}
.nav-arrow.left {
  left:max(10px,env(safe-area-inset-left))
}
.nav-arrow.right {
  right:max(10px,env(safe-area-inset-right))
}
.orbit-footer {
  inset:auto 12px max(18px,env(safe-area-inset-bottom));
  display:flex;
  justify-content:center
}
.orbit-caption {
  display:none
}
.orbit-controls {
  gap:7px;
  padding:6px;
  border-radius:16px
}
.round-control {
  border-radius:10px
}
.view-dots button {
  width:44px
}
.unit-tooltip.tap-preview {
  width:min(320px,calc(100vw - 32px));
  left:50%;
  right:auto;
  bottom:max(100px,calc(env(safe-area-inset-bottom) + 86px));
  transform:translateX(-50%);
  padding:15px 16px
}
.tooltip-header strong {
  font-size:17px
}
.tooltip-meta {
  font-size:11px
}
.tooltip-price {
  font-size:17px
}
.preview-actions {
  margin-top:10px;
  gap:2px
}
.drawer-header {
  padding:calc(16px + env(safe-area-inset-top)) 18px 14px
}
.drawer-header h2 {
  font-size:21px
}
.inventory-filters {
  margin:0 18px 10px;
  padding-bottom:10px
}
.inventory-filters>summary {
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  cursor:pointer;
  font-size:12px;
  list-style:none
}
.inventory-filters>summary::-webkit-details-marker {
  display:none
}
.inventory-filters>summary>span:last-child {
  margin-inline-start:auto
}
.inventory-filters[open]>summary {
  margin-bottom:12px
}
.filters-panel {
  gap:13px
}
.unit-list-container {
  padding:0 18px calc(20px + env(safe-area-inset-bottom))
}
.detail-dialog {
  width:calc(100vw - 24px);
  padding:24px 20px;
  border-radius:16px;
  max-height:calc(100dvh - 24px)
}
.close-modal {
  top:12px;
  inset-inline-end:12px
}
.detail-intro {
  margin:0 0 20px;
  padding-inline-end:44px
}
.detail-intro h2 {
  font-size:28px
}
.detail-layout {
  grid-template-columns:1fr;
  gap:20px
}
.detail-summary {
  padding:20px
}
.detail-summary>strong {
  font-size:26px
}
[dir=rtl] .floating-header {
  right:max(12px,env(safe-area-inset-right))
}
[dir=rtl] .floating-toolbar {
  left:max(12px,env(safe-area-inset-left))
}
[dir=rtl] .unit-tooltip.tap-preview {
  left:50%;
  right:auto
}

}

@media(max-height:540px) and (min-width:641px) {
  .floating-header,.floating-toolbar {
  top:12px
}
.header-brand {
  padding:10px 14px
}
.orbit-footer {
  bottom:12px
}
.orbit-caption {
  display:none
}
.orbit-footer {
  display:flex;
  justify-content:center
}
.unit-tooltip.tap-preview {
  width:270px;
  bottom:16px;
  right:max(12px,env(safe-area-inset-right));
  padding:13px 15px
}
.tooltip-meta {
  font-size:11px;
  margin:6px 0
}
.preview-actions {
  margin-top:8px
}
.nav-arrow {
  top:55%
}
[dir=rtl] .unit-tooltip.tap-preview {
  left:max(12px,env(safe-area-inset-left));
  right:auto
}
.detail-dialog {
  max-height:calc(100dvh - 20px);
  padding:24px
}
.inventory-drawer {
  width:420px
}
.drawer-header {
  padding:12px 18px
}
.inventory-filters {
  margin:0 18px 8px;
  padding-bottom:8px
}
.filters-panel {
  gap:8px
}
.unit-list-container {
  padding:0 18px 16px
}

}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
  transition:none!important;
  scroll-behavior:auto!important
}

}

