@font-face {
  font-family: "Montserrat Cyrillic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat/montserrat-cyrillic-ext-400-700.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Montserrat Cyrillic";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/montserrat/montserrat-cyrillic-400-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #18211f;
  --muted: #66736f;
  --border: #e1e7e5;
  --border-strong: #ccd6d2;
  --accent: #00ab8e;
  --accent-dark: #007e69;
  --public-header-height: 64px;
  --showroom-layout-duration: 320ms;
  --showroom-layout-easing: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--text);
  font-family: "Jost", sans-serif;
}
html[lang="mn"] { font-family: "Montserrat Cyrillic", "Jost", sans-serif; }
html[lang="mn"] body { font-family: inherit; }
button { color: inherit; font: inherit; }

.public-header {
  height: var(--public-header-height);
  padding: 0 max(22px, calc((100vw - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.creator-credit { color: var(--muted); font-size: 11px; white-space: nowrap; }
.creator-credit strong { color: var(--accent-dark); font-weight: 700; }

.map-page {
  min-height: calc(100svh - var(--public-header-height));
  padding: clamp(14px, 2vw, 28px);
  display: grid;
  align-content: start;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(0, 171, 142, .075), transparent 44%),
    var(--surface);
}

.showroom-explorer {
  --showroom-navigator-reserve: 0px;
  --showroom-drawer-reserve: 0px;
  width: min(1600px, 100%);
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns:
    minmax(0, var(--showroom-navigator-reserve))
    minmax(0, 1fr)
    minmax(0, var(--showroom-drawer-reserve));
  justify-items: center;
  column-gap: 0;
  row-gap: 14px;
}

.showroom-explorer[data-layout-ready="true"] {
  transition: grid-template-columns var(--showroom-layout-duration) var(--showroom-layout-easing);
}

.showroom-heading {
  width: 100%;
  grid-column: 1 / 3;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.showroom-heading p,
.showroom-heading h1 {
  margin: 0;
}

.showroom-heading > div > p {
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.showroom-heading h1 {
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

.showroom-section-navigator-toggle {
  min-height: 36px;
  padding: 7px 11px;
  display: none;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.showroom-section-navigator {
  width: clamp(220px, 15vw, 250px);
  max-height: min(650px, calc(100svh - var(--public-header-height) - 116px));
  position: absolute;
  left: 0;
  top: 54px;
  z-index: 6;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(0, 126, 105, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .965);
  box-shadow: 0 16px 38px rgba(20, 43, 37, .15);
  backdrop-filter: blur(12px);
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity var(--showroom-layout-duration) var(--showroom-layout-easing),
    transform var(--showroom-layout-duration) var(--showroom-layout-easing),
    visibility 0s;
}

.showroom-section-navigator-header {
  padding: 13px 14px 11px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.showroom-section-navigator-header h2,
.showroom-section-navigator-header p {
  margin: 0;
}

.showroom-section-navigator-header h2 {
  font-size: 14px;
  line-height: 1.25;
}

.showroom-section-navigator-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.showroom-section-navigator-close {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  cursor: pointer;
}

.showroom-section-navigator-close span {
  transform: translateY(-1px);
  font-size: 19px;
  line-height: 1;
}

.showroom-explorer[data-navigator-mode="overlay"] .showroom-section-navigator-toggle {
  display: inline-flex;
}

.showroom-explorer[data-navigator-mode="overlay"] .showroom-section-navigator {
  width: min(250px, calc(100vw - 24px));
  top: 50px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-5px);
  transition:
    opacity var(--showroom-layout-duration) var(--showroom-layout-easing),
    transform var(--showroom-layout-duration) var(--showroom-layout-easing),
    visibility 0s linear var(--showroom-layout-duration);
}

.showroom-explorer[data-navigator-mode="overlay"] .showroom-section-navigator[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity var(--showroom-layout-duration) var(--showroom-layout-easing),
    transform var(--showroom-layout-duration) var(--showroom-layout-easing),
    visibility 0s;
}

.showroom-explorer[data-navigator-mode="overlay"] .showroom-section-navigator-close {
  display: grid;
}

.showroom-section-list {
  --showroom-section-count: 1;
  min-height: 0;
  margin: 0;
  padding: 5px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-rows: repeat(var(--showroom-section-count), minmax(38px, 1fr));
  align-content: stretch;
  gap: 1px;
  list-style: none;
  scrollbar-gutter: stable;
}

.showroom-section-list > li {
  min-height: 0;
}

.showroom-section-item-unassigned {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.showroom-section-row {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 4px 9px 4px 12px;
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.showroom-section-row::before {
  content: "";
  width: 3px;
  position: absolute;
  inset: 5px auto 5px 0;
  border-radius: 0 3px 3px 0;
  background: var(--accent-dark);
  opacity: 0;
  transform: scaleY(.55);
  transition: opacity 200ms ease, transform 200ms ease;
}

.showroom-section-row strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-section-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-section-row:hover,
.showroom-section-row.is-active {
  border-color: rgba(0, 126, 105, .28);
  background: rgba(0, 171, 142, .14);
}

.showroom-section-row.is-selected {
  border-color: rgba(0, 126, 105, .42);
  background: rgba(0, 171, 142, .19);
}

.showroom-section-row:hover::before,
.showroom-section-row.is-active::before,
.showroom-section-row.is-selected::before {
  opacity: 1;
  transform: scaleY(1);
}

.showroom-section-navigator.has-pinned-selection
  .showroom-section-row:hover:not(.is-selected):not(.is-active) {
  border-color: transparent;
  background: transparent;
}

.showroom-section-navigator.has-pinned-selection
  .showroom-section-row:hover:not(.is-selected):not(.is-active)::before {
  opacity: 0;
  transform: scaleY(.55);
}

.showroom-section-row:focus-visible,
.showroom-section-navigator-toggle:focus-visible,
.showroom-section-navigator-close:focus-visible {
  outline: 2px solid rgba(0, 126, 105, .42);
  outline-offset: 2px;
}

.showroom-map-stage {
  width: min(
    1600px,
    100%,
    calc((100svh - var(--public-header-height) - 128px) * 1862 / 1482)
  );
  max-width: 100%;
  grid-column: 2;
  aspect-ratio: 1862 / 1482;
  position: relative;
  animation: reveal-map .42s ease both;
}

.showroom-map-camera-viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.showroom-map-camera {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 0 0;
  backface-visibility: hidden;
  will-change: transform;
}

.showroom-map-tilt-stage {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform-origin: center;
  backface-visibility: hidden;
}

.showroom-map-image,
.showroom-overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.showroom-map-image {
  display: block;
  object-fit: fill;
  user-select: none;
  z-index: 1;
}

.showroom-overlay {
  z-index: 2;
  pointer-events: auto;
}

.showroom-overlay svg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (hover: hover) and (pointer: fine) and (min-width: 681px) {
  .showroom-map-camera-viewport[data-zoomed="true"] {
    cursor: grab;
    touch-action: none;
  }

  .showroom-map-camera-viewport[data-panning="true"],
  .showroom-map-camera-viewport[data-panning="true"] * {
    cursor: grabbing !important;
    user-select: none;
  }

  .showroom-map-tilt-stage {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg) scale(1.022);
    will-change: transform;
  }
}

.showroom-map-controls {
  min-height: 38px;
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(13, 42, 36, .14);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 26px rgba(10, 36, 31, .13);
  backdrop-filter: blur(12px);
}

.showroom-map-controls button,
.showroom-map-controls output {
  height: 38px;
  border: 0;
  border-right: 1px solid rgba(13, 42, 36, .1);
  background: transparent;
  color: #12362f;
  font: inherit;
}

.showroom-map-controls button {
  min-width: 38px;
  padding: 0 11px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.showroom-map-controls button:hover:not(:disabled) {
  background: rgba(0, 126, 105, .08);
  color: #007e69;
}

.showroom-map-controls button:disabled {
  cursor: default;
  opacity: .38;
}

.showroom-map-controls button:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid rgba(0, 126, 105, .48);
  outline-offset: -2px;
}

.showroom-map-controls output {
  min-width: 56px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.showroom-map-controls .showroom-zoom-reset {
  min-width: auto;
  border-right: 0;
  padding-inline: 13px;
  font-size: 12px;
}

.showroom-overlay [data-showroom-area-geometry] {
  fill: rgba(0, 0, 0, .001);
  stroke: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: pointer;
  pointer-events: all;
  vector-effect: non-scaling-stroke;
  transition: fill 200ms ease, stroke 200ms ease, filter 200ms ease;
}

.showroom-overlay [data-showroom-inactive-dim] {
  fill: rgba(8, 27, 23, .11);
  opacity: 0;
  pointer-events: none;
  transition: fill 200ms ease, opacity 200ms ease;
}

.showroom-overlay [data-showroom-inactive-dim][data-active="true"] {
  opacity: 1;
}

.showroom-overlay [data-showroom-inactive-dim][data-focus-origin="navigator"] {
  fill: rgba(8, 27, 23, .17);
}

.showroom-overlay [data-showroom-highlight-layer],
.showroom-overlay [data-showroom-highlight-section],
.showroom-overlay [data-showroom-highlight-plane],
.showroom-overlay [data-showroom-highlight-geometry] {
  pointer-events: none;
}

.showroom-overlay [data-showroom-highlight-section] {
  opacity: 0;
  transition: opacity 180ms ease;
}

.showroom-overlay [data-showroom-highlight-section].is-active {
  opacity: 1;
}

.showroom-overlay [data-showroom-highlight-geometry] {
  fill: transparent;
  stroke: transparent;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.showroom-overlay [data-showroom-highlight-plane="main"]
  [data-showroom-highlight-role="main"] {
  fill: rgba(0, 171, 142, .25);
  stroke: var(--accent);
  stroke-width: 2.5;
  filter:
    drop-shadow(0 0 1px rgba(250, 255, 253, .98))
    drop-shadow(0 0 3px rgba(219, 255, 247, .84));
  vector-effect: non-scaling-stroke;
}

.showroom-overlay [data-showroom-highlight-plane="children"]
  [data-showroom-highlight-role="child"] {
  fill: rgba(219, 255, 247, .07);
  stroke: rgba(241, 255, 251, .96);
  stroke-width: 1.75;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, .98))
    drop-shadow(0 0 2.5px rgba(210, 255, 245, .76));
  vector-effect: non-scaling-stroke;
}

.showroom-overlay [data-showroom-highlight-plane="exact"]
  [data-showroom-highlight-geometry].is-exact-active {
  fill: rgba(0, 171, 142, .34);
  stroke: var(--accent);
  stroke-width: 3;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, 1))
    drop-shadow(0 0 4px rgba(210, 255, 245, .92));
  vector-effect: non-scaling-stroke;
}

.area-popover {
  width: min(430px, calc(100% - 20px));
  padding: 15px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  border: 1px solid rgba(0, 126, 105, .18);
  border-radius: 12px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 38px rgba(20, 43, 37, .18);
  backdrop-filter: blur(12px);
  transition:
    opacity 190ms ease,
    transform 190ms ease,
    visibility 0s linear 190ms;
}

.area-popover[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition:
    opacity 190ms ease,
    transform 190ms ease,
    visibility 0s;
}

.area-popover-section,
.area-popover h2,
.area-popover-count,
.area-popover-view-all,
.area-popover-empty {
  margin: 0;
}

.area-popover-section {
  margin-bottom: 3px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.area-popover h2 {
  font-size: 18px;
  line-height: 1.25;
}

.area-popover-count {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.area-product-list {
  margin: 11px 0 0;
  padding: 11px 0 0;
  display: grid;
  border-top: 1px solid rgba(0, 126, 105, .12);
  list-style: none;
}

.area-product-list[data-content="areas"] {
  gap: 2px;
  overflow: visible;
}

.section-area-preview {
  min-width: 0;
  padding: 5px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.section-area-preview strong {
  overflow: hidden;
  color: var(--text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-area-preview span {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.section-area-preview-more {
  margin-top: 3px;
  padding-top: 7px;
  border-top: 1px solid rgba(0, 126, 105, .1);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.area-popover[data-content="section-overview"] {
  max-height: none;
  overflow: visible;
}

.area-product-preview {
  min-width: 0;
  padding: 9px 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(150px, .9fr);
  align-items: start;
  gap: 10px;
}

.area-product-preview:first-child {
  padding-top: 0;
}

.area-product-preview + .area-product-preview {
  border-top: 1px solid rgba(24, 51, 44, .08);
}

.area-product-picture {
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  color: inherit;
  font: inherit;
}

button.area-product-picture { cursor: zoom-in; }

button.area-product-picture:hover,
button.area-product-picture:focus-visible {
  border-color: var(--accent);
}

button.area-product-picture:focus-visible {
  outline: 2px solid rgba(0, 126, 105, .32);
  outline-offset: 2px;
}

.area-product-picture img {
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  position: absolute;
  inset: 3px;
  display: block;
  object-fit: contain;
  background: #fff;
}

.area-product-picture span {
  color: #8a9692;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .06em;
}

.area-product-picture [hidden] {
  display: none;
}

.product-image-hover-preview {
  width: min(300px, calc(100vw - 24px));
  height: min(300px, calc(100vh - 24px));
  padding: 10px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(.97);
  transform-origin: top left;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(20, 43, 37, .26);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
}

.product-image-hover-preview[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition: opacity 120ms ease, transform 120ms ease, visibility 0s;
}

.product-image-hover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.map-image-preview-overlay {
  padding: 24px;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .68);
}

.map-image-preview-overlay[hidden] { display: none; }

.map-image-preview-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .3);
}

.map-image-preview-header {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
}

.map-image-preview-header h2 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-image-preview-close {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.map-image-preview-close:hover { border-color: var(--accent); }
.map-image-preview-close:focus-visible {
  outline: 2px solid rgba(0, 126, 105, .42);
  outline-offset: 2px;
}

.map-image-preview-body {
  min-height: 260px;
  padding: 20px;
  overflow: auto;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.map-image-preview-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.area-product-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.area-product-name {
  overflow: hidden;
  display: -webkit-box;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.area-product-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 4px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.area-product-sku {
  font-variant-numeric: tabular-nums;
}

.area-product-meta span[data-quantity-state="incomplete"] {
  color: #9b6500;
}

.area-product-meta span[data-includes-planned="true"] {
  color: #9b6500;
  font-weight: 650;
}

.area-product-metrics {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: center;
  gap: 5px 10px;
}

.area-product-metric {
  min-width: 0;
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
}

.area-product-metric strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.area-product-price strong {
  color: var(--accent-dark);
}

.area-popover-view-all {
  margin-top: 8px;
  min-height: 26px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.area-popover-view-all:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.area-popover-view-all:focus-visible {
  outline: 2px solid rgba(0, 126, 105, .42);
  outline-offset: 2px;
  border-radius: 3px;
}

.area-popover-empty {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid rgba(0, 126, 105, .12);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.area-popover [hidden] {
  display: none;
}

.showroom-product-drawer {
  width: min(500px, calc(100vw - 64px));
  position: fixed;
  top: calc(var(--public-header-height) + 16px);
  right: clamp(10px, 1.4vw, 24px);
  bottom: 16px;
  z-index: 8;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  border: 1px solid rgba(0, 126, 105, .2);
  border-radius: 16px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 22px 58px rgba(20, 43, 37, .22);
  transition:
    opacity var(--showroom-layout-duration) var(--showroom-layout-easing),
    transform var(--showroom-layout-duration) var(--showroom-layout-easing),
    visibility 0s linear var(--showroom-layout-duration);
}

@media (min-width: 1400px) and (max-width: 1799px) {
  .showroom-product-drawer {
    width: min(440px, calc(100vw - 64px));
  }
}

@media (min-width: 681px) and (max-width: 1399px) {
  .showroom-product-drawer {
    width: min(410px, calc(100vw - 64px));
  }
}

.showroom-product-drawer[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity var(--showroom-layout-duration) var(--showroom-layout-easing),
    transform var(--showroom-layout-duration) var(--showroom-layout-easing),
    visibility 0s;
}

.showroom-drawer-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.showroom-drawer-header {
  min-height: 104px;
  padding: 18px 18px 15px;
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
}

.showroom-drawer-heading {
  min-width: 0;
}

.showroom-drawer-heading p,
.showroom-drawer-heading h2 {
  margin: 0;
}

.showroom-drawer-heading > p:first-child {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.showroom-drawer-heading h2 {
  font-size: 22px;
  line-height: 1.2;
}

.showroom-drawer-heading > p:last-child {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.showroom-drawer-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.showroom-drawer-close span {
  transform: translateY(-1px);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.showroom-drawer-close:hover {
  border-color: var(--border-strong);
  background: #eef3f1;
}

.showroom-drawer-close:focus-visible {
  outline: 2px solid rgba(0, 126, 105, .42);
  outline-offset: 2px;
}

.showroom-drawer-body {
  padding: 6px 18px 20px;
}

.showroom-position-groups {
  display: grid;
}

.showroom-drawer-area-group {
  padding: 15px 0 4px;
}

.showroom-drawer-area-group + .showroom-drawer-area-group {
  border-top: 1px solid var(--border-strong);
}

.showroom-drawer-area-group > h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.showroom-drawer-area-positions {
  display: grid;
}

.showroom-drawer-area-positions .showroom-position-group:first-child {
  padding-top: 10px;
}

.showroom-position-group {
  padding: 15px 0 3px;
}

.showroom-position-group + .showroom-position-group {
  border-top: 1px solid var(--border);
}

.showroom-position-group-header {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.showroom-position-group h3,
.showroom-position-group h4 {
  margin: 0;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.showroom-position-group-total {
  min-width: 0;
  padding: 4px 7px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  border: 1px solid rgba(0, 132, 111, .2);
  border-radius: 999px;
  background: rgba(0, 171, 142, .08);
  color: var(--accent-dark);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.showroom-position-group-total small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.showroom-position-group-total strong {
  font-weight: 750;
}

.showroom-position-group-availability {
  margin: 0 0 8px;
  padding: 8px 9px;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(0, 132, 111, .16);
  border-left: 3px solid rgba(0, 132, 111, .55);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 171, 142, .075), rgba(0, 171, 142, .025));
}

.showroom-position-group-availability-result {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.showroom-position-group-availability-result > strong {
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.3;
}

.showroom-position-group-availability.none .showroom-position-group-availability-result > strong {
  color: var(--danger);
}

.showroom-position-group-availability.unknown .showroom-position-group-availability-result > strong {
  color: var(--muted);
}

.showroom-position-group-availability-result > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-position-group-recommendation {
  padding-top: 7px;
  border-top: 1px solid rgba(0, 132, 111, .12);
}

.showroom-position-group-recommendation-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .35px;
  line-height: 1.3;
  text-transform: uppercase;
}

.showroom-position-group-needed-components {
  display: grid;
  gap: 4px;
}

.showroom-position-group-needed-component {
  min-width: 0;
  padding: 5px 6px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 132, 111, .14);
  border-radius: 6px;
  background: rgba(255, 255, 255, .74);
}

.showroom-position-group-needed-component > strong {
  min-width: 27px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(0, 171, 142, .1);
  color: var(--accent-dark);
  font-size: 9px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.showroom-position-group-needed-identity {
  min-width: 0;
}

.showroom-position-group-needed-identity > span {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showroom-position-group-needed-identity > small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.2;
}

.showroom-drawer-product-list {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
}

.showroom-drawer-product {
  padding: 11px 0;
}

.showroom-drawer-product:first-child {
  padding-top: 3px;
}

.showroom-drawer-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.showroom-drawer-empty[hidden],
.showroom-position-groups[hidden] {
  display: none;
}

.map-state {
  min-width: 230px;
  max-width: min(420px, calc(100% - 32px));
  padding: 14px 16px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 126, 105, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px rgba(20, 43, 37, .16);
  color: var(--text);
  text-align: center;
  backdrop-filter: blur(10px);
}

.map-state[hidden] {
  display: none;
}

.map-state-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(0, 126, 105, .2);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: map-spin .72s linear infinite;
}

.map-state strong {
  font-size: 13px;
}

.map-state p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.map-state button {
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.map-state[data-state="error"] {
  border-color: #efc4c0;
}

.map-state[data-state="error"] .map-state-spinner {
  display: none;
}

.map-refresh-notice {
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 5;
  transform: translateX(-50%);
  border: 1px solid #efd9a5;
  border-radius: 8px;
  background: rgba(255, 250, 235, .97);
  color: #795711;
  box-shadow: 0 8px 20px rgba(20, 43, 37, .1);
  font-size: 10px;
  font-weight: 600;
}

.map-refresh-notice[hidden] {
  display: none;
}

@keyframes reveal-map {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  :root { --public-header-height: 112px; }
  .public-header { padding-right: 14px; padding-left: 14px; }
  .map-page { padding: 12px; }
  .showroom-map-stage {
    width: min(
      100%,
      calc((100svh - var(--public-header-height) - 116px) * 1862 / 1482)
    );
  }
}

@media (min-width: 681px) and (max-width: 1200px) {
  .showroom-product-drawer {
    right: 12px;
    bottom: 12px;
  }

  .showroom-drawer-product {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .showroom-drawer-product .area-product-metrics {
    grid-column: 2;
  }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .area-popover { width: min(350px, calc(100% - 20px)); }
  .area-product-preview {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
  }
  .area-product-picture { width: 40px; height: 40px; }
  .area-product-metrics {
    grid-column: 2;
    margin-top: 2px;
  }
}

@media (max-width: 680px) {
  .map-page {
    min-height: calc(100svh - var(--public-header-height));
    padding: 10px;
    align-content: start;
  }

  .showroom-explorer { gap: 9px; }
  .showroom-heading { align-items: start; gap: 10px; }
  .showroom-heading h1 { font-size: 19px; }
  .showroom-map-stage { width: 100%; }
  .showroom-map-controls { display: none; }
  .area-popover { padding: 12px; }
  .area-product-preview { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; }
  .area-product-picture { width: 34px; height: 34px; }
  .area-product-name { font-size: 11px; }
  .area-product-sku,
  .area-product-meta-separator { display: none; }
  .area-product-metrics { display: none; }
  .showroom-drawer-product .area-product-metrics {
    grid-column: 2;
    margin-top: 1px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showroom-product-drawer {
    width: calc(100vw - 24px);
    top: calc(var(--public-header-height) + 10px);
    right: 12px;
    bottom: 10px;
  }

  .map-image-preview-overlay { padding: 10px; }
  .map-image-preview-dialog { max-height: calc(100vh - 20px); }
  .map-image-preview-header { padding: 12px 14px; }
  .map-image-preview-body { min-height: 220px; padding: 12px; }
  .map-image-preview-body img { max-height: calc(100vh - 115px); }
}

@media (hover: none) {
  .product-image-hover-preview { display: none; }
}

@media (max-width: 420px) {
  .area-popover { width: min(280px, calc(100% - 12px)); }
}

@media (prefers-reduced-motion: reduce) {
  .showroom-map-stage,
  .map-state-spinner {
    animation: none;
  }
  .showroom-map-tilt-stage {
    transform: none !important;
    will-change: auto;
  }
  .area-popover { transition: none; }
  .product-image-hover-preview { transition: none; }
  .showroom-explorer { transition: none; }
  .showroom-product-drawer { transition: none; }
  .showroom-section-navigator,
  .showroom-section-row,
  .showroom-section-row::before,
  .showroom-overlay [data-showroom-area-geometry],
  .showroom-overlay [data-showroom-inactive-dim],
  .showroom-overlay [data-showroom-highlight-section],
  .showroom-overlay [data-showroom-highlight-geometry] { transition: none; }
}
