/* ============================================================
   3D Virtual Tour Page
   ============================================================ */

.page-virtual-tour {
  background:
    linear-gradient(180deg, #f8f5ed 0%, #fffdf8 42%, #f3efe4 100%);
}

.page-virtual-tour .section-label,
.page-virtual-tour .pill {
  letter-spacing: 0;
}

.industry-hero--virtual-tour .hero__overlay {
  background:
    radial-gradient(circle at 50% 16%, rgba(243, 198, 109, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 8, 0.18) 0%, rgba(7, 17, 8, 0.36) 38%, rgba(7, 17, 8, 0.9) 100%);
}

.industry-hero--virtual-tour .hero__title {
  max-width: 12.4ch;
}

.industry-hero--virtual-tour .pill {
  letter-spacing: 0.16em;
}

.tour-service-hero,
.tour-routing,
.tour-showcase,
.tour-deliverables,
.tour-flow,
.page-virtual-tour .cta-banner,
.page-virtual-tour .faq,
.page-virtual-tour #contact {
  scroll-margin-top: 112px;
}

.tour-service-hero {
  position: relative;
  min-height: 760px;
  padding: 132px 0 40px;
  color: #fffdf8;
  overflow: hidden;
  background: #071108;
}

.tour-service-hero__media {
  position: absolute;
  inset: 0;
}

.tour-service-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) contrast(1.04);
}

.tour-service-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 7, 0.94) 0%, rgba(8, 22, 10, 0.78) 43%, rgba(8, 22, 10, 0.42) 100%),
    linear-gradient(180deg, rgba(5, 13, 7, 0.28) 0%, rgba(5, 13, 7, 0.86) 100%);
}

.tour-service-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1fr);
  gap: 42px;
  align-items: center;
}

.tour-service-hero__copy {
  max-width: 660px;
}

.tour-service-hero__eyebrow {
  margin-bottom: 20px;
  color: #f6e7bf;
  background: rgba(255, 253, 248, 0.1);
  border-color: rgba(255, 253, 248, 0.22);
}

.tour-service-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 4.25rem;
  line-height: 0.96;
  letter-spacing: 0;
  color: #fffdf8;
}

.tour-service-hero p {
  max-width: 62ch;
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
  line-height: 1.72;
}

.tour-service-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tour-service-hero__demo {
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background: #071108;
  border: 1px solid rgba(255, 253, 248, 0.2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.tour-service-hero__demo-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: #f7edd0;
  background: rgba(11, 29, 13, 0.94);
  border-bottom: 1px solid rgba(255, 253, 248, 0.14);
  font-weight: 800;
  font-size: 0.82rem;
}

.tour-service-hero__demo-bar strong {
  color: var(--gold);
}

.tour-service-hero__demo iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.tour-service-hero__signals {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.tour-service-hero__signal {
  min-height: 118px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(255, 253, 248, 0.18);
  backdrop-filter: blur(12px);
}

.tour-service-hero__signal strong {
  display: block;
  margin-bottom: 8px;
  color: #f1bd4e;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0;
}

.tour-service-hero__signal span {
  display: block;
  color: rgba(255, 253, 248, 0.78);
  font-size: 0.94rem;
  line-height: 1.48;
}

@media (min-width: 1025px) {
  .tour-service-hero {
    min-height: 100svh;
    display: grid;
    align-content: center;
    gap: clamp(20px, 2.7svh, 26px);
    padding: clamp(70px, 8svh, 84px) 0 clamp(18px, 2.4svh, 24px);
  }

  .tour-service-hero__inner {
    gap: clamp(24px, 3vw, 44px);
  }

  .tour-service-hero__eyebrow {
    margin-bottom: 18px;
  }

  .tour-service-hero h1 {
    font-size: clamp(2.6rem, 4.2vw, 4.5rem);
    line-height: 1;
  }

  .tour-service-hero p {
    margin-top: 20px;
    line-height: 1.58;
  }

  .tour-service-hero__actions {
    gap: 18px;
    margin-top: 22px;
    transform: translateY(8px);
  }

  .tour-service-hero__actions .btn {
    min-height: 46px;
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
  }

  .tour-service-hero__demo {
    min-height: clamp(300px, 38svh, 420px);
  }

  .tour-service-hero__demo iframe {
    height: clamp(300px, 38svh, 420px);
  }

  .tour-service-hero__signals {
    width: min(100%, 980px);
    margin: 0 auto;
    gap: 14px;
    transform: translateY(16px);
  }

  .tour-service-hero__signal {
    min-height: 0;
    padding: 14px 16px;
    align-content: center;
  }
}

@media (min-width: 1025px) and (max-height: 800px) {
  .tour-service-hero {
    gap: clamp(16px, 2.1svh, 22px);
    padding-top: 66px;
    padding-bottom: 14px;
  }

  .tour-service-hero h1 {
    font-size: clamp(2.35rem, 3.75vw, 3.65rem);
  }

  .tour-service-hero p {
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .tour-service-hero__actions {
    margin-top: 14px;
  }

  .tour-service-hero__demo {
    min-height: clamp(260px, 36svh, 330px);
  }

  .tour-service-hero__demo iframe {
    height: clamp(260px, 36svh, 330px);
  }

  .tour-service-hero__signals {
    width: min(100%, 920px);
  }

  .tour-service-hero__signal {
    padding: 12px 14px;
  }
}

.tour-section-head {
  max-width: 820px;
  margin: 0 auto 34px;
  text-align: center;
}

.tour-section-head h2 {
  margin: 0;
  color: #10210d;
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: 0;
}

.tour-section-head p {
  max-width: 66ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.tour-section-head--light h2 {
  color: #fffdf8;
}

.tour-section-head--light p {
  color: rgba(255, 253, 248, 0.76);
}

.tour-routing {
  padding: 88px 0 76px;
}

.tour-routing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tour-routing__item {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 34px;
  border-radius: 26px;
  border: 1px solid rgba(16, 33, 13, 0.1);
  box-shadow: var(--shadow-md);
}

.tour-routing__item::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 42px 42px;
}

.tour-routing__item--matterport {
  background:
    linear-gradient(145deg, #10330f 0%, #071108 100%);
  color: #fffdf8;
}

.tour-routing__item--zillow {
  background:
    linear-gradient(145deg, #fffdf8 0%, #f5ead2 100%);
  color: #10210d;
}

.tour-routing__item > * {
  position: relative;
  z-index: 1;
}

.tour-routing__eyebrow,
.tour-showcase__eyebrow,
.tour-showcase__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(196, 141, 38, 0.16);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
}

.tour-routing__item--matterport .tour-routing__eyebrow {
  background: rgba(255, 253, 248, 0.12);
  color: #f1bd4e;
}

.tour-routing__item h3 {
  max-width: 12ch;
  margin: 22px 0 14px;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: 0;
}

.tour-routing__item p {
  max-width: 58ch;
  margin: 0;
  color: inherit;
  opacity: 0.78;
  font-size: 1rem;
  line-height: 1.68;
}

.tour-checklist {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.tour-checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: inherit;
  font-size: 0.96rem;
  line-height: 1.48;
}

.tour-checklist li::before {
  content: "✓";
  color: #26a35b;
  font-weight: 800;
}

.tour-showcase {
  padding: 88px 0;
  background:
    linear-gradient(180deg, #0a170b 0%, #12350e 52%, #071108 100%);
}

.tour-showcase__switcher {
  display: grid;
  gap: 22px;
}

.tour-showcase__tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(255, 253, 248, 0.16);
  scrollbar-width: none;
}

.tour-showcase__tabs::-webkit-scrollbar {
  display: none;
}

.tour-showcase__tab {
  flex: 1 0 max-content;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff6df;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.14);
  font-size: 0.82rem;
  font-weight: 900;
}

.tour-showcase__tab:hover,
.tour-showcase__tab:focus-visible {
  background: rgba(255, 253, 248, 0.16);
  outline: none;
}

.tour-showcase__tab.is-active {
  color: #071108;
  background: var(--gold);
  border-color: var(--gold);
}

.tour-showcase__panel {
  color: #fffdf8;
}

.tour-showcase__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 20px;
  align-items: stretch;
}

.tour-showcase__matterport,
.tour-showcase__zillow {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 520px;
  border-radius: 28px;
  background: #061008;
  border: 1px solid rgba(255, 253, 248, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3);
}

.tour-showcase__chip {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  color: #fff8e8;
  background: rgba(7, 17, 8, 0.72);
  border: 1px solid rgba(255, 253, 248, 0.18);
  backdrop-filter: blur(10px);
}

.tour-showcase__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 520px;
  padding: 34px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.14);
}

.tour-showcase__copy h3 {
  margin: 18px 0 14px;
  color: #fffdf8;
  font-family: var(--font-heading);
  font-size: 2.3rem;
  line-height: 1;
  letter-spacing: 0;
}

.tour-showcase__copy p {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: 1rem;
  line-height: 1.64;
}

.tour-showcase__fit {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(7, 17, 8, 0.34);
  border: 1px solid rgba(255, 253, 248, 0.12);
}

.tour-showcase__fit strong {
  display: block;
  margin-bottom: 10px;
  color: #f1bd4e;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.tour-showcase__fit ul {
  display: grid;
  gap: 8px;
}

.tour-showcase__fit li {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 10px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 0.92rem;
}

.tour-showcase__fit li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  background: var(--gold);
}

.tour-showcase__copy .tour-checklist {
  color: rgba(255, 253, 248, 0.86);
}

.tour-showcase__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tour-showcase__proof span,
.tour-showcase__proof a {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.14);
  color: #fffdf8;
}

.tour-showcase__proof strong {
  color: #f1bd4e;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.tour-showcase__proof small {
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.88rem;
  line-height: 1.36;
}

.tour-showcase__proof a {
  align-items: center;
  text-align: center;
  color: #071108;
  background: linear-gradient(135deg, #f1bd4e 0%, #c48d26 100%);
  border-color: rgba(255, 253, 248, 0.16);
  font-family: var(--font-heading);
  font-weight: 900;
}

.tour-showcase__matterport,
.tour-showcase__zillow {
  color: #fffdf8;
}

.tour-showcase__matterport > img,
.tour-showcase__zillow > img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform var(--ease);
}

.tour-showcase__matterport::after,
.tour-showcase__zillow::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 8, 0.12) 0%, rgba(7, 17, 8, 0.78) 100%);
}

.tour-showcase__matterport:hover > img,
.tour-showcase__matterport:focus-visible > img,
.tour-showcase__zillow:hover > img,
.tour-showcase__zillow:focus-visible > img {
  transform: scale(1.035);
}

.tour-showcase__matterport:focus-visible,
.tour-showcase__zillow:focus-visible {
  outline: 3px solid #f1bd4e;
  outline-offset: 4px;
}

.tour-showcase__matterport-badge,
.tour-showcase__zillow-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(320px, calc(100% - 48px));
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  color: #10210d;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.tour-showcase__matterport-badge img,
.tour-showcase__zillow-badge img {
  width: 126px;
  height: auto;
  object-fit: contain;
}

.tour-showcase__matterport-badge strong,
.tour-showcase__zillow-badge strong {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.tour-deliverables {
  padding: 88px 0;
}

.tour-deliverables__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tour-deliverable {
  min-height: 230px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(16, 33, 13, 0.1);
  box-shadow: var(--shadow-sm);
}

.tour-deliverable span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--gold);
  background: rgba(196, 141, 38, 0.13);
  font-weight: 900;
  font-size: 0.78rem;
}

.tour-deliverable h3 {
  margin: 20px 0 10px;
  color: #10210d;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.tour-deliverable p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.56;
}

.tour-flow {
  padding: 0 0 88px;
}

.tour-flow__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: 30px;
  color: #fffdf8;
  background:
    linear-gradient(135deg, #14390f 0%, #071108 100%);
  box-shadow: var(--shadow-lg);
}

.tour-flow__copy h2 {
  margin: 0;
  color: #fffdf8;
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: 0;
}

.tour-flow__copy p {
  margin: 18px 0 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: 1rem;
  line-height: 1.68;
}

.tour-flow__steps {
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.tour-flow__steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.13);
}

.tour-flow__steps li > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #071108;
  background: var(--gold);
  font-family: var(--font-heading);
  font-weight: 900;
}

.tour-flow__steps strong,
.tour-flow__steps p {
  grid-column: 2;
}

.tour-flow__steps strong {
  color: #fffdf8;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.tour-flow__steps p {
  margin: -8px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.94rem;
  line-height: 1.48;
}

.page-virtual-tour .faq {
  padding-top: 56px;
}

@media (max-width: 1180px) {
  .tour-service-hero__inner,
  .tour-showcase__layout,
  .tour-flow__inner {
    grid-template-columns: 1fr;
  }

  .tour-service-hero__copy {
    max-width: 780px;
  }

  .tour-service-hero__demo,
  .tour-service-hero__demo iframe,
  .tour-showcase__matterport,
  .tour-showcase__zillow,
  .tour-showcase__matterport > img,
  .tour-showcase__zillow > img,
  .tour-showcase__copy {
    min-height: 460px;
  }

  .tour-showcase__matterport > img,
  .tour-showcase__zillow > img {
    height: 460px;
  }

  .tour-showcase__copy {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .tour-service-hero {
    min-height: auto;
    padding-top: 120px;
  }

  .tour-service-hero h1,
  .tour-section-head h2 {
    font-size: 3rem;
  }

  .tour-service-hero__signals,
  .tour-routing__grid,
  .tour-showcase__proof,
  .tour-deliverables__grid {
    grid-template-columns: 1fr;
  }

  .tour-routing__item {
    min-height: auto;
  }

  .tour-deliverable {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .tour-service-hero,
  .tour-routing,
  .tour-showcase,
  .tour-deliverables,
  .page-virtual-tour .faq {
    scroll-margin-top: 92px;
  }

  .page-virtual-tour .faq {
    padding-top: 44px;
  }

  .tour-service-hero {
    padding: 112px 0 30px;
  }

  .tour-service-hero h1,
  .tour-section-head h2,
  .tour-flow__copy h2 {
    font-size: 2.35rem;
  }

  .tour-service-hero__demo,
  .tour-service-hero__demo iframe,
  .tour-showcase__matterport,
  .tour-showcase__zillow,
  .tour-showcase__matterport > img,
  .tour-showcase__zillow > img {
    min-height: 330px;
  }

  .tour-service-hero__demo iframe,
  .tour-showcase__matterport > img,
  .tour-showcase__zillow > img {
    height: 330px;
  }

  .tour-service-hero__demo,
  .tour-showcase__matterport,
  .tour-showcase__zillow,
  .tour-showcase__copy,
  .tour-flow__inner {
    border-radius: 22px;
  }

  .tour-showcase__copy {
    min-height: auto;
  }

  .tour-routing,
  .tour-showcase,
  .tour-deliverables {
    padding: 68px 0;
  }

  .tour-flow {
    padding-bottom: 68px;
  }

  .tour-routing__item,
  .tour-showcase__copy,
  .tour-flow__inner {
    padding: 24px;
  }

  .tour-routing__item h3,
  .tour-showcase__copy h3 {
    font-size: 1.9rem;
  }

  .tour-service-hero__actions,
  .tour-service-hero__actions .btn {
    width: 100%;
  }

  .tour-service-hero__actions .btn {
    justify-content: center;
  }

  .tour-flow__steps li {
    grid-template-columns: 42px 1fr;
    padding: 16px;
  }

  .tour-flow__steps li > span {
    width: 42px;
    height: 42px;
  }
}
