/* =====================================================================
   NESTLY — Apartment Rentals & Leasing Template
   Plain HTML5 + CSS3. No frameworks. Offline-ready (no external images;
   every visual is a CSS gradient, inline SVG, or emoji).
   ---------------------------------------------------------------------
   REBRAND TIP: Change the whole look by editing the CSS variables in
   :root below. Swap --accent for your primary color, tune --accent2 to
   match, and update --font-head / --font-body plus the Google Fonts
   <link> in each HTML file. Everything else cascades.
   ===================================================================== */

:root {
  /* --- Brand palette (edit these to rebrand) --- */
  --bg:       #ffffff;   /* page background                 */
  --ink:      #0f172a;   /* near-black slate (headings)     */
  --accent:   #0ea5a4;   /* teal (primary)                  */
  --accent2:  #2563eb;   /* blue (secondary highlight)      */
  --muted:    #64748b;   /* muted text                      */
  --surface:  #f5f8fc;   /* soft alt background             */
  --line:     #e6edf3;   /* borders / dividers              */

  /* --- Derived shades (hovers / dark sections) --- */
  --accent-dark:  #0c8584;   /* darker teal for hovers          */
  --accent-deep:  #0a6e6d;   /* deepest teal for dark sections  */
  --ink-2:        #334155;   /* body text                       */

  /* --- Fonts --- */
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* --- Shape & motion --- */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .13);
  --ease:      .35s cubic-bezier(.4, 0, .2, 1);

  /* --- Layout --- */
  --maxw: 1180px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.16;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }

img, svg { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 92px 0; }
.section--soft { background: var(--surface); }
.section--tight { padding: 64px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(14, 165, 164, .1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.section-sub { font-size: 1.08rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14, 165, 164, .32);
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 12px 30px rgba(14, 165, 164, .42); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: #fff;
  color: var(--accent-deep);
}
.btn-light:hover { background: rgba(255,255,255,.9); color: var(--accent-deep); }

.btn-outline-light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.btn-outline-light:hover { background: #fff; color: var(--accent-deep); }

.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------------------------------------------------------------------
   HEADER / NAV  (shared, identical IDs on every page)
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(14, 165, 164, .35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .96rem;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background var(--ease), color var(--ease);
}
.nav-links a:hover { background: var(--surface); color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

.nav-cta { margin-left: 8px; }
.nav-cta a.active { background: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   HERO (home)
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(37,99,235,.14), transparent 60%),
    radial-gradient(720px 520px at 0% 110%, rgba(14,165,164,.14), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  padding: 84px 0 92px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero .lead { max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* Hero search bar */
.search-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.search-field label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 2px;
}
.search-field input, .search-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search-field input:focus, .search-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,164,.12);
}
.search-submit { justify-content: center; height: 46px; }
.search-result {
  margin: 14px 0 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--accent-deep);
  min-height: 1.2em;
}

/* Hero visual — pure CSS apartment building mock */
.hero-visual {
  position: relative;
  background: linear-gradient(160deg, var(--accent-deep), var(--accent2));
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: #fff;
  overflow: hidden;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 320px at 85% 10%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.hv-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; z-index: 1; }
.hv-dot { display: flex; gap: 6px; }
.hv-dot i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.4); }
.hv-tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.hv-building {
  position: relative; z-index: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.hv-building h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.hv-windows { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.hv-windows i {
  aspect-ratio: 1;
  border-radius: 5px;
  background: linear-gradient(160deg, rgba(255,255,255,.85), rgba(255,255,255,.45));
}
.hv-windows i:nth-child(3n) { background: linear-gradient(160deg, rgba(255,255,255,.4), rgba(255,255,255,.18)); }
.hv-windows i:nth-child(4n) { background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(255,255,255,.28)); }
.hv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.hv-stat { background: rgba(255,255,255,.1); border-radius: 12px; padding: 14px; }
.hv-stat strong { font-family: var(--font-head); font-size: 1.4rem; display: block; }
.hv-stat span { font-size: .76rem; color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------------
   STATS STRIP (home)
   --------------------------------------------------------------------- */
.stats-strip { border-bottom: 1px solid var(--line); background: #fff; }
.stats-strip .stats-grid { padding: 44px 0; }

/* ---------------------------------------------------------------------
   CARDS / GRIDS
   --------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,164,.28); }

.card .icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface);
  display: grid; place-items: center;
  font-size: 1.7rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin-bottom: 0; }

/* ---------------------------------------------------------------------
   LISTING (RENTAL) CARDS
   --------------------------------------------------------------------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.listing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  color: inherit;
  display: block;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,164,.28); }

/* Gradient "photo" — no external images */
.listing-media {
  position: relative;
  height: 192px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  overflow: hidden;
}
.listing-media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 78% 24%, rgba(255,255,255,.32), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 14px, transparent 14px 28px);
}
.listing-media .media-emoji {
  position: absolute;
  bottom: 12px; left: 14px;
  font-size: 1.7rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.25));
}
/* Gradient variants for visual variety */
.grad-1 .listing-media, .grad-1.listing-media { background: linear-gradient(135deg, #0ea5a4, #2563eb); }
.grad-2 .listing-media, .grad-2.listing-media { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.grad-3 .listing-media, .grad-3.listing-media { background: linear-gradient(135deg, #0ea5a4, #22c55e); }
.grad-4 .listing-media, .grad-4.listing-media { background: linear-gradient(135deg, #f59e0b, #0ea5a4); }
.grad-5 .listing-media, .grad-5.listing-media { background: linear-gradient(135deg, #ec4899, #2563eb); }
.grad-6 .listing-media, .grad-6.listing-media { background: linear-gradient(135deg, #0891b2, #0f172a); }

.tag {
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .74rem;
  letter-spacing: .03em;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.tag-rent { background: #fff; color: var(--accent-deep); }
.tag-new  { left: auto; right: 14px; background: var(--accent2); color: #fff; }

.listing-body { padding: 22px 22px 24px; }
.listing-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.listing-price .per { font-size: .92rem; font-weight: 600; color: var(--muted); }
.listing-title { font-size: 1.12rem; margin-bottom: 6px; }
.listing-address { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--ink-2);
}
.listing-specs li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------------
   FILTER BAR (listings page)
   --------------------------------------------------------------------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}
.listings-count { margin: 0; color: var(--muted); }
.listings-count strong { color: var(--ink); font-family: var(--font-head); }
.sort-field { display: flex; align-items: center; gap: 10px; }
.sort-field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--muted); }
.sort-field select {
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  padding: 9px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

/* ---------------------------------------------------------------------
   MAP PLACEHOLDER
   --------------------------------------------------------------------- */
.map-placeholder {
  border-radius: var(--radius);
  min-height: 260px;
  background:
    linear-gradient(rgba(14,165,164,.05), rgba(14,165,164,.05)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 42px),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.map-placeholder .map-pin { font-size: 2.4rem; display: block; }
.map-placeholder p { font-family: var(--font-head); color: var(--ink); font-weight: 600; margin: 8px 0 4px; }
.map-placeholder .map-note { font-size: .85rem; }

/* ---------------------------------------------------------------------
   PAGINATION
   --------------------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.page-btn {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  padding: 0 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  transition: all var(--ease);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.is-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ---------------------------------------------------------------------
   HOW IT WORKS (steps)
   --------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step .num {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { margin-bottom: 0; font-size: .95rem; color: var(--muted); }

/* ---------------------------------------------------------------------
   FEATURE LIST (why-us / amenities)
   --------------------------------------------------------------------- */
.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature .tick {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(14,165,164,.3);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 4px; }
.feature p { margin-bottom: 0; font-size: .98rem; color: var(--muted); }

/* Split section (visual block + content) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse .split-media { order: 2; }
.split-media {
  border-radius: 22px;
  min-height: 400px;
  background: linear-gradient(150deg, var(--accent-deep), var(--accent2));
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  padding: 32px;
}
.split-media::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 320px at 80% 20%, rgba(255,255,255,.2), transparent 60%);
}

/* Amenity chips list */
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-top: 6px; }
.amenity {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink);
}
.amenity .a-ic {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 11px; background: rgba(255,255,255,.16);
  display: grid; place-items: center; font-size: 1.1rem;
}

/* ---------------------------------------------------------------------
   STATS BAND / STATS GRID
   --------------------------------------------------------------------- */
.stats-band {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent2));
  color: #fff;
}
.stats-band .section-head h2 { color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.stat strong, .stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  display: block;
  line-height: 1;
}
.stats-band .stat strong, .stats-band .stat-num {
  background: linear-gradient(120deg, #fff, #cffafe);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span, .stat-label { font-size: .95rem; margin-top: 8px; display: block; }
.stats-band .stat span, .stats-band .stat-label { color: rgba(255,255,255,.82); }
/* Light stats strip (home) */
.stats-strip .stat strong { color: var(--ink); }
.stats-strip .stat span { color: var(--muted); }

/* ---------------------------------------------------------------------
   TESTIMONIALS
   --------------------------------------------------------------------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  margin: 0;
}
.testimonial-card .stars { color: #f59e0b; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
  margin: 0 0 22px;
  font-size: 1.08rem;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.55;
}
.testimonial-card figcaption { display: flex; align-items: center; gap: 14px; }
.t-avatar, .avatar {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.t-meta { display: flex; flex-direction: column; }
.t-meta strong { font-family: var(--font-head); color: var(--ink); }
.t-meta small { font-size: .85rem; color: var(--muted); }

/* Avatar gradient variants */
.grad-a1 { background: linear-gradient(135deg, #0ea5a4, #2563eb); }
.grad-a2 { background: linear-gradient(135deg, #2563eb, #7c3aed); }
.grad-a3 { background: linear-gradient(135deg, #0ea5a4, #22c55e); }
.grad-a4 { background: linear-gradient(135deg, #f59e0b, #ec4899); }

/* ---------------------------------------------------------------------
   CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  background:
    radial-gradient(600px 420px at 90% 10%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(135deg, var(--accent-deep), var(--accent2));
  color: #fff;
}
.cta-inner {
  text-align: center;
  padding: 76px var(--gutter);
  max-width: 760px;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   PAGE BANNER (inner pages)
   --------------------------------------------------------------------- */
.page-banner {
  background:
    radial-gradient(700px 420px at 85% -20%, rgba(37,99,235,.14), transparent 60%),
    linear-gradient(180deg, var(--surface), #fff);
  padding: 60px 0 54px;
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin-bottom: 12px; }
.page-banner .page-banner-sub { max-width: 640px; color: var(--ink-2); margin-bottom: 18px; }
.page-banner-compact { padding: 26px 0; }
.breadcrumb {
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--muted); }

/* ---------------------------------------------------------------------
   PROPERTY DETAIL PAGE
   --------------------------------------------------------------------- */
.property-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.property-status { position: static; display: inline-block; margin-bottom: 12px; box-shadow: none; border: 1px solid var(--line); }
.property-title { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.property-address { color: var(--muted); margin: 0; }
.property-price-box { text-align: right; }
.property-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
  display: block;
  line-height: 1.1;
}
.property-price-note { font-size: .9rem; color: var(--muted); }

/* Gallery */
.gallery { margin-bottom: 44px; }
.gallery-main {
  height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  position: relative;
  box-shadow: var(--shadow-lg);
  transition: background .4s ease;
}
.gallery-main::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(280px 220px at 80% 18%, rgba(255,255,255,.28), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 18px, transparent 18px 36px);
}
.gallery-main .gallery-label {
  position: absolute; bottom: 18px; left: 20px;
  color: #fff; font-family: var(--font-head); font-weight: 600;
  font-size: 1.05rem; z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.gallery-thumb {
  height: 96px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: border-color var(--ease), transform var(--ease);
}
.gallery-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px);
}
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--accent); }

.property-layout {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 44px;
  align-items: start;
}
.property-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}
.fact-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.fact-num { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); display: block; }
.fact-label { font-size: .82rem; color: var(--muted); }

.property-block { margin-bottom: 40px; }
.property-block h2 { font-size: 1.5rem; margin-bottom: 14px; }
.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.features-list li { color: var(--ink-2); font-size: .98rem; }
.features-list li::marker { content: ""; }

/* Sticky agent contact card */
.property-sidebar { position: sticky; top: 96px; }
.agent-contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.agent-contact-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.agent-contact-head .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.agent-contact-head h3 { font-size: 1.15rem; margin-bottom: 2px; }
.agent-role { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .88rem; margin: 0; }
.agent-contact-info {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.agent-contact-info li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .94rem; color: var(--ink-2); }

/* ---------------------------------------------------------------------
   FORMS (contact + leasing + schedule a tour)
   --------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field, .form-field { margin-bottom: 18px; }
.field label, .form-field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input, .field select, .field textarea,
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus,
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14,165,164,.12);
}
.field textarea, .form-field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: #dc2626; font-size: .82rem; margin-top: 5px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #dc2626; }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #047857;
  font-weight: 500;
}
.form-status.show { display: block; }

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 22px;
}
.info-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-row:last-child { margin-bottom: 0; }
.info-row .info-ic {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 12px; background: #fff;
  display: grid; place-items: center; font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.info-row b { font-family: var(--font-head); color: var(--ink); display: block; }
.info-row span { font-size: .94rem; color: var(--muted); }
.info-row a { font-size: .94rem; }

/* ---------------------------------------------------------------------
   ABOUT — team cards
   --------------------------------------------------------------------- */
.value-card .icon { background: linear-gradient(135deg, rgba(14,165,164,.12), rgba(37,99,235,.16)); }

.team-card { text-align: center; }
.team-card .team-photo {
  width: 104px; height: 104px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.9rem;
  color: #fff;
  box-shadow: var(--shadow);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.team-card .role { color: var(--accent); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }
.team-card p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* ---------------------------------------------------------------------
   FOOTER (shared)
   --------------------------------------------------------------------- */
.site-footer {
  background: #0b1220;
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
}
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand:hover { color: #fff; }
.footer-tagline { font-size: .95rem; color: rgba(255,255,255,.68); max-width: 320px; }
.footer-col h4 {
  color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 5px 0; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  display: grid; place-items: center;
  font-size: 1rem;
}
.social a:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-bottom-inner {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}
.footer-bottom-inner p { margin: 0; }
.footer-bottom-inner a { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------------
   SCROLL-REVEAL
   --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.no-io .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   RESPONSIVE  (1024 / 768 / 360 priority breakpoints)
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 480px; }
  .property-layout { grid-template-columns: 1fr; gap: 32px; }
  .property-sidebar { position: static; }
}

@media (max-width: 880px) {
  .search-bar, .filter-bar { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 14px var(--gutter) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .amenity-grid { grid-template-columns: 1fr; }
  .stats-grid, .steps { grid-template-columns: 1fr 1fr; }
  .property-facts { grid-template-columns: repeat(2, 1fr); }
  .features-list { grid-template-columns: 1fr; }
  .gallery-main { height: 320px; }
  .property-head { flex-direction: column; }
  .property-price-box { text-align: left; }
}

@media (max-width: 480px) {
  .search-bar, .filter-bar { grid-template-columns: 1fr; }
  .search-submit { grid-column: auto; }
}

@media (max-width: 360px) {
  body { font-size: 16px; }
  .stats-grid, .steps, .property-facts, .gallery-thumbs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 56px 18px; }
}
