/* Pappas Rentals: one stylesheet for every page.
   Palette and type come from the original homepage: slate backgrounds, green accents, Open Sans. */

/* Open Sans, self-hosted (one variable font file covers every weight we use) */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/open-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green: #48a65b;
  --green-bright: #56c16b;
  --green-deep: #3b8c4c;

  --slate-950: #1a2228;
  --slate-900: #1f2930;
  --slate-800: #232d35;
  --slate-700: #27333d;
  --slate-600: #2d3943;
  --slate-500: #384551;
  --slate-400: #46545f;

  --text: #d7d7d7;
  --text-strong: #ffffff;
  --text-muted: #a3afb9;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);

  --danger: #e57373;

  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--slate-700);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> only chooses the file (WebP or JPG); let the <img> inside lay out as if it stood alone */
picture {
  display: contents;
}

a {
  color: var(--green-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7bd88d;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-bright);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-sm {
  padding: 0.6em 1.2em;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1em 2em;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.link-arrow .icon {
  transition: transform 0.2s;
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(31, 41, 48, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header--overlay {
  position: fixed;
  inset: 0 0 auto;
  background: linear-gradient(rgba(20, 27, 33, 0.65), rgba(20, 27, 33, 0));
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header--overlay.is-scrolled,
.site-header--overlay.is-open {
  background: rgba(31, 41, 48, 0.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand img {
  width: auto;
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-link[aria-current="page"] {
  color: var(--green-bright);
}

.nav-link .icon {
  transition: transform 0.2s;
}

.nav-link[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 560px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-800);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.has-menu.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-menu-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
}

.nav-menu-link:hover,
.nav-menu-link[aria-current="page"] {
  background: var(--slate-600);
  color: #fff;
}

.nav-menu-link img {
  width: 72px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-menu-link strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-menu-link small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.nav-menu-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--green-bright);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: none;
  color: #fff;
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

@media (max-width: 1060px) {
  .nav-phone {
    display: none;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    max-height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--slate-800);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 0.9375rem;
  }

  .nav-link:hover,
  .nav-link[aria-expanded="true"] {
    background: none;
  }

  .nav-menu {
    position: static;
    display: none;
    width: auto;
    padding: 0 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-menu.is-open .nav-menu {
    display: block;
    transform: none;
  }

  .nav-menu-list {
    grid-template-columns: 1fr;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
  }

  .nav-phone {
    display: inline-flex;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
  }

  .nav-actions .btn {
    padding: 1em;
    font-size: 0.875rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tight {
  padding-block: clamp(48px, 6vw, 72px);
}

.section-alt {
  background: var(--slate-800);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.section-title {
  position: relative;
  margin-bottom: 1.4em;
  padding-bottom: 0.9em;
  color: #e9edf0;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The line-and-circle ornament from the original homepage headings */
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 150px;
  height: 10px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, transparent 2.5px, currentColor 2.5px, currentColor 4.5px, transparent 4.5px) center / 10px 10px no-repeat,
    linear-gradient(currentColor, currentColor) left center / calc(50% - 7px) 2px no-repeat,
    linear-gradient(currentColor, currentColor) right center / calc(50% - 7px) 2px no-repeat;
  opacity: 0.7;
}

.section-title--left::after {
  left: 0;
  transform: none;
}

.band {
  padding-block: clamp(56px, 7vw, 88px);
  background: var(--green);
  color: #fff;
}

.band .section-heading {
  margin-bottom: 0;
}

.section-heading--light .section-title {
  color: #fff;
}

.section-heading--light p {
  color: rgba(255, 255, 255, 0.92);
}

.section-photo {
  position: relative;
  isolation: isolate;
  background: var(--slate-900);
}

.section-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(26, 34, 40, 0.86), rgba(26, 34, 40, 0.94)),
    var(--photo) center / cover no-repeat;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--green-bright);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  min-height: min(100svh, 900px);
  place-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero-bg,
.hero-bg img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(20, 27, 33, 0.25), rgba(20, 27, 33, 0.65)),
    linear-gradient(rgba(20, 27, 33, 0.1) 60%, var(--slate-700));
}

.hero-title {
  margin-bottom: 0.3em;
  color: #eef1f3;
  font-size: clamp(2.75rem, 9vw, 6rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  color: #e6eaed;
  font-size: clamp(1.0625rem, 2.2vw, 1.375rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-lead strong {
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e6eaed;
  font-size: 0.9375rem;
}

.hero-links a:hover {
  color: #fff;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #fff;
  transform: translateX(-50%);
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  50% {
    transform: translate(-50%, 6px);
  }
}

/* ---------- Property cards ---------- */

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

@media (max-width: 760px) {
  .property-grid {
    grid-template-columns: 1fr;
  }
}

.property-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-500);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.property-card-media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 3;
  overflow: hidden;
}

.property-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.property-card:hover .property-card-media img {
  transform: scale(1.04);
}

.property-card-media .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.property-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 26px 26px;
}

.property-card-title {
  margin-bottom: 0.25em;
  font-size: 1.375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.property-card-title a {
  color: inherit;
  text-decoration: none;
}

.property-card-price {
  margin-bottom: 0.6em;
  color: var(--green-bright);
  font-weight: 600;
}

.property-card-summary {
  flex: 1;
  color: var(--text);
  font-size: 0.9375rem;
}

/* ---------- Stats and testimonials ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 clamp(40px, 6vw, 64px);
  padding: 0;
  list-style: none;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.stat-value {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
}

.stat-stars {
  display: flex;
  gap: 2px;
  color: var(--green-bright);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

.testimonial {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(56, 69, 81, 0.75);
}

.testimonial blockquote {
  position: relative;
  margin: 0 0 18px;
  padding-top: 28px;
  color: var(--text);
  font-style: italic;
}

.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  top: -14px;
  left: -4px;
  color: var(--green);
  font-size: 4rem;
  font-style: normal;
  line-height: 1;
}

.testimonial figcaption {
  color: #fff;
  font-weight: 600;
}

/* ---------- Community ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.chip {
  padding: 0.75em 1.8em;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.chip:hover {
  border-color: #fff;
}

.chip[aria-pressed="true"] {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.place-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .place-grid {
    grid-template-columns: 1fr;
  }
}

.place[hidden] {
  display: none;
}

.place-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--slate-500);
  cursor: pointer;
  text-align: left;
}

.place-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.place-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(20, 27, 33, 0.9));
}

.place-card:hover img {
  transform: scale(1.05);
}

.place-card-text {
  position: absolute;
  inset: auto 20px 18px;
  z-index: 1;
}

.place-card-text strong {
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.place-card-text span {
  color: var(--text);
  font-size: 0.875rem;
}

/* ---------- Dialogs (community places, photo lightbox) ---------- */

.dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-800);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(15, 20, 24, 0.8);
  backdrop-filter: blur(4px);
}

.dialog-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dialog-body {
  padding: 28px;
}

.dialog-body h3 {
  margin-bottom: 0.15em;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dialog-kicker {
  color: var(--green-bright);
  font-weight: 600;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 27, 33, 0.75);
  color: #fff;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(20, 27, 33, 0.95);
}

/* ---------- Split section and video ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}

.video iframe,
.video-play,
.video-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  padding: 0;
  background: none;
  cursor: pointer;
}

.video-play img {
  object-fit: cover;
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 10px rgba(72, 166, 91, 0.3);
  transform: translate(-50%, -50%);
  transition: transform 0.2s, background-color 0.2s;
}

.video-play-icon .icon {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.video-play:hover .video-play-icon {
  background: var(--green-bright);
  transform: translate(-50%, -50%) scale(1.06);
}

.split-text .section-title {
  margin-bottom: 1em;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #fff;
}

.checklist .icon {
  position: relative;
  top: 2px;
  color: var(--green-bright);
}

/* ---------- Cards and forms ---------- */

.card {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-500);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  gap: 18px;
}

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

.form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form-row,
  .form-row--3 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label,
.field-label {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.field-hint {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--slate-900);
  color: #fff;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(72, 166, 91, 0.35);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.form-status {
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}

.form-status.is-success {
  background: rgba(72, 166, 91, 0.18);
  color: #9fe3ad;
}

.form-status.is-error {
  background: rgba(229, 115, 115, 0.15);
  color: #f3a6a6;
}

.contact-details h2,
.contact-details h3 {
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 14px;
}

.contact-list .icon {
  color: var(--green-bright);
}

.contact-list a {
  color: #fff;
}

/* ---------- Inner page intro (property pages, guides, contact) ---------- */

.page-intro {
  padding-block: 28px 32px;
  background: linear-gradient(var(--slate-900), var(--slate-700));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb [aria-current] {
  color: var(--text);
}

.page-title {
  margin: 0.35em 0 0.2em;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-lead {
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.property-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
}

.property-head-price {
  text-align: right;
}

.price {
  margin-bottom: 14px;
  color: var(--green-bright);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 600;
}

.property-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .property-head-price {
    text-align: left;
  }
}

/* ---------- Property gallery ---------- */

.gallery:focus-visible {
  outline-offset: 6px;
}

.gallery-stage {
  position: relative;
  aspect-ratio: 1740 / 960;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--slate-900);
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 27, 33, 0.7);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s;
}

.gallery-nav:hover {
  background: var(--green);
}

.gallery-nav--prev {
  left: 16px;
}

.gallery-nav--next {
  right: 16px;
}

.gallery-count,
.gallery-expand {
  position: absolute;
  bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 27, 33, 0.75);
  color: #fff;
  font-size: 0.8125rem;
}

.gallery-count {
  left: 16px;
}

.gallery-expand {
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
}

.gallery-expand:hover {
  background: var(--green);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding-bottom: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 120px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  opacity: 0.65;
  cursor: pointer;
  scroll-snap-align: start;
  transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb[aria-current="true"] {
  opacity: 1;
}

.gallery-thumb[aria-current="true"] {
  border-color: var(--green);
}

.gallery-thumb img {
  aspect-ratio: 277 / 180;
  object-fit: cover;
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 14, 17, 0.96);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  object-fit: contain;
}

/* ---------- Property details ---------- */

.property-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

@media (max-width: 980px) {
  .property-layout {
    grid-template-columns: 1fr;
  }
}

.property-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

@media (max-width: 560px) {
  .highlights {
    grid-template-columns: 1fr;
  }
}

.highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--slate-600);
  color: #fff;
  font-weight: 500;
}

.highlights .icon {
  color: var(--green-bright);
}

.subheading {
  margin: 40px 0 16px;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subheading:first-of-type {
  margin-top: 0;
}

.prose {
  font-size: 1.0625rem;
}

.units {
  display: grid;
  gap: 12px;
}

.unit {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--slate-600);
}

.unit h3 {
  margin-bottom: 0.1em;
  font-size: 1.0625rem;
}

.unit p {
  margin: 0;
}

.unit-layout {
  color: #fff;
}

.unit-details,
.unit-available {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.unit-meta {
  text-align: right;
}

.unit-rent {
  color: var(--green-bright);
  font-size: 1.125rem;
  font-weight: 600;
}

.map {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-600);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.inquiry {
  gap: 16px;
}

.inquiry-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inquiry-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.inquiry .form-actions {
  flex-direction: column;
  align-items: stretch;
}

.inquiry-phone {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-align: center;
}

.property-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .property-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .property-grid--3 {
    grid-template-columns: 1fr;
  }
}

.property-grid--3 .property-card-title {
  font-size: 1.125rem;
}

/* ---------- Long-form text (property descriptions, guides) ---------- */

.container--narrow {
  max-width: calc(880px + var(--gutter) * 2);
}

.prose h2 {
  margin: 2.2em 0 0.7em;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.prose h3 {
  margin: 1.8em 0 0.5em;
  font-size: 1.1875rem;
}

.prose h2:first-child,
.prose h3:first-child {
  margin-top: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--green-bright);
}

.prose strong {
  color: #fff;
}

.prose .lead {
  color: #e8ecef;
  font-size: 1.1875rem;
}

.prose .list-check,
.prose .list-cross {
  padding: 0;
  list-style: none;
}

.prose .list-check li,
.prose .list-cross li {
  position: relative;
  padding-left: 30px;
}

.prose .list-check li::before,
.prose .list-cross li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.prose .list-check li::before {
  content: "\2713";
  color: var(--green-bright);
}

.prose .list-cross li::before {
  content: "\2715";
  color: var(--danger);
}

.callout {
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  background: var(--slate-600);
}

.post-link a::after {
  content: " \2197";
}

.post-download a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.post-download a:hover {
  border-color: var(--green);
  color: #fff;
}

.post-download .icon {
  color: var(--green-bright);
}

.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--slate-500);
  color: #fff;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tr.is-key td {
  color: #fff;
  font-weight: 600;
}

.event-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
  margin: 0 0 1em;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--slate-600);
}

.event-facts dt {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.9;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 0;
  color: #fff;
}

/* ---------- Guides ---------- */

.post-title {
  margin: 0.5em 0 0.4em;
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.post-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
}

.post-body {
  max-width: 720px;
}

.post-share {
  margin-top: 2.5em;
  padding-top: 1.5em;
  border-top: 1px solid var(--line);
}

.post-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: grid;
  gap: 20px;
}

.cta-card {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.cta-card h2 {
  font-size: 1.25rem;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--green-deep);
}

.cta-card .btn-primary:hover {
  background: #eaf7ed;
  color: var(--green-deep);
}

.aside-title {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.aside-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-links a {
  color: var(--text);
  text-decoration: none;
}

.aside-links a:hover {
  color: var(--green-bright);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 28px);
}

@media (max-width: 980px) {
  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--slate-500);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.guide-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.guide-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.guide-card:hover .guide-card-media img {
  transform: scale(1.04);
}

.guide-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.guide-card-body > p:not(.guide-card-meta) {
  flex: 1;
  font-size: 0.9375rem;
}

.guide-card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.guide-card-meta span {
  color: var(--green-bright);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-card-title {
  font-size: 1.1875rem;
  line-height: 1.35;
}

.guide-card-title a {
  color: inherit;
  text-decoration: none;
}

.split--top {
  align-items: start;
}

.download-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.download-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--slate-600);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.download-list a:hover {
  border-color: var(--green);
  background: var(--slate-500);
  color: #fff;
}

.download-list .icon {
  color: var(--green-bright);
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-band p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-light {
  background: #fff;
  color: var(--green-deep);
}

.btn-light:hover {
  background: #eaf7ed;
  color: var(--green-deep);
}

/* ---------- Contact and application ---------- */

.contact-map {
  padding-bottom: clamp(48px, 6vw, 72px);
}

.contact-map .map {
  aspect-ratio: 21 / 8;
  min-height: 280px;
}

.application {
  gap: 24px;
}

.fieldset {
  display: grid;
  gap: 18px;
  min-width: 0;
  margin: 0;
}

.fieldset legend {
  float: left;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 4px;
  padding: 0;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
}

.fieldset legend + * {
  clear: both;
}

.step {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.9375rem;
}

.fieldset-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.signature {
  width: 100%;
  height: 180px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}

/* ---------- Not found ---------- */

.not-found {
  display: grid;
  min-height: 60vh;
  place-items: center;
  text-align: center;
}

.not-found .hero-actions {
  margin-top: 28px;
}

/* ---------- SEO and linking helpers ---------- */

.hero-heading {
  margin: 0;
}

.hero-heading .eyebrow,
.hero-heading .hero-title {
  display: block;
}

.section-more {
  margin: 36px 0 0;
  text-align: center;
}

.map-caption {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.related-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--slate-600);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.related-links a::after {
  content: "\2192";
  margin-left: auto;
  color: var(--green-bright);
}

.related-links a:hover {
  border-color: var(--green);
}

.aside-links--homes li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
}

.aside-links--homes span {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: clamp(56px, 7vw, 80px);
  background: var(--slate-950);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  width: auto;
  height: 44px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 380px;
  color: var(--text-muted);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.footer-title {
  margin-bottom: 1.1em;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--green-bright);
}

.footer-contact li {
  display: flex;
  gap: 12px;
}

.footer-contact .icon {
  position: relative;
  top: 4px;
  color: var(--green-bright);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
