/* Targeted visual refresh based on the softer system used in hotels.html. */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef1ed;
  --ink: #15191f;
  --muted: #626b74;
  --line: rgba(21, 25, 31, .1);
  --accent: #0f8f8b;
  --accent-dark: #0a6877;
  --container: 1220px;
  --header: 64px;
  --radius: 16px;
  --radius-card: 24px;
  --radius-media: 28px;
  --shadow: 0 28px 80px rgba(32, 38, 34, .11);
  --soft-shadow: 0 16px 46px rgba(32, 38, 34, .075);
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 86% 2%, rgba(207, 32, 41, .055), transparent 23rem),
    linear-gradient(180deg, #fafbf9 0%, var(--bg) 48%, #f0f2ef 100%);
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -.045em;
}

h1 {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(50px, 5.2vw, 76px);
  font-weight: 800;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
}

h3 {
  font-size: clamp(25px, 2.1vw, 34px);
  font-weight: 800;
}

p {
  color: var(--muted);
}

.container {
  width: min(calc(100% - 48px), var(--container));
}

.section {
  padding-block: clamp(72px, 7vw, 104px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(38px, 4.5vw, 58px);
}

.section-heading p {
  max-width: 650px;
  font-size: 17px;
  line-height: 1.7;
}

.lead {
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.55;
}

.site-header {
  top: 12px;
  width: min(calc(100% - 28px), var(--container));
  height: var(--header);
  margin: 12px auto 0;
  border: 1px solid rgba(21, 25, 31, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 14px 38px rgba(32, 38, 34, .075);
  backdrop-filter: blur(20px) saturate(145%);
}

.header-inner {
  width: 100%;
  padding-inline: 16px;
}

.brand {
  width: 112px;
  height: 48px;
}

.primary-nav {
  gap: clamp(22px, 2.6vw, 36px);
  font-size: 14px;
  font-weight: 700;
}

.header-phone {
  min-height: 44px;
  padding-inline: 20px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(207, 32, 41, .18);
}

.button,
.text-button,
.text-link,
.gallery-controls button,
.dialog-topbar button {
  border-radius: 14px;
}

.button {
  min-height: 52px;
  padding-inline: 24px;
  box-shadow: 0 14px 30px rgba(207, 32, 41, .16);
}

.button-secondary {
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 12px 30px rgba(32, 38, 34, .07);
}

.hero {
  min-height: 0;
  padding: 34px 0 42px;
}

.hero-grid {
  width: min(calc(100% - 48px), var(--container));
  min-height: 0;
  margin-inline: auto;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
  padding: 56px clamp(20px, 3.2vw, 44px);
}

.hero-copy > p {
  max-width: 540px;
  margin-bottom: 28px;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.6;
}

.hero-media {
  min-height: 610px;
  max-height: 680px;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow);
}

.hero-photo {
  object-position: center 48%;
}

.hero-render {
  right: 18px;
  bottom: 18px;
  width: min(31%, 220px);
  padding: 8px;
  border: 1px solid rgba(21, 25, 31, .08);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(20, 27, 22, .16);
}

.hero-render img {
  border-radius: 14px;
}

.hero-facts {
  width: min(calc(100% - 48px), var(--container));
  min-height: 102px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--soft-shadow);
}

.hero-facts > div {
  padding: 20px clamp(22px, 3vw, 38px);
}

.hero-facts strong {
  font-size: clamp(23px, 2.2vw, 34px);
}

.project {
  background: transparent;
}

.project-grid {
  padding: clamp(30px, 4.5vw, 60px);
  grid-template-columns: .84fr 1.16fr;
  gap: clamp(36px, 5vw, 66px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
}

.project-copy,
.gallery-copy,
.contact-copy {
  position: static;
  top: auto;
}

.project-copy {
  padding-top: 8px;
}

.project-image {
  min-height: 470px;
  border-radius: var(--radius-media);
  box-shadow: 0 20px 55px rgba(32, 38, 34, .1);
}

.project-image img {
  min-height: 470px;
  max-height: 540px;
}

.project-facts {
  gap: 16px;
  border-top: 0;
}

.project-facts > div,
.project-facts > div + div {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
}

.fact-large strong {
  margin-bottom: 18px;
  font-size: clamp(66px, 7vw, 102px);
}

.fact-group h3 {
  margin-bottom: 22px;
  font-size: 22px;
}

.site-plan-main,
.garage-layout {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--soft-shadow);
}

.site-plan-main {
  padding: 18px;
}

.site-plan-main img,
.garage-layout img {
  border-radius: 18px;
}

.garage-layout {
  margin-top: 40px;
  padding: clamp(24px, 3vw, 38px);
  grid-template-columns: .48fr 1.52fr;
  gap: 34px;
}

.garage-layout img {
  padding: 8px;
  background: var(--surface-2);
}

.properties {
  background: rgba(255, 255, 255, .56);
}

.property-filters {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 6px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(32, 38, 34, .06);
}

.filter-button {
  min-height: 44px;
  padding-inline: 18px;
  border: 0;
  border-radius: 12px;
}

.filter-button.is-active {
  border-bottom-color: transparent;
  box-shadow: 0 8px 20px rgba(207, 32, 41, .17);
}

.property-grid {
  gap: 22px;
}

.property-card {
  border-color: rgba(21, 25, 31, .09);
  border-radius: var(--radius-card);
  box-shadow: var(--soft-shadow);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.property-card > img {
  aspect-ratio: 16 / 10;
}

.property-featured > img {
  min-height: 440px;
  aspect-ratio: auto;
}

.property-body {
  padding: clamp(24px, 2.6vw, 36px);
}

.property-card h3 {
  margin-bottom: 20px;
}

.property-meta {
  min-height: 0;
  margin-bottom: 20px;
  gap: 9px;
}

.property-meta span,
.property-meta span + span {
  padding: 9px 12px;
  border: 1px solid rgba(21, 25, 31, .08);
  border-radius: 12px;
  background: var(--bg);
}

.property-price {
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(207, 32, 41, .12);
  border-radius: 16px;
  background: rgba(207, 32, 41, .045);
  font-size: clamp(28px, 2.5vw, 40px);
}

.text-button,
.text-link {
  min-height: 46px;
  padding-inline: 17px;
}

.extras {
  margin-top: 38px;
  padding-inline: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.extras summary {
  padding: 24px 0;
  font-size: clamp(22px, 2.5vw, 32px);
}

.gallery-grid {
  padding: clamp(30px, 4vw, 52px);
  grid-template-columns: .46fr 1.54fr;
  gap: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--soft-shadow);
}

.gallery-copy {
  padding-top: 8px;
}

.gallery-stage,
.gallery-stage img {
  border-radius: var(--radius-media);
}

.gallery-stage {
  box-shadow: 0 20px 52px rgba(32, 38, 34, .12);
}

.gallery-thumb,
.gallery-thumb img {
  border-radius: 12px;
}

.gallery-thumb {
  overflow: hidden;
}

.location-frame {
  min-height: 520px;
  border-radius: 32px;
  box-shadow: var(--soft-shadow);
}

.location-frame > img {
  height: 520px;
}

.location-panel {
  right: 26px;
  bottom: 26px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.location-panel h2 {
  font-size: clamp(38px, 4vw, 56px);
}

.payment {
  padding-block: 0 clamp(72px, 7vw, 104px);
  background: transparent;
  color: var(--ink);
}

.payment-grid {
  padding: clamp(30px, 4vw, 52px);
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  border: 1px solid rgba(207, 32, 41, .12);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(207, 32, 41, .06), rgba(255, 255, 255, .9));
  box-shadow: var(--soft-shadow);
}

.payment h2 {
  color: var(--ink);
}

.payment p {
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
}

.contact {
  background: transparent;
}

.contact-grid {
  padding: clamp(30px, 4.5vw, 58px);
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(40px, 6vw, 76px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--soft-shadow);
}

.contact-copy a {
  font-size: clamp(20px, 2.1vw, 29px);
}

.contact-form {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
}

.site-footer {
  margin: 56px 14px 14px;
  padding: 58px 0 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.site-footer .footer-brand img {
  filter: invert(1);
}

.footer-brand p,
.site-footer address span,
.footer-bottom {
  color: var(--muted);
}

.footer-bottom {
  border-top-color: var(--line);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.property-dialog {
  border-radius: 26px;
}

.dialog-shell {
  border-radius: 26px;
}

.dialog-media > img {
  border-radius: 18px;
}

.dialog-thumb,
.dialog-thumb img {
  border-radius: 10px;
}

@media (max-width: 1120px) {
  .project-facts {
    grid-template-columns: 1fr 1fr;
  }

  .fact-large {
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 60px;
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .primary-nav {
    inset: calc(var(--header) + 17px) 14px auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid,
  .project-grid,
  .gallery-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    padding: 46px 20px 34px;
  }

  .hero-media {
    min-height: 520px;
  }

  .project-image,
  .project-image img {
    min-height: 430px;
  }

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

  .fact-large {
    grid-row: auto;
  }

  .garage-layout,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .property-featured {
    grid-template-columns: 1fr;
  }

  .property-featured > img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .gallery-thumbs {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-grid,
  .hero-facts {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding-block: 62px;
  }

  h1 {
    max-width: 350px;
    font-size: clamp(40px, 12vw, 51px);
  }

  h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .hero-copy {
    padding-inline: 4px;
  }

  .hero-media {
    min-height: 390px;
    max-height: 440px;
    border-radius: 22px;
  }

  .hero-render {
    right: 12px;
    bottom: 12px;
    width: 34%;
    border-radius: 16px;
  }

  .hero-render img {
    border-radius: 11px;
  }

  .hero-facts {
    margin-top: 16px;
    border-radius: 20px;
  }

  .project-grid,
  .gallery-grid,
  .contact-grid {
    padding: 20px;
    border-radius: 24px;
  }

  .project-image,
  .project-image img {
    min-height: 340px;
  }

  .project-facts > div,
  .project-facts > div + div {
    padding: 22px;
  }

  .site-plan-main {
    padding: 8px;
    border-radius: 20px;
  }

  .garage-layout {
    padding: 20px;
    border-radius: 22px;
  }

  .property-filters {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .filter-button {
    width: 100%;
    padding-inline: 10px;
    font-size: 13px;
  }

  .property-card {
    border-radius: 20px;
  }

  .property-body {
    padding: 22px;
  }

  .property-price {
    padding: 15px;
  }

  .gallery-stage,
  .gallery-stage img {
    border-radius: 20px;
  }

  .location-frame,
  .location-frame > img {
    min-height: 500px;
    height: 500px;
    border-radius: 24px;
  }

  .location-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 24px;
    border-radius: 20px;
  }

  .payment-grid {
    padding: 24px;
    gap: 24px;
    border-radius: 22px;
  }

  .site-footer {
    margin: 36px 8px 8px;
    border-radius: 24px;
  }

  .property-dialog,
  .dialog-shell {
    border-radius: 20px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .project-grid,
  .gallery-grid,
  .contact-grid {
    background: var(--surface);
    backdrop-filter: none;
  }
}
