/* ==========================================================================
   Rental Listing Landing Page — Template Stylesheet
   Design concept: Florida coastal home. Warm sand neutrals, driftwood text,
   lagoon/aqua accent (--color-primary: #0e8f95) close to the Coastal Realty
   Pros brand teal (#00a8a8).

   TEMPLATE NOTE (customize per listing):
   - This palette is the default for Coastal Realty Pros listings and needs
     no changes for a standard listing. If you want a tighter match to the
     official brand board, swap --color-primary to #00a8a8 and
     --color-primary-hover to #2a7985 (see assets/brand/ in this skill for
     the full brand color set and logo).
   - If the property's own photos suggest a distinctly different palette
     (e.g. a modern white/grey interior, or a warm Spanish-tile look), you
     may re-derive --color-bg/--color-surface/--color-primary from the
     photos instead, per the website-building design-tokens guidance —
     but keep --color-text and radii/shadows/fonts as-is for consistency
     across listings.
   - Do not change --font-display / --font-body without also updating the
     Fraunces/General Sans font-loading tags in index.html's <head>.
   ========================================================================== */

:root,
[data-theme='light'] {
  /* Surfaces — warm sand */
  --color-bg: #faf7f1;
  --color-surface: #ffffff;
  --color-surface-2: #fdfcfa;
  --color-surface-offset: #f2ede2;
  --color-surface-offset-2: #ece4d5;
  --color-surface-dynamic: #e3d9c6;
  --color-divider: #e5ddcd;
  --color-border: #d9cfba;

  /* Text — driftwood charcoal */
  --color-text: #26302f;
  --color-text-muted: #667070;
  --color-text-faint: #a3aaa8;
  --color-text-inverse: #f7fbfa;

  /* Primary accent — lagoon aqua (from the pool + lanai ceiling) */
  --color-primary: #00a8a8;
  --color-primary-hover: #2a7985;
  --color-primary-active: #0c3247;
  --color-primary-highlight: #b7e6e6;

  /* Secondary accent — sun coral (warm counterpoint, sparse use) */
  --color-coral: #e8734a;
  --color-coral-hover: #d15f39;
  --color-coral-highlight: #fbe2d5;

  --color-success: #4c8a5e;
  --color-success-highlight: #dcebe0;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 3px oklch(0.25 0.03 200 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.25 0.03 200 / 0.10);
  --shadow-lg: 0 20px 48px oklch(0.25 0.03 200 / 0.16);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1280px;
  --content-full: 100%;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #12181a;
  --color-surface: #171f21;
  --color-surface-2: #1b2426;
  --color-surface-offset: #1d2729;
  --color-surface-offset-2: #23302f;
  --color-surface-dynamic: #2c3a39;
  --color-divider: #263130;
  --color-border: #37403f;

  --color-text: #e5e9e7;
  --color-text-muted: #97a19f;
  --color-text-faint: #64706e;
  --color-text-inverse: #182121;

  --color-primary: #4fbec2;
  --color-primary-hover: #6fd0d3;
  --color-primary-active: #8adcde;
  --color-primary-highlight: #1f3a3b;

  --color-coral: #f28f68;
  --color-coral-hover: #f6a67f;
  --color-coral-highlight: #3a2a20;

  --color-success: #7fbd8f;
  --color-success-highlight: #223a2a;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.5);
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(var(--space-8), 5vw, var(--space-12));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--color-primary);
}

h2.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.brand-text span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-height: 44px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-faint);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(var(--space-10), 6vw, var(--space-16));
  padding-bottom: 0;
}

.hero-copy {
  max-width: 760px;
  margin-bottom: var(--space-10);
}

.hero-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-available {
  background: var(--color-success-highlight);
  color: var(--color-success);
}

.pill-price {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  font-size: var(--text-sm);
  text-transform: none;
  letter-spacing: 0;
}

.pill-price strong {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-right: var(--space-1);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.hero-address {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero-address svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero-stat strong {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
}

.hero-stat span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Hero gallery */
.hero-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-3);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: clamp(320px, 46vw, 560px);
}

.hero-gallery .main-shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero-gallery .main-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--space-3);
}

.hero-side .shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.hero-side .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  background: oklch(0.15 0.02 200 / 0.65);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* ==========================================================================
   Quick facts strip
   ========================================================================== */

.facts-strip {
  padding-block: var(--space-10);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.fact {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.fact svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.fact-body {
  display: flex;
  flex-direction: column;
}

.fact-body strong {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.fact-body span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   About / description
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}

.about-body p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

.about-body p strong {
  color: var(--color-text);
  font-weight: 600;
}

.highlight-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.highlight-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about-image-caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  background: oklch(0.15 0.02 200 / 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-bg {
  background: var(--color-surface-offset);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--space-3);
}

.gallery-grid button {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 0;
  display: block;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-grid button:hover img {
  transform: scale(1.05);
}

.gallery-grid button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}

.g-span-2 {
  grid-column: span 2;
}
.g-row-2 {
  grid-row: span 2;
}

.gallery-tag {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  background: oklch(0.15 0.02 200 / 0.6);
  color: #fff;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: oklch(0.1 0.02 200 / 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.1);
  color: #fff;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: oklch(1 0 0 / 0.2);
}

.lightbox-close {
  top: var(--space-6);
  right: var(--space-6);
}

.lightbox-nav.prev {
  left: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--text-sm);
  background: oklch(1 0 0 / 0.12);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Amenities
   ========================================================================== */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.amenity-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.amenity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.amenity-icon svg {
  width: 22px;
  height: 22px;
}

.amenity-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.amenity-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Neighborhood
   ========================================================================== */

.neighborhood {
  background: var(--color-surface-offset);
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: center;
}

.map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-divider);
  aspect-ratio: 4/3;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.nearby-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}

.nearby-item:last-child {
  border-bottom: none;
}

.nearby-item-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}

.nearby-item-name svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

.nearby-item-dist {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   Requirements
   ========================================================================== */

.reqs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.req-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.req-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
}

.req-card h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.req-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Contact / CTA
   ========================================================================== */

.contact {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  color: var(--color-text-inverse);
  padding: clamp(var(--space-10), 6vw, var(--space-16));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.contact-copy p {
  color: oklch(1 0 0 / 0.82);
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
}

.agent-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.agent-brokerage-logo {
  margin-left: auto;
  width: 54px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.92);
  padding: 6px;
}

.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: oklch(1 0 0 / 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center 30%;
  border: 2px solid oklch(1 0 0 / 0.35);
}

.agent-meta strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
}

.agent-meta span {
  font-size: var(--text-xs);
  color: oklch(1 0 0 / 0.75);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-link:hover {
  opacity: 0.85;
}

/* Contact form card */
.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.contact-form p.form-sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  color: var(--color-text);
  min-height: 44px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  text-align: center;
}

.form-success {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-success-highlight);
  color: var(--color-success);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.form-error {
  padding: var(--space-4);
  background: color-mix(in oklab, #dc2626 12%, transparent);
  color: #b91c1c;
  border: 1px solid color-mix(in oklab, #dc2626 30%, transparent);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* ==========================================================================
   Sticky mobile CTA bar
   ========================================================================== */

.mobile-cta-bar {
  display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-10);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
}

.footer-brand svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.footer-logo {
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.footer-text {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 520px;
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .about-image {
    order: -1;
  }

  .neighborhood-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

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

  .reqs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero-gallery {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    height: 140px;
  }

  .hero-gallery .main-shot {
    height: 280px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .g-span-2 {
    grid-column: span 2;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--color-surface);
    border-top: 1px solid var(--color-divider);
    padding: var(--space-3) var(--space-4);
    padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
    gap: var(--space-3);
    box-shadow: 0 -4px 16px oklch(0.2 0.02 200 / 0.08);
  }

  body {
    padding-bottom: 76px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    gap: var(--space-5);
  }
}
