/* ============================================================
   Zillow 3D Home Tour Page
   ============================================================ */

.page-zillow-3d-home {
  background: #fffdf8;
}

.page-zillow-3d-home .main {
  padding-bottom: 0;
}

.industry-hero--zillow-tour .hero__overlay {
  background:
    radial-gradient(circle at 48% 16%, rgba(243, 198, 109, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(7, 17, 8, 0.22) 0%, rgba(7, 17, 8, 0.42) 42%, rgba(7, 17, 8, 0.9) 100%);
}

.industry-hero--zillow-tour .hero__bg img {
  object-position: 50% 44%;
}

.industry-hero--zillow-tour .hero__title {
  max-width: 12.2ch;
}

.zillow-tour-intro,
.zillow-tour-cards,
.zillow-tour-compare,
.page-zillow-3d-home .cta-banner,
.page-zillow-3d-home .faq {
  scroll-margin-top: 112px;
}

.zillow-tour-intro {
  padding: clamp(60px, 7vw, 92px) 0;
  background:
    radial-gradient(circle at 80% 8%, rgba(0, 106, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f7f3ea 100%);
}

.zillow-tour-intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 0.9fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.zillow-tour-intro__copy {
  min-width: 0;
}

.zillow-tour-intro__copy .section-label {
  justify-content: flex-start;
}

.zillow-tour-intro__copy h2.service-art-title {
  max-width: min(92vw, 17ch);
  margin-inline: 0 !important;
  font-size: clamp(2.55rem, 4.85vw, 3.55rem) !important;
}

.zillow-tour-intro__copy h2.service-art-title span:last-child {
  white-space: nowrap;
}

.zillow-tour-intro__copy p {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.zillow-tour-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.zillow-tour-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: #172116;
  font-size: 0.98rem;
  line-height: 1.5;
}

.zillow-tour-list li::before {
  content: "\2713";
  color: #06733a;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.zillow-tour-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.zillow-tour-preview {
  position: relative;
  display: block;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(16, 33, 13, 0.12);
  background: #071108;
  box-shadow: 0 28px 70px rgba(5, 14, 6, 0.14);
  isolation: isolate;
}

.zillow-tour-preview__image {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform var(--ease);
}

.zillow-tour-preview:hover .zillow-tour-preview__image,
.zillow-tour-preview:focus-visible .zillow-tour-preview__image {
  transform: scale(1.035);
}

.zillow-tour-preview:focus-visible {
  outline: 3px solid #f1bd4e;
  outline-offset: 4px;
}

.zillow-tour-preview__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 8, 0.04) 0%, rgba(7, 17, 8, 0.48) 100%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.2), transparent 22%);
  z-index: 1;
  pointer-events: none;
}

.zillow-tour-preview__badge {
  position: absolute;
  z-index: 3;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  color: #10210d;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

.zillow-tour-preview__badge img {
  width: 78px;
  height: auto;
  object-fit: contain;
}

.zillow-tour-preview__phone {
  position: absolute;
  right: 28px;
  bottom: 32px;
  z-index: 2;
  display: block;
  width: min(26%, 132px);
  aspect-ratio: 0.58;
  overflow: hidden;
  border: 6px solid #050705;
  border-radius: 20px;
  background: #050705;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.zillow-tour-preview__phone::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.zillow-tour-preview__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}

.zillow-tour-preview__phone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 17, 8, 0.08) 0%, transparent 42%, rgba(7, 17, 8, 0.38) 100%);
  pointer-events: none;
}

.zillow-tour-preview__phone-brand {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.zillow-tour-preview__phone-brand img {
  width: 100%;
  max-width: 70px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.zillow-tour-cards {
  padding: clamp(58px, 6.5vw, 86px) 0;
}

.page-zillow-3d-home .zillow-tour-cards .section-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.page-zillow-3d-home .zillow-tour-cards .section-head p {
  max-width: 66ch;
  margin-inline: auto;
}

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

.zillow-tour-cards__grid article {
  min-height: 240px;
  padding: 26px;
  border-radius: 8px;
  border: 1px solid rgba(16, 33, 13, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 242, 232, 0.92) 100%);
  box-shadow: var(--shadow-sm);
}

.zillow-tour-cards__grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 106, 255, 0.1);
  color: #126c38;
  font-family: var(--font-heading);
  font-weight: 900;
}

.zillow-tour-cards__grid h3 {
  margin: 20px 0 10px;
  color: var(--green-deep);
  font-family: var(--font-heading);
  font-size: 1.22rem;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.zillow-tour-compare {
  padding: 0 0 clamp(58px, 6.5vw, 86px);
}

.zillow-tour-compare__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 8px;
  color: #fffdf8;
  background:
    radial-gradient(circle at 14% 8%, rgba(0, 106, 255, 0.2), transparent 24%),
    linear-gradient(135deg, #0c220d 0%, #071108 100%);
  box-shadow: var(--shadow-lg);
}

.zillow-tour-compare__head h2 {
  margin: 0;
  max-width: 12ch;
  color: #fffdf8;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-zillow-3d-home .zillow-tour-compare__head #zillow-compare-title.section-art-title,
.page-zillow-3d-home .zillow-tour-compare__head #zillow-compare-title.section-art-title span:first-child {
  color: #fffdf8 !important;
  -webkit-text-fill-color: #fffdf8;
  text-shadow:
    0 2px 0 rgba(3, 12, 5, 0.7),
    0 14px 30px rgba(0, 0, 0, 0.34);
}

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

.zillow-tour-compare__grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.14);
}

.zillow-tour-compare__grid strong {
  display: block;
  color: #f1bd4e;
  font-family: var(--font-heading);
  font-size: 1.06rem;
  line-height: 1.12;
}

.zillow-tour-compare__grid p {
  margin: 14px 0 0;
  color: rgba(255, 253, 248, 0.76);
  font-size: 0.96rem;
  line-height: 1.56;
}

.page-zillow-3d-home .faq {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .zillow-tour-intro__layout,
  .zillow-tour-compare__panel {
    grid-template-columns: 1fr;
  }

  .zillow-tour-intro__copy {
    text-align: center;
  }

  .zillow-tour-intro__copy .section-label {
    justify-content: center;
  }

  .zillow-tour-intro__copy h2.service-art-title,
  .zillow-tour-intro__copy p {
    margin-inline: auto !important;
  }

  .zillow-tour-list {
    max-width: 620px;
    margin-inline: auto;
    text-align: left;
  }

  .zillow-tour-intro__actions {
    justify-content: center;
  }

  .zillow-tour-cards__grid,
  .zillow-tour-compare__grid {
    grid-template-columns: 1fr;
  }

  .zillow-tour-cards__grid article,
  .zillow-tour-compare__grid article {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .zillow-tour-intro,
  .zillow-tour-cards,
  .zillow-tour-compare,
  .page-zillow-3d-home .faq {
    scroll-margin-top: 92px;
  }

  .zillow-tour-preview,
  .zillow-tour-preview__image {
    min-height: 360px;
  }

  .zillow-tour-preview__badge {
    left: 16px;
    right: 16px;
    bottom: 16px;
    justify-content: center;
    min-height: 52px;
  }

  .zillow-tour-preview__badge img {
    width: 66px;
  }

  .zillow-tour-preview__phone {
    top: 18px;
    right: 18px;
    bottom: auto;
    width: min(28%, 108px);
    border-width: 5px;
    border-radius: 16px;
  }

  .zillow-tour-intro__copy h2.service-art-title span:last-child {
    white-space: normal;
  }

  .zillow-tour-intro__actions,
  .zillow-tour-intro__actions .btn {
    width: 100%;
  }

  .zillow-tour-intro__actions .btn {
    justify-content: center;
  }
}
