/* ==========================================================================
   Urban Property Group
   Colors come from the logo: charcoal and white base, red accent,
   blue and yellow used sparingly.
   ========================================================================== */

:root {
  --charcoal: #24272c;
  --ink: #17191c;
  --text: #33373d;
  --muted: #5d636b;
  --line: #e2e0db;
  --bg: #ffffff;
  --bg-alt: #f5f4f1;

  --red: #c0282d;
  --red-dark: #9c1f23;
  --blue: #1f5ea8;
  --yellow: #f2b51b;

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --radius: 4px;
  --header-h: 80px;
  --shadow: 0 10px 30px rgba(23, 25, 28, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 2vw, 1.65rem); }
p { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 18px; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--charcoal); color: #d9dbde; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--yellow); }

.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 2px; background: currentColor; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--dark { background: var(--charcoal); color: #fff; }
.btn--dark:hover { background: var(--ink); color: #fff; }
.btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--lg { min-height: 60px; padding: 18px 40px; font-size: 0.95rem; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Placeholder labels (toggle in js/config.js) ---------- */
.ph-tag { display: none; }
.show-placeholders .ph-tag {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); padding: 2px 8px; border-radius: 2px;
}

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: #c9ccd1; font-size: 0.85rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.topbar a { color: #e6e8eb; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; color: var(--yellow); }
.topbar__login { font-weight: 600; white-space: nowrap; }
.topbar__contact a { white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23,25,28,.08); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--charcoal); margin-right: auto; }
.brand:hover { color: var(--charcoal); }
.brand img { width: 46px; height: 46px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.brand__name span { display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav .btn { min-height: 46px; padding: 10px 22px; }
.nav__list a, .nav .btn, .brand__name span { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1200px) {
  .site-header .container { gap: 16px; }
  .nav, .nav__list { gap: 18px; }
  .nav__list a { letter-spacing: 0.08em; }
  .nav .btn { padding: 10px 16px; letter-spacing: 0.08em; }
}

.nav-toggle {
  display: none; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; cursor: pointer; color: var(--charcoal);
  align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 26px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -8px; }
.nav-toggle__bars::after { top: 8px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
  :root { --header-h: 70px; }
  .topbar .topbar__email { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 32px; background: #fff; overflow-y: auto;
    border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 18px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--red); }
  .nav .btn { margin-top: 24px; min-height: 54px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .brand img { width: 40px; height: 40px; }
  .brand__name { font-size: 1.15rem; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(88vh, 860px); display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,19,22,.86) 0%, rgba(17,19,22,.62) 55%, rgba(17,19,22,.35) 100%);
}
.hero .container { padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 52ch; color: #e3e5e8; margin-bottom: 36px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: #fff; border-radius: 2px; animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  padding: clamp(96px, 14vw, 170px) 0 clamp(64px, 8vw, 96px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(17,19,22,.55), rgba(17,19,22,.85));
}
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { color: #e3e5e8; font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 58ch; margin: 0; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--wide-text { grid-template-columns: 1.1fr .9fr; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split__media::before {
  content: ""; position: absolute; z-index: -1; width: 55%; height: 55%;
  right: -18px; bottom: -18px; background: var(--red); border-radius: var(--radius);
}
.split__media { isolation: isolate; }
.split__media picture { display: block; }
.split__badge {
  position: absolute; left: -20px; bottom: 32px; background: var(--charcoal); color: #fff;
  padding: 20px 26px; border-left: 4px solid var(--yellow); box-shadow: var(--shadow);
}
.split__badge strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.split__badge span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: #c9ccd1; }
@media (max-width: 860px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split__media { max-width: 520px; }
  .split__media img { aspect-ratio: 4 / 3; }
  .split__media::before { right: -12px; bottom: -12px; }
  .split__badge { left: 16px; bottom: 16px; }
}

.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Property cards ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

.property-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease);
}
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-alt); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.property-card__status {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 2px; background: var(--charcoal); color: #fff;
}
.property-card__status--available { background: var(--red); }
.property-card__media .ph-tag { position: absolute; top: 14px; right: 14px; }
.property-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.property-card__city {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.property-card__city svg { width: 14px; height: 14px; color: var(--red); }
.property-card h3 { margin-bottom: 10px; }
.property-card__count {
  position: absolute; right: 14px; bottom: 14px;
  font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 2px;
  background: rgba(23,25,28,.78); color: #fff;
}
.property-card__rent { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--red); margin: 0 0 4px; }
.property-card__meta { font-size: 0.88rem; color: var(--muted); margin: 0 0 18px; }
.property-card__title { font-weight: 600; color: var(--ink); line-height: 1.45; margin: 18px 0 6px; }
.property-card__desc {
  font-size: 0.93rem; color: var(--muted); line-height: 1.6; margin: 0;
  overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
}
.property-card__facts + .property-card__desc { margin-top: 18px; }
.property-card__body > :nth-last-child(2) { margin-bottom: 24px; }
.property-card__cta { margin-top: auto; width: 100%; }
.property-card__link { color: inherit; text-decoration: none; }
.property-card__link:hover { color: var(--red); text-decoration: underline; }
.property-card__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.property-card__links .btn { flex: 1 1 auto; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.75rem; }

/* ---------- Virtual tour (16:9, photo placeholder until clicked) ---------- */
.vtour { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.vtour iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vtour__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; display: grid; place-items: center; font: inherit;
}
.vtour__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .3s, transform .6s var(--ease); }
.vtour__poster:hover img { opacity: .55; transform: scale(1.02); }
.vtour__badge {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--red); box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.vtour__badge svg { width: 30px; height: 30px; margin-left: 4px; }
.vtour__badge span { position: absolute; bottom: -30px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; }
.vtour__label {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.vtour__poster:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

/* "Coming soon" slot on the Virtual Tours page */
.vtour--soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: grayscale(.4); }
.vtour--soon .vtour__label { color: #fff; bottom: auto; top: 50%; transform: translateY(-50%); font-size: 1rem; }

/* ---------- Virtual Tours page ---------- */
.tour-list { display: grid; gap: clamp(48px, 6vw, 80px); max-width: 1000px; margin: 0 auto; }
.tour-item__head { margin-bottom: 18px; }
.tour-item__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.tour-item__head .property-card__meta { margin: 0; }
.tour-item__links { margin: 14px 0 0; font-weight: 600; }

/* ---------- Property detail page ---------- */
.pd__back { margin: 0 0 24px; font-weight: 600; }
.pd__back a { color: var(--charcoal); text-decoration: none; }
.pd__back a:hover { color: var(--red); text-decoration: underline; }
.pd { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.pd__cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.pd__title { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 12px; }
.pd__info .property-card__facts { margin: 8px 0 0; }
.pd__actions { margin-top: 28px; }
.pd__section { margin-top: clamp(48px, 6vw, 72px); max-width: 960px; }
.pd__section h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.pd__section p { max-width: 70ch; color: var(--text); }
.pd__headline { font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.pd__gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pd__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.pd__gallery a:focus-visible img { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 860px) { .pd { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .pd__gallery { grid-template-columns: repeat(2, 1fr); } .vtour__badge { width: 64px; height: 64px; } .vtour__badge span { display: none; } }
.property-card__facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 16px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.property-card__facts div { display: flex; flex-direction: column; }
.property-card__facts dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.property-card__facts dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }

.center-cta { text-align: center; margin-top: clamp(40px, 5vw, 56px); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 36px; }
.filters__label { font-weight: 600; color: var(--ink); margin-right: 8px; }
.filter-btn {
  min-height: 44px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
  font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff; color: var(--charcoal); border: 1.5px solid var(--line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--charcoal); }
.filter-btn[aria-pressed="true"] { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.filter-btn .count { opacity: .65; margin-left: 4px; }
.results-note { color: var(--muted); font-size: 0.95rem; margin: -18px 0 28px; }
.empty-note { padding: 48px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); }

/* ---------- Stats ---------- */
.stats { background: var(--charcoal); color: #fff; padding: clamp(56px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--red) 0 33.3%, var(--blue) 33.3% 66.6%, var(--yellow) 66.6%) top / 100% 4px no-repeat;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; color: #fff; }
.stat__num .suffix { color: var(--yellow); }
.stat__label { margin-top: 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #c9ccd1; }
.stats .ph-tag { margin-top: 10px; }
.stats__note { text-align: center; margin-top: 28px; }
@media (max-width: 760px) { .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.step {
  position: relative; padding: 40px 32px 36px; background: #fff; border-radius: var(--radius);
  border-top: 4px solid var(--accent, var(--red)); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line) inset;
}
.step:nth-child(2) { --accent: var(--blue); }
.step:nth-child(3) { --accent: var(--yellow); }
.step__num {
  font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #c6c3bc; position: absolute; top: 22px; right: 28px;
}
.step__icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px;
  border-radius: 50%; background: var(--bg-alt); color: var(--ink);
}
.step__icon svg { width: 28px; height: 28px; }
.step h3 { text-transform: uppercase; font-size: 1.8rem; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.quote {
  margin: 0; padding: 36px 32px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.quote__mark { font-family: Georgia, serif; font-size: 4rem; line-height: .6; color: var(--yellow); height: 30px; }
.quote blockquote { margin: 0 0 28px; font-size: 1.08rem; color: #eceef0; }
.quote figcaption { margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.quote figcaption strong { display: block; color: #fff; }
.quote figcaption span { font-size: 0.9rem; color: #b4b8be; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: #fff; padding: clamp(72px, 9vw, 120px) 0; overflow: hidden; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(156, 31, 35, .9); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0; }
.cta-band .btn--light { background: #fff; color: var(--ink); }
.cta-band .btn--light:hover { background: var(--ink); color: #fff; }

/* ---------- About ---------- */
.prose { max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }

.bio { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.bio--no-photo { grid-template-columns: 1fr; }
/* Transparent cut-out headshot on a soft neutral backdrop. */
.bio__photo {
  display: block; margin: 0; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 25%, #fbfaf8 0%, #ece9e3 60%, #e2ded6 100%);
  border: 1px solid var(--line);
}
.bio__photo img { display: block; width: 100%; height: auto; }
.bio__role { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; }
.bio__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding: 0; list-style: none; }
.bio__facts li { padding: 8px 16px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio__photo { max-width: 320px; } }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 32px); }
.value { padding-top: 24px; border-top: 2px solid var(--line); }
.value__icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--accent, var(--red)); }
.value:nth-child(2) { --accent: var(--blue); }
.value:nth-child(3) { --accent: #b07c00; }
.value:nth-child(4) { --accent: var(--charcoal); }
.value h3 { font-size: 1.5rem; text-transform: uppercase; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Residents ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  display: flex; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.feature__icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--charcoal); color: var(--yellow);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

.portal-cta {
  margin-top: clamp(40px, 5vw, 56px); padding: clamp(32px, 5vw, 56px);
  background: var(--charcoal); color: #d9dbde; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  border-left: 6px solid var(--red);
}
.portal-cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.portal-cta p { margin: 0; max-width: 52ch; }

.emergency {
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
  padding: clamp(28px, 4vw, 44px); border: 2px solid var(--red); border-radius: var(--radius); background: #fff;
}
.emergency__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.emergency__icon svg { width: 28px; height: 28px; }
.emergency h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 10px; }
.emergency__phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--red); text-decoration: none; }
.emergency__phone:hover { color: var(--red-dark); text-decoration: underline; }
.emergency ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
@media (max-width: 560px) { .emergency { grid-template-columns: 1fr; } }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding-bottom: 20px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.field .req { color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #c9c6c0; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,94,168,.2); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field__error { color: var(--red-dark); font-size: 0.88rem; font-weight: 500; margin-top: 6px; }
.field__error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; cursor: pointer;
  border: 1.5px solid #c9c6c0; border-radius: 999px; font-weight: 600; color: var(--charcoal);
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice input:checked + span { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form__hp { position: absolute; left: -9999px; }
.form__note { font-size: 0.88rem; color: var(--muted); margin: 0; }
.form-status { padding: 16px 18px; border-radius: var(--radius); font-weight: 600; }
.form-status--error { background: #fbeaea; color: var(--red-dark); }

.contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); }
.contact-card h2 { font-size: 1.9rem; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.contact-list__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--red); }
.contact-list__icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); text-decoration: underline; }
.contact-card__portal { padding-top: 24px; border-top: 1px solid var(--line); }
.contact-card__portal p { font-size: 0.95rem; color: var(--muted); }

.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks__icon { width: 80px; height: 80px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
.thanks__icon svg { width: 40px; height: 40px; }
.thanks .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b4b8be; font-size: 0.95rem; }
.site-footer a { color: #dfe1e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); padding: clamp(56px, 7vw, 88px) 0 48px; }
.footer__brand .brand { color: #fff; margin-bottom: 20px; }
.footer__brand .brand:hover { color: #fff; }
.footer__tagline { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.footer__tagline em { font-style: normal; color: var(--yellow); }
.site-footer h2 {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em;
  color: #fff; margin-bottom: 20px; text-transform: uppercase;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__contact { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: #dfe1e4;
}
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 0.85rem;
}
.eho { display: inline-flex; align-items: center; gap: 12px; color: #dfe1e4; }
.eho svg { width: 40px; height: 40px; flex: none; }
.eho span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3; }
@media (max-width: 860px) { .footer__main { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__main { grid-template-columns: 1fr; } }

/* ---------- Photo tour (full-screen slideshow opened from a property card) ---------- */
.ptour-open, .ptour-open body { overflow: hidden; }
/* Netlify's "Powered by Netlify" badge would cover the tour's buttons, so hide it while a tour is open. */
.ptour-open #nl-badge-frame { display: none !important; }
.ptour {
  position: fixed; inset: 0; z-index: 2000; display: grid;
  grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "stage info" "thumbs thumbs";
  background: #0e0f11; color: #d9dbde; opacity: 0; transition: opacity .35s ease;
}
.ptour[hidden] { display: none; }
.ptour.is-open { opacity: 1; }
.ptour :focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.ptour__stage { grid-area: stage; position: relative; overflow: hidden; background: #000; touch-action: pan-y; }
.ptour__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.ptour__slide.is-active { opacity: 1; }
.ptour__kb { position: absolute; inset: 0; will-change: transform; animation: 8s cubic-bezier(.25, .1, .25, 1) forwards; }
.ptour__kb.kb-1 { animation-name: ptour-kb-1; }
.ptour__kb.kb-2 { animation-name: ptour-kb-2; }
.ptour__kb.kb-3 { animation-name: ptour-kb-3; }
.ptour__kb.kb-4 { animation-name: ptour-kb-4; }
.ptour.is-paused .ptour__kb { animation-play-state: paused; }
@keyframes ptour-kb-1 { from { transform: scale(1); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes ptour-kb-2 { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1.01); } }
@keyframes ptour-kb-3 { from { transform: scale(1.08) translate(-2%, 0); } to { transform: scale(1.1) translate(2%, -1%); } }
@keyframes ptour-kb-4 { from { transform: scale(1.04) translate(0, 1.5%); } to { transform: scale(1.12) translate(1%, -1.5%); } }
.ptour__bg, .ptour__img { position: absolute; max-width: none; }
.ptour__bg { inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(.5); }
.ptour__img { inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ptour__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ptour.is-loading .ptour__stage::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%; animation: ptour-spin .9s linear infinite;
}
@keyframes ptour-spin { to { transform: rotate(360deg); } }

.ptour__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 28px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none;
}
.ptour__bar > * { pointer-events: auto; }
.ptour__counter {
  margin: 0 auto 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.5);
  color: #fff; font-size: 0.9rem; font-weight: 600; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}
.ptour__btn, .ptour__arrow {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: #fff; background: rgba(0,0,0,.5); transition: background-color .2s;
}
.ptour__btn { width: 46px; height: 46px; }
.ptour__btn svg { width: 22px; height: 22px; }
.ptour__btn:hover, .ptour__arrow:hover { background: var(--red); }
.ptour__arrow { position: absolute; top: 50%; z-index: 2; width: 54px; height: 54px; margin-top: -27px; }
.ptour__arrow svg { width: 28px; height: 28px; }
.ptour__arrow--prev { left: 16px; }
.ptour__arrow--next { right: 16px; }

.ptour__info { grid-area: info; display: flex; flex-direction: column; padding: 36px 28px 28px; background: var(--ink); overflow-y: auto; }
.ptour__eyebrow { margin: 0 0 10px; color: var(--yellow); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.ptour__info h2 { color: #fff; font-size: clamp(1.7rem, 2.4vw, 2.2rem); margin: 0 0 6px; }
.ptour__city { margin: 0 0 18px; color: #b7bbc1; font-size: 0.95rem; }
.ptour__rent { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; line-height: 1.1; color: var(--yellow); }
.ptour__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.ptour__facts span { padding: 5px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #fff; font-size: 0.88rem; font-weight: 600; }
.ptour__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.ptour__ctas .btn { width: 100%; }
.ptour .btn--light { background: #fff; color: var(--ink); }
.ptour .btn--light:hover { background: var(--yellow); color: var(--ink); }
.ptour .btn svg { width: 16px; height: 16px; }

.ptour__thumbs {
  grid-area: thumbs; position: relative; display: flex; gap: 8px; padding: 12px 16px;
  overflow-x: auto; background: #0e0f11; scrollbar-width: thin; scrollbar-color: #555 transparent;
}
.ptour__thumb {
  flex: none; width: 112px; aspect-ratio: 3 / 2; padding: 0; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; border-radius: 3px; background: #222; opacity: .55; transition: opacity .2s, border-color .2s;
}
.ptour__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ptour__thumb:hover, .ptour__thumb.is-current { opacity: 1; }
.ptour__thumb.is-current { border-color: var(--yellow); }

/* Video tours have their own controls, so the photo controls are hidden. */
.ptour.is-video .ptour__slide, .ptour.is-video .ptour__arrow, .ptour.is-video .ptour__thumbs,
.ptour.is-video .ptour__counter, .ptour.is-video [data-tour-play] { display: none; }
.ptour.is-video .ptour__bar { justify-content: flex-end; background: none; }
.ptour [hidden] { display: none !important; }

@media (max-width: 860px) {
  .ptour { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "stage" "thumbs" "info"; }
  .ptour__bar { padding: 10px 10px 24px; }
  .ptour__btn { width: 44px; height: 44px; }
  .ptour__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .ptour__arrow svg { width: 24px; height: 24px; }
  .ptour__arrow--prev { left: 8px; }
  .ptour__arrow--next { right: 8px; }
  .ptour__thumbs { padding: 10px 12px; gap: 6px; }
  .ptour__thumb { width: 78px; }
  .ptour__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); overflow: visible; }
  .ptour__eyebrow { display: none; }
  .ptour__info h2 { grid-column: 1 / -1; font-size: 1.45rem; margin-bottom: 2px; }
  .ptour__city { grid-column: 1 / -1; margin-bottom: 8px; font-size: 0.85rem; }
  .ptour__rent { font-size: 1.4rem; margin: 0; align-self: center; }
  .ptour__facts { margin: 0; align-self: center; justify-content: flex-end; }
  .ptour__facts span { padding: 3px 10px; font-size: 0.8rem; }
  .ptour__ctas { grid-column: 1 / -1; flex-direction: row; margin-top: 12px; }
  .ptour__ctas { gap: 8px; }
  .ptour__ctas .btn { flex: 1 1 0; width: auto; padding: 10px 8px; gap: 6px; letter-spacing: 0.04em; white-space: nowrap; }
  .ptour__ctas .btn--primary { flex-grow: 1.6; }
}

/* ---------- Scroll reveal (only when JS is running and motion is OK) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .1s; }
.js .reveal[data-delay="2"] { transition-delay: .2s; }
.js .reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .property-card:hover { transform: none; }
  .property-card:hover .property-card__media img { transform: none; }
}
