:root {
  --bg: #ffffff;
  --ink: #18222d;
  --muted: #68717d;
  --line: #e8e2da;
  --soft: #f8f4ef;
  --soft-blue: #edf6fa;
  --blue: #9fd0e5;
  --sea: #84bdd1;
  --green: #178a57;
  --green-dark: #11643f;
  --terracotta: #c96d55;
  --shadow: 0 18px 60px rgba(24, 34, 45, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(143, 177, 190, 0.08), transparent 14%, transparent 86%, rgba(201, 109, 85, 0.08)),
    var(--bg);
}

button,
input {
  font: inherit;
}

.page-shell {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 36px) 96px;
}

.hero {
  padding-top: 4px;
}

.image-slot {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #f3eee7, #e8f3f9);
  border: 1px solid rgba(24, 34, 45, 0.08);
}

.hero-carousel {
  position: relative;
}

.carousel-frame {
  min-height: 250px;
}

.photo-hero {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #f4f1ed;
  box-shadow: var(--shadow);
}

.photo-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-hero figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  background: #fff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.carousel-controls {
  position: absolute;
  right: 12px;
  bottom: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 26px rgba(24, 34, 45, 0.16);
  backdrop-filter: blur(10px);
}

.carousel-controls button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.carousel-controls svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.carousel-controls span {
  min-width: 44px;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-copy {
  margin: 26px 4px 18px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  margin: 0;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 9vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.42rem, 4.8vw, 2.1rem);
  line-height: 1.06;
}

p {
  line-height: 1.55;
}

.hero-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 3.8vw, 1.35rem);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  font-size: 1.08rem;
  box-shadow: 0 14px 30px rgba(17, 100, 63, 0.22);
}

.whatsapp-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.privacy-note,
.ref-note,
.small-copy {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.ref-note {
  color: var(--green-dark);
  font-weight: 700;
}

.facts {
  margin: 24px 0 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.facts article {
  min-height: 92px;
  padding: 18px 12px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-right: 1px solid var(--line);
}

.facts article:nth-child(4n) {
  border-right: 0;
}

.facts span {
  color: var(--muted);
  font-size: 0.74rem;
}

.facts strong {
  font-size: 1rem;
}

.section,
.details-grid,
.process,
.share-panel,
.video-panel {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading p,
.section-heading span {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.photo-gallery {
  columns: 3 230px;
  column-gap: 14px;
}

.photo-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(24, 34, 45, 0.07);
  break-inside: avoid;
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-card figcaption {
  padding: 10px 11px 12px;
}

.photo-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.photo-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.room-sections {
  display: grid;
  gap: 26px;
}

.room-group {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.room-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.room-header p {
  margin: 0;
  color: var(--muted);
}

.room-photo-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 0.42fr);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.room-photo-rail .photo-card {
  display: block;
  margin: 0;
  scroll-snap-align: start;
}

.video-panel {
  min-height: 178px;
  padding: 28px;
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(248, 244, 239, 0.96)),
    repeating-linear-gradient(135deg, rgba(24, 34, 45, 0.04) 0 1px, transparent 1px 18px),
    #eadfd3;
}

.video-panel span {
  display: block;
  color: var(--terracotta);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.video-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.play-button {
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 50%;
  color: var(--terracotta);
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 34, 45, 0.18);
  cursor: pointer;
}

.play-button svg {
  width: 52px;
  height: 52px;
  fill: currentColor;
}

.concept-tag {
  padding: 8px 10px;
  border: 1px solid var(--terracotta);
  border-radius: var(--radius);
  color: var(--terracotta) !important;
}

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.concept-card {
  min-height: 154px;
  padding: 12px;
  border-radius: var(--radius);
  background: #f3ebe2;
  border: 1px solid var(--line);
  color: var(--ink);
}

.concept-sketch {
  height: 92px;
  margin-bottom: 10px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 12%, rgba(201, 109, 85, 0.16) 12% 13%, transparent 13% 62%, rgba(201, 109, 85, 0.16) 62% 63%, transparent 63%),
    linear-gradient(transparent 58%, rgba(24, 34, 45, 0.12) 59% 61%, transparent 62%),
    #efe3d8;
}

.concept-sketch.kitchen {
  background:
    linear-gradient(90deg, rgba(24, 34, 45, 0.08) 0 18%, transparent 18% 22%, rgba(24, 34, 45, 0.08) 22% 46%, transparent 46% 51%, rgba(24, 34, 45, 0.08) 51% 100%),
    #efe3d8;
}

.concept-sketch.bedroom {
  background:
    radial-gradient(ellipse at 60% 70%, rgba(24, 34, 45, 0.12) 0 24%, transparent 25%),
    linear-gradient(90deg, transparent 15%, rgba(201, 109, 85, 0.14) 15% 17%, transparent 17%),
    #efe3d8;
}

.concept-card strong {
  display: block;
  font-size: 0.9rem;
}

.neighborhood-section {
  margin-top: 42px;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid #dfeaed;
  background:
    linear-gradient(135deg, rgba(237, 246, 250, 0.95), rgba(255, 255, 255, 0.88)),
    #edf6fa;
}

.neighborhood-section .section-heading {
  max-width: 720px;
}

.neighborhood-section .section-heading p {
  font-size: 1rem;
}

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

.neighborhood-grid article {
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 34, 45, 0.07);
}

.neighborhood-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.map-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.detail-block {
  padding: 24px;
  border-top: 1px solid var(--line);
}

ul,
ol {
  margin: 0;
  padding-left: 1.1rem;
}

li {
  margin: 9px 0;
  color: #34404b;
  line-height: 1.42;
}

.process {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f6fbfd, #eef4f6);
  border: 1px solid #dfeaed;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: sale;
}

.process li {
  counter-increment: sale;
  position: relative;
  margin: 0;
  padding-top: 52px;
}

.process li::before {
  content: counter(sale);
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(24, 34, 45, 0.08);
}

.process span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.share-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 34, 45, 0.08);
}

.share-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #34404b;
  font-size: 0.88rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.generated-link {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.generated-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-left: 8px;
  color: var(--muted);
}

.generated-link button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  color: #fff;
  background: var(--terracotta);
  font-weight: 800;
  cursor: pointer;
}

.secondary-cta {
  grid-column: 1 / -1;
}

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 20;
  min-height: 54px;
  display: none;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(17, 100, 63, 0.28);
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 12px;
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts article:nth-child(2n) {
    border-right: 0;
  }

  .concept-grid,
  .details-grid,
  .neighborhood-grid,
  .process ol,
  .share-form {
    grid-template-columns: 1fr;
  }

  .room-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .room-photo-rail {
    grid-auto-columns: minmax(235px, 82vw);
  }

  .video-panel {
    grid-template-columns: 82px 1fr;
    padding: 20px;
  }

  .play-button {
    width: 76px;
    height: 76px;
  }

  .sticky-cta {
    display: grid;
  }
}

@media (max-width: 420px) {
  .split {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy {
    margin-top: 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .facts article {
    min-height: 82px;
    padding: 14px 10px;
  }

  .generated-link {
    grid-template-columns: 1fr;
  }
}
