* {
  box-sizing: border-box;
}
#grain-note {
  font-size: 10px;
  line-height: 1.6;
  color: #747d6f;
  margin: 0 0 12px;
}
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  font:
    13px Arial,
    Helvetica,
    sans-serif;
  color: #234239;
  background: #edeae1;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  border: 0;
  cursor: pointer;
  background: transparent;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid #8d6e40;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button[hidden],
[hidden] {
  display: none !important;
}
#tour {
  display: flex;
  height: 100dvh;
  min-height: 360px;
}
.view {
  position: relative;
  min-width: 0;
  flex: 1;
  overflow: hidden;
  background: #d4d8d1;
}
#panorama {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#panorama:active {
  cursor: grabbing;
}
.topbar {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(#f7f5eef5, #f7f5eeb8, transparent);
  pointer-events: none;
}
.topbar > * {
  pointer-events: auto;
}
.brand {
  font:
    28px Georgia,
    serif;
  text-decoration: none;
  letter-spacing: -5px;
  padding-right: 5px;
}
.brand span {
  color: #b29460;
}
.heading {
  flex: 1;
}
.heading p {
  font-size: 9px;
  letter-spacing: 0.16em;
  margin: 0 0 5px;
}
.heading p span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 5px;
  background: #234239;
  color: #f6f3e9;
  font-size: 9px;
}
.heading h1 {
  font:
    25px Georgia,
    serif;
  font-weight: 400;
  margin: 0;
}
.walk-link {
  font-size: 11px;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #496052;
}
#floor-toggle {
  background: #234239;
  color: #fff;
  padding: 12px 15px;
  border-radius: 5px;
  white-space: nowrap;
}
#floor-toggle span {
  font-size: 10px;
  padding-left: 6px;
  opacity: 0.75;
}
.point-nav {
  position: absolute;
  left: 24px;
  bottom: 143px;
  max-width: 240px;
  pointer-events: none;
}
.point-nav > * {
  pointer-events: auto;
}
.point-nav > p {
  font-size: 9px;
  letter-spacing: 0.14em;
  background: #f7f5eee8;
  padding: 8px 10px;
  margin: 0;
  width: max-content;
}
.point-nav nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 7px;
}
.point-nav nav button {
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  background: #f7f5eee8;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 12px #00000009;
}
.point-nav nav button[aria-pressed="true"] {
  background: #234239;
  color: #fff;
}
.point-nav nav button span {
  font-size: 10px;
  opacity: 0.6;
}
.point-nav small {
  display: block;
  max-width: 210px;
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.6;
  background: #f7f5eeda;
  padding: 7px 9px;
}
.zoom {
  position: absolute;
  right: 22px;
  bottom: 142px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.zoom button {
  width: 36px;
  height: 36px;
  background: #f7f5eeef;
  border-radius: 4px;
  font-size: 20px;
}
.bottom {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  text-align: center;
}
.caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f7f5eeeb;
  border-radius: 4px;
  padding: 8px 10px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 8px;
}
.dot {
  width: 5px;
  height: 5px;
  background: #7e956d;
  border-radius: 50%;
  flex-shrink: 0;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #f7f5eef5;
  padding: 7px;
  border-radius: 5px;
  box-shadow: 0 4px 20px #0000000c;
  white-space: nowrap;
}
.actions button {
  padding: 10px 12px;
  font-size: 11px;
  border-radius: 3px;
}
.actions button[aria-pressed="true"] {
  background: #234239;
  color: #fff;
}
.actions button:hover:not(:disabled) {
  background: #dde2d3;
  color: #234239;
}
.actions > span {
  height: 20px;
  width: 1px;
  background: #d7d9cc;
  margin: 0 5px;
}
.render-note {
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
  color: #24453e;
  background: #f7f5eecf;
  border-radius: 3px;
  padding: 4px 8px;
}
.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.hotspot > span {
  background: #f7f5eeee;
  border: 1px solid #fff;
  border-radius: 50%;
  padding: 9px 13px;
  font-size: 20px;
  box-shadow: 0 0 0 6px #ffffff3b;
}
.hotspot small {
  font-size: 10px;
  background: #234239e8;
  color: #fff;
  padding: 5px 8px;
  border-radius: 3px;
}
#loading {
  position: absolute;
  inset: 0;
  background: #edeae1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
}
#loading.changing {
  inset: auto;
  left: 50%;
  top: 100px;
  transform: translateX(-50%);
  border-radius: 5px;
  padding: 12px 18px;
  background: #f7f5eef5;
  flex-direction: row;
  font-size: 11px;
  box-shadow: 0 3px 15px #0001;
}
#loading.changing .spinner {
  width: 15px;
  height: 15px;
}
.spinner {
  display: block;
  width: 25px;
  height: 25px;
  border: 2px solid #d4d6c7;
  border-top-color: #234239;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#status {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 105px;
  transform: translateX(-50%);
  background: #234239;
  color: #fff;
  padding: 12px 16px;
  border-radius: 5px;
  max-width: 85%;
  font-size: 12px;
}
#materials {
  width: 310px;
  flex-shrink: 0;
  background: #f8f6ef;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #d6d6c9;
  padding: 24px 20px 16px;
  z-index: 6;
}
#materials > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#materials header p {
  font-size: 9px;
  letter-spacing: 0.14em;
  margin: 0 0 10px;
}
#materials h2 {
  font:
    29px Georgia,
    serif;
  margin: 0;
  font-weight: 400;
}
#close-materials {
  font-size: 25px;
  padding: 8px;
  line-height: 1;
}
.panel-copy {
  font-size: 11px;
  line-height: 1.6;
  color: #6d766b;
  margin: 15px 0;
}
.filters {
  display: flex;
  gap: 5px;
  padding-bottom: 14px;
}
.filters button {
  background: #ebece1;
  border-radius: 20px;
  padding: 7px 9px;
  font-size: 10px;
}
.filters button[aria-pressed="true"] {
  background: #234239;
  color: #fff;
}
#floor-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 10px;
  overflow: auto;
  min-height: 80px;
  align-content: start;
  padding: 3px 6px 15px 2px;
  flex: 1;
}
.floor-card {
  text-align: left;
  padding: 0;
  min-width: 0;
}
.swatch {
  height: 72px;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 2px solid transparent;
}
.floor-card[aria-pressed="true"] .swatch {
  border-color: #234239;
}
.floor-card[aria-pressed="true"] .swatch:after {
  content: "✓";
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #234239;
  border-radius: 50%;
  color: #fff;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
}
.floor-card strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 7px;
  line-height: 1.3;
}
.floor-card small {
  display: block;
  font-size: 9px;
  color: #7d8476;
  margin-top: 4px;
}
.product {
  padding-top: 17px;
  border-top: 1px solid #d9dacd;
}
.product > p:first-child {
  font-size: 9px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.product h3 {
  font:
    25px Georgia,
    serif;
  font-weight: 400;
  margin: 0;
}
.product #spec {
  font-size: 10px;
  color: #7d8476;
  margin: 10px 0 15px;
}
.product > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.product a {
  font-size: 10px;
}
.materials-closed #materials {
  display: none;
}
dialog {
  border: 1px solid #d3d7c9;
  border-radius: 8px;
  background: #f8f6ef;
  color: #234239;
  padding: 28px;
  max-width: calc(100vw - 32px);
  width: 420px;
}
dialog::backdrop {
  background: #182a2566;
}
dialog > button:first-child {
  float: right;
  font-size: 24px;
}
dialog h2 {
  font:
    26px Georgia,
    serif;
  margin: 12px 0 18px;
}
dialog label {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}
dialog input {
  width: 100%;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #cbd1c0;
  border-radius: 3px;
  color: #234239;
  background: white;
}
#copy-link {
  padding: 12px 18px;
  background: #234239;
  color: #fff;
  border-radius: 4px;
}
.stats {
  position: absolute;
  top: 100px;
  left: 24px;
  background: #234239;
  color: #fff;
  font: 10px monospace;
  padding: 8px;
  pointer-events: none;
}
.fallback {
  position: absolute;
  inset: 20%;
  padding: 24px;
  background: #f8f6ef;
  border-radius: 6px;
  z-index: 8;
  font-size: 14px;
  line-height: 1.6;
}
.fallback img {
  width: 100%;
}
@media (max-width: 900px) {
  #materials {
    width: 285px;
    padding: 20px 16px;
  }
  .topbar {
    padding: 17px;
    gap: 14px;
  }
  .walk-link {
    font-size: 10px;
  }
  .heading h1 {
    font-size: 23px;
  }
  .point-nav {
    left: 17px;
    bottom: 150px;
  }
  .point-nav small {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 16px 14px;
    gap: 12px;
  }
  .heading p {
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .heading p span {
    margin-left: 3px;
    font-size: 8px;
  }
  .heading h1 {
    font-size: 23px;
  }
  .brand {
    font-size: 25px;
  }
  .walk-link {
    position: absolute;
    top: 83px;
    left: 14px;
    font-size: 10px;
    padding: 8px 10px;
    background: #f8f6efe8;
    border: 0;
    border-radius: 4px;
  }
  #floor-toggle {
    font-size: 11px;
    padding: 11px 12px;
  }
  .point-nav {
    left: 14px;
    bottom: 145px;
    max-width: 185px;
  }
  .point-nav > p {
    font-size: 8px;
  }
  .point-nav nav button {
    font-size: 11px;
    padding: 10px;
  }
  .zoom {
    right: 14px;
    bottom: 145px;
  }
  .zoom button {
    width: 32px;
    height: 32px;
    font-size: 19px;
  }
  .bottom {
    bottom: 64px;
    max-width: calc(100% - 28px);
  }
  .caption {
    font-size: 8px;
    letter-spacing: 0.03em;
  }
  .actions button {
    font-size: 10px;
    padding: 9px 10px;
  }
  .render-note {
    font-size: 8px;
    left: 12px;
    right: 12px;
    bottom: 9px;
  }
  .hotspot small {
    max-width: 110px;
  }
  #materials {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 100%);
    box-shadow: -20px 0 60px #172a2544;
    padding-top: 22px;
  }
  .swatch {
    height: 76px;
  }
  .stats {
    top: 124px;
    left: 14px;
  }
  .fallback {
    inset: 15% 5%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

@media (max-width: 700px) {
  .product a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
