.emerald-hero {
  min-height: 500px;
  padding-top: clamp(84px, 8vw, 118px);
  padding-bottom: clamp(34px, 5vw, 56px);
}

.emerald-hero + .project-360-section {
  padding-top: 44px;
}

.emerald-hero h1 {
  max-width: 780px;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.06;
}

.emerald-hero p {
  max-width: 680px;
  font-size: clamp(16px, 1.5vw, 18px);
}

.project-360-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.project-360-tool-page {
  min-height: 100vh;
  background: var(--paper);
}

.project-360-tool-page .project-360-section {
  padding-top: clamp(116px, 14vw, 150px);
}

.project-360-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.45fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 28px;
}

.project-360-head h1,
.project-360-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.project-360-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.project-360-tour-shell {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.project-360-scene-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(11, 17, 29, 0.08);
}

.project-360-scene-panel .section-kicker {
  margin: 0;
}

.project-360-scenes {
  display: grid;
  gap: 8px;
}

.project-360-scene-button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  color: var(--ink);
  background: #f8f6ef;
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.project-360-scene-button:hover,
.project-360-scene-button:focus-visible,
.project-360-scene-button.is-active {
  border-color: rgba(212, 175, 55, 0.58);
  background: #fff;
  transform: translateY(-1px);
}

.project-360-scene-button span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #111827;
  background: #ead7a4;
  font-size: 12px;
  font-weight: 900;
}

.project-360-scene-button strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-360-current {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}

.project-360-current span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-360-current strong {
  color: var(--green-dark);
  font-size: 15px;
}

.project-360-current p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.project-360-stage {
  min-width: 0;
}

.project-360-frame {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
  border: 1px solid rgba(200, 164, 93, 0.24);
  border-radius: 20px;
  background: #0d1b2a;
  box-shadow: 0 22px 60px rgba(11, 17, 29, 0.16);
}

.project-360-viewer {
  width: 100%;
  height: 100%;
}

.project-360-viewer.is-unavailable {
  opacity: 0.18;
}

.project-360-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px;
  color: #fff;
  background: rgba(7, 9, 13, 0.76);
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.project-360-fallback[hidden] {
  display: none;
}

.project-360-guide {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  margin-top: 18px;
  color: #46515f;
  font-size: 14px;
  line-height: 1.6;
}

.project-360-guide p {
  margin: 0;
}

.project-360-guide .project-360-source {
  color: #4e5b6a;
  font-weight: 700;
}

.project-360-guide .project-360-disclaimer {
  max-width: 760px;
  color: #667181;
}

.project-360-editor {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(13, 27, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(11, 17, 29, 0.08);
}

.project-360-editor[hidden] {
  display: none;
}

.project-360-editor summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.project-360-editor p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-360-editor code {
  color: var(--ink);
  font-weight: 800;
}

.project-360-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.project-360-readout span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(13, 27, 42, 0.1);
  border-radius: 10px;
  background: rgba(13, 27, 42, 0.035);
  color: var(--muted);
  font-size: 13px;
}

.project-360-readout output {
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.project-360-snippet {
  display: block;
  width: 100%;
  min-height: 150px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(13, 27, 42, 0.14);
  border-radius: 10px;
  color: #273241;
  background: #f8f6ef;
  font: 13px/1.55 Consolas, "Liberation Mono", monospace;
  resize: vertical;
}

.project-360-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.project-360-copy-status {
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.kingmans-panorama-hotspot {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #d4af37;
  box-shadow: 0 10px 26px rgba(7, 9, 13, 0.35);
}

.kingmans-panorama-hotspot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  background: #111827;
}

.kingmans-panorama-hotspot.is-direction {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #111827;
}

.kingmans-panorama-hotspot.is-direction::before {
  content: "→";
  position: relative;
  z-index: 1;
  color: #d4af37;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.kingmans-panorama-hotspot.is-direction::after {
  display: none;
}

.kingmans-panorama-hotspot .hotspot-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  width: min(260px, 72vw);
  padding: 13px 14px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 12px;
  color: #f8f6ef;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 16px 36px rgba(7, 9, 13, 0.32);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.kingmans-panorama-hotspot:hover .hotspot-tooltip,
.kingmans-panorama-hotspot:focus .hotspot-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.kingmans-panorama-hotspot .hotspot-tooltip strong,
.kingmans-panorama-hotspot .hotspot-tooltip span {
  display: block;
}

.kingmans-panorama-hotspot .hotspot-tooltip strong {
  margin-bottom: 5px;
  color: #ead7a4;
  font-size: 13px;
  line-height: 1.35;
}

.kingmans-panorama-hotspot .hotspot-tooltip span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .emerald-hero {
    min-height: auto;
    padding-top: 92px;
    padding-bottom: 36px;
  }

  .emerald-hero + .project-360-section {
    padding-top: 34px;
  }

  .project-360-section {
    width: min(100% - 28px, 1180px);
    padding: 62px 0;
  }

  .project-360-tool-page .project-360-section {
    padding-top: 98px;
  }

  .project-360-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project-360-tour-shell {
    grid-template-columns: 1fr;
  }

  .project-360-scene-panel {
    position: static;
    padding: 14px;
    border-radius: 14px;
  }

  .project-360-scenes {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .project-360-scene-button {
    grid-template-columns: 30px minmax(130px, 1fr);
    min-width: 190px;
    scroll-snap-align: start;
  }

  .project-360-scene-button span {
    width: 30px;
    height: 30px;
  }

  .project-360-frame {
    height: 420px;
    border-radius: 14px;
  }

  .project-360-guide {
    display: grid;
  }

  .project-360-readout {
    grid-template-columns: 1fr;
  }

  .project-360-editor {
    padding: 14px;
    border-radius: 12px;
  }
}
