/* ============================================================================
   styles.css — Shakeel Ahmad Realtor (2.0 — light, modern, premium)
   One shared stylesheet. Light luxury real-estate personal brand.
   ----------------------------------------------------------------------------
   1. Tokens   2. Reset/base   3. Type/helpers   4. Layout   5. Buttons
   6. Header/nav   7. Hero (+ illustration)   8. Stats/counters   9. Cards
   10. Portfolio   11. Media gallery   12. Properties grid + filters
   13. Property detail   14. Buyers & Sellers   15. Forms   16. Footer
   17. Sticky mobile CTA   18. Reveal/motion   19. Utilities   20. Responsive
   21. Reduced motion / print
   ========================================================================== */


/* 1. TOKENS ================================================================
   Warm editorial palette — cream / sand surfaces, deep espresso dark bands,
   terracotta primary accent, honey-gold luxury accent. Token NAMES are kept
   stable (--navy, --blue, --gold …) so every page reskins from this file
   alone; only the resolved colors changed meaning (navy = dark espresso,
   blue = terracotta, gold = honey gold) to match the new warm direction.
   ========================================================================== */
:root {
  /* Light surfaces */
  --white: #FFFFFF;
  --off-white: #FBF6EF;
  --gray-50: #F6EEE0;
  --gray-100: #F0E2C8;
  --gray-150: #E9D6B3;
  --line: #E6D3AE;

  /* Text */
  --charcoal: #3A2A1E;
  --ink: #241811;
  --slate: #7A6A5C;
  --slate-light: #A79684;

  /* Brand — espresso primary (dark bands/buttons), terracotta accent, honey-gold luxury */
  --navy: #2B1B12;
  --navy-700: #1C1109;
  --blue: #C8752E;
  --blue-600: #A8611F;
  --blue-50: #FBEADA;
  --gold: #E0A64E;
  --gold-light: #F0C78A;
  --gold-dark: #B67A2E;
  --gold-50: #FBF0DE;

  /* Functional */
  --bg: var(--white);
  --text: var(--charcoal);
  --text-soft: var(--slate);

  /* Type */
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing */
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem;
  --space-5: 3rem; --space-6: 4.5rem; --space-7: 7rem;

  /* Radii */
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --r-arch: 500px; /* clamped by box width — produces a true architectural dome top */

  /* Shadows — warm espresso tint */
  --shadow-xs: 0 1px 2px rgba(43,27,18,.06);
  --shadow-sm: 0 2px 8px rgba(43,27,18,.08), 0 1px 2px rgba(43,27,18,.05);
  --shadow-md: 0 12px 30px rgba(43,27,18,.13);
  --shadow-lg: 0 30px 70px rgba(43,27,18,.20);
  --shadow-gold: 0 14px 30px rgba(224,166,78,.35);
  --shadow-navy: 0 14px 30px rgba(43,27,18,.28);

  /* Layout */
  --container: 1220px;
  --container-narrow: 880px;
  --header-h: 80px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .5s;
}


/* 2. RESET / BASE ========================================================== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }


/* 3. TYPOGRAPHY / HELPERS ================================================== */
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1rem; }
strong { font-weight: 700; color: var(--charcoal); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold); border-radius: 2px; }
.eyebrow.on-dark { color: var(--gold-light); }
.eyebrow.center { justify-content: center; }

.lede { font-size: 1.18rem; color: var(--text-soft); max-width: 60ch; }
.text-soft { color: var(--text-soft); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gold-text { color: var(--gold-dark); }

hr.rule { height: 1px; background: var(--line); border: 0; margin: 0; }


/* 4. LAYOUT ================================================================ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem); }
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 8vw, var(--space-7)); }
.section--tight { padding-block: clamp(2.5rem, 5vw, var(--space-6)); }
.section--gray { background: var(--gray-50); }
.section--soft { background: linear-gradient(180deg, var(--white), var(--gray-50)); }

/* Dark band (espresso) for CTA emphasis */
.section--navy {
  background: radial-gradient(120% 140% at 85% -10%, var(--blue) 0%, var(--navy) 46%, var(--navy-700) 100%);
  color: #EDE0CE;
}
.section--navy h1,.section--navy h2,.section--navy h3 { color: var(--white); }
.section--navy .lede,.section--navy .text-soft { color: #C9B49A; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }


/* 5. BUTTONS =============================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: 1rem 1.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

/* Primary = navy (trust, high contrast on white) */
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-700); box-shadow: var(--shadow-navy); }

/* Gold = the single hero/conversion accent per section */
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); }
.btn--gold:hover { background: linear-gradient(180deg, var(--gold), var(--gold-dark)); color: var(--white); box-shadow: var(--shadow-gold); }

/* Blue = secondary action */
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-600); box-shadow: var(--shadow-navy); }

/* Outline */
.btn--outline { background: var(--white); border-color: var(--line); color: var(--charcoal); }
.btn--outline:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.btn--outline.on-dark { background: transparent; border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline.on-dark:hover { background: var(--white); color: var(--navy); }

/* Cream — solid pop CTA for use over vivid/gold backgrounds (e.g. the hero) */
.btn--cream { background: var(--off-white); color: var(--ink); box-shadow: var(--shadow-md); }
.btn--cream:hover { background: var(--white); box-shadow: var(--shadow-lg); }

.btn--sm { padding: .7rem 1.2rem; font-size: .86rem; }
.btn--lg { padding: 1.15rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.link-arrow { font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; transition: gap var(--dur) var(--ease), color var(--dur) var(--ease); }
.link-arrow:hover { gap: .7rem; color: var(--navy); }


/* 6. HEADER / NAV ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  background: rgba(255,255,255,0);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), height var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header.is-scrolled {
  background: rgba(255,255,255,.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
/* Home page only: header sits over the vivid hero gradient before scrolling — flip to light text */
.site-header.on-hero:not(.is-scrolled) .brand__name,
.site-header.on-hero:not(.is-scrolled) .nav__link { color: var(--white); }
.site-header.on-hero:not(.is-scrolled) .brand__role { color: rgba(255,255,255,.75); }
.site-header.on-hero:not(.is-scrolled) .nav__link[aria-current="page"] { color: var(--ink); }
.site-header.on-hero:not(.is-scrolled) .nav-toggle { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.site-header.on-hero:not(.is-scrolled) .nav-toggle__bar { background: var(--white); }
/* Mobile dropdown panel is always opaque white — keep its links dark regardless of hero state */
.site-header.on-hero:not(.is-scrolled) .nav.is-open .nav__link { color: var(--charcoal); }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__seal {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(180deg, var(--navy), var(--navy-700));
  color: var(--gold-light);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: var(--shadow-sm); flex: 0 0 auto;
}
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1; color: var(--ink); }
.brand__role { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); display: block; margin-top: 4px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav__link { position: relative; font-weight: 600; font-size: .96rem; color: var(--charcoal); padding: .4rem 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover::after,.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { color: var(--blue); }
.nav__cta { margin-left: .3rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--white);
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.nav-toggle__bar { width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* 7. HERO ================================================================== */
.hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(1.75rem,4vw,3rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 32%, var(--blue) 72%, var(--blue-600) 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 15% 100%, rgba(43,27,18,.20), transparent 65%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { color: var(--white); }
.hero .eyebrow::before { background: var(--ink); }
.hero h1 { letter-spacing: -0.03em; color: var(--white); }
.hero h1 .accent { color: var(--ink); }
.hero h1 .accent-gold { color: var(--ink); }
.hero__sub { font-size: 1.18rem; color: rgba(255,255,255,.92); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }

/* Primary Buy / Sell paths — large, thumb-friendly dual CTA */
.hero__buysell { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.buysell-btn {
  flex: 1 1 0; display: flex; align-items: center; gap: .9rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.buysell-btn:hover { transform: translateY(-4px); }
.buysell-btn--buy { background: var(--navy); color: var(--white); box-shadow: var(--shadow-navy); }
.buysell-btn--sell { background: var(--off-white); color: var(--ink); box-shadow: var(--shadow-lg); }
.bs-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: 0 0 auto; }
.buysell-btn--sell .bs-icon { background: var(--gold-50); }
.bs-icon svg { width: 22px; height: 22px; }
.bs-label { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1; flex: 1; }
.bs-label small { font-family: var(--font-body); font-weight: 600; font-size: .76rem; opacity: .85; }
.bs-arrow { width: 20px; height: 20px; flex: 0 0 auto; opacity: .8; transition: transform var(--dur) var(--ease); }
.buysell-btn:hover .bs-arrow { transform: translateX(4px); }

/* Signature ARCH motif — dome-topped photo frames used across hero, category
   and area cards. Radius is clamped by box width, so a large px value auto-
   resolves to a true semicircle regardless of the element's exact size. */
.arch-top { border-radius: var(--r-arch) var(--r-arch) 0 0; }
.arch-frame { border-radius: var(--r-arch) var(--r-arch) var(--r-lg) var(--r-lg); }

/* About band photo (dark surface) */
.about-photo { width: 100%; max-width: 440px; aspect-ratio: 3/4; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }

/* Stats row on a dark band — drop the light-card chrome */
.section--navy .stat { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); box-shadow: none; }
.section--navy .stat:hover { background: rgba(255,255,255,.1); }
.section--navy .stat__num { color: var(--gold-light); }
.section--navy .stat__label { color: #C9B49A; }

/* Personal photo hero stage */
.hero__art { position: relative; padding-top: 1rem; }
.hero__art::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,166,78,.28), transparent 70%);
  top: -30px; right: -50px; z-index: 0;
}
/* Real cutout photo (transparent PNG) — floats directly over the gradient, no card frame */
.hero__cutout { position: relative; z-index: 1; max-width: 460px; margin-inline: auto; }
.hero__cutout::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: 1%; transform: translateX(-50%);
  width: 98%; height: 98%;
  background: var(--off-white);
  border-radius: var(--r-arch) var(--r-arch) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero__cutout img { position: relative; z-index: 1; width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 34px rgba(28,17,9,.35)); }

/* Floating "listing preview" card peeking near the hero photo — browser-mockup feel */
.hero__listing-peek {
  position: absolute; z-index: 2; left: 0; bottom: 2%; width: 230px;
  background: var(--white); border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: .7rem; display: flex; gap: .7rem; align-items: center;
}
.hero__listing-peek .lp-thumb { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: linear-gradient(160deg, var(--gold-light), var(--gold)); color: var(--ink); }
.hero__listing-peek .lp-price { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1; }
.hero__listing-peek .lp-addr { font-size: .74rem; color: var(--slate); margin-top: .3rem; line-height: 1.3; }
.hero__listing-peek .lp-badge { position: absolute; top: -.6rem; right: .8rem; background: var(--gold); color: var(--ink); font-size: .58rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem; border-radius: var(--r-pill); box-shadow: var(--shadow-sm); }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Small glass badge floating on the art */
.art-badge {
  position: absolute; background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: .82rem; color: var(--charcoal);
  animation: floatY 6s ease-in-out infinite;
}
.art-badge small { display: block; font-weight: 600; font-size: .68rem; color: var(--slate); }
.art-badge .ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: 0 0 auto; }
.art-badge .ico.gold { background: var(--gold-50); color: var(--gold-dark); }
.art-badge--tl { top: 6%; left: -4%; }

/* Interior page hero strip */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4rem));
  padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(200,117,46,.12), transparent 60%),
    linear-gradient(180deg, var(--white), var(--gray-50));
}
.breadcrumb { font-size: .82rem; font-weight: 600; color: var(--slate); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-current] { color: var(--charcoal); }


/* 8. STATS / COUNTERS ====================================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,2vw,1.6rem); }
.stat { text-align: center; padding: 1.6rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat__num .suffix { color: var(--gold-dark); }
.stat__label { font-size: .82rem; font-weight: 600; color: var(--slate); margin-top: .6rem; }


/* 9. CARDS ================================================================= */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card-pad { padding: clamp(1.4rem, 3vw, 2rem); }

/* Service categories — arch-topped tiles (Buy / Sell / Probate & Estate) */
.category-section { position: relative; z-index: 2; margin-top: clamp(-4rem, -5vw, -2.5rem); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.category-arch { display: flex; flex-direction: column; align-items: center; text-align: center; }
.category-arch__photo {
  position: relative; width: 100%; max-width: 280px; aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.category-arch:hover .category-arch__photo { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.category-arch__photo.ph-buy { background: linear-gradient(160deg, #C8752E, #8A4E1D); }
.category-arch__photo.ph-sell { background: linear-gradient(160deg, #E0A64E, #B67A2E); }
.category-arch__photo.ph-probate { background: linear-gradient(160deg, #3A2A1E, #1C1109); }
.category-arch__photo svg { width: 60px; height: 60px; stroke: #FFF; stroke-width: 1.3; opacity: .92; }
.category-arch__label { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); background: rgba(255,255,255,.94); color: var(--ink); font-weight: 700; font-size: .88rem; padding: .55rem 1.1rem; border-radius: var(--r-pill); white-space: nowrap; box-shadow: var(--shadow-sm); }
.category-arch__desc { margin-top: 1.1rem; color: var(--text-soft); font-size: .93rem; max-width: 28ch; }
.category-arch__link { margin-top: .6rem; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; transition: gap var(--dur) var(--ease); }
.category-arch:hover .category-arch__link { gap: .7rem; }

/* Areas Served — photo cards (deep-link into filtered listings) */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 1.6rem); }
.area-card { overflow: hidden; display: flex; flex-direction: column; }
.area-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gray-150); }
.area-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-100); border-radius: var(--r-arch) var(--r-arch) 0 0; }
.area-card { border-radius: var(--r-arch) var(--r-arch) var(--r-lg) var(--r-lg); }
.area-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.area-card:hover .area-card__img { transform: scale(1.07); }
.area-card__tag { position: absolute; top: .8rem; left: .8rem; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .65rem; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--navy); }
.area-card__cap { position: absolute; inset: auto 0 0 0; padding: 1rem 1.1rem; background: linear-gradient(0deg, rgba(28,17,9,.78), transparent); }
.area-card__cap .n { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; line-height: 1; color: var(--white); }
.area-card__body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.area-card__blurb { color: var(--text-soft); font-size: .9rem; margin: 0; }
.area-card__link { margin-top: auto; font-weight: 700; color: var(--blue); display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; transition: gap var(--dur) var(--ease); }
.area-card:hover .area-card__link { gap: .7rem; }
.area-card__link svg { width: 16px; height: 16px; }

/* Value rows */
.value-item { display: flex; gap: 1rem; align-items: flex-start; }
.value-item__mark { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gray-50); border: 1px solid var(--line); color: var(--blue); }
.value-item__mark svg { width: 20px; height: 20px; stroke: var(--blue); }
.value-item h3 { font-size: 1.12rem; margin-bottom: .25rem; }


/* PROPERTY CARD */
.property-card { overflow: hidden; display: flex; flex-direction: column; }
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gray-150); }
.property-card__media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--gray-100); }
.property-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.property-card:hover .property-card__img { transform: scale(1.06); }

.badge { position: absolute; top: .9rem; left: .9rem; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .7rem; border-radius: var(--r-pill); background: var(--white); color: var(--charcoal); box-shadow: var(--shadow-sm); }
.badge--for-sale { background: var(--navy); color: var(--white); }
.badge--pending { background: var(--gold); color: var(--ink); }
.badge--sold { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.sample-tag { position: absolute; bottom: .9rem; right: .9rem; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .55rem; border-radius: var(--r-sm); background: rgba(255,255,255,.9); color: var(--slate); }

.property-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.property-card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.property-card__addr { font-weight: 700; margin: .5rem 0 .1rem; }
.property-card__city { color: var(--text-soft); font-size: .92rem; margin-bottom: .8rem; }
.property-card__desc { color: var(--text-soft); font-size: .94rem; margin-bottom: 1rem; }

.specs { display: flex; flex-wrap: wrap; gap: .9rem 1.2rem; padding: .8rem 0; border-top: 1px solid var(--line); margin-top: auto; }
.spec { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--text-soft); }
.spec svg { width: 18px; height: 18px; stroke: var(--blue); flex: 0 0 auto; }
.spec strong { color: var(--ink); }
.property-card__cta { margin-top: 1rem; }


/* 10. PORTFOLIO ============================================================ */
.portfolio-card { overflow: hidden; display: flex; flex-direction: column; }
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gray-150); }
.portfolio-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--gray-100); }
.portfolio-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.portfolio-card:hover .portfolio-card__img { transform: scale(1.05); }
.portfolio-card__body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.portfolio-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.tag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .6rem; border-radius: var(--r-pill); background: var(--gray-50); color: var(--slate); border: 1px solid var(--line); }
.tag--status { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tag--type { background: var(--blue-50); color: var(--blue-600); border-color: transparent; }
.portfolio-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.portfolio-card__story { color: var(--text-soft); font-size: .95rem; margin-bottom: 1rem; }
.portfolio-card__service { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .86rem; font-weight: 700; color: var(--gold-dark); display: flex; align-items: center; gap: .5rem; }
.portfolio-card__service svg { width: 16px; height: 16px; stroke: var(--gold-dark); }


/* 11. MEDIA GALLERY ======================================================== */
.media-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.media-tile { position: relative; overflow: hidden; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--shadow-xs); background: var(--gray-100); }
.media-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.media-tile:hover img { transform: scale(1.06); }
.media-tile__cap { position: absolute; inset: auto 0 0 0; padding: 1rem; background: linear-gradient(0deg, rgba(28,17,9,.78), transparent); color: #fff; }
.media-tile__cap .t { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.media-tile__cap .l { font-weight: 700; font-size: .98rem; }
.media-tile__play { position: absolute; inset: 0; display: grid; place-items: center; }
.media-tile__play span { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease); }
.media-tile:hover .media-tile__play span { transform: scale(1.08); }
.media-tile__play svg { width: 24px; height: 24px; fill: var(--navy); margin-left: 3px; }
/* Editorial spans for an asymmetric, premium layout */
.media-tile--lg { grid-column: span 3; grid-row: span 2; }
.media-tile--w { grid-column: span 3; }
.media-tile--sq { grid-column: span 2; }
.media-tile--tall { grid-column: span 2; grid-row: span 2; }


/* 12. PROPERTIES GRID + FILTERS =========================================== */
.filter-bar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-block: 1rem; }
.filter-grid { display: grid; grid-template-columns: 1.6fr repeat(4,1fr) auto; gap: .7rem; align-items: end; }
.field label { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); display: block; margin-bottom: .35rem; }
.field input,.field select { width: 100%; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: inherit; font-size: .92rem; color: var(--ink); }
.field input:focus,.field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(200,117,46,.16); }

.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.results-count { font-size: .9rem; font-weight: 700; color: var(--slate); }

.empty-state { text-align: center; padding: clamp(3rem,8vw,5rem) 1rem; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--gray-50); }
.empty-state svg { width: 46px; height: 46px; stroke: var(--blue); margin-bottom: 1rem; }

/* Loading skeleton — shown while listings are being fetched from Supabase. */
@keyframes skeleton-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.skeleton-card { overflow: hidden; }
.skeleton-card__media { aspect-ratio: 3/2; background: var(--gray-100); animation: skeleton-pulse 1.6s ease-in-out infinite; }
.skeleton-card__body { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: .7rem; }
.skeleton-line { height: 14px; border-radius: 6px; background: var(--gray-100); animation: skeleton-pulse 1.6s ease-in-out infinite; }
.skeleton-line--sm { width: 45%; }
.skeleton-line--lg { width: 85%; }


/* 13. PROPERTY DETAIL ====================================================== */
.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: start; }
.gallery__main { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; background: var(--gray-100); box-shadow: var(--shadow-sm); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5,1fr); gap: .6rem; margin-top: .7rem; }
.gallery__thumb { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 2px solid transparent; background: var(--gray-100); padding: 0; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--blue); }

.detail-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); color: var(--ink); line-height: 1; }
.detail-addr { font-weight: 700; font-size: 1.15rem; margin-top: .4rem; }
.detail-city { color: var(--text-soft); }

.spec-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 1.5rem 0; }
.spec-strip .cell { background: var(--white); padding: 1.1rem 1rem; text-align: center; }
.spec-strip .cell .v { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.spec-strip .cell .k { font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-top: .4rem; }

.features { columns: 2; column-gap: 2rem; }
.features li { break-inside: avoid; padding: .4rem 0 .4rem 1.7rem; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 9px; height: 9px; background: var(--gold); border-radius: 3px; transform: rotate(45deg); }

.map-ph {
  position: relative; aspect-ratio: 16/7; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(200,117,46,.08), rgba(224,166,78,.08)),
    repeating-linear-gradient(0deg, rgba(43,27,18,.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(90deg, rgba(43,27,18,.05) 0 1px, transparent 1px 42px),
    var(--gray-50);
  display: grid; place-items: center; text-align: center;
}
.map-ph__pin { width: 52px; height: 52px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); box-shadow: var(--shadow-md); display: grid; place-items: center; }
.map-ph__pin::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--white); }
.map-ph__label { font-size: .8rem; font-weight: 700; color: var(--navy); background: rgba(255,255,255,.9); padding: .5rem .9rem; border-radius: var(--r-pill); margin-top: 1rem; box-shadow: var(--shadow-xs); }

.agent-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.agent-card__head { display: flex; align-items: center; gap: .9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.agent-card__photo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--line); flex: 0 0 auto; }
.agent-card .name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.agent-card .role { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.agent-card .lic { font-size: .76rem; color: var(--slate); margin-top: .8rem; }
.contact-list { display: grid; gap: .6rem; margin: 1rem 0; }
.contact-list a { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.contact-list svg { width: 18px; height: 18px; stroke: var(--blue); flex: 0 0 auto; }
.contact-list a:hover { color: var(--blue); }


/* 14. BUYERS & SELLERS ===================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3vw,2rem); }
.path-card { padding: clamp(1.6rem,3vw,2.4rem); position: relative; overflow: hidden; }
.path-card--buyer { background: linear-gradient(165deg, var(--blue-50), var(--white)); border-color: transparent; }
.path-card--seller { background: linear-gradient(165deg, var(--gold-50), var(--white)); border-color: transparent; }
.path-card__icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.path-card--buyer .path-card__icon svg { stroke: var(--blue); }
.path-card--seller .path-card__icon svg { stroke: var(--gold-dark); }
.path-card__icon svg { width: 28px; height: 28px; }

.steps { display: grid; gap: 1rem; margin: 1.4rem 0; }
.step { display: flex; gap: .9rem; align-items: flex-start; }
.step__n { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.path-card--buyer .step__n { color: var(--blue); }
.path-card--seller .step__n { color: var(--gold-dark); }
.step p { margin: 0; }
.step strong { display: block; }

.benefits { display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.benefit { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; color: var(--charcoal); }
.benefit svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.path-card--buyer .benefit svg { stroke: var(--blue); }
.path-card--seller .benefit svg { stroke: var(--gold-dark); }


/* 15. FORMS ================================================================ */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form .field-group { display: grid; gap: .4rem; }
.form label { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.form input,.form select,.form textarea { width: 100%; padding: .85rem .95rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white); font: inherit; font-size: .98rem; color: var(--ink); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus,.form select:focus,.form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(200,117,46,.16); }
.form .error-msg { color: #C0392B; font-size: .8rem; font-weight: 600; display: none; }
.form .field-group.has-error input,.form .field-group.has-error select,.form .field-group.has-error textarea { border-color: #D9534F; box-shadow: 0 0 0 3px rgba(217,83,79,.14); }
.form .field-group.has-error .error-msg { display: block; }

.form-card { padding: clamp(1.5rem,3vw,2.2rem); }
.form-card--accent { border-top: 4px solid var(--gold); }

.form-success { display: none; text-align: center; padding: clamp(2rem,5vw,3rem); border: 1px solid var(--gold-light); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--gold-50), transparent); }
.form-success.is-visible { display: block; animation: rise var(--dur) var(--ease) both; }
.form-success__check { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; margin: 0 auto 1rem; }
.form-success__check svg { width: 28px; height: 28px; stroke: var(--gold-light); }


/* 16. FOOTER =============================================================== */
.site-footer { background: radial-gradient(120% 140% at 10% -20%, var(--navy) 0%, var(--navy-700) 60%); color: #C9B49A; }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(1.5rem,4vw,3rem); padding-block: clamp(3rem,6vw,4.5rem); }
.footer-brand .brand__seal { background: rgba(255,255,255,.08); color: var(--gold-light); }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__role { color: var(--gold-light); }
.footer-col h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: .95rem; }
.social-row { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.social-link { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.16); transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.social-link svg { width: 19px; height: 19px; fill: var(--gold-light); }
.social-link:hover { background: var(--gold); transform: translateY(-3px); border-color: var(--gold); }
.social-link:hover svg { fill: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; font-size: .84rem; color: #A3927E; }
.eho { display: inline-flex; align-items: center; gap: .5rem; }
.eho svg { width: 18px; height: 18px; stroke: var(--gold-light); }


/* 17. STICKY MOBILE CTA ==================================================== */
.mobile-cta { position: fixed; inset: auto 0 0 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 -8px 24px rgba(28,17,9,.18); }
.mobile-cta a { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .95rem 1rem; font-weight: 700; font-size: .92rem; background: var(--white); color: var(--navy); }
.mobile-cta a.is-primary { background: var(--navy); color: var(--white); }
.mobile-cta svg { width: 18px; height: 18px; }


/* 18. REVEAL / MOTION ====================================================== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

.hero [data-hero] { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero [data-hero="1"] { animation-delay: .05s; }
.hero [data-hero="2"] { animation-delay: .18s; }
.hero [data-hero="3"] { animation-delay: .31s; }
.hero [data-hero="4"] { animation-delay: .44s; }
.hero [data-hero="5"] { animation-delay: .57s; }
@keyframes rise { to { opacity: 1; transform: none; } }


/* 19. UTILITIES =========================================================== */
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--r-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.trust-pill { display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.4rem; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--white); font-weight: 700; color: var(--charcoal); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.trust-pill svg { width: 20px; height: 20px; }
.trust-pill:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: var(--shadow-sm); }

.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { display: inline-flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.5rem; }
.note-italic { font-style: italic; color: var(--text-soft); font-size: .95rem; }


/* 20. RESPONSIVE =========================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr 1fr; }
  .filter-grid .field--search { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .media-grid { grid-template-columns: repeat(4,1fr); }
  .media-tile--lg,.media-tile--w,.media-tile--sq,.media-tile--tall { grid-column: span 2; grid-row: span 1; }
  .areas-grid { grid-template-columns: repeat(2,1fr); }
  .category-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 70px; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255,255,255,.98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    padding: .5rem 1.2rem 1.4rem;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }

  .hero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .features { columns: 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid .field--search,.filter-grid .field--reset { grid-column: 1 / -1; }
  .media-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 160px; }

  .mobile-cta { display: grid; }
  body { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .gallery__thumbs { grid-template-columns: repeat(4,1fr); }
  .filter-grid { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__buysell { flex-direction: column; }
  .areas-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .category-arch__photo { max-width: 240px; }
  .art-badge { display: none; }
  .hero__listing-peek { left: .8rem; right: .8rem; bottom: .8rem; width: auto; }
}


/* 22. ADMIN PANEL ============================================================
   Utilitarian dashboard for Shakeel to manage listings at /admin.html — same
   tokens/fonts as the public site, but denser and function-first (no hero
   motion, no marketing copy). Reuses .card/.btn/.form/.field-group/.badge
   from the sections above wherever the look already matches.
   ========================================================================== */
.admin-body { background: var(--gray-50); min-height: 100vh; }

.admin-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.admin-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.admin-header__actions { display: flex; align-items: center; gap: .7rem; }

.admin-main { padding-block: clamp(2rem, 4vw, 3rem); }

/* Login ---------------------------------------------------------------- */
.admin-login { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 1.5rem; }
.admin-login__card { width: 100%; max-width: 400px; }
.admin-login__card h1 { font-size: 1.6rem; margin-bottom: .3rem; }

/* Toolbar / table -------------------------------------------------------- */
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-xs); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.admin-table th { text-align: left; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--gray-50); }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .92rem; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table__thumb { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; background: var(--gray-100); flex: 0 0 auto; }
.admin-table__addr { font-weight: 700; color: var(--ink); }
.admin-table__city { color: var(--slate); font-size: .85rem; }
.admin-table__actions { display: flex; gap: .5rem; white-space: nowrap; }
.badge--static { position: static; display: inline-block; }

/* Toast (success/error) --------------------------------------------------- */
.admin-toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 200; display: grid; gap: .6rem; }
.admin-toast__item {
  min-width: 260px; max-width: 360px; padding: .9rem 1.1rem; border-radius: var(--r-md);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: .92rem; font-weight: 600; display: flex; align-items: flex-start; gap: .6rem;
  animation: rise .3s var(--ease) both;
}
.admin-toast__item svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: .1rem; }
.admin-toast__item--success { border-color: var(--gold-light); }
.admin-toast__item--success svg { stroke: var(--gold-dark); }
.admin-toast__item--error { border-color: #D9534F; }
.admin-toast__item--error svg { stroke: #C0392B; }

/* Modal -------------------------------------------------------------------*/
.admin-modal-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(28,17,9,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem;
  overflow-y: auto;
}
.admin-modal-backdrop[hidden] { display: none; }
.admin-modal { width: 100%; max-width: 720px; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.admin-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.admin-modal__close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; }
.admin-modal__close svg { width: 18px; height: 18px; }
.admin-modal__body { padding: 1.5rem; }

/* Compact 2-col field grid for the property form -------------------------- */
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.admin-form-grid .field-group--span2 { grid-column: 1 / -1; }

/* Feature tag/chip input --------------------------------------------------- */
.chip-input__row { display: flex; gap: .6rem; }
.chip-input__row input { flex: 1; }
.chip-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .5rem .4rem .8rem; border-radius: var(--r-pill); background: var(--gray-50); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; color: var(--charcoal); }
.chip button { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-150); }
.chip button svg { width: 11px; height: 11px; }

/* Photo dropzone + previews ------------------------------------------------ */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-md); padding: 1.6rem 1rem;
  text-align: center; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--blue); background: var(--blue-50); }
.dropzone svg { width: 30px; height: 30px; stroke: var(--slate); margin-bottom: .5rem; }
.dropzone__hint { font-size: .86rem; color: var(--slate); }
.dropzone__hint strong { color: var(--blue); }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .7rem; margin-top: 1rem; }
.photo-thumb { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--gray-100); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb__remove { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(28,17,9,.72); display: grid; place-items: center; }
.photo-thumb__remove svg { width: 12px; height: 12px; stroke: #fff; }
.photo-thumb__cover { position: absolute; left: 4px; bottom: 4px; font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: .2rem .45rem; border-radius: var(--r-pill); background: var(--gold); color: var(--ink); }
.photo-thumb__progress { position: absolute; inset: 0; background: rgba(255,255,255,.85); display: grid; place-items: center; font-size: .68rem; font-weight: 700; color: var(--ink); text-align: center; padding: .3rem; }

.admin-hint { font-size: .82rem; color: var(--slate); margin-top: .4rem; }
.admin-hint--error { color: #C0392B; font-weight: 600; }


/* 21. REDUCED MOTION / PRINT =============================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero [data-hero] { opacity: 1; transform: none; animation: none; }
  .art-badge { animation: none !important; }
}
@media print {
  .site-header,.mobile-cta,.nav-toggle,.filter-bar { display: none !important; }
  body { color: #000; background: #fff; }
}
