/* Homepage property-demo motion feature.
   Progressive enhancement: injected by home.js so the static homepage still works without JS. */

body.studio-page .studio-property-motion {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin: 4px 0 36px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid #393631;
  border-radius: 4px;
  background: #151515;
  box-shadow: none;
}

body.studio-page .studio-property-motion__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

body.studio-page .studio-property-motion__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #ff9a78;
  font: 800 11px/1.3 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.studio-page .studio-property-motion__label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff754b;
  box-shadow: 0 0 0 6px rgba(255,117,75,.12);
  animation: tkwsPropertyPulse 2.2s ease-in-out infinite;
}

body.studio-page .studio-property-motion h3 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font: 700 clamp(28px, 2.6vw, 36px)/1.12 var(--font-display);
  font-size: clamp(28px, 2.6vw, 36px) !important;
  letter-spacing: -.055em;
}

body.studio-page .studio-property-motion__copy > p {
  max-width: 42ch;
  margin: 20px 0 0;
  color: #bdb6ae;
  font-size: 15px;
  line-height: 1.6;
}

body.studio-page .studio-property-motion__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

body.studio-page .studio-property-motion__meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #ddd6cf;
  background: rgba(255,255,255,.035);
  font-size: 11px;
  font-weight: 700;
}

body.studio-page .studio-property-motion__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

body.studio-page .studio-property-motion__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

body.studio-page .studio-property-motion__actions a:first-child {
  border-color: #ff754b;
  color: #171717;
  background: #ff754b;
}

body.studio-page .studio-property-motion__actions a:hover,
body.studio-page .studio-property-motion__actions a:focus-visible {
  transform: translateY(-2px);
}

body.studio-page .studio-property-motion__scene {
  min-width: 0;
  perspective: 1500px;
  perspective-origin: 50% 42%;
}

body.studio-page .studio-property-browser {
  position: relative;
  display: block;
  width: min(100%, 760px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  background: #fbfaf6;
  box-shadow: 0 44px 90px rgba(0,0,0,.48), 0 0 0 1px rgba(255,117,75,.08);
  transform: rotateX(2.4deg) rotateY(-4.8deg) rotateZ(.35deg);
  transform-style: preserve-3d;
  animation: tkwsPropertyFloat 7s ease-in-out infinite;
  transition: transform .35s ease, border-color .35s ease;
}

body.studio-page .studio-property-browser:hover,
body.studio-page .studio-property-browser:focus-visible {
  border-color: rgba(255,117,75,.66);
  transform: rotateX(.5deg) rotateY(-1deg) translateY(-4px);
}

body.studio-page .studio-property-browser__bar {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding: 9px 12px;
  border-bottom: 1px solid #d9e1d9;
  color: #595e5a;
  background: #f4f2ec;
  font-size: 10px;
  font-weight: 800;
}

body.studio-page .studio-property-browser__dots {
  display: inline-flex;
  gap: 5px;
}

body.studio-page .studio-property-browser__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8afa4;
}

body.studio-page .studio-property-browser__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-page .studio-property-browser__live {
  color: #245c43;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.studio-page .studio-property-browser__viewport {
  position: relative;
  display: block;
  height: clamp(330px, 39vw, 500px);
  overflow: hidden;
  background: #fbfaf6;
}

body.studio-page .studio-property-reel {
  position: absolute;
  inset: 0 0 auto;
  min-height: 850px;
  background: #fbfaf6;
  will-change: transform;
  animation: tkwsPropertyScroll 13s cubic-bezier(.65,0,.35,1) infinite;
}

body.studio-page .studio-property-reel__hero {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  align-items: center;
  min-height: 390px;
  padding: 34px;
  background: #f3f1ea;
}

body.studio-page .studio-property-reel__copy small {
  display: block;
  margin-bottom: 12px;
  color: #245c43;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.studio-page .studio-property-reel__copy strong {
  display: block;
  max-width: 11ch;
  color: #18201b;
  font: 800 clamp(26px, 2.5vw, 36px)/1.04 var(--font-display);
  letter-spacing: -.055em;
}

body.studio-page .studio-property-reel__copy strong em {
  display: block;
  color: #245c43;
  font-style: normal;
}

body.studio-page .studio-property-reel__copy p {
  max-width: 31ch;
  margin-top: 13px;
  color: #667069;
  font-size: 11px !important;
  line-height: 1.5;
}

body.studio-page .studio-property-reel__image {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-radius: 23px;
  background: #dfe5df url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  box-shadow: 0 20px 44px rgba(36,92,67,.16);
}

body.studio-page .studio-property-reel__image::after {
  content: "Featured · Glenwood  ·  R2.45m";
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #18201b;
  background: rgba(255,255,255,.92);
  font-size: 9px;
  font-weight: 800;
}

body.studio-page .studio-property-reel__listings {
  padding: 27px 30px 34px;
  background: #eef3ed;
}

body.studio-page .studio-property-reel__listings > small {
  color: #245c43;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.studio-page .studio-property-reel__listings > strong {
  display: block;
  max-width: 25ch;
  margin: 8px 0 18px;
  color: #18201b;
  font: 800 clamp(18px, 2.4vw, 29px)/1 var(--font-display);
  letter-spacing: -.04em;
}

body.studio-page .studio-property-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

body.studio-page .studio-property-mini-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e1d9;
  border-radius: 13px;
  background: #fff;
}

body.studio-page .studio-property-mini-card div {
  height: 90px;
  background-position: center;
  background-size: cover;
}

body.studio-page .studio-property-mini-card:nth-child(1) div { background-image: url("https://images.unsplash.com/photo-1600566753190-17f0baa2a6c3?auto=format&fit=crop&w=700&q=78"); }
body.studio-page .studio-property-mini-card:nth-child(2) div { background-image: url("https://images.unsplash.com/photo-1600607687920-4e2a09cf159d?auto=format&fit=crop&w=700&q=78"); }
body.studio-page .studio-property-mini-card:nth-child(3) div { background-image: url("https://images.unsplash.com/photo-1600047509807-ba8f99d2cdde?auto=format&fit=crop&w=700&q=78"); }

body.studio-page .studio-property-mini-card > span { display: block; }

body.studio-page .studio-property-mini-card > span > span {
  display: block;
  padding: 9px 10px 0;
  color: #245c43;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.studio-page .studio-property-mini-card strong {
  display: block;
  padding: 2px 10px 3px;
  overflow: hidden;
  color: #18201b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.studio-page .studio-property-mini-card b {
  display: block;
  padding: 0 10px 10px;
  color: #245c43;
  font-size: 10px;
}

body.studio-page .studio-demo-list a[data-property-demo="true"] {
  background: rgba(255,117,75,.055);
}

body.studio-page .studio-demo-list a[data-property-demo="true"] strong::after {
  content: "MOTION FEATURE";
  display: inline-block;
  margin-left: 9px;
  padding: 4px 6px;
  border: 1px solid rgba(255,117,75,.32);
  border-radius: 999px;
  color: #ff9a78;
  font: 800 8px/1 var(--font-body);
  letter-spacing: .08em;
  vertical-align: middle;
}

@keyframes tkwsPropertyScroll {
  0%, 18% { transform: translateY(0); }
  46%, 70% { transform: translateY(-315px); }
  92%, 100% { transform: translateY(0); }
}

@keyframes tkwsPropertyFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes tkwsPropertyPulse {
  0%, 100% { opacity: .7; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 900px) {
  body.studio-page .studio-property-motion {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 44px;
    padding: 24px;
  }

  body.studio-page .studio-property-motion h3 { max-width: 100%; }
  body.studio-page .studio-property-browser { transform: none; }
  body.studio-page .studio-property-browser:hover,
  body.studio-page .studio-property-browser:focus-visible { transform: translateY(-3px); }
  body.studio-page .studio-property-browser__viewport { height: clamp(310px, 62vw, 440px); }
}

@media (max-width: 620px) {
  body.studio-page .studio-property-motion { padding: 18px; }
  body.studio-page .studio-property-reel__hero {
    grid-template-columns: 1fr 1fr;
    min-height: 330px;
    padding: 22px;
  }
  body.studio-page .studio-property-reel__copy strong { font-size: clamp(23px, 7vw, 34px); }
  body.studio-page .studio-property-reel__copy p { display: none; }
  body.studio-page .studio-property-reel__image { min-height: 255px; }
  body.studio-page .studio-property-reel__listings { padding: 22px 20px 28px; }
  body.studio-page .studio-property-mini-grid { gap: 7px; }
  body.studio-page .studio-property-mini-card div { height: 68px; }
  body.studio-page .studio-property-mini-card > span > span { display: none; }
  body.studio-page .studio-property-mini-card strong { font-size: 8px; }
  body.studio-page .studio-property-browser__bar { grid-template-columns: auto minmax(0,1fr); }
  body.studio-page .studio-property-browser__live { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.studio-page .studio-property-motion__label::before,
  body.studio-page .studio-property-browser,
  body.studio-page .studio-property-reel {
    animation: none !important;
  }
  body.studio-page .studio-property-browser { transform: none; }
  body.studio-page .studio-property-reel { transform: translateY(-120px); }
}
