/* ============================================================
   styles.css — PN Realty
   Shared by index, buy, rent and property pages.
   Sections are labelled; search a heading to jump to it.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --navy:#0E2240;          /* brand navy, from the logo backdrop */
  --navy-deep:#081528;     /* header, footer, hero shade */
  --navy-soft:#1C3760;
  --gold:#D9A441;          /* brass accent: CTAs and highlights only */
  --gold-deep:#B8862B;
  --mist:#F2F4F7;          /* page background */
  --paper:#FFFFFF;
  --ink:#142033;
  --muted:#5B6676;
  --line:#E1E5EB;
  --ok:#1F7A4D;
  --warn:#B4651C;

  --font-display:'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body:'Figtree', system-ui, sans-serif;

  --r-sm:8px;
  --r-md:14px;
  --r-lg:22px;
  --shadow-lift:0 18px 40px -18px rgba(8,21,40,.35);
  --wrap:1200px;
}

/* ---------- Reset & base ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  font-family:var(--font-body); font-size:16px; line-height:1.6;
  color:var(--ink); background:var(--mist);
  -webkit-font-smoothing:antialiased;
}
body.menu-open{ overflow:hidden; }
h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.1; letter-spacing:-.02em; font-weight:700; }
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ cursor:pointer; border:0; background:none; }
:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; border-radius:4px; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding-inline:24px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:999px; font-weight:600; font-size:15px;
  transition:background-color .15s, color .15s, border-color .15s, transform .15s;
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; }
.btn--gold{ background:var(--gold); color:var(--navy-deep); }
.btn--gold:hover{ background:#E5B24F; }
.btn--navy{ background:var(--navy); color:#fff; }
.btn--navy:hover{ background:var(--navy-soft); }
.btn--ghost{ border:1.5px solid var(--line); color:var(--navy); background:var(--paper); }
.btn--ghost:hover{ border-color:var(--navy); }
.btn--wa{ background:#1FAF55; color:#fff; }
.btn--wa:hover{ background:#179447; }
.btn--wa svg{ fill:#fff; }
.btn--block{ width:100%; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(8,21,40,.96);
  transition:background-color .25s, box-shadow .25s;
}
/* On the home page the header floats over the hero photo until you scroll */
.has-hero .site-header{ position:fixed; left:0; right:0; background:transparent; }
.has-hero .site-header.is-scrolled,
.site-header.is-scrolled{ background:rgba(8,21,40,.96); box-shadow:0 6px 24px -12px rgba(0,0,0,.5); backdrop-filter:blur(10px); }
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; height:76px; }
.logo img{ height:52px; width:auto; }
.nav-links{ display:flex; gap:6px; }
.nav-links a{
  color:rgba(255,255,255,.82); font-size:15px; font-weight:500;
  padding:8px 14px; border-radius:999px; transition:color .15s, background-color .15s;
}
.nav-links a:hover{ color:#fff; background:rgba(255,255,255,.08); }
.nav-links a[aria-current="page"]{ color:#fff; background:rgba(255,255,255,.12); }
.nav-actions{ display:flex; align-items:center; gap:10px; }
.nav-actions .btn{ padding:10px 18px; font-size:14px; }
.nav-phone{ color:#fff; font-size:14px; font-weight:600; display:flex; align-items:center; gap:8px; padding:8px 6px; }
.nav-phone svg{ width:16px; height:16px; stroke:var(--gold); fill:none; stroke-width:2; }

.menu-toggle{ display:none; width:44px; height:44px; border-radius:50%; color:#fff; align-items:center; justify-content:center; }
.menu-toggle span{ position:relative; width:20px; height:2px; background:currentColor; transition:background-color .2s; }
.menu-toggle span::before,.menu-toggle span::after{ content:""; position:absolute; left:0; width:20px; height:2px; background:currentColor; transition:transform .2s; }
.menu-toggle span::before{ top:-6px; } .menu-toggle span::after{ top:6px; }
.menu-toggle[aria-expanded="true"] span{ background:transparent; }
.menu-toggle[aria-expanded="true"] span::before{ transform:translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after{ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:76px 0 0; z-index:59; background:var(--navy-deep);
  padding:24px; display:flex; flex-direction:column; gap:4px;
}
.mobile-menu[hidden]{ display:none; }
.mobile-menu a:not(.btn){ color:#fff; font-family:var(--font-display); font-size:28px; font-weight:600; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.mobile-menu .btn{ margin-top:20px; }

/* ---------- Home hero ---------- */
.hero{
  position:relative; min-height:min(92vh, 860px); color:#fff;
  display:flex; align-items:flex-end; overflow:hidden; background:var(--navy-deep);
  padding:140px 0 40px;
}
.hero-slider{ position:absolute; inset:0; overflow:hidden; }
.hero-slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; animation:heroSlide 30s ease-in-out infinite; will-change:opacity, transform;
}
/* 5 slides x 6s. To change photos, swap the URLs below. */
.hero-slide:nth-child(1){ background-image:url('images/web/buy/p-2/1.jpg'); animation-delay:0s; }
.hero-slide:nth-child(2){ background-image:url('images/web/buy/p-3/1.jpg'); animation-delay:6s; }
.hero-slide:nth-child(3){ background-image:url('images/web/buy/p-1/a.jpg'); animation-delay:12s; }
.hero-slide:nth-child(4){ background-image:url('images/web/buy/p-6/1.jpg'); animation-delay:18s; }
.hero-slide:nth-child(5){ background-image:url('images/web/buy/p-4/1.jpg'); animation-delay:24s; }
.hero-slide:nth-child(1){ opacity:1; } /* first photo visible before animation starts */
@keyframes heroSlide{
  0%  { opacity:0; transform:scale(1.08); }
  4%  { opacity:1; }
  20% { opacity:1; }
  24% { opacity:0; transform:scale(1); }
  100%{ opacity:0; }
}
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(8,21,40,.75) 0%, rgba(8,21,40,0) 26%),
    linear-gradient(0deg, rgba(8,21,40,.96) 0%, rgba(8,21,40,.55) 42%, rgba(8,21,40,.15) 75%),
    linear-gradient(90deg, rgba(8,21,40,.55) 0%, rgba(8,21,40,0) 60%);
}
.hero-inner{ position:relative; z-index:2; width:100%; }
.hero-kicker{ display:flex; align-items:center; gap:12px; font-size:15px; color:rgba(255,255,255,.8); margin-bottom:18px; }
.hero-kicker::before{ content:""; width:36px; height:2px; background:var(--gold); }
.hero h1{
  font-size:clamp(48px, 9vw, 120px); font-weight:700; line-height:.92; letter-spacing:-.045em;
  max-width:11ch;
}
.hero-lead{ margin-top:22px; max-width:52ch; font-size:18px; color:rgba(255,255,255,.85); }

/* Search panel docked under the headline */
.search-card{
  margin-top:40px; background:var(--paper); color:var(--ink);
  border-radius:var(--r-lg); padding:8px; box-shadow:0 30px 60px -20px rgba(0,0,0,.55);
}
.search-tabs{ display:flex; gap:4px; padding:6px 6px 10px; }
.search-tab{ padding:8px 16px; border-radius:999px; font-size:14px; font-weight:600; color:var(--muted); transition:background-color .15s, color .15s; }
.search-tab:hover{ color:var(--navy); }
.search-tab.active{ background:var(--navy); color:#fff; }
.search-grid{ display:grid; grid-template-columns:1.3fr 1fr 1fr 1fr auto; align-items:stretch; gap:0; background:var(--mist); border-radius:16px; }
.search-grid .field{ padding:12px 18px; border-right:1px solid var(--line); }
.search-grid .field:nth-last-of-type(1){ border-right:0; }
.search-grid .field label{ font-size:12.5px; color:var(--muted); font-weight:600; margin-bottom:2px; display:block; }
.search-grid .field select,.search-grid .field input{ width:100%; height:auto; border:0; border-radius:0; background:transparent; font-size:15.5px; font-weight:600; padding:2px 0; outline:none; }
.search-grid .field:focus-within{ background:#E8ECF2; }
.search-grid .field:first-child:focus-within{ border-radius:16px 0 0 16px; }
.search-btn{ margin:6px; border-radius:12px; padding:0 28px; }
.hero-meta{ margin-top:22px; display:flex; flex-wrap:wrap; gap:8px 28px; color:rgba(255,255,255,.75); font-size:14.5px; }
.hero-meta strong{ color:#fff; font-weight:700; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-slide{ animation:none; transform:none; }
  .hero-slide:not(:first-child){ display:none; }
}

/* ---------- Page hero (buy / rent) ---------- */
.page-hero{ background:var(--navy-deep); color:#fff; padding:64px 0 56px; position:relative; overflow:hidden; }
.page-hero::before{
  content:""; position:absolute; inset:0; background-size:cover; background-position:center;
  background-image:var(--page-hero-img); opacity:.28;
}
.page-hero::after{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, var(--navy-deep) 25%, rgba(8,21,40,.4)); }
.page-hero .wrap{ position:relative; z-index:1; }
.page-hero h1{ font-size:clamp(40px, 6vw, 72px); letter-spacing:-.04em; max-width:14ch; }
.page-hero p{ margin-top:16px; max-width:56ch; color:rgba(255,255,255,.8); font-size:17px; }
.crumbs{ font-size:14px; color:rgba(255,255,255,.6); margin-bottom:18px; }
.crumbs a{ color:rgba(255,255,255,.85); }
.crumbs a:hover{ color:var(--gold); }

/* ---------- Section shell ---------- */
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--white{ background:var(--paper); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:36px; }
.section-head h2{ font-size:clamp(32px, 4vw, 48px); max-width:16ch; }
.section-head p{ color:var(--muted); max-width:44ch; }
.link-arrow{ font-weight:600; color:var(--navy); border-bottom:2px solid var(--gold); padding-bottom:2px; }
.link-arrow:hover{ color:var(--gold-deep); }

/* ---------- Browse by area ---------- */
.areas{ display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; }
.area{
  position:relative; aspect-ratio:4/5; border-radius:var(--r-md); overflow:hidden; color:#fff;
  background:var(--navy); isolation:isolate;
}
.area img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; transition:transform .5s ease; }
.area::after{ content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(0deg, rgba(8,21,40,.9) 0%, rgba(8,21,40,0) 60%); }
.area:hover img{ transform:scale(1.05); }
.area-text{ position:absolute; left:20px; right:20px; bottom:18px; }
.area-text h3{ font-size:26px; }
.area-text span{ font-size:14px; color:rgba(255,255,255,.8); }

/* ---------- Listing cards ---------- */
.grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.card{
  display:flex; flex-direction:column; background:var(--paper); border-radius:var(--r-md);
  overflow:hidden; border:1px solid var(--line); transition:box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover{ box-shadow:var(--shadow-lift); transform:translateY(-3px); border-color:transparent; }
.card-media{ position:relative; aspect-ratio:4/3; background:var(--navy); overflow:hidden; }
.card-media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.card:hover .card-media img{ transform:scale(1.04); }
.card-placeholder{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, var(--navy), var(--navy-soft)); }
.card-placeholder svg{ width:52px; height:52px; opacity:.7; }
.pill{
  position:absolute; top:14px; display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; padding:5px 11px; border-radius:999px;
}
.pill--type{ left:14px; background:var(--paper); color:var(--navy); }
.pill--count{ right:14px; background:rgba(8,21,40,.6); color:#fff; backdrop-filter:blur(6px); }
.pill--count svg{ width:14px; height:14px; fill:none; stroke:#fff; stroke-width:1.8; }
.card-body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.card-price{ font-family:var(--font-display); font-size:24px; font-weight:700; color:var(--navy); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.card-price small{ font-family:var(--font-body); font-size:14px; font-weight:500; color:var(--muted); margin-left:2px; letter-spacing:0; }
.card-title{ font-family:var(--font-body); font-size:16.5px; font-weight:600; letter-spacing:0; margin-top:4px; line-height:1.35; }
.card-loc{ display:flex; align-items:center; gap:6px; color:var(--muted); font-size:14.5px; margin-top:4px; }
.card-loc svg{ width:15px; height:15px; fill:none; stroke:var(--gold-deep); stroke-width:2; flex-shrink:0; }
.card-specs{ list-style:none; display:flex; gap:18px; margin-top:auto; padding-top:16px; border-top:1px solid var(--line); font-size:14px; color:var(--ink); }
.card-body .card-loc + .card-specs{ margin-top:16px; }
.card-specs li{ display:flex; align-items:center; gap:6px; }
.card-specs svg{ width:17px; height:17px; fill:none; stroke:var(--muted); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

/* Featured: first card spans two rows */
.grid--featured{ grid-template-columns:1.5fr 1fr; grid-auto-rows:auto; }
.grid--featured .card--featured:first-child{ grid-row:span 2; }
.grid--featured .card--featured:first-child .card-media{ aspect-ratio:auto; flex:1; min-height:340px; }
.grid--featured .card--featured:first-child .card-price{ font-size:30px; }
.grid--featured .card--featured:not(:first-child){ flex-direction:row; }
.grid--featured .card--featured:not(:first-child) .card-media{ width:46%; aspect-ratio:auto; flex-shrink:0; }
.grid--featured .card--featured:not(:first-child) .card-specs{ gap:12px; flex-wrap:wrap; }

/* ---------- Filters bar ---------- */
.filters{
  display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end;
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-md); padding:16px; margin-bottom:22px;
}
.filters .field{ flex:1 1 150px; }
.field label{ display:block; font-size:13px; font-weight:600; color:var(--muted); margin-bottom:6px; }
.field select,.field input,.field textarea{
  width:100%; padding:12px 14px; border-radius:var(--r-sm); border:1.5px solid var(--line);
  background:var(--paper); font-size:15px; transition:border-color .15s;
}
.field select,.field input{ height:48px; }
.filters .field:has(#f-subtype){ flex-basis:200px; }
.field select:focus,.field input:focus,.field textarea:focus{ outline:none; border-color:var(--navy); }
.reset-btn{ padding:12px 16px; font-size:14px; font-weight:600; color:var(--muted); border-radius:var(--r-sm); }
.reset-btn:hover{ color:var(--navy); background:var(--mist); }
.results-count{ font-size:15px; color:var(--muted); margin-bottom:18px; }
.results-count strong{ color:var(--ink); }
.empty-state{
  grid-column:1/-1; text-align:center; padding:56px 20px; background:var(--paper);
  border:1.5px dashed var(--line); border-radius:var(--r-md);
}
.empty-state h3{ font-size:24px; }
.empty-state p{ color:var(--muted); margin:8px 0 20px; }

/* ---------- Budget matcher ---------- */
.matcher{ background:var(--navy); color:#fff; border-radius:var(--r-lg); padding:56px; display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; }
.matcher h2{ font-size:clamp(32px, 4vw, 44px); max-width:12ch; }
.matcher > div > p{ color:rgba(255,255,255,.75); margin:14px 0 28px; max-width:40ch; }
.matcher-form{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.matcher-form .field label{ color:rgba(255,255,255,.7); }
.matcher-form select,.matcher-form input{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.18); color:#fff; }
.matcher-form select:focus,.matcher-form input:focus{ border-color:var(--gold); }
.matcher-form option{ color:var(--ink); }
.matcher-form input::placeholder{ color:rgba(255,255,255,.45); }
.matcher-form .btn{ grid-column:1/-1; margin-top:6px; }
.match-panel{ background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius:var(--r-md); padding:8px; min-height:320px; display:flex; flex-direction:column; }
.match-empty{ margin:auto; text-align:center; color:rgba(255,255,255,.6); padding:24px; max-width:32ch; }
.match-empty strong{ display:block; color:#fff; font-family:var(--font-display); font-size:20px; margin-bottom:6px; }
.match-summary{ padding:12px 14px 6px; font-size:14px; color:rgba(255,255,255,.7); }
.match-row{ display:grid; grid-template-columns:76px 1fr auto; gap:14px; align-items:center; padding:10px; border-radius:12px; transition:background-color .15s; }
.match-row:hover{ background:rgba(255,255,255,.07); }
.match-row img,.match-row .ph{ width:76px; height:60px; border-radius:8px; object-fit:cover; background:var(--navy-soft); }
.match-row h4{ font-family:var(--font-body); font-size:15px; font-weight:600; letter-spacing:0; }
.match-row .sub{ font-size:13.5px; color:rgba(255,255,255,.65); }
.match-row .price{ text-align:right; font-weight:700; font-size:15px; font-variant-numeric:tabular-nums; }
.fit{ display:inline-block; font-size:12px; font-weight:600; padding:2px 8px; border-radius:999px; margin-top:4px; }
.fit--in{ background:rgba(76,200,130,.18); color:#8BE3B0; }
.fit--over{ background:rgba(217,164,65,.2); color:#F2C877; }

/* ---------- Booking ---------- */
.book{ display:grid; grid-template-columns:.85fr 1.15fr; gap:56px; align-items:start; }
.book-info h2{ font-size:clamp(32px, 4vw, 48px); max-width:12ch; }
.book-info > p{ color:var(--muted); margin:14px 0 32px; max-width:42ch; }
.steps{ list-style:none; counter-reset:step; display:flex; flex-direction:column; gap:22px; }
.steps li{ counter-increment:step; display:grid; grid-template-columns:44px 1fr; gap:14px; }
.steps li::before{
  content:counter(step); width:44px; height:44px; border-radius:50%;
  border:1.5px solid var(--gold); color:var(--navy); font-family:var(--font-display); font-weight:700; font-size:18px;
  display:flex; align-items:center; justify-content:center;
}
.steps strong{ display:block; font-size:16px; }
.steps p{ font-size:15px; color:var(--muted); }
.contact-direct{ display:flex; flex-wrap:wrap; gap:10px; margin-top:32px; }
.book-form{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); padding:32px;
  display:grid; grid-template-columns:1fr 1fr; gap:16px;
}
.book-form h3{ grid-column:1/-1; font-size:22px; }
.book-form .full{ grid-column:1/-1; }
.book-form .btn{ grid-column:1/-1; margin-top:4px; padding:15px; }
.book-form .btn[disabled]{ opacity:.6; cursor:wait; }
.form-note{ grid-column:1/-1; font-size:13.5px; color:var(--muted); text-align:center; }
.confirm-box{ grid-column:1/-1; display:none; padding:14px 16px; border-radius:var(--r-sm); font-size:15px; font-weight:500; }
.confirm-box.ok{ background:#E6F4EC; color:var(--ok); }
.confirm-box.err{ background:#FBEDE4; color:#9A4A14; }

/* ---------- Property page ---------- */
.prop-top{ padding-top:28px; }
.breadcrumb{ font-size:14px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a{ color:var(--navy); font-weight:600; }
.breadcrumb a:hover{ color:var(--gold-deep); }
.prop-title-row{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; margin-bottom:22px; }
.prop-title-row h1{ font-size:clamp(34px, 5vw, 56px); letter-spacing:-.035em; }
.prop-sub{ display:flex; align-items:center; gap:8px; color:var(--muted); margin-top:8px; font-size:16px; }
.prop-sub svg{ width:17px; height:17px; fill:none; stroke:var(--gold-deep); stroke-width:2; }
.prop-sub .tag{ background:var(--navy); color:#fff; font-size:12.5px; font-weight:600; padding:3px 10px; border-radius:999px; margin-left:6px; }
.prop-price{ font-family:var(--font-display); font-size:clamp(28px, 3.5vw, 40px); font-weight:700; color:var(--navy); letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.prop-price small{ font-family:var(--font-body); font-size:15px; color:var(--muted); font-weight:500; }

.gallery-main{
  position:relative; aspect-ratio:16/9; max-height:620px; width:100%;
  border-radius:var(--r-lg); overflow:hidden; background:var(--navy);
}
.gallery-main img{ width:100%; height:100%; object-fit:cover; }
.gallery-main .card-placeholder svg{ width:80px; height:80px; }
.g-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:48px; height:48px; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--navy); display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(0,0,0,.25); transition:background-color .15s;
}
.g-nav:hover{ background:#fff; }
.g-nav svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:2.2; }
.g-prev{ left:18px; } .g-next{ right:18px; }
.g-index{ position:absolute; bottom:18px; right:18px; background:rgba(8,21,40,.7); color:#fff; font-size:13.5px; font-weight:600; padding:6px 12px; border-radius:999px; font-variant-numeric:tabular-nums; }
.gallery-thumbs{ display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }
.gthumb{ flex:0 0 112px; height:76px; border-radius:10px; overflow:hidden; border:2.5px solid transparent; opacity:.65; transition:opacity .15s, border-color .15s; padding:0; }
.gthumb img{ width:100%; height:100%; object-fit:cover; }
.gthumb:hover{ opacity:1; }
.gthumb.active{ border-color:var(--gold); opacity:1; }

.detail-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:48px; padding-block:44px 72px; align-items:start; }
.specs-row{ display:grid; grid-template-columns:repeat(3, 1fr); background:var(--paper); border:1px solid var(--line); border-radius:var(--r-md); }
.spec{ padding:18px 22px; display:flex; gap:14px; align-items:center; }
.spec + .spec{ border-left:1px solid var(--line); }
.spec svg{ width:28px; height:28px; fill:none; stroke:var(--gold-deep); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
.spec .val{ font-family:var(--font-display); font-size:20px; font-weight:700; line-height:1.2; }
.spec .lbl{ font-size:13.5px; color:var(--muted); }
.detail-section{ margin-top:40px; }
.detail-section h2{ font-size:26px; margin-bottom:12px; }
.detail-section p{ color:#3A4657; font-size:16.5px; line-height:1.75; max-width:68ch; }
.amenity-list{ list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:2px 28px; }
.amenity-list li{ display:flex; align-items:center; gap:10px; padding:11px 0; border-bottom:1px solid var(--line); font-size:15.5px; }
.amenity-list li::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--gold); flex-shrink:0; }

.summary-card{ position:sticky; top:100px; background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px; }
.summary-card h3{ font-size:20px; margin-bottom:4px; }
.summary-card > p{ color:var(--muted); font-size:15px; margin-bottom:20px; }
.agent{ display:flex; gap:14px; align-items:center; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin-bottom:20px; }
.agent-avatar{ width:52px; height:52px; border-radius:50%; background:var(--navy); color:var(--gold); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:20px; flex-shrink:0; }
.agent-name{ font-weight:700; }
.agent-role{ font-size:14px; color:var(--muted); }
.summary-actions{ display:flex; flex-direction:column; gap:10px; }
.agent-contact{ margin-top:18px; font-size:14px; color:var(--muted); display:flex; flex-direction:column; gap:4px; }
.agent-contact a:hover{ color:var(--navy); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.72); padding:72px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:48px; }
.footer-brand img{ height:76px; width:auto; margin-bottom:16px; }
.footer-brand p{ max-width:36ch; font-size:15px; }
.site-footer h4{ color:#fff; font-family:var(--font-body); font-size:15px; font-weight:700; letter-spacing:0; margin-bottom:14px; }
.site-footer ul{ list-style:none; display:flex; flex-direction:column; gap:8px; font-size:15px; }
.site-footer a:hover{ color:var(--gold); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-icon{ width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; transition:background-color .15s, border-color .15s; }
.social-icon svg{ width:17px; height:17px; stroke:#fff; fill:none; }
.social-icon:hover{ background:var(--gold); border-color:var(--gold); }
.social-icon:hover svg{ stroke:var(--navy-deep); }
.footer-bottom{
  margin-top:56px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1);
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; font-size:14px;
}

/* Powered by BrandtechKE credit — same treatment as berkeleyresidency.ke */
.footer-bottom{ justify-content:center; text-align:center; }
.powered{
  display:flex; flex-direction:column; align-items:center; gap:10px;
  width:max-content; margin:24px auto 0; padding-top:24px;
  border-top:1px solid rgba(255,255,255,.12);
  color:rgba(255,255,255,.65); text-decoration:none;
  font-size:.78rem; letter-spacing:.16em; text-transform:uppercase;
  opacity:.85; transition:opacity .2s;
}
.powered:hover{ opacity:1; }
.powered img{ width:140px; height:auto; }

/* ---------- Floating WhatsApp ---------- */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:70; width:58px; height:58px; border-radius:50%;
  background:#1FAF55; display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px -6px rgba(0,0,0,.4); transition:transform .15s;
}
.wa-float:hover{ transform:scale(1.06); }
.wa-float svg{ width:30px; height:30px; fill:#fff; }

/* ---------- Responsive ---------- */
@media (max-width:1020px){
  .nav-links,.nav-phone{ display:none; }
  .menu-toggle{ display:inline-flex; }
  .search-grid{ grid-template-columns:1fr 1fr; }
  .search-grid .field{ border-right:0; border-bottom:1px solid var(--line); }
  .search-grid .field:nth-child(odd){ border-right:1px solid var(--line); }
  .search-btn{ grid-column:1/-1; padding:14px; }
  .grid{ grid-template-columns:1fr 1fr; }
  .grid--featured{ grid-template-columns:1fr 1fr; }
  .grid--featured .card--featured:first-child{ grid-column:1/-1; grid-row:auto; }
  .grid--featured .card--featured:first-child .card-media{ min-height:0; aspect-ratio:16/9; }
  .grid--featured .card--featured:not(:first-child){ flex-direction:column; }
  .grid--featured .card--featured:not(:first-child) .card-media{ width:100%; aspect-ratio:4/3; }
  .areas{ grid-template-columns:repeat(2, 1fr); }
  .matcher{ grid-template-columns:1fr; padding:36px; gap:36px; }
  .book{ grid-template-columns:1fr; gap:36px; }
  .detail-grid{ grid-template-columns:1fr; gap:36px; }
  .summary-card{ position:static; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1/-1; }
}
@media (max-width:640px){
  .wrap{ padding-inline:16px; }
  .nav{ height:68px; }
  .logo img{ height:44px; }
  .nav-actions .btn{ display:none; }
  .mobile-menu{ top:68px; }
  .hero{ padding:110px 0 28px; min-height:auto; }
  .hero-lead{ font-size:16.5px; }
  .search-grid{ grid-template-columns:1fr; }
  .search-grid .field:nth-child(odd){ border-right:0; }
  .section{ padding:64px 0; }
  .grid,.grid--featured{ grid-template-columns:1fr; }
  .areas{ gap:10px; }
  .area{ aspect-ratio:1; }
  .area-text h3{ font-size:20px; }
  .matcher{ padding:24px; border-radius:var(--r-md); }
  .matcher-form{ grid-template-columns:1fr; }
  .match-row{ grid-template-columns:60px 1fr; }
  .match-row img,.match-row .ph{ width:60px; height:48px; }
  .match-row .price{ grid-column:2; text-align:left; }
  .book-form{ grid-template-columns:1fr; padding:22px; }
  .specs-row{ grid-template-columns:1fr; }
  .spec + .spec{ border-left:0; border-top:1px solid var(--line); }
  .amenity-list{ grid-template-columns:1fr; }
  .g-nav{ width:40px; height:40px; }
  .gallery-main{ border-radius:var(--r-md); aspect-ratio:4/3; }
  .gthumb{ flex-basis:84px; height:60px; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .footer-bottom{ flex-direction:column; align-items:center; }
  .wa-float{ right:16px; bottom:16px; width:52px; height:52px; }
}

/* ---------- Lead forms ---------- */
.hp{ position:absolute !important; left:-9999px; width:1px; height:1px; overflow:hidden; }
.book-form, .enquiry-form{ position:relative; }
.form-note a{ color:var(--navy); font-weight:600; text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }
.enquiry-form{ display:flex; flex-direction:column; gap:12px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.enquiry-form h4{ font-family:var(--font-body); font-size:15px; letter-spacing:0; }
.enquiry-form .field input, .enquiry-form .field textarea{ padding:10px 12px; }
.enquiry-form .field input{ height:44px; }
.enquiry-form .confirm-box{ font-size:14px; }
.or-divider{ text-align:center; font-size:13px; color:var(--muted); }

/* ============================================================
   Motion
   Only opacity and transform are animated (GPU-friendly, no
   layout work), with one easing curve so everything feels like
   one system. All of it is switched off for reduced motion.
   ============================================================ */
:root{
  --ease-out: cubic-bezier(.22, 1, .36, 1);   /* soft deceleration */
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --dur-in: .9s;
}

/* --- Hero intro: headline words rise out of a mask, then the rest follows --- */
.js .hero h1 .word{ display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.08em; margin-bottom:-.08em; }
.js .hero h1 .word > span{ display:inline-block; transform:translateY(105%); transition:transform 1.1s var(--ease-out); transition-delay:calc(.15s + var(--w, 0) * .09s); }
.js .hero-kicker,
.js .hero-lead,
.js .search-card,
.js .hero-meta{ opacity:0; transform:translateY(22px); transition:opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out); }
.js .hero-kicker::before{ transform:scaleX(0); transform-origin:left; transition:transform 1s var(--ease-out) .2s; }
.js .hero-kicker{ transition-delay:.05s; }
.js .hero-lead{ transition-delay:.45s; }
.js .search-card{ transition-delay:.6s; }
.js .hero-meta{ transition-delay:.75s; }
.js .hero.is-in h1 .word > span{ transform:none; }
.js .hero.is-in .hero-kicker,
.js .hero.is-in .hero-lead,
.js .hero.is-in .search-card,
.js .hero.is-in .hero-meta{ opacity:1; transform:none; }
.js .hero.is-in .hero-kicker::before{ transform:scaleX(1); }

/* Page heroes (buy/rent) and property title */
.js .page-hero .wrap > *,
.js .prop-title-row > *{ opacity:0; transform:translateY(18px); transition:opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out); }
.js .page-hero .wrap > :nth-child(2),
.js .prop-title-row > :nth-child(2){ transition-delay:.1s; }
.js .page-hero .wrap > :nth-child(3){ transition-delay:.2s; }
.js .page-hero.is-in .wrap > *,
.js .prop-title-row.is-in > *{ opacity:1; transform:none; }
.page-hero::before{ transition:transform 2.4s var(--ease-out), opacity 1.2s ease; }
.js .page-hero:not(.is-in)::before{ transform:scale(1.08); opacity:0; }

/* --- Scroll reveal: anything marked [data-reveal] (set by motion.js) --- */
.js [data-reveal]{
  opacity:0; transform:translate3d(0, 28px, 0);
  transition:opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay:calc(var(--i, 0) * 70ms);
}
.js [data-reveal="fade"]{ transform:none; }
.js [data-reveal="scale"]{ transform:scale(.97); }
.js [data-reveal].is-in{ opacity:1; transform:none; }
/* once revealed, hand hover transitions back to the card */
.js .card[data-reveal].is-done{ transition:box-shadow .3s var(--ease-out), transform .35s var(--ease-out), border-color .2s; transition-delay:0s; }

/* --- Hover polish --- */
.card{ transition:box-shadow .35s var(--ease-out), transform .35s var(--ease-out), border-color .2s; }
.card-media img, .area img{ transition:transform 1.1s var(--ease-out); }
.card:hover .card-media img{ transform:scale(1.06); }
.area:hover img{ transform:scale(1.07); }
.area-text{ transition:transform .5s var(--ease-out); }
.area:hover .area-text{ transform:translateY(-4px); }
.btn{ transition:background-color .2s, color .2s, border-color .2s, transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0) scale(.98); transition-duration:.08s; }
.link-arrow{ background:linear-gradient(var(--gold), var(--gold)) left bottom / 100% 2px no-repeat; border-bottom:0; transition:background-size .4s var(--ease-out), color .2s; }
.link-arrow:hover{ background-size:0 2px; background-position:right bottom; }

/* --- Header: slides in, then fades its background on scroll --- */
.site-header{ transition:background-color .4s var(--ease-out), box-shadow .4s var(--ease-out), transform .45s var(--ease-out); }
.js .site-header.is-hidden{ transform:translateY(-100%); }

/* --- Mobile menu --- */
.mobile-menu{ transition:opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.mobile-menu.is-opening{ opacity:0; transform:translateY(-12px); }
.mobile-menu a{ transition:opacity .4s var(--ease-out), transform .5s var(--ease-out); }
.mobile-menu.is-opening a{ opacity:0; transform:translateY(10px); }
.mobile-menu a:nth-child(2){ transition-delay:.04s; } .mobile-menu a:nth-child(3){ transition-delay:.08s; }
.mobile-menu a:nth-child(4){ transition-delay:.12s; } .mobile-menu a:nth-child(5){ transition-delay:.16s; }
.mobile-menu a:nth-child(6){ transition-delay:.2s; }  .mobile-menu a:nth-child(7){ transition-delay:.24s; }

/* --- Search tabs: sliding pill --- */
.search-tabs{ position:relative; }
.search-tab{ position:relative; z-index:1; transition:color .3s var(--ease-out); }
.search-tab.active{ background:transparent; }
.tab-pill{ position:absolute; z-index:0; top:6px; left:0; height:calc(100% - 16px); border-radius:999px; background:var(--navy); transition:transform .45s var(--ease-out), width .45s var(--ease-out); }
.no-pill .search-tab.active{ background:var(--navy); }

/* --- Gallery crossfade --- */
.gallery-main img{ transition:opacity .45s var(--ease-io), transform 1.2s var(--ease-out); }
.gallery-main img.is-swapping{ opacity:0; transform:scale(1.015); }
.gthumb{ transition:opacity .25s, border-color .25s, transform .3s var(--ease-out); }
.gthumb:hover{ transform:translateY(-2px); }

/* --- Form feedback --- */
.confirm-box{ animation:none; }
.confirm-box[style*="block"]{ animation:popIn .5s var(--ease-out); }
@keyframes popIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:none; } }

/* --- Floating WhatsApp: gentle entrance + soft pulse --- */
.wa-float{ animation:waIn .7s var(--ease-out) 1.2s backwards; }
.wa-float::after{ content:""; position:absolute; inset:0; border-radius:50%; background:#1FAF55; z-index:-1; animation:waPulse 2.8s var(--ease-out) 2.5s infinite; }
@keyframes waIn{ from{ opacity:0; transform:translateY(20px) scale(.8); } to{ opacity:1; transform:none; } }
@keyframes waPulse{ 0%{ transform:scale(1); opacity:.45; } 70%,100%{ transform:scale(1.7); opacity:0; } }

/* Hero slideshow: longer, softer crossfade */
.hero-slide{ animation-timing-function:linear; backface-visibility:hidden; }

@media (prefers-reduced-motion: reduce){
  .js .hero h1 .word > span,
  .js .hero-kicker, .js .hero-lead, .js .search-card, .js .hero-meta,
  .js .page-hero .wrap > *, .js .prop-title-row > *,
  .js [data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
  .js .hero-kicker::before{ transform:none; transition:none; }
  .js .page-hero:not(.is-in)::before{ transform:none; opacity:.28; }
  .wa-float, .wa-float::after{ animation:none; }
  .card, .card-media img, .area img, .area-text, .btn, .gallery-main img, .mobile-menu, .mobile-menu a, .tab-pill{ transition:none !important; }
  .card:hover, .btn:hover, .area:hover .area-text{ transform:none; }
  .card:hover .card-media img, .area:hover img{ transform:none; }
}
.js .card[data-reveal].is-done:hover{ transform:translateY(-3px); }
@media (prefers-reduced-motion: reduce){ .js .card[data-reveal].is-done:hover{ transform:none; } }
.js .powered[data-reveal].is-in{ opacity:.85; }
.js .powered[data-reveal].is-in:hover{ opacity:1; }
@media (max-width:640px){ .site-footer{ padding-bottom:88px; } }

/* ============================================================
   Visit calendar (Book a site visit)
   ============================================================ */
.booking{ border:0; min-width:0; }
.booking legend{ font-size:13px; font-weight:600; color:var(--muted); margin-bottom:8px; padding:0; }
.booking-grid{ display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); border:1.5px solid var(--line); border-radius:var(--r-md); overflow:hidden; transition:border-color .3s; }
.booking.has-error .booking-grid{ border-color:#D9822B; animation:nudge .45s var(--ease-out); }
@keyframes nudge{ 20%{ transform:translateX(-5px); } 45%{ transform:translateX(4px); } 70%{ transform:translateX(-2px); } }

.cal{ padding:14px 14px 16px; }
.cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-title{ font-family:var(--font-display); font-size:17px; letter-spacing:-.01em; }
.cal-nav{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--navy); transition:background-color .2s, opacity .2s; }
.cal-nav:hover:not(:disabled){ background:var(--mist); }
.cal-nav:disabled{ opacity:.25; cursor:default; }
.cal-nav svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.cal-dow, .cal-days{ display:grid; grid-template-columns:repeat(7, 1fr); gap:4px; }
.cal-dow span{ text-align:center; font-size:12px; font-weight:600; color:var(--muted); padding:4px 0; }
.cal-day{
  aspect-ratio:1; border-radius:10px; font-size:14.5px; font-weight:600; color:var(--ink);
  display:flex; align-items:center; justify-content:center; position:relative;
  font-variant-numeric:tabular-nums;
  transition:background-color .2s var(--ease-out), color .2s, transform .25s var(--ease-out);
}
.cal-day:not(:disabled):not(.is-selected):hover{ background:#E8ECF2; }
.cal-day:not(:disabled):active{ transform:scale(.92); }
.cal-day:disabled{ color:#B8C0CB; font-weight:500; cursor:default; }
.cal-day.is-today::after{ content:""; position:absolute; bottom:5px; width:4px; height:4px; border-radius:50%; background:var(--gold); }
.cal-day.is-selected{ background:var(--navy); color:#fff; animation:dayPop .35s var(--ease-out); }
.cal-day.is-selected.is-today::after{ background:var(--gold); }
@keyframes dayPop{ from{ transform:scale(.85); } to{ transform:scale(1); } }
.cal-days.slide-left{ animation:calLeft .45s var(--ease-out); }
.cal-days.slide-right{ animation:calRight .45s var(--ease-out); }
@keyframes calLeft{ from{ opacity:0; transform:translateX(24px); } to{ opacity:1; transform:none; } }
@keyframes calRight{ from{ opacity:0; transform:translateX(-24px); } to{ opacity:1; transform:none; } }

.slots{ background:var(--mist); padding:16px; border-left:1.5px solid var(--line); display:flex; flex-direction:column; min-width:0; }
.slots-title{ font-weight:700; font-size:15px; margin-bottom:12px; min-height:22px; }
.slot-list{ display:grid; grid-template-columns:1fr 1fr; gap:8px; align-content:start; }
.slot{
  padding:10px 8px; border-radius:10px; background:var(--paper); border:1.5px solid var(--line);
  font-size:14px; font-weight:600; color:var(--navy); font-variant-numeric:tabular-nums;
  transition:border-color .2s, background-color .2s, color .2s, transform .25s var(--ease-out);
}
.slot:hover{ border-color:var(--navy); }
.slot:active{ transform:scale(.95); }
.slot.is-selected{ background:var(--gold); border-color:var(--gold); color:var(--navy-deep); }
.slot-list.is-in .slot{ animation:slotIn .5s var(--ease-out) backwards; animation-delay:calc(var(--i) * 35ms); }
@keyframes slotIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.slots-title:only-child, .slot-list:empty{ color:var(--muted); }

.booking-summary{ margin-top:10px; font-size:14.5px; font-weight:600; color:var(--muted); min-height:22px; }
.booking-summary.is-set{ color:var(--ok); }
.booking-summary.is-set::before{ content:"✓  "; }
.booking.has-error .booking-summary{ color:#B4651C; }

@media (max-width:640px){
  .booking-grid{ grid-template-columns:1fr; }
  .slots{ border-left:0; border-top:1.5px solid var(--line); }
  .slot-list{ grid-template-columns:repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce){
  .cal-days.slide-left, .cal-days.slide-right, .cal-day.is-selected, .slot-list.is-in .slot, .booking.has-error .booking-grid{ animation:none; }
}
