/* =================================================================
   IRISH CASTLE 🏰 — Luxury Real Estate
   Design System / Stylesheet
   Palette: Emerald (Irish) + Gold (Crown) + Ivory
   ================================================================= */

:root {
  /* Brand colors */
  --emerald-900: #0a2e1f;
  --emerald-800: #0f3d29;
  --emerald-700: #14543a;
  --emerald-600: #1a6b49;
  --emerald-500: #1f8159;
  --emerald-400: #34a574;
  --emerald-300: #6cc79b;

  --gold-600: #a9842f;
  --gold-500: #c9a13e;
  --gold-400: #e3c068;
  --gold-300: #f0d999;

  --ivory: #faf8f3;
  --cream: #f4f0e8;
  --ink: #16241d;
  --ink-soft: #44544b;
  --line: #e6e0d4;
  --white: #ffffff;

  /* Functional */
  --shadow-sm: 0 2px 8px rgba(10, 46, 31, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 46, 31, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 46, 31, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p { color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold-500); }

.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head h2 { margin: .8rem 0 1rem; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.bg-cream { background: var(--cream); }
.bg-emerald { background: var(--emerald-900); color: var(--ivory); }
.bg-emerald h2, .bg-emerald h3 { color: var(--white); }
.bg-emerald p { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--emerald-900); box-shadow: 0 10px 24px rgba(169,132,47,.32); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(169,132,47,.42); }
.btn-emerald { background: var(--emerald-700); color: var(--white); }
.btn-emerald:hover { background: var(--emerald-600); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--emerald-500); color: var(--emerald-700); }
.btn-light { background: var(--white); color: var(--emerald-800); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.transparent { background: transparent; }
.site-header.solid, .site-header.scrolled {
  background: rgba(250, 248, 243, .92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.brand .crest {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(150deg, var(--emerald-700), var(--emerald-500));
  display: grid; place-items: center; color: var(--gold-400); font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.brand b { color: var(--emerald-700); }
.transparent .brand, .transparent .brand b { color: #fff; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a { font-weight: 500; font-size: .95rem; position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold-500); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.transparent .nav-links a { color: rgba(255,255,255,.9); }
.transparent .nav-links a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: .9rem; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 30px; height: 24px; justify-content: center; }
.menu-toggle span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.transparent .menu-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--header-h); color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(8,40,27,.92) 0%, rgba(8,40,27,.72) 42%, rgba(8,40,27,.30) 100%);
}
.hero-content { max-width: 720px; padding: 4rem 0; }
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: #fff; margin: 1.2rem 0 1.4rem; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--gold-400); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; margin-bottom: 2.4rem; }
.hero-stats { display: flex; gap: 2.6rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-400); font-weight: 700; }
.hero-stat .label { font-size: .85rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Search bar ---------- */
.search-card {
  background: rgba(255,255,255,.97); border-radius: var(--radius);
  padding: .6rem; box-shadow: var(--shadow-lg); max-width: 760px;
}
.search-tabs { display: flex; gap: .3rem; padding: .3rem .3rem 0; }
.search-tab {
  padding: .55rem 1.3rem; border-radius: 999px 999px 0 0; font-weight: 600; font-size: .9rem;
  color: var(--ink-soft);
}
.search-tab.active { background: var(--white); color: var(--emerald-700); }
.search-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .5rem; align-items: end; padding: .4rem; }
.search-field { display: flex; flex-direction: column; gap: .25rem; padding: .55rem .9rem; border-radius: var(--radius-sm); }
.search-field + .search-field { border-left: 1px solid var(--line); }
.search-field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold-600); }
.search-field input, .search-field select {
  border: none; background: transparent; color: var(--ink); font-weight: 500; width: 100%; outline: none;
}
.search-field select { cursor: pointer; }
.search-submit { padding: 1rem 1.6rem; }

/* ---------- Property cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.8rem; }
.property-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease; display: flex; flex-direction: column;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.property-card:hover .card-media img { transform: scale(1.07); }
.card-badges { position: absolute; top: .9rem; left: .9rem; display: flex; gap: .4rem; }
.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: .35rem .7rem; border-radius: 999px; color: #fff; backdrop-filter: blur(6px);
}
.badge-sale { background: rgba(31,129,89,.92); }
.badge-rent { background: rgba(169,132,47,.95); }
.badge-new { background: rgba(20,84,58,.92); }
.badge-featured { background: rgba(201,161,62,.95); color: var(--emerald-900); }
.card-fav {
  position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--emerald-700);
  transition: .2s; font-size: 1.05rem;
}
.card-fav:hover { background: var(--gold-400); color: var(--emerald-900); transform: scale(1.1); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--emerald-700); }
.card-price span { font-size: .85rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 500; }
.card-title { font-size: 1.12rem; font-weight: 600; margin: .4rem 0 .3rem; color: var(--ink); }
.card-loc { font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .4rem; }
.card-features {
  display: flex; gap: 1.2rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-soft); font-weight: 500;
}
.card-features span { display: flex; align-items: center; gap: .4rem; }
.card-features svg { color: var(--emerald-500); }

/* ---------- Featured strip / categories ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; min-height: 300px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--shadow-sm);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; }
.cat-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8,40,27,.9), rgba(8,40,27,.05) 70%); }
.cat-card:hover img { transform: scale(1.08); }
.cat-card .cat-body { padding: 1.5rem; }
.cat-card h3 { color: #fff; }
.cat-card .count { color: var(--gold-300); font-size: .85rem; font-weight: 600; }

/* ---------- Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; color: var(--gold-400); }
.stat-item .label { color: rgba(255,255,255,.7); font-size: .9rem; letter-spacing: .05em; }

/* ---------- Features / Why us ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; transition: .3s; box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(140deg, var(--emerald-700), var(--emerald-500)); color: var(--gold-400); margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }

/* ---------- Split / About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-badge {
  position: absolute; bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
  background: rgba(250,248,243,.95); backdrop-filter: blur(8px); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 1rem;
}
.split-badge .big { font-family: var(--font-display); font-size: 2rem; color: var(--emerald-700); font-weight: 700; }
.checklist { display: grid; gap: 1rem; margin: 1.8rem 0; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.checklist .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--emerald-100, #e3f2ea); color: var(--emerald-600); display: grid; place-items: center; font-size: .8rem; background: #e3f2ea; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.testi-card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.testi-stars { color: var(--gold-500); margin-bottom: 1rem; letter-spacing: .15em; }
.testi-quote { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 1.4rem; font-family: var(--font-display); }
.testi-author { display: flex; align-items: center; gap: .9rem; }
.testi-author img, .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-author .name { font-weight: 600; color: var(--ink); }
.testi-author .role { font-size: .85rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(3rem,6vw,5rem);
  text-align: center; color: #fff;
}
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(8,40,27,.92), rgba(20,84,58,.82)); }
.cta-band h2 { color: #fff; max-width: 640px; margin: 0 auto 1rem; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 540px; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-900); color: rgba(255,255,255,.72); padding: 4.5rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand b { color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,.6); max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: .7rem; }
.footer-col a { color: rgba(255,255,255,.65); font-size: .94rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.footer-social a:hover { background: var(--gold-500); color: var(--emerald-900); }
.footer-news { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-news input { flex: 1; padding: .8rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.06); color: #fff; }
.footer-news input::placeholder { color: rgba(255,255,255,.45); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.8rem; font-size: .85rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3.5rem; position: relative; color: #fff; overflow: hidden;
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(8,40,27,.92), rgba(8,40,27,.55)); }
.page-hero h1 { color: #fff; }
.breadcrumb { display: flex; gap: .5rem; font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold-400); }

/* ---------- Listings page ---------- */
.listings-layout { display: grid; grid-template-columns: 290px 1fr; gap: 2.2rem; align-items: start; }
.filter-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 1rem); box-shadow: var(--shadow-sm); }
.filter-group { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border: none; }
.filter-group h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-600); margin-bottom: .9rem; }
.filter-control { width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); color: var(--ink); }
.filter-control:focus { outline: 2px solid var(--emerald-300); border-color: var(--emerald-400); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-size: .85rem; font-weight: 500; background: var(--ivory); transition: .2s; }
.chip:hover { border-color: var(--emerald-400); }
.chip.active { background: var(--emerald-700); color: #fff; border-color: var(--emerald-700); }
.listings-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; flex-wrap: wrap; gap: 1rem; }
.listings-count { font-weight: 600; color: var(--ink); }
.listings-count span { color: var(--ink-soft); font-weight: 400; }
.sort-select { padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* ---------- Property detail ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: .8rem; border-radius: var(--radius-lg); overflow: hidden; margin-top: 1.5rem; }
.gallery-main { aspect-ratio: 16/11; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: .8rem; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side .more { position: relative; }
.gallery-side .more::after { content: '+8 Photos'; position: absolute; inset: 0; background: rgba(8,40,27,.55); color: #fff; display: grid; place-items: center; font-weight: 600; }
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; margin-top: 2.5rem; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.detail-price { font-family: var(--font-display); font-size: 2.4rem; color: var(--emerald-700); font-weight: 700; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 1rem; margin: 2rem 0; }
.spec-item { background: var(--cream); border-radius: var(--radius-sm); padding: 1.1rem; text-align: center; }
.spec-item .ic { font-size: 1.3rem; color: var(--emerald-500); }
.spec-item .v { font-weight: 700; font-size: 1.15rem; margin-top: .3rem; }
.spec-item .l { font-size: .8rem; color: var(--ink-soft); }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: .8rem; margin-top: 1.2rem; }
.amenities li { display: flex; gap: .6rem; align-items: center; color: var(--ink); }
.amenities .ic { color: var(--emerald-500); }
.agent-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 1rem); }
.agent-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.agent-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.agent-form { display: grid; gap: .8rem; margin-top: 1.4rem; }
.agent-form input, .agent-form textarea { padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); }

/* ---------- Agents page ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 1.8rem; }
.team-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-card .photo { aspect-ratio: 1; overflow: hidden; }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.team-card:hover .photo img { transform: scale(1.05); }
.team-card .info { padding: 1.4rem; }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--gold-600); font-weight: 600; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info-card { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact-info-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--emerald-700); color: var(--gold-400); display: grid; place-items: center; flex: none; font-size: 1.2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea { padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: 2px solid var(--emerald-300); border-color: var(--emerald-400); }

/* ---------- Misc ---------- */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120%); background: var(--emerald-800); color: #fff; padding: 1rem 1.6rem; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 1000; transition: transform .4s ease; display: flex; gap: .6rem; align-items: center; }
.toast.show { transform: translateX(-50%) translateY(0); }
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; align-items: center; opacity: .65; }
.partners span { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 200; background: var(--emerald-900); display: flex; flex-direction: column; padding: 2rem 1.5rem; transform: translateX(100%); transition: transform .35s ease; }
.mobile-nav.open { transform: none; }
.mobile-nav .close { align-self: flex-end; font-size: 2rem; color: #fff; }
.mobile-nav a { color: #fff; font-size: 1.4rem; font-family: var(--font-display); padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav .btn { margin-top: 1.5rem; }

/* ---------- County strip ---------- */
.county-strip { display: flex; flex-wrap: wrap; gap: .7rem; }
.county-pill {
  display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .92rem; transition: .2s; box-shadow: var(--shadow-sm);
}
.county-pill:hover { border-color: var(--emerald-400); transform: translateY(-2px); color: var(--emerald-700); }
.county-pill b { background: var(--cream); color: var(--gold-600); font-size: .78rem; padding: .1rem .5rem; border-radius: 999px; }

/* ---------- Mini mortgage (detail) ---------- */
.mini-mortgage { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--cream); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-top: 1rem; }
.mini-mortgage strong { color: var(--emerald-700); font-size: 1.2rem; }
.mini-mortgage span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Mortgage calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: start; }
.calc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }
.calc-field { margin-bottom: 1.6rem; }
.calc-field .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.calc-field label { font-weight: 600; }
.calc-field .val { font-family: var(--font-display); color: var(--emerald-700); font-weight: 700; }
.calc-field input[type=number] { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); font-weight: 600; }
.calc-field input[type=range] { width: 100%; accent-color: var(--emerald-600); height: 6px; }
.result-card { background: var(--emerald-900); color: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-md); }
.result-monthly { text-align: center; padding-bottom: 1.6rem; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 1.6rem; }
.result-monthly .big { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--gold-400); }
.result-monthly .lbl { color: rgba(255,255,255,.7); letter-spacing: .05em; text-transform: uppercase; font-size: .8rem; }
.result-row { display: flex; justify-content: space-between; padding: .6rem 0; color: rgba(255,255,255,.85); }
.result-row b { color: #fff; }
.ring-wrap { display: flex; align-items: center; gap: 1.2rem; margin: 1.4rem 0; }
.ring { width: 84px; height: 84px; border-radius: 50%; flex: none; background: conic-gradient(var(--emerald-500) 0 70%, var(--gold-400) 70% 100%); position: relative; }
.ring::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--emerald-900); }
.legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; margin-right: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.warn { display: none; background: rgba(201,161,62,.18); border: 1px solid var(--gold-500); color: var(--gold-300); padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .85rem; margin-top: 1rem; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { position: relative; color: #fff; display: flex; align-items: flex-end; padding: 3rem; overflow: hidden; background: var(--emerald-800); }
.auth-aside::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(circle at 20% 20%, rgba(201,161,62,.25), transparent 40%),
  linear-gradient(160deg, var(--emerald-800), var(--emerald-900)); }
.auth-aside .inner { position: relative; }
.auth-aside h2 { color: #fff; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .brand { margin-bottom: 1.5rem; }
.auth-box form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.auth-box label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: .35rem; }
.auth-box input { width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ivory); }
.auth-box input:focus { outline: 2px solid var(--emerald-300); border-color: var(--emerald-400); }
.form-error { background: #fdecea; color: #b4231a; border: 1px solid #f3c2bd; padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .88rem; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: .9rem; color: var(--ink-soft); }
.auth-switch a { color: var(--emerald-700); font-weight: 600; }

/* ---------- Account ---------- */
.account-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(140deg, var(--emerald-700), var(--emerald-500)); color: var(--gold-400); display: grid; place-items: center; font-size: 1.8rem; }

/* ---------- Market reports ---------- */
.report-meta { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); color: #fff; padding: .4rem 1rem; border-radius: 999px; font-size: .82rem; margin-top: 1rem; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.kpi-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 600; }
.kpi-value { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--emerald-700); margin: .5rem 0 .6rem; }
.kpi-changes { display: flex; gap: .8rem; flex-wrap: wrap; }
.kpi-sub { font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; }
.chg { font-size: .85rem; font-weight: 700; }
.chg em { font-style: normal; font-weight: 500; color: var(--ink-soft); font-size: .72rem; }
.up { color: #1a8a4f; } .down { color: #c0392b; } .flat { color: var(--ink-soft); }

.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.chart-current { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.trend-badge { font-weight: 700; font-size: .9rem; display: inline-block; margin-top: .3rem; }
.toggle-group { display: inline-flex; background: var(--cream); border-radius: 999px; padding: .25rem; gap: .2rem; }
.toggle-group button { padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.toggle-group button.active { background: var(--emerald-700); color: #fff; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 1.4rem; margin-top: 1rem; font-size: .85rem; color: var(--ink-soft); }
.chart-legend span { display: inline-flex; align-items: center; gap: .4rem; }

.market-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; align-items: start; }
.bar-row { display: grid; grid-template-columns: 90px 1fr auto; gap: .9rem; align-items: center; margin-bottom: .55rem; font-size: .88rem; }
.bar-label { font-weight: 600; color: var(--ink); }
.bar-track { background: var(--cream); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald-500), var(--emerald-700)); }
.bar-val { font-weight: 700; color: var(--emerald-700); font-variant-numeric: tabular-nums; }

.market-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.market-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
.market-table th, .market-table td { padding: .85rem 1rem; text-align: right; white-space: nowrap; }
.market-table th:first-child, .market-table td:first-child { text-align: left; position: sticky; left: 0; background: var(--white); }
.market-table thead th { background: var(--emerald-900); color: #fff; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; user-select: none; }
.market-table thead th:first-child { background: var(--emerald-900); }
.market-table th[data-sort]::after { content: " ⇅"; opacity: .4; }
.market-table th.sorted-desc::after { content: " ↓"; opacity: 1; }
.market-table th.sorted-asc::after { content: " ↑"; opacity: 1; }
.market-table tbody tr:nth-child(even) { background: var(--ivory); }
.market-table tbody tr:nth-child(even) td:first-child { background: var(--ivory); }
.market-table tbody tr:hover td { background: #eef6f0; }
.tc-name { font-weight: 700; color: var(--emerald-700); }
.market-table td.up { color: #1a8a4f; font-weight: 600; }
.market-table td.down { color: #c0392b; font-weight: 600; }

@media print {
  .site-header, .mobile-nav, .site-footer, .page-hero, .toggle-group, #csv-export, #print-report, .cta-band { display: none !important; }
  body { background: #fff; }
  .chart-card, .kpi-card, .market-table-wrap { box-shadow: none; break-inside: avoid; }
}

/* ---------- Pricing ---------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 1rem; background: var(--cream); padding: .5rem 1rem; border-radius: 999px; margin: 1.5rem auto 0; }
.seg { display: inline-flex; background: var(--white); border-radius: 999px; padding: .25rem; gap: .2rem; box-shadow: var(--shadow-sm); }
.seg button { padding: .5rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.seg button.active { background: var(--emerald-700); color: #fff; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; transition: .3s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card.popular { border: 2px solid var(--gold-500); box-shadow: var(--shadow-md); }
.price-card.dark { background: var(--emerald-900); color: #fff; border-color: var(--emerald-900); }
.price-card.dark .price-name, .price-card.dark .amount { color: #fff; }
.price-card.dark .price-feat li { color: rgba(255,255,255,.85); }
.popular-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--emerald-900); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px; }
.price-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); }
.price-aud { font-size: .85rem; color: var(--gold-600); font-weight: 600; margin-bottom: 1rem; }
.price-tag { display: flex; align-items: baseline; gap: .3rem; margin: .4rem 0 .2rem; }
.amount { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--emerald-700); }
.period { color: var(--ink-soft); font-size: .9rem; }
.was { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.was s { color: #c0392b; }
.price-feat { display: grid; gap: .7rem; margin: 1.2rem 0 1.6rem; flex: 1; }
.price-feat li { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.price-feat .ic { color: var(--emerald-500); flex: none; font-weight: 700; }
.price-card.dark .price-feat .ic { color: var(--gold-400); }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; font-weight: 600; }
.compare thead th { background: var(--cream); font-family: var(--font-display); font-size: 1.05rem; }
.compare thead th.us { background: var(--emerald-700); color: #fff; border-radius: 10px 10px 0 0; }
.compare .yes { color: #1a8a4f; font-weight: 700; }
.compare .no { color: #c9342b; }
.compare td.us { background: rgba(31,129,89,.06); font-weight: 600; }

@media (max-width: 980px) {
  .calc-layout { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .market-2col { grid-template-columns: 1fr; }
}
@media (max-width: 540px) { .kpi-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .listings-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .agent-card { position: static; }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
}
@media (max-width: 760px) {
  .nav-links, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .search-row { grid-template-columns: 1fr; }
  .search-field + .search-field { border-left: none; border-top: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
  .gallery-side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
