/* =========================================================================
   Hayes Rentals — public site
   Tokenized visual system. Brand color/type come from theme.css (--brand-*).
   This file layers a full design scale (spacing, radius, shadow, type) on top.
   ========================================================================= */

:root {
  /* Brand (fallbacks mirror theme.css so the site is safe if it fails to load) */
  --primary: var(--brand-primary, #2f5d50);
  --accent: var(--brand-accent, #c79a52);
  --bg: var(--brand-bg, #ffffff);
  --fg: var(--brand-fg, #0f172a);
  --muted: var(--brand-muted, #64748b);
  --font-head: var(--brand-font-heading, 'Fraunces', Georgia, serif);
  --font-body: var(--brand-font-body, 'Inter', system-ui, sans-serif);

  /* Derived brand tones */
  --primary-900: #1d3b32;
  --primary-700: #2a5448;
  --primary-50: #eef3f1;
  --accent-700: #a87f38;
  --accent-50: #f7efdf;

  /* Neutrals */
  --ink: #14201c;
  --paper: #fbfaf7;          /* warm off-white section bg */
  --paper-2: #f4f1ea;        /* secondary warm panel */
  --line: #e6e2d8;           /* hairline borders */
  --line-2: #d8d3c6;

  /* Type scale (fluid) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 6rem);

  /* Spacing */
  --sp-1: 0.5rem;
  --sp-2: 0.75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --sp-6: 3rem;
  --sp-7: 4.5rem;
  --sp-8: 6.5rem;
  --sp-9: 9rem;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 28, 0.05), 0 2px 8px rgba(20, 32, 28, 0.04);
  --shadow-md: 0 6px 20px rgba(20, 32, 28, 0.08), 0 2px 6px rgba(20, 32, 28, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 32, 28, 0.16), 0 8px 24px rgba(20, 32, 28, 0.08);

  --container: 1200px;
  --container-narrow: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 0.4s var(--ease);
}

/* --- reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

.skip-link {
  position: absolute; left: 0.5rem; top: -100px; z-index: 200;
  background: var(--primary); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 0.5rem; }

.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-700);
  margin-bottom: var(--sp-2);
}
.eyebrow--light { color: var(--accent); }

.ic { width: 1.15em; height: 1.15em; flex: none; }

/* --- buttons ----------------------------------------------------------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 0.8rem 1.4rem; border: 1px solid transparent; border-radius: 100px;
  font-weight: 600; font-size: var(--step-0); line-height: 1;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  will-change: transform;
}
.btn .ic { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-900); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--sm { padding: 0.6rem 1.05rem; font-size: var(--step--1); }
.btn--lg { padding: 0.95rem 1.7rem; font-size: var(--step-1); }
.btn--text {
  background: none; color: var(--primary); padding: 0.4rem 0.2rem; border-radius: 4px;
  font-size: var(--step--1); text-decoration: underline; text-underline-offset: 4px;
}
.btn--text:hover { transform: none; box-shadow: none; color: var(--primary-900); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--primary);
  font-size: var(--step--1);
}
.link-arrow .ic { transition: transform 0.3s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* --- section heads ----------------------------------------------------- */
.section-head { max-width: 760px; margin: 0 auto var(--sp-6); text-align: center; }
.section-head--left { text-align: left; margin-left: 0; }
.section-head--light { color: #fff; }
.section-head--light .section-sub { color: rgba(255, 255, 255, 0.82); }
.section-title { font-size: var(--step-3); color: var(--primary-900); }
.section-head--light .section-title { color: #fff; }
.section-sub { margin-top: var(--sp-3); font-size: var(--step-1); color: var(--muted); line-height: 1.5; }

/* =========================================================================
   ANNOUNCEMENT + HEADER
   ========================================================================= */
.announce { background: var(--primary-900); color: #fdf6e7; font-size: var(--step--1); }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 0.6rem 0; flex-wrap: wrap; text-align: center; }
.announce a { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
.announce a:hover { text-decoration: underline; }

.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.site-head.is-stuck { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-head__inner { display: flex; align-items: center; gap: var(--sp-4); height: 72px; }
.brand {
  font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.01em;
  color: var(--primary-900); margin-right: auto;
}
.brand:hover { color: var(--primary); }
.nav__list { list-style: none; display: flex; gap: clamp(0.6rem, 1.6vw, 1.7rem); padding: 0; }
.nav__link {
  position: relative; font-weight: 500; font-size: var(--step--1); color: var(--ink); padding: 0.4rem 0;
  letter-spacing: 0.01em;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.site-head__cta { display: flex; }

.navtoggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.navtoggle span { width: 24px; height: 2px; background: var(--primary-900); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 72px 0 0; z-index: 90; background: var(--bg);
  padding: var(--sp-5) clamp(1.1rem, 4vw, 2.5rem);
  transform: translateY(-8px); opacity: 0; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-nav a {
  display: block; font-family: var(--font-head); font-size: var(--step-2); color: var(--primary-900);
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.is-cta { color: var(--accent-700); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 28, 24, 0.86) 0%, rgba(15, 28, 24, 0.25) 45%, rgba(15, 28, 24, 0.35) 100%),
    linear-gradient(to right, rgba(15, 28, 24, 0.55), rgba(15, 28, 24, 0.05));
}
.hero__inner { position: relative; z-index: 1; padding-block: clamp(3rem, 9vh, 7rem); max-width: 800px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.45rem 0.9rem; border-radius: 100px; margin-bottom: var(--sp-4); backdrop-filter: blur(6px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(199, 154, 82, 0.3); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(199, 154, 82, 0.3); } 50% { box-shadow: 0 0 0 7px rgba(199, 154, 82, 0); } }
.hero__title { font-size: var(--step-5); font-weight: 500; max-width: 14ch; }
.hero__sub { margin-top: var(--sp-4); font-size: var(--step-1); max-width: 54ch; color: rgba(255, 255, 255, 0.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__trust { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--sp-4); font-size: var(--step--1); color: rgba(255, 255, 255, 0.85); }
.hero__trust .ic { color: var(--accent); }
.hero__scroll { position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.5); border-radius: 100px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; background: #fff; border-radius: 4px; transform: translateX(-50%); animation: scroll 1.8s var(--ease) infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* =========================================================================
   STATS / TRUST
   ========================================================================= */
.stats { padding-block: var(--sp-8); background: var(--bg); }
.stats__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.stats__heading { font-size: var(--step-2); color: var(--primary-900); margin-bottom: var(--sp-5); max-width: 16ch; }
.stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--sp-5) var(--sp-5); margin: 0; }
.stat { border-left: 2px solid var(--accent); padding-left: var(--sp-3); min-width: 0; }
.stat__value { font-family: var(--font-head); font-size: clamp(1.4rem, 0.9rem + 1vw, 2rem); font-weight: 600; color: var(--primary); line-height: 1.15; overflow-wrap: break-word; word-break: normal; hyphens: none; }
.stat__label { font-size: var(--step--1); color: var(--muted); margin-top: 0.35rem; }
.testimonial { background: var(--primary-900); color: #fff; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--r-lg); position: relative; box-shadow: var(--shadow-lg); }
.testimonial::before { content: '\201C'; position: absolute; top: 0.4rem; left: 1.4rem; font-family: var(--font-head); font-size: 5rem; color: var(--accent); opacity: 0.5; line-height: 1; }
.testimonial__quote { font-family: var(--font-head); font-size: var(--step-1); font-weight: 400; line-height: 1.45; font-style: italic; position: relative; }
.testimonial__by { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial__name { font-weight: 600; }
.testimonial__unit { font-size: var(--step--1); color: var(--accent); }

/* =========================================================================
   UNITS GRID + FILTERS
   ========================================================================= */
.units { padding-block: var(--sp-8); background: var(--paper); }
.filters {
  display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5); box-shadow: var(--shadow-sm); margin-bottom: var(--sp-4);
}
.filters__group { display: flex; flex-direction: column; gap: 0.4rem; flex: 1 1 180px; }
.filters__group label { font-size: var(--step--1); font-weight: 600; color: var(--primary-900); }
.filters select, .filters input[type="date"], .filters input[type="range"] {
  font: inherit; padding: 0.6rem 0.8rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: border-color var(--t), box-shadow var(--t);
}
.filters select:focus, .filters input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12); outline: none; }
.filters input[type="range"] { padding: 0; accent-color: var(--primary); height: 38px; }
#filters-reset { flex: 0 0 auto; align-self: flex-end; }
.filters__count { font-size: var(--step--1); color: var(--muted); margin-bottom: var(--sp-5); min-height: 1.2em; }

.units__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--sp-4); }
.ucard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.ucard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.ucard.is-hidden { display: none; }
.ucard__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; display: block; background: var(--paper-2); }
.ucard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ucard:hover .ucard__media img { transform: scale(1.05); }
.ucard__status {
  position: absolute; top: 0.8rem; left: 0.8rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 100px; backdrop-filter: blur(4px);
}
.ucard__status--go { background: rgba(47, 93, 80, 0.92); color: #fff; }
.ucard__status--soon { background: rgba(199, 154, 82, 0.95); color: #2a1c00; }
.ucard__status--off { background: rgba(20, 32, 28, 0.7); color: #fff; }
.ucard__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.ucard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.8rem; }
.ucard__title { font-size: var(--step-1); color: var(--primary-900); }
.ucard__title a:hover { color: var(--primary); }
.ucard__rent { font-family: var(--font-head); font-size: var(--step-1); font-weight: 600; color: var(--primary); white-space: nowrap; }
.ucard__rent span { font-size: 0.7em; color: var(--muted); font-weight: 400; }
.ucard__specs { list-style: none; padding: 0; display: flex; gap: var(--sp-3); font-size: var(--step--1); color: var(--ink); flex-wrap: wrap; }
.ucard__specs li { display: inline-flex; align-items: center; gap: 0.35rem; }
.ucard__specs .ic { color: var(--primary); }
.ucard__features { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ucard__features li { font-size: 0.74rem; background: var(--primary-50); color: var(--primary-700); padding: 0.25rem 0.6rem; border-radius: 100px; }
.ucard__foot { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.ucard__avail { font-size: var(--step--1); color: var(--muted); }
.units__empty { text-align: center; padding: var(--sp-7) var(--sp-4); color: var(--muted); font-size: var(--step-1); }

/* =========================================================================
   FLOOR PLANS
   ========================================================================= */
.fplans { padding-block: var(--sp-8); background: var(--bg); }
.fplans__tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-6); }
.fptab {
  display: flex; flex-direction: column; gap: 0.2rem; text-align: left; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.8rem 1.3rem;
  transition: border-color var(--t), background var(--t), transform var(--t), box-shadow var(--t);
}
.fptab:hover { border-color: var(--accent); transform: translateY(-2px); }
.fptab.is-active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-md); }
.fptab__name { font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); }
.fptab__meta { font-size: var(--step--1); color: var(--muted); }
.fptab.is-active .fptab__meta { color: rgba(255, 255, 255, 0.78); }

.fppanel { display: none; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fppanel.is-active { display: grid; animation: fade-up 0.5s var(--ease); }
.fppanel__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.fppanel__media img { width: 100%; height: 100%; object-fit: cover; }
.fppanel__title { font-size: var(--step-3); color: var(--primary-900); margin-bottom: var(--sp-3); }
.fppanel__desc { color: var(--muted); font-size: var(--step-1); margin-bottom: var(--sp-4); }
.fppanel__highlights { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin-bottom: var(--sp-5); }
.fppanel__highlights li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--step--1); }
.fppanel__highlights .ic { color: var(--accent-700); margin-top: 0.15rem; }
.fppanel__foot { display: flex; align-items: baseline; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.fppanel__price { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--primary); }
.fppanel__price span { font-size: 0.5em; color: var(--muted); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; display: block; }
.fppanel__price small { font-size: 0.5em; color: var(--muted); font-weight: 400; }
.fppanel__avail { font-size: var(--step--1); color: var(--accent-700); font-weight: 600; }

/* =========================================================================
   AMENITIES
   ========================================================================= */
.amen { padding-block: var(--sp-8); background: var(--paper-2); }
.amen-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: var(--sp-5); background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.amen-feature__media { aspect-ratio: 4 / 3; }
.amen-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.amen-feature__body { padding: clamp(1.5rem, 4vw, 3rem); }
.amen-feature__body h3 { font-size: var(--step-2); color: var(--primary-900); margin: var(--sp-3) 0; }
.amen-feature__body p { color: var(--muted); margin-bottom: var(--sp-4); }
.amen__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--primary-50); color: var(--primary); }
.amen__icon .ic { width: 26px; height: 26px; }
.amen__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--sp-4); }
.amen-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); transition: transform var(--t), box-shadow var(--t); }
.amen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.amen-card h3 { font-size: var(--step-1); color: var(--primary-900); margin: var(--sp-3) 0 var(--sp-2); }
.amen-card p { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--sp-3); }
.amen__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.amen__tags li { font-size: 0.72rem; color: var(--primary-700); background: var(--accent-50); padding: 0.25rem 0.6rem; border-radius: 100px; }

/* =========================================================================
   GALLERY
   ========================================================================= */
.gallery { padding-block: var(--sp-8) var(--sp-5); background: var(--bg); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--sp-2); padding-inline: clamp(0.6rem, 2vw, 1.2rem); }
.gallery__item { overflow: hidden; border-radius: var(--r-md); background: var(--paper-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--1 { grid-column: span 2; grid-row: span 2; }
.gallery__item--4 { grid-row: span 2; }
.gallery__item--3 { grid-column: span 2; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(11, 17, 14, 0.94); display: grid; place-items: center; padding: 4vw; opacity: 0; transition: opacity 0.3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.6rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.2); }

/* =========================================================================
   NEIGHBORHOOD
   ========================================================================= */
.hood { position: relative; padding-block: var(--sp-8); color: #fff; overflow: hidden; isolation: isolate; }
.hood__bg { position: absolute; inset: 0; z-index: -1; }
.hood__bg img { width: 100%; height: 100%; object-fit: cover; }
.hood__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(15, 28, 24, 0.94) 30%, rgba(15, 28, 24, 0.72)); }
.hood__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: var(--sp-3); }
.poi { display: flex; gap: var(--sp-3); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--r-md); padding: var(--sp-4); transition: background var(--t), transform var(--t), border-color var(--t); }
.poi:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-3px); border-color: rgba(199, 154, 82, 0.5); }
.poi__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(199, 154, 82, 0.18); color: var(--accent); }
.poi__head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.poi__name { font-size: var(--step-1); }
.poi__dist { font-size: var(--step--1); color: var(--accent); font-weight: 600; white-space: nowrap; }
.poi__desc { font-size: var(--step--1); color: rgba(255, 255, 255, 0.78); margin-top: 0.3rem; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { padding-block: var(--sp-8); background: var(--paper); }
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: 100px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item:first-child { border-top: 1px solid var(--line-2); }
.faq__q { margin: 0; }
.faq__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  background: none; border: 0; padding: var(--sp-4) 0.2rem; text-align: left;
  font-family: var(--font-head); font-size: var(--step-1); font-weight: 500; color: var(--primary-900);
}
.faq__trigger:hover { color: var(--primary); }
.faq__chevron { position: relative; width: 16px; height: 16px; flex: none; }
.faq__chevron::before, .faq__chevron::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; background: var(--accent-700); border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s var(--ease); }
.faq__chevron::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__trigger[aria-expanded="true"] .faq__chevron::after { transform: translate(-50%, -50%) rotate(0); }
.faq__answer { overflow: hidden; }
.faq__answer p { padding: 0 0.2rem var(--sp-4); color: var(--muted); max-width: 62ch; }

/* =========================================================================
   CTA / LEAD FORM
   ========================================================================= */
.cta { position: relative; padding-block: var(--sp-8); background: var(--primary-900); color: #fff; }
.cta__anchor { position: absolute; top: -90px; }
.cta__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.cta .section-title { color: #fff; }
.cta .section-sub { color: rgba(255, 255, 255, 0.82); }
.cta__contact { list-style: none; padding: 0; margin-top: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); }
.cta__contact li { display: flex; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.9); }
.cta__contact .ic { color: var(--accent); flex: none; }
.cta__contact a:hover { color: var(--accent); }

.leadform { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--primary-900); }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--paper); color: var(--ink); transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47, 93, 80, 0.12); outline: none; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.consent input { margin-top: 0.25rem; accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.leadform__actions { display: flex; }
.leadform .btn { width: 100%; justify-content: center; position: relative; }
.btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.leadform.is-loading .btn__spinner { display: inline-block; }
.leadform.is-loading .btn { opacity: 0.85; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.leadform__status { grid-column: 1 / -1; padding: 0.85rem 1rem; border-radius: var(--r-sm); font-size: var(--step--1); font-weight: 500; }
.leadform__status[hidden] { display: none; }
.leadform__status.is-success { background: var(--primary-50); color: var(--primary-900); border: 1px solid var(--primary); }
.leadform__status.is-error { background: #fdecea; color: #962d22; border: 1px solid #e0796d; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-foot { background: var(--ink); color: #d9e2dd; padding-top: var(--sp-7); }
.site-foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.brand--foot { color: #fff; font-size: 1.6rem; }
.site-foot__tag { margin-top: var(--sp-3); max-width: 38ch; color: #93a39c; font-size: var(--step--1); }
.site-foot__social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.site-foot__social a { font-size: var(--step--1); color: #c1cdc7; }
.site-foot__social a:hover { color: var(--accent); }
.site-foot h2 { font-family: var(--font-body); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: var(--sp-3); }
.site-foot ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-foot__nav a:hover, .site-foot__contact a:hover { color: #fff; }
.site-foot__contact li { color: #93a39c; font-size: var(--step--1); }
.site-foot__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: var(--step--1); color: #7d8c86; }
.site-foot__credit { flex-basis: 100%; text-align: center; color: #9aa8a2; }
.site-foot__credit a { color: var(--brand-accent, #c79a52); text-decoration: none; font-weight: 600; }
.site-foot__credit a:hover, .site-foot__credit a:focus-visible { text-decoration: underline; }

/* back to top */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 80; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--shadow-md); transform: translateY(20px) scale(0.8); opacity: 0; transition: opacity var(--t), transform var(--t), background var(--t); }
.to-top .ic { transform: rotate(-90deg); }
.to-top:hover { background: var(--primary-900); }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top[hidden] { display: grid; }

/* =========================================================================
   UNIT DETAIL PAGE
   ========================================================================= */
.breadcrumb { padding-block: var(--sp-4); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--ink); }
.ud-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--sp-7); align-items: start; }
.ud-gallery__main { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow-md); }
.ud-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.ud-status { top: 1rem; left: 1rem; }
.ud-gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); flex-wrap: wrap; }
.ud-thumb { width: 92px; height: 64px; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; padding: 0; transition: border-color var(--t), transform var(--t); }
.ud-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ud-thumb:hover { transform: translateY(-2px); }
.ud-thumb.is-active { border-color: var(--primary); }
.ud-summary { position: sticky; top: 100px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-sm); }
.ud-title { font-size: var(--step-3); color: var(--primary-900); margin-bottom: var(--sp-2); }
.ud-rent { font-family: var(--font-head); font-size: var(--step-2); font-weight: 600; color: var(--primary); margin-bottom: var(--sp-4); }
.ud-rent span { font-size: 0.5em; color: var(--muted); font-weight: 400; }
.ud-specs { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ud-specs li { display: flex; align-items: center; gap: 0.5rem; font-size: var(--step--1); }
.ud-specs .ic { color: var(--primary); }
.ud-facts { display: grid; gap: var(--sp-2); margin-bottom: var(--sp-5); padding: var(--sp-4) 0; border-block: 1px solid var(--line); }
.ud-facts div { display: flex; justify-content: space-between; font-size: var(--step--1); }
.ud-facts dt { color: var(--muted); }
.ud-facts dd { font-weight: 600; color: var(--ink); }
.ud-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.ud-actions .btn { justify-content: center; }
.ud-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-bottom: var(--sp-7); }
.ud-block { margin-bottom: var(--sp-5); }
.ud-block h2 { font-size: var(--step-2); color: var(--primary-900); margin-bottom: var(--sp-3); }
.ud-fp-desc { color: var(--muted); margin-bottom: var(--sp-3); }
.ud-features { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; margin-bottom: var(--sp-3); }
.ud-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: var(--step--1); }
.ud-features .ic { color: var(--accent-700); margin-top: 0.15rem; flex: none; }
.ud-fp-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.ud-related { padding-block: var(--sp-7); background: var(--paper); }

/* 3D virtual tour (iGuide) — unit detail */
.ud-tour__lead { color: var(--muted); margin-bottom: var(--sp-3); }
.ud-tour__frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden;
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); background: var(--paper-2);
  margin-bottom: var(--sp-3);
}
.ud-tour__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 3D Tour badge on unit cards */
.ucard__tour {
  position: absolute; top: 0.8rem; right: 0.8rem; display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35rem 0.6rem; border-radius: 100px; backdrop-filter: blur(4px);
  background: rgba(20, 32, 28, 0.78); color: #fff;
}
.ucard__tour .ic { width: 0.95em; height: 0.95em; }

/* Property-level "tour both units" CTA section (Home) */
.ptour { padding-block: var(--sp-7); background: var(--paper); text-align: center; }
.ptour__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.ptour .btn { margin-top: var(--sp-2); }

/* legal + 404 */
.legal { padding-block: var(--sp-7); }
.legal__inner { max-width: var(--container-narrow); }
.legal__title { font-size: var(--step-3); color: var(--primary-900); }
.legal__updated { color: var(--muted); font-size: var(--step--1); margin-block: var(--sp-2) var(--sp-5); }
.legal__body { color: var(--ink); line-height: 1.8; }
.legal__body p { margin-bottom: var(--sp-3); }
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: var(--step-3); color: var(--primary-900); margin-bottom: var(--sp-3); }
.notfound p { color: var(--muted); margin-bottom: var(--sp-4); }

/* =========================================================================
   SCROLL REVEAL + MOTION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .stats__grid, .fppanel.is-active, .amen-feature, .faq__inner, .cta__inner, .ud-hero, .ud-detail { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .ud-summary { position: static; }
  .site-foot__top { grid-template-columns: 1fr 1fr; }
  .site-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav, .site-head__cta { display: none; }
  .navtoggle { display: flex; }
  .leadform { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--1, .gallery__item--3 { grid-column: span 2; }
  .gallery__item--4 { grid-row: auto; }
}
@media (max-width: 560px) {
  :root { --sp-8: 4.5rem; --sp-7: 3rem; }
  .hero { min-height: 88vh; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters__group { flex-basis: auto; }
  #filters-reset { align-self: flex-start; }
  .fppanel__highlights, .ud-specs, .ud-features { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item { grid-column: auto !important; grid-row: auto !important; }
  .site-foot__top, .site-foot__bottom { grid-template-columns: 1fr; }
  .ud-facts div { flex-direction: row; }
}

@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; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll span, .hero__badge .dot { animation: none; }
}
