/* ==========================================================================
   EPOCH — Southwest Institution
   Design system v2: modern editorial, navy/emerald, image-led, GSAP-driven
   ========================================================================== */

:root {
  --ink: #0E1116;
  --ink-soft: #454C55;
  --paper: #FFFFFF;
  --mist: #F3F5F4;
  --line: rgba(14, 17, 22, 0.12);
  --line-soft: rgba(14, 17, 22, 0.07);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --emerald: #175C46;
  --emerald-bright: #2E9C76;
  --emerald-pale: #E5F0EB;

  --slate: #5B6470;
  --white: #FFFFFF;

  --font-display: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1320px;
  --gutter: clamp(24px, 6vw, 96px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--emerald-bright);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--emerald);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  z-index: 300;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

/* The frosted background lives on a pseudo-element, not on .site-header
   itself: a `backdrop-filter` on the header would make it a containing
   block for any `position: fixed` descendant (the mobile nav panel),
   trapping that panel inside the 88px header instead of the viewport. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-solid {
  border-bottom-color: var(--line);
}

.site-header.is-solid::before {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

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

/* Logo starts white-on-dark over the hero image, flips to ink once header solidifies */
.site-header:not(.is-solid) .brand img.logo-ink { display: none; }
.site-header:not(.is-solid) .brand img.logo-white { display: block; }
.site-header.is-solid .brand img.logo-ink { display: block; }
.site-header.is-solid .brand img.logo-white { display: none; }

.main-nav { display: flex; align-items: center; gap: 40px; }

.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color 0.4s var(--ease);
}

.site-header.is-solid .main-nav a { color: var(--ink-soft); }

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--emerald-bright);
  transition: width 0.3s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(255,255,255,0.5);
  padding: 9px 20px !important;
  font-family: var(--font-display);
  font-weight: 600 !important;
}
.site-header.is-solid .nav-cta { border-color: var(--ink); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--emerald); border-color: var(--emerald); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.site-header.is-solid .nav-toggle { border-color: var(--line-on-dark); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1px; background: var(--white); position: relative;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.3s;
}
.site-header.is-solid .nav-toggle span,
.site-header.is-solid .nav-toggle span::before,
.site-header.is-solid .nav-toggle span::after { background: var(--ink); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent !important; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); background: var(--ink) !important; }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); background: var(--ink) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 88px;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.04;
  max-width: 16ch;
  color: var(--white);
}

.hero-lede {
  margin-top: 26px;
  max-width: 46ch;
  font-size: 18px;
  color: rgba(255,255,255,0.82);
}

.hero-meta {
  margin-top: 56px;
  display: flex; gap: 56px; flex-wrap: wrap;
}
/* Fallback for older mobile browsers/WebViews without flexbox `gap` support. */
.hero-meta div { margin-right: 56px; margin-bottom: 16px; }

.hero-meta div {
  border-top: 1px solid rgba(255,255,255,0.28);
  padding-top: 14px;
  max-width: 220px;
}
.hero-meta .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--emerald-bright);
  display: block; margin-bottom: 6px;
}
.hero-meta p { font-size: 14px; color: rgba(255,255,255,0.78); }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}
.scroll-cue .line {
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  display: block;
  width: 100%; height: 40%;
  background: var(--emerald-bright);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ---------- Section shell ---------- */
.section { padding: 120px 0; }
.section.tight { padding: 90px 0; }
.section.on-mist { background: var(--mist); }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 17ch; margin-top: 14px; }
.section-head .section-note { max-width: 34ch; color: var(--ink-soft); font-size: 15px; padding-bottom: 4px; }

/* ---------- Divisions: alternating image/text rows ---------- */
.division-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.division-row + .division-row { margin-top: 96px; }
.division-row.reverse .division-media { order: 2; }
.division-row.reverse .division-text { order: 1; }
.division-row.no-media { grid-template-columns: 1fr; }
.division-row.no-media .division-text { max-width: 60ch; }
.division-row.no-media .division-text p { max-width: 56ch; }

.division-media {
  position: relative;
  aspect-ratio: 9 / 11;
  overflow: hidden;
  background: var(--ink);
}
.division-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  will-change: transform;
}
.division-index {
  position: absolute;
  top: 20px; left: 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 12px;
  backdrop-filter: blur(4px);
}
.division-index-inline {
  display: inline-block;
  color: var(--emerald);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line-strong, var(--line));
  padding: 4px 10px;
  margin-bottom: 16px;
}

.division-text h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 18px; max-width: 16ch; }
.division-text p { font-size: 16px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 26px; }

.division-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
  margin-bottom: 22px;
  overflow: hidden;
}
.division-line span {
  position: absolute; inset: 0;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Developments ---------- */
.dev-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}

.dev-card {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.dev-card.no-media {
  background: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  border-top: 2px solid var(--emerald);
}

.dev-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
  z-index: 0;
}

.dev-card .dev-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,11,13,0.05) 30%, rgba(9,11,13,0.88) 100%);
  z-index: 1;
}

.dev-card > * { position: relative; z-index: 2; }

.dev-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--emerald-bright);
  font-family: var(--font-display); font-weight: 600;
  margin-bottom: 18px; width: fit-content;
}
.dev-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald-bright); }

.dev-card h3 { font-size: 23px; margin-bottom: 12px; max-width: 22ch; color: var(--white); }
.dev-card p { font-size: 15px; color: rgba(255,255,255,0.8); max-width: 46ch; }

/* ---------- About ---------- */
.about-section { background: var(--ink); color: var(--paper); }
.about-section .eyebrow { color: var(--emerald-bright); }
.about-section .eyebrow::before { background: var(--emerald-bright); }

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 40px;
}
.about-grid.no-media { grid-template-columns: 1fr; max-width: 68ch; }
.about-media { aspect-ratio: 4 / 5; overflow: hidden; }
.about-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); will-change: transform; }

.about-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
  max-width: 24ch;
  color: var(--white);
  margin-bottom: 30px;
}
.about-detail {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 46ch;
}
.about-detail + .about-detail { margin-top: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; }

.contact-info .info-block { margin-bottom: 32px; }
.contact-info .info-block h4 {
  font-size: 12.5px; color: var(--slate); font-family: var(--font-display); font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 10px;
}
.contact-info .info-block p, .contact-info .info-block a { font-size: 15.5px; line-height: 1.6; }
.contact-info .info-block a { border-bottom: 1px solid var(--line); }
.contact-info .info-block a:hover { border-color: var(--emerald); color: var(--emerald); }

.social-row { display: flex; gap: 16px; margin-top: 40px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); padding: 9px 16px; font-size: 14px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.social-row a svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-row a:hover { border-color: var(--emerald); color: var(--emerald); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--slate); margin-bottom: 8px; font-family: var(--font-display); font-weight: 600; }
.field input, .field select, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 10px 2px; transition: border-color 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.submit-row { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.submit-row > * { margin-right: 20px; margin-bottom: 8px; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 14px 30px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  cursor: pointer; transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-submit:hover { background: var(--emerald); border-color: var(--emerald); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.voucher-pay-btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
.voucher-pay-btn:hover svg { transform: translateX(3px); }
.form-status { font-size: 14px; }
.form-status[data-state="success"] { color: var(--emerald); }
.form-status[data-state="error"] { color: #A23B2E; }

/* ---------- Footer ---------- */
.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .wrap > * { margin-bottom: 8px; }
.site-footer img { height: 15px; opacity: 0.75; }
.footer-legal { font-size: 13px; color: var(--slate); }

/* ---------- GSAP reveal helpers (initial states; JS animates these in) ---------- */
.gs-reveal { opacity: 0; }
.gs-reveal-up { opacity: 0; transform: translateY(28px); }

/* ---------- Resort Equity Vouchers ---------- */
.voucher-section .section-head { margin-bottom: 40px; }

.voucher-intro {
  max-width: 74ch;
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.voucher-intro p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; }

.voucher-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 64px;
}
.benefit-card { background: var(--paper); padding: 32px 28px; }
.benefit-index {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--emerald);
  margin-bottom: 18px;
}
.benefit-card h3 { font-size: 18px; margin-bottom: 12px; }
.benefit-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.voucher-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.voucher-card:hover {
  transform: translateY(-6px);
  border-color: var(--emerald);
  box-shadow: 0 16px 32px rgba(14, 17, 22, 0.1);
}
.voucher-card.featured {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1px var(--emerald);
}
.voucher-card.featured:hover {
  box-shadow: 0 0 0 1px var(--emerald), 0 16px 32px rgba(23, 92, 70, 0.22);
}
.voucher-tag {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--emerald);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  padding: 6px 14px;
}
.voucher-card h3 { font-size: 19px; margin-bottom: 14px; padding-right: 60px; }
.voucher-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 8px;
  transition: color 0.3s var(--ease);
}
.voucher-card:hover .voucher-price { color: var(--emerald); }
.voucher-credit { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; }
.voucher-credit strong { color: var(--emerald); }
.voucher-credit span { display: block; font-size: 12.5px; margin-top: 2px; }

.voucher-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voucher-features li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.voucher-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 10px; height: 1px;
  background: var(--emerald);
}

.btn-voucher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-voucher svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform 0.25s var(--ease); }
.btn-voucher:hover svg { transform: translateX(3px); }
.btn-voucher:hover { background: var(--emerald); border-color: var(--emerald); }
.voucher-card.featured .btn-voucher { background: var(--emerald); border-color: var(--emerald); }
.voucher-card.featured .btn-voucher:hover { background: var(--emerald-bright); border-color: var(--emerald-bright); }

.voucher-empty {
  padding: 48px;
  text-align: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line);
}

.voucher-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

/* ---------- Voucher checkout modal ---------- */
.voucher-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.voucher-modal.open { display: flex; }
.voucher-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 13, 0.6);
  backdrop-filter: blur(2px);
}
.voucher-modal-panel {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
  z-index: 1;
  max-height: 90vh;
  overflow-y: auto;
}
.voucher-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--line);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
}
.voucher-modal-close:hover { border-color: var(--ink); color: var(--ink); }
.voucher-modal-panel h3 { font-size: 21px; margin-top: 4px; margin-bottom: 6px; }
.voucher-modal-amount { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 24px; }
#voucher-form .field { margin-bottom: 18px; }
#voucher-form label { font-size: 12.5px; color: var(--slate); margin-bottom: 8px; display: block; font-family: var(--font-display); font-weight: 600; }
#voucher-form input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong, var(--line));
  padding: 10px 2px; font-size: 15px; transition: border-color 0.25s var(--ease);
}
#voucher-form input:focus { border-color: var(--emerald); outline: none; }
.voucher-pay-btn { width: 100%; margin-top: 8px; }
#voucher-modal-status { margin-top: 14px; text-align: center; }

/* ---------- Dedicated package page ---------- */
.package-hero { padding-top: 140px; }
.package-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  color: var(--ink-soft); margin-bottom: 28px;
}
.package-back svg { width: 16px; height: 16px; }
.package-back:hover { color: var(--emerald); }

.package-price-row { margin-bottom: 8px; }
.package-price-row .voucher-price { font-size: 40px; }
.package-price-row .voucher-credit { font-size: 15px; }

.package-body {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  margin: 40px 0 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.package-body > * { flex: 1 1 320px; min-width: 0; }
.package-features h3, .property-description h3 { font-size: 16px; margin-bottom: 18px; }
.package-features .voucher-features { margin-bottom: 0; }

.property-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}
/* Fallback for older mobile browsers/WebViews without flexbox `gap` support. */
.property-thumb { margin: 0 12px 12px 0; }
.property-thumb {
  flex: 1 1 150px;
  max-width: 220px;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--mist);
}
.property-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease); }
.property-thumb:hover img { transform: scale(1.08); }

.property-thumb-video {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.property-thumb-video svg {
  width: 44px; height: 44px; color: var(--white); opacity: 0.9;
  transition: transform 0.25s var(--ease);
}
.property-thumb-video:hover svg { transform: scale(1.12); }
.property-thumb-caption { font-size: 12.5px; color: rgba(255,255,255,0.75); padding: 0 12px; text-align: center; }

.property-media-empty {
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px dashed var(--line);
  margin: 28px 0;
}

.property-description p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 12px; }

/* ---------- Blog ---------- */
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.blog-card {
  flex: 1 1 300px;
  max-width: 380px;
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-image {
  aspect-ratio: 4 / 3;
  min-height: 220px; /* fallback for browsers without aspect-ratio support */
  overflow: hidden;
  background: var(--mist);
  margin-bottom: 18px;
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.blog-card:hover .blog-card-image img { transform: scale(1.05); }
.blog-card-image-empty {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.blog-card-meta { font-size: 12.5px; color: var(--slate); margin-bottom: 10px; }
.blog-card h3 { font-size: 19px; margin-bottom: 10px; transition: color 0.2s var(--ease); }
.blog-card:hover h3 { color: var(--emerald); }
.blog-card-excerpt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

.blog-pagination {
  display: flex; align-items: center; gap: 20px;
  margin-top: 48px;
}
.blog-pagination-status { font-size: 13px; color: var(--slate); font-family: var(--font-display); font-weight: 600; }

.blog-post-title { font-size: clamp(28px, 4vw, 42px); margin: 14px 0 14px; max-width: none; }
.blog-post-meta { font-size: 13.5px; color: var(--slate); margin-bottom: 32px; }
.blog-post-image { margin-bottom: 36px; }
.blog-post-image img { width: 100%; height: auto; display: block; }
.blog-post-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.blog-post-content p:first-child { font-size: 18.5px; color: var(--ink); }
.blog-post-content h2, .blog-post-content h3 { margin: 40px 0 18px; }
.blog-post-content h2 { font-size: 26px; }
.blog-post-content h3 { font-size: 21px; }
.blog-post-content ul, .blog-post-content ol {
  margin: 0 0 24px 22px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.blog-post-content li { margin-bottom: 8px; }
.blog-post-content blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--emerald);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}
.blog-post-content a { color: var(--emerald); text-decoration: underline; text-underline-offset: 2px; }
.blog-post-content a:hover { color: var(--emerald-bright); }
.blog-post-content strong { color: var(--ink); font-weight: 700; }

/* ---------- Lightbox (images and video) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(9, 11, 13, 0.92); }
.lightbox-content { position: relative; z-index: 1; width: 100%; max-width: 1000px; }
.lightbox-content img { display: block; width: 100%; max-height: 85vh; object-fit: contain; margin: 0 auto; }
.lightbox-content iframe, .lightbox-content video {
  width: 100%; aspect-ratio: 16 / 9; border: none; display: block; background: var(--ink);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}
.lightbox-close:hover { border-color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; position: fixed; top: 88px; right: 0; bottom: 0; left: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 32px var(--gutter);
    z-index: 90; border-top: 1px solid var(--line);
  }
  /* Fallback for older mobile browsers/WebViews without flexbox `gap` support. */
  .main-nav.open a { margin-bottom: 26px; }
  .site-header .main-nav.open a { color: var(--ink); font-size: 18px; }
  .main-nav.open a::after { background: var(--emerald); }
  .main-nav.open .nav-cta { border-color: var(--ink); }

  .division-row, .division-row.reverse { grid-template-columns: 1fr; }
  .division-row.reverse .division-media { order: 1; }
  .division-row.reverse .division-text { order: 2; }
  .division-media { aspect-ratio: 4 / 3; }

  .dev-list { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .voucher-benefits, .voucher-grid { grid-template-columns: 1fr; }
  .voucher-modal-panel { padding: 32px 24px; }
  .property-thumb { flex-basis: 110px; }
  .package-body { gap: 32px; }
  /* Flexbox `gap` isn't supported on some older mobile browsers/WebViews;
     this guarantees spacing between the stacked sections either way. */
  .package-body > * + * { margin-top: 32px; }
  .package-hero { padding-top: 108px; }

  .section { padding: 80px 0; }
  .hero-content { padding-bottom: 64px; }
}

@media (max-width: 520px) {
  .hero-meta { gap: 30px; }
}
