:root {
  color-scheme: dark;
  font: 16px/1.45 system-ui, sans-serif;
  --graphite: #171c22;
  --ice-blue: #9cd9ff;
  --ice-blue-hover: #c2e8ff;
  --chevron-ink: #151a20;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #11171c; color: #fff; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, select:focus-visible, .panorama:focus-visible { outline: 3px solid var(--ice-blue); outline-offset: -3px; }
.tour, .panorama { position: absolute; inset: 0; }
.tour { overflow: hidden; background: #11171c; }
.tour-header { position: absolute; inset: 16px 16px auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.fullscreen, .directions, .scenes, .status { background: var(--graphite); border: 1px solid #ffffff35; box-shadow: 0 4px 20px #0004; }
.tour-logo { display: block; width: 112px; height: 112px; object-fit: contain; filter: drop-shadow(0 1px 2px #0005); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fullscreen { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; font-size: 1.4rem; pointer-events: auto; }
.tour-controls { position: absolute; bottom: 16px; left: 12px; right: 12px; display: flex; justify-content: center; align-items: center; gap: 6px; pointer-events: none; }
.directions, .scenes { display: flex; gap: 4px; max-width: 100%; border-radius: 12px; padding: 5px; pointer-events: auto; }
.directions { flex: none; }
.directions button { width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--ice-blue); color: var(--chevron-ink); }
.directions button:enabled:hover { background: var(--ice-blue-hover); }
.directions button:disabled { background: #ffffff12; color: #a1aab1; cursor: default; }
.scenes { width: 440px; min-width: 0; align-items: center; gap: 8px; }
.scenes span { padding-inline: 7px 0; color: var(--ice-blue); font-size: .77rem; white-space: nowrap; }
.scenes select { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--ice-blue); border-radius: 8px; padding-inline: 8px; background: var(--graphite); color: #fff; font: inherit; font-size: .84rem; cursor: pointer; }
.hotspot { position: relative; width: 44px; height: 44px; margin: -22px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 3px 12px #0008; font-weight: 800; line-height: 1; }
.hotspot:hover { filter: brightness(1.15); }
.hotspot.link { background: var(--ice-blue); color: var(--chevron-ink); }
.directions button, .hotspot.link { display: grid; place-items: center; }
.chevron {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  clip-path: polygon(6% 68%, 50% 24%, 94% 68%, 80% 82%, 50% 52%, 20% 82%);
  pointer-events: none;
}
.directions [data-direction="back"] .chevron { transform: rotate(180deg); }
.hotspot-label { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); border-radius: 5px; padding: 3px 5px; color: #fff; background: var(--graphite); font-size: .72rem; font-weight: 750; line-height: 1.2; width: max-content; max-width: min(155px, 28vw); white-space: pre-line; unicode-bidi: plaintext; overflow-wrap: anywhere; pointer-events: auto; }
.hotspot.information {
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ice-blue);
  font-size: 1rem;
  transition: font-size 140ms ease;
}
.hotspot.information::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: -1;
  border: 1.5px solid var(--ice-blue);
  border-radius: 50%;
  background: #172530;
  box-shadow: 0 3px 10px #0007;
  transition: transform 140ms ease;
}
.hotspot.information:focus-visible { font-size: 1.35rem; }
.hotspot.information:focus-visible::before { transform: scale(1.35); }
@media (hover: hover) {
  .hotspot.information:hover { font-size: 1.35rem; }
  .hotspot.information:hover::before { transform: scale(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot.information, .hotspot.information::before { transition: none; }
}
.status { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); width: min(90%, 420px); margin: 0; padding: 16px; border-radius: 12px; }
dialog { width: min(calc(100% - 30px), 560px); max-height: calc(100% - 32px); overflow-y: auto; border: 1px solid #63727c; background: #17212a; color: #fff; border-radius: 14px; padding: 22px; }
dialog::backdrop { background: #080d11b8; }
dialog h2 { margin: 0 0 10px; margin-inline-end: 36px; font-size: 1.25rem; }
dialog p { margin: 0; color: #e0e7eb; }
.info-sections { display: grid; gap: 12px; margin-top: 15px; }
.info-sections section { border-top: 1px solid #ffffff26; padding-top: 10px; }
.info-sections h3 { margin: 0 0 4px; color: var(--ice-blue); font-size: .9rem; }
.info-sections p { font-size: .9rem; }
.info-specs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0 12px; margin: 4px 0 0; font-size: .86rem; }
.info-specs dt, .info-specs dd { margin: 0; padding: 5px 0; border-bottom: 1px solid #ffffff13; overflow-wrap: anywhere; }
.info-specs dt { color: #c6d4df; }
.info-specs dd { color: #fff; }
dialog form { position: sticky; top: 0; z-index: 1; height: 0; }
dialog button { position: absolute; top: -8px; inset-inline-end: -8px; width: 44px; height: 44px; border: 0; border-radius: 8px; background: #ffffff14; font-size: 1.45rem; }
@media (max-width: 480px) {
  .tour-header { inset: 10px 10px auto; }
  .tour-logo { width: 84px; height: 84px; }
  .tour-controls { bottom: 10px; }
  .scenes select { font-size: .78rem; }
}

/* Drone photos open above the active panorama. */
.hotspot.drone-pin {
  width: 58px;
  margin-inline: -29px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hotspot.drone-pin .drone-icon {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  width: 58px;
  height: 20px;
  pointer-events: none;
  filter: drop-shadow(0 0 .7px #fff) drop-shadow(0 1px .7px #3336);
  transition: transform 140ms ease;
}
.hotspot.drone-pin .drone-icon img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}
.hotspot.drone-pin .drone-icon .drone-brand {
  filter: none;
  clip-path: inset(0 39% 0 39%);
}
.hotspot.drone-pin:focus-visible .drone-icon { transform: scale(1.83); }
@media (hover: hover) {
  .hotspot.drone-pin:hover .drone-icon { transform: scale(1.83); }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot.drone-pin .drone-icon { transition: none; }
}
#drone-photo {
  width: fit-content;
  max-width: calc(100% - 24px);
  padding: 12px;
}
#drone-photo h2 {
  margin: 0 48px 10px 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: 1.05rem;
}
#drone-photo button { inset-inline-end: -5px; top: -7px; }
#drone-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 1120px);
  max-height: calc(100dvh - 110px);
  object-fit: contain;
  border-radius: 6px;
}
