:root {
  color-scheme: dark;
  --edge: clamp(18px, 3vw, 46px);
  font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  color: #fffaf0;
  background: #1d271f;
}
* { box-sizing: border-box; }
html, body, #pano { width: 100%; height: 100%; margin: 0; }
html, body { overflow: hidden; }
[hidden] { display: none !important; }
.property {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 38px var(--edge) max(var(--edge), env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left));
  pointer-events: none;
  isolation: isolate;
  text-shadow: 0 1px 7px #0b150d;
}
.property::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -25% -25% 0 0;
  background: radial-gradient(ellipse at left bottom, #101a13ef 0%, #0e180fc2 40%, transparent 73%);
}
h1, h2 { margin: 0; font-family: "Baskervville", Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(26px, 2.9vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.property p { margin: 5px 0 13px; font-size: clamp(13px, 1vw, 15px); letter-spacing: .02em; }
.property p span { color: #f2cb78; margin: 0 2px; }
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #ffffff73;
  border-radius: 24px;
  color: #fffaf0;
  background: #19241ddc;
  font: 550 14px/1 "Instrument Sans", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
button:hover { background: #2a392e; }
button:focus-visible { outline: 3px solid #ffe1a4; outline-offset: 2px; }
button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.boundary-note { display: block; margin: -7px 0 12px; font-size: 12px; }
.boundary-note::before { content: ""; display: inline-block; width: 17px; margin: 0 6px 3px 0; border-top: 2px solid #ffda80; }
.media-links { display: flex; flex-wrap: wrap; gap: 7px; }
.media-links button { pointer-events: auto; gap: 7px; padding: 0 13px; }
.property button svg { color: #f2cb78; }
@media (max-width: 799px) {
  .property { max-width: 100%; }
  .property::before { right: 0; }
}
@media (max-width: 600px) {
  /* Leave room for the hosting badge below the listing controls. */
  .property { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
@media (min-aspect-ratio: 7/5) and (min-width: 800px) {
  .property { bottom: auto; top: 0; padding-top: var(--edge); padding-bottom: 28px; }
  .property::before { inset: 0 -25% -30% 0; background: radial-gradient(ellipse at left top, #101a13ed 0%, #101a139c 35%, transparent 73%); }
}
.tools { position: absolute; top: max(var(--edge), env(safe-area-inset-top)); right: max(var(--edge), env(safe-area-inset-right)); display: flex; gap: 7px; }
dialog {
  padding: 0;
  width: min(980px, calc(100% - 24px));
  max-width: 100%;
  max-height: none;
  color: #fffaf0;
  background: #19231c;
  border: 1px solid #e9dfc449;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 60px #050905a6;
}
dialog::backdrop { background: #060c09da; }
#details-panel { width: min(510px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.lot-copy { padding: 0 20px 20px; line-height: 1.5; font-size: 15px; }
.lot-copy p { margin: 5px 0 16px; }
.lot-copy dl { margin: 0; }
.lot-copy dt { margin-top: 10px; color: #e9c981; font-weight: 600; }
.lot-copy dd { margin: 0; }
.lot-copy small { display: block; margin-top: 18px; color: #c0c9c0; }
.photo-bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 9px 6px 18px; gap: 12px; }
.photo-bar h2 { font-size: 23px; }
.photo-bar button { background: transparent; border: 0; }
.photo-stage {
  background: #0f1511;
  height: min(64vw, 70vh, 680px);
  height: min(64vw, calc(100dvh - 156px), 680px);
  touch-action: pan-y pinch-zoom;
}
.photo-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.photo-nav {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}
.photo-nav button { background: transparent; border-color: #fff4; }
.photo-nav button:hover { background: #334035; }
.photo-caption { text-align: center; margin: 0; line-height: 1.3; }
.photo-caption span { display: block; color: #e5c586; font-size: 11px; font-variant-numeric: tabular-nums; }
.photo-caption strong { display: block; margin-top: 2px; font-size: 14px; font-weight: 550; }
#film-player {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  object-fit: contain;
  background: #0f1511;
}
@media (max-height: 500px) {
  .property { padding-top: 12px; }
  .property p { margin-bottom: 7px; }
  .photo-nav { padding-block: 4px; }
}
