:root {
  --primary: #0f172a;
  --secondary: #c8a96a;
  --accent: #1d4ed8;
  --surface: #ffffff;
  --muted: #64748b;
  --bg: #f8fafc;
  --line: #e2e8f0;
  --success: #0f766e;
  --danger: #b91c1c;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--primary);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 999px;
  background: rgba(200,169,106,.12); color: #8a6a30; font-weight: 700; font-size: .85rem;
}
.topbar {
  background: var(--primary); color: #fff; font-size: .92rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0;
}
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; font-weight: 800; }
.brand img { width: 190px; height: auto; }
.nav-links {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
}
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; gap: .8rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: none; cursor: pointer; padding: .95rem 1.25rem; border-radius: 999px;
  font-weight: 700; transition: .2s ease; font-size: .98rem;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #1f2937; }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--line); }
.btn-full { width: 100%; }
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at top right, rgba(29,78,216,.16), transparent 30%), linear-gradient(135deg, #eef4ff 0%, #ffffff 55%, #f8fafc 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center;
  min-height: 74vh;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.05; margin: 1rem 0; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 58ch; }
.hero-stats, .stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem;
}
.stat-card, .info-card, .card, .panel, .property-card, .product-card, .form-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7);
}
.stat-card { padding: 1.1rem 1.2rem; }
.stat-card strong { display: block; font-size: 1.45rem; }
.hero-visual {
  padding: 1.2rem;
}
.visual-frame {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: white; border-radius: 30px; padding: 1.4rem; min-height: 500px; position: relative; overflow: hidden;
}
.visual-frame::after {
  content: ''; position: absolute; inset: auto -120px -120px auto; width: 280px; height: 280px; border-radius: 50%;
  background: rgba(200,169,106,.2); filter: blur(4px);
}
.mini-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 1rem; margin-bottom: 1rem;
}
.mini-card h4, .mini-card p { margin: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: .3rem 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.section-head p { color: var(--muted); max-width: 70ch; }
.card, .info-card, .panel, .form-card { padding: 1.35rem; }
.icon-chip {
  width: 54px; height: 54px; border-radius: 16px; background: rgba(29,78,216,.08);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: .9rem;
}
.property-card { overflow: hidden; }
.property-media {
  height: 240px; background: linear-gradient(135deg, #cbd5e1, #94a3b8);
  background-size: cover; background-position: center;
  position: relative; padding: 1rem; display: flex; align-items: end;
}
.property-media::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.58));
}
.property-media > * { position: relative; z-index: 1; }
.property-media.sale { background-color: #1d4ed8; }
.property-media.rent { background-color: #0f766e; }
.property-media.land { background-color: #854d0e; }
.listing-type {
  position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.92); color: var(--primary);
  font-size: .82rem; font-weight: 800; padding: .45rem .7rem; border-radius: 999px;
}
.zone-badge {
  position: absolute; top: 1rem; right: 1rem; background: rgba(15,23,42,.72); color: #fff;
  font-size: .78rem; font-weight: 800; padding: .42rem .68rem; border-radius: 999px;
}
.property-body { padding: 1.2rem; }
.meta { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .94rem; }
.price { font-size: 1.7rem; font-weight: 800; margin: .6rem 0; }
.filters {
  display: grid; grid-template-columns: 1.3fr .8fr .8fr auto; gap: 1rem; margin-bottom: 1.35rem;
}
.input, select, textarea {
  width: 100%; padding: .95rem 1rem; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--primary);
}
textarea { min-height: 150px; resize: vertical; }
label { display: block; font-weight: 700; margin-bottom: .5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.notice {
  border-left: 4px solid var(--secondary); background: #fff9ee; padding: .9rem 1rem; border-radius: 14px; color: #7c5e24;
}
.split-hero {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: 1.5rem; align-items: center;
}
.metric { font-size: 2rem; font-weight: 800; margin: 0; }
.footer {
  background: var(--primary); color: #cbd5e1; padding: 28px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .7fr; gap: 1.4rem; }
.footer h4, .footer p { margin-top: 0; }
.page-hero {
  padding: 70px 0 36px; background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: .6rem 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.kpi-card h3, .property-body h3, .product-card h3 { margin: .3rem 0; }
.auth-wrap, .dashboard-wrap {
  min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 42px 0 80px;
}
.auth-card {
  width: min(560px, 100%); background: #fff; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,.7); padding: 2rem;
}
.auth-card.small { width: min(460px, 100%); }
.dashboard-layout {
  display: grid; grid-template-columns: 280px 1fr; min-height: 100vh;
}
.sidebar {
  background: #0b1220; color: #fff; padding: 1.4rem; position: sticky; top: 0; height: 100vh;
}
.sidebar a {
  display: block; padding: .85rem 1rem; border-radius: 14px; color: #cbd5e1; margin-bottom: .4rem;
}
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,.08); color: #fff; }
.dashboard-main { padding: 1.4rem; }
.table-wrap { overflow: auto; }
table {
  width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden;
}
th, td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f8fafc; }
.status {
  display: inline-flex; padding: .35rem .7rem; border-radius: 999px; font-size: .83rem; font-weight: 800;
}
.status.live { background: #dcfce7; color: #166534; }
.status.pending { background: #fef3c7; color: #92400e; }
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); color: #fff; border-radius: 32px; padding: 2rem;
}
.gallery-strip { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:1rem; margin-bottom: 1.5rem; }
.gallery-card { overflow:hidden; border-radius: 22px; background:#fff; border:1px solid var(--line); box-shadow: var(--shadow); }
.gallery-card img { width:100%; height:220px; object-fit:cover; }
.gallery-card .caption { padding:1rem 1.1rem; }
.property-split { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:1.25rem; }
.mortgage-box { background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%); color:#fff; border-radius:30px; padding:2rem; }
.mortgage-box .input, .mortgage-box select, .mortgage-box textarea { background: rgba(255,255,255,.98); }
.empty-state { text-align: center; color: var(--muted); padding: 2rem 1rem; }
@media (max-width: 1024px) {
  .hero-grid, .split-hero, .footer-grid, .dashboard-layout, .grid-4, .property-split { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .hero-stats, .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar { position: relative; height: auto; }
}
@media (max-width: 720px) {
  .nav-links, .nav-actions, .grid-3, .grid-2, .hero-stats, .stats-grid, .form-grid, .filters, .gallery-strip { grid-template-columns: 1fr; display: grid; }
  .navbar .container, .topbar .container, .section-head { align-items: start; flex-direction: column; }
  .brand img { width: 160px; }
  .page-hero, .section { padding-top: 52px; }
}

.property-detail-hero { min-height: 380px; border-radius: 32px; background-size: cover; background-position: center; position: relative; overflow: hidden; margin-bottom: 2rem; }
.property-detail-hero::before { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,23,42,.18), rgba(15,23,42,.72)); }
.property-detail-hero .overlay { position:absolute; inset:auto 0 0 0; padding:2rem; color:#fff; z-index:1; }
.spec-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:1rem; margin:1rem 0 1.5rem; }
.spec-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:1rem; box-shadow: var(--shadow); }
.detail-gallery { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1rem; }
.detail-gallery a { display:block; }
.detail-gallery img { width:100%; height:260px; object-fit:cover; border-radius:22px; }
.inquiry-box { background:#fff; border:1px solid var(--line); border-radius:28px; padding:1.5rem; box-shadow: var(--shadow); }
@media (max-width: 900px) { .spec-grid, .detail-gallery { grid-template-columns: 1fr; } }


/* detail-page-enhancements */
.property-card-interactive { transition: transform .2s ease, box-shadow .2s ease; }
.property-card-interactive:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12); }
.property-media-link { display: block; }
.detail-link:hover { color: var(--accent); }
.card-actions { display:flex; gap:.75rem; flex-wrap:wrap; margin-top:1rem; }
.page-breadcrumb { display:flex; align-items:center; gap:.55rem; color:var(--muted); margin-bottom:1rem; font-size:.95rem; }
.detail-layout { display:grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap:1.25rem; align-items:start; }
.detail-badge { background: rgba(255,255,255,.18); color:#fff; }
.detail-price-row { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; margin-top:1rem; }
.detail-price-row strong { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.detail-price-row span { display:inline-flex; padding:.45rem .8rem; border-radius:999px; background:rgba(255,255,255,.16); }
.detail-copy h2, .detail-copy h3 { margin-top:0; }
.feature-list { margin:0; padding-left:1.2rem; display:grid; gap:.65rem; }
.feature-list li { padding-left:.2rem; }
.detail-gallery a { position:relative; overflow:hidden; border-radius:22px; }
.detail-gallery a::after { content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(15,23,42,.72)); }
.gallery-label { position:absolute; left:1rem; right:1rem; bottom:1rem; color:#fff; z-index:1; font-weight:700; }
.sticky-box { position: sticky; top: 110px; }
.single-column { grid-template-columns: 1fr; }
.single-column textarea { min-height: 140px; }
@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: 1fr; }
  .sticky-box { position: static; }
}

.property-filter-section { padding-top: 12px; }
.filter-panel { padding: 1.5rem; }
.property-filters-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr .9fr .85fr .85fr auto;
  gap: 1rem;
  align-items: end;
}
.filter-actions-wrap {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.filter-summary-bar {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.filter-summary-bar p { margin: 0; color: var(--muted); font-weight: 600; }
.summary-chips { display: flex; gap: .75rem; flex-wrap: wrap; }
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.section-head.compact { margin-bottom: 1rem; }
@media (max-width: 1180px) {
  .property-filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .property-filters-grid { grid-template-columns: 1fr; }
  .filter-actions-wrap { width: 100%; }
  .filter-actions-wrap .btn { width: 100%; }
}


/* premium-responsive-upgrade */
:root {
  --primary-soft: #16233f;
  --secondary-soft: #f5e7c6;
  --card-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
  --card-shadow-hover: 0 28px 64px rgba(15, 23, 42, 0.16);
}
html, body { overflow-x: clip; }
body {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(200, 169, 106, 0.10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f8fafc 38%, #f6f8fb 100%);
  color: #0f172a;
}
.container { width: min(1240px, calc(100% - 2rem)); }
.topbar {
  background: linear-gradient(90deg, #0f172a 0%, #16233f 58%, #1f3a6d 100%);
  color: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container {
  min-height: 46px;
  row-gap: .45rem;
}
.navbar {
  box-shadow: 0 16px 48px rgba(15,23,42,.06);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
}
.navbar .container {
  position: relative;
  min-height: 88px;
  gap: 1.2rem;
}
.brand img {
  width: clamp(150px, 14vw, 210px);
  filter: drop-shadow(0 10px 22px rgba(15,23,42,.08));
}
.nav-links {
  gap: 1.25rem;
  justify-content: center;
}
.nav-links a {
  position: relative;
  padding: .5rem 0;
  color: #475569;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -.15rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-actions { gap: .75rem; }
.btn {
  min-height: 50px;
  padding: .9rem 1.25rem;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}
.btn-primary {
  background: linear-gradient(135deg, #0f172a 0%, #1f3a6d 100%);
}
.btn-secondary {
  background: linear-gradient(135deg, #f0d59b 0%, #c8a96a 100%);
  color: #111827;
}
.btn-outline {
  background: rgba(255,255,255,.86);
  border-color: rgba(148,163,184,.35);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15,23,42,.10);
}
.hero {
  padding: 1.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 15% 18%, rgba(200,169,106,.18), transparent 22%),
    radial-gradient(circle at 86% 16%, rgba(29,78,216,.16), transparent 24%),
    linear-gradient(180deg, #f6faff 0%, #ffffff 44%, #f8fafc 100%);
}
.hero-grid {
  min-height: auto;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.hero h1 {
  max-width: 11ch;
  letter-spacing: -.04em;
}
.hero p,
.page-hero p,
.section-head p,
.panel p,
.card p,
.info-card p,
.form-card p { color: #516071; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 42px;
  background:
    radial-gradient(circle at right top, rgba(29,78,216,.12), transparent 25%),
    linear-gradient(180deg, #f4f8ff 0%, #f8fafc 100%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(200,169,106,.12);
  filter: blur(8px);
}
.badge {
  border: 1px solid rgba(200,169,106,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.card, .info-card, .panel, .form-card, .property-card, .product-card, .stat-card, .spec-card {
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226,232,240,.85);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
}
.card:hover,
.info-card:hover,
.property-card:hover,
.product-card:hover,
.gallery-card:hover,
.spec-card:hover {
  box-shadow: var(--card-shadow-hover);
}
.card,
.info-card,
.panel,
.form-card { padding: clamp(1.2rem, 2vw, 1.6rem); }
.stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}
.stat-card span { color: #64748b; }
.visual-frame {
  min-height: 100%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 32px 60px rgba(15,23,42,.18);
  background: linear-gradient(160deg, #0e1729 0%, #18284b 52%, #213e74 100%);
}
.mini-card {
  background: rgba(255,255,255,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.section { padding: clamp(56px, 7vw, 82px) 0; }
.section-sm { padding: clamp(34px, 5vw, 54px) 0; }
.section-head,
.split-hero,
.property-split,
.gallery-strip,
.grid-2,
.grid-3,
.grid-4,
.hero-stats,
.stats-grid,
.detail-layout,
.spec-grid,
.detail-gallery,
.footer-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}
.icon-chip {
  background: linear-gradient(135deg, rgba(29,78,216,.08), rgba(200,169,106,.18));
  border: 1px solid rgba(29,78,216,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.property-card,
.gallery-card,
.product-card,
.spec-card,
.inquiry-box { overflow: hidden; }
.property-media { height: clamp(220px, 28vw, 260px); }
.property-body { padding: 1.25rem; }
.price {
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  letter-spacing: -.03em;
}
.gallery-card {
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery-card:hover { transform: translateY(-4px); }
.gallery-card img { height: clamp(200px, 26vw, 250px); }
.cta-banner {
  background: linear-gradient(135deg, #0d172b 0%, #173469 55%, #c8a96a 160%);
  box-shadow: 0 26px 56px rgba(15,23,42,.16);
  border: 1px solid rgba(255,255,255,.08);
}
.footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, #0e1728 0%, #111b30 100%);
}
.footer a { color: #e5edf8; }
.footer p { color: #b6c4d9; }
.property-filter-section .panel,
.mortgage-box,
.inquiry-box {
  box-shadow: 0 24px 60px rgba(15,23,42,.12);
}
.detail-gallery img {
  height: clamp(220px, 26vw, 280px);
}
.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,.28);
  background: rgba(255,255,255,.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: transform .2s ease, opacity .2s ease;
}
.navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.form-grid,
.property-filters-grid { gap: 1rem; }
.input, select, textarea {
  min-height: 54px;
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.9);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
textarea { min-height: 160px; }
.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(29,78,216,.45);
  box-shadow: 0 0 0 4px rgba(29,78,216,.12);
}
@media (max-width: 1180px) {
  .navbar .container {
    flex-wrap: wrap;
    min-height: 78px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: 14ch; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    padding: .8rem 0;
  }
  .navbar .container {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
  .nav-toggle { display: inline-flex; }
  .nav-links,
  .nav-actions {
    display: none;
    width: 100%;
  }
  .navbar.nav-open .nav-links,
  .navbar.nav-open .nav-actions {
    display: grid;
  }
  .navbar.nav-open .nav-links {
    grid-column: 1 / -1;
    order: 4;
    gap: .25rem;
    padding: .8rem;
    margin-top: .65rem;
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(226,232,240,.95);
    border-radius: 22px;
    box-shadow: 0 22px 50px rgba(15,23,42,.12);
  }
  .navbar.nav-open .nav-actions {
    grid-column: 1 / -1;
    order: 5;
    margin-top: .75rem;
    grid-template-columns: 1fr 1fr;
  }
  .nav-links a {
    padding: .85rem .95rem;
    border-radius: 14px;
    background: rgba(248,250,252,.9);
  }
  .nav-links a::after { display: none; }
  .nav-links a.active,
  .nav-links a:hover {
    background: rgba(29,78,216,.08);
  }
  .hero-stats, .stats-grid, .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid,
  .split-hero,
  .property-split,
  .detail-layout { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-box { position: static; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 1rem, 1240px); }
  .navbar .container {
    grid-template-columns: 1fr auto;
  }
  .brand { min-width: 0; }
  .nav-toggle { justify-self: end; }
  .hero,
  .page-hero { padding-top: 54px; }
  .hero h1,
  .page-hero h1 { max-width: none; }
  .hero-stats,
  .stats-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .gallery-strip,
  .detail-gallery,
  .spec-grid,
  .footer-grid,
  .property-split,
  .property-filters-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .nav-actions,
  .card-actions,
  .filter-actions-wrap {
    grid-template-columns: 1fr;
  }
  .nav-actions .btn,
  .card-actions .btn,
  .filter-actions-wrap .btn,
  .btn-full,
  .cta-banner .btn {
    width: 100%;
  }
  .card-actions,
  .nav-actions,
  .filter-actions-wrap { display: grid; }
  .section-head { align-items: flex-start; }
  .section-head .btn { width: 100%; }
  .detail-price-row { align-items: flex-start; }
  .property-media { height: 220px; }
  .gallery-card img,
  .detail-gallery img { height: 220px; }
  .cta-banner { padding: 1.35rem; border-radius: 26px; }
  .footer { padding-bottom: 110px; }
}
@media (max-width: 520px) {
  body { font-size: 15px; }
  .navbar .container { min-height: 72px; }
  .brand img { width: 142px; }
  .btn { min-height: 48px; padding: .85rem 1rem; font-size: .95rem; }
  .page-hero { padding: 68px 0 34px; }
  .form-card, .panel, .card, .info-card, .property-body, .auth-card { padding: 1rem; }
  .stat-card { padding: 1rem; }
  .listing-type, .zone-badge { font-size: .74rem; }
}


/* premium-home-slider */
.premium-hero { padding-top: 2rem; }
.premium-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .98fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.hero-copy-panel,
.luxury-slider-card {
  position: relative;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(15,23,42,.10);
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.hero-copy-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.hero-copy-panel::after {
  content: '';
  position: absolute;
  inset: auto -90px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(200,169,106,.12);
  filter: blur(8px);
}
.hero-copy-panel h1 {
  margin: 1rem 0 1.1rem;
  font-size: clamp(2.5rem, 5vw, 5.1rem);
  line-height: .98;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.4rem;
}
.hero-cta-row.compact-row { margin-top: 1rem; }
.premium-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
  position: relative;
  z-index: 1;
}
.trust-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,248,252,.92));
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 18px 38px rgba(15,23,42,.08);
}
.trust-card strong,
.market-stat-card strong { display: block; margin-bottom: .35rem; font-size: 1rem; }
.trust-card span,
.market-stat-card span,
.market-stat-card p { color: #64748b; }
.hero-slider-shell { min-height: 100%; }
.luxury-slider-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,252,.96));
}
.slider-headline-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.slider-headline-row h2 { margin: .35rem 0 0; font-size: clamp(1.5rem, 2vw, 2rem); }
.slider-controls { display: flex; gap: .65rem; }
.slider-arrow {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(255,255,255,.92);
  color: var(--primary);
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(15,23,42,.08);
}
.luxury-slider-stage {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  min-height: 500px;
  box-shadow: 0 26px 50px rgba(15,23,42,.18);
}
.luxury-slider-track { position: relative; min-height: 500px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
  transform: scale(1.02);
  background-size: cover;
  background-position: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.12), rgba(15,23,42,.76));
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.hero-slide-content {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  top: 1.2rem;
  z-index: 1;
  color: #fff;
}
.hero-slide-content h3 {
  margin: .75rem 0 .35rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.05;
  max-width: 11ch;
}
.hero-slide-content p { margin: 0; color: rgba(255,255,255,.85); }
.hero-slide-badge,
.slider-badge,
.inverse-badge {
  background: rgba(255,255,255,.16);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}
.slider-overlay-card {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
}
.slider-overlay-card .eyebrow {
  margin: 0 0 .55rem;
  color: #8a6a30;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .76rem;
}
.slider-meta-top,
.slider-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: center;
}
.slider-meta-top { margin-bottom: .5rem; }
.slider-price {
  display: inline-flex;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}
.slider-location,
.slider-feature-row span { color: #64748b; }
.slider-overlay-card h3 {
  margin: 0 0 .5rem;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}
.slider-overlay-card p { margin: 0; color: #516071; }
.slider-feature-row { margin-top: .85rem; }
.slider-feature-row span {
  padding: .48rem .8rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(226,232,240,.95);
  font-weight: 600;
}
.slider-thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.slider-thumb {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: .75rem;
  align-items: center;
  padding: .5rem;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.95);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 24px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.slider-thumb:hover,
.slider-thumb.active {
  transform: translateY(-2px);
  border-color: rgba(29,78,216,.28);
  box-shadow: 0 18px 32px rgba(15,23,42,.12);
}
.slider-thumb img {
  width: 70px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
}
.slider-thumb span {
  font-weight: 700;
  font-size: .9rem;
  color: var(--primary);
  line-height: 1.25;
}
.market-overview-section { padding-top: .5rem; }
.market-overview-grid { gap: 1rem; }
.market-stat-card {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}
.market-stat-card span {
  display: inline-flex;
  margin-bottom: .55rem;
  font-weight: 700;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.featured-collection-section .property-card { background: rgba(255,255,255,.96); }
.luxury-service-band .luxury-info-card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
}
.premium-dual-callout .panel {
  border-radius: 30px;
  overflow: hidden;
}
.luxury-panel-dark {
  background: linear-gradient(145deg, #0d172b 0%, #173469 60%, #28549c 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 54px rgba(15,23,42,.18);
}
.luxury-panel-dark p { color: rgba(255,255,255,.8); }
.luxury-panel-light {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
}
@media (max-width: 1180px) {
  .premium-hero-grid { grid-template-columns: 1fr; }
  .luxury-slider-stage,
  .luxury-slider-track { min-height: 480px; }
  .slider-thumbnail-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-trust-strip,
  .market-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-copy-panel h1 { font-size: clamp(2.2rem, 7vw, 3.7rem); }
  .slider-thumbnail-row,
  .premium-trust-strip,
  .market-overview-grid { grid-template-columns: 1fr; }
  .slider-thumb { grid-template-columns: 64px 1fr; }
  .slider-thumb img { width: 64px; height: 58px; }
}
@media (max-width: 720px) {
  .premium-hero { padding-top: 1rem; }
  .hero-copy-panel,
  .luxury-slider-card { border-radius: 26px; }
  .luxury-slider-stage,
  .luxury-slider-track { min-height: 430px; }
  .hero-slide-content h3 { max-width: none; }
  .slider-overlay-card {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
    padding: 1rem;
  }
  .hero-cta-row { display: grid; grid-template-columns: 1fr; }
  .slider-controls { width: 100%; justify-content: flex-end; }
  .slider-headline-row { flex-direction: column; align-items: flex-start; }
  .slider-meta-top,
  .slider-feature-row { gap: .5rem; }
}


/* polish-refresh */
.topbar {
  font-size: .88rem;
}
.topbar .container a {
  color: #f8fafc;
  font-weight: 700;
}
.mobile-menu-link {
  display: none;
}
.desktop-auth-actions {
  display: flex;
}
.brand img {
  width: clamp(150px, 13vw, 210px);
  height: auto;
}
.hero-copy-panel,
.luxury-slider-card,
.form-card,
.panel,
.card,
.info-card,
.property-card,
.product-card,
.auth-card,
.market-stat-card {
  border-radius: 28px;
}
.hero-copy-panel h1 {
  max-width: 12ch;
}
.hero-copy-panel p,
.slider-overlay-card p,
.market-stat-card p,
.luxury-panel-light p,
.luxury-panel-dark p {
  font-size: 1rem;
}
.luxury-slider-stage,
.luxury-slider-track {
  min-height: 540px;
}
.slider-overlay-card {
  border: 1px solid rgba(226,232,240,.92);
}
.property-card .property-body h3,
.info-card h3,
.card h3,
.panel h2,
.form-card h2 {
  letter-spacing: -.02em;
}
.notice {
  border-left-width: 3px;
}
.footer img,
.navbar .brand img,
.sidebar img {
  background: transparent;
}
@media (max-width: 980px) {
  .desktop-auth-actions {
    display: none !important;
  }
  .mobile-menu-link {
    display: block;
  }
  .navbar.nav-open .nav-links {
    padding-bottom: 1rem;
  }
}
@media (max-width: 720px) {
  .topbar .container {
    font-size: .82rem;
  }
  .hero-copy-panel h1 {
    max-width: none;
  }
  .luxury-slider-stage,
  .luxury-slider-track {
    min-height: 440px;
  }
}


/* final-brand-fix */
.brand img {
  width: clamp(168px, 16vw, 250px);
  height: auto;
  object-fit: contain;
}
.footer img,
.sidebar img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.slider-thumbnail-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.slider-thumb {
  grid-template-columns: 84px 1fr;
  align-items: center;
  min-height: 94px;
}
.slider-thumb img {
  width: 84px;
  height: 64px;
  object-fit: cover;
}
.slider-thumb .thumb-copy {
  min-width: 0;
  display: grid;
  gap: .2rem;
}
.slider-thumb .thumb-copy strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.28;
  color: var(--primary);
}
.slider-thumb .thumb-copy small {
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 1400px) {
  .premium-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 1.05fr);
  }
}
@media (max-width: 1180px) {
  .slider-thumbnail-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .brand img {
    width: 170px;
  }
  .slider-thumbnail-row {
    grid-template-columns: 1fr;
  }
  .slider-thumb {
    grid-template-columns: 72px 1fr;
    min-height: 84px;
  }
  .slider-thumb img {
    width: 72px;
    height: 56px;
  }
}


/* admin-editor-upgrade */
.admin-form-grid textarea { min-height: 120px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.property-editor-note { margin: .35rem 0 0; color: #64748b; }
.table-thumb {
  width: 88px;
  height: 62px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,.9);
  background: #eef2f7;
}
.btn-table-action {
  min-height: 40px;
  padding: .65rem .9rem;
  box-shadow: none;
}

/* homepage-desktop-refresh */
.signature-grid,
#featuredPropertyGrid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 1.2rem;
}
.signature-property-card {
  min-height: 360px;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 30px 60px rgba(15,23,42,.14);
  border: 1px solid rgba(226,232,240,.8);
}
.signature-property-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,15,30,.10), rgba(8,15,30,.78));
}
.signature-property-card-large {
  min-height: 420px;
}
.signature-property-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  color: #fff;
  z-index: 1;
}
.signature-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
}
.signature-property-card h3 {
  margin: .9rem 0 .35rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.08;
}
.signature-property-card p {
  margin: 0;
  color: rgba(255,255,255,.84);
}
.signature-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1rem 0 1.15rem;
}
.signature-meta-row span {
  display: inline-flex;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 600;
  font-size: .86rem;
}
@media (max-width: 1180px) {
  #featuredPropertyGrid {
    grid-template-columns: 1fr 1fr;
  }
  .signature-property-card-large {
    grid-column: span 2;
  }
}
@media (max-width: 760px) {
  .admin-form-actions { grid-template-columns: 1fr; display: grid; }
  .admin-form-actions .btn { width: 100%; }
  #featuredPropertyGrid {
    grid-template-columns: 1fr;
  }
  .signature-property-card-large {
    grid-column: auto;
  }
}


/* admin-portal-editability-upgrade */
.admin-media-panel {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.95));
}
.admin-media-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .9rem;
}
.admin-media-panel__head h4 {
  margin: 0;
  font-size: 1rem;
}
.admin-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1rem;
}
.admin-preview-label {
  display: inline-block;
  margin-bottom: .55rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.admin-preview-frame {
  min-height: 250px;
  border-radius: 22px;
  border: 1px dashed rgba(148,163,184,.65);
  background: #eef2f7;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  padding: 1rem;
  overflow: hidden;
}
.admin-preview-frame img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 18px;
}
.admin-preview-frame span {
  display: block;
  margin-top: .75rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.admin-gallery-card,
.admin-gallery-empty {
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  overflow: hidden;
}
.admin-gallery-card img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  display: block;
}
.admin-gallery-card figcaption,
.admin-gallery-empty {
  padding: .7rem .8rem;
  color: #475569;
  font-size: .88rem;
}
.admin-gallery-empty {
  min-height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
}
.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.btn-table-delete {
  border-color: rgba(239,68,68,.25);
  color: #b91c1c;
}
.btn-table-delete:hover {
  background: rgba(254,226,226,.7);
  color: #991b1b;
}
@media (max-width: 900px) {
  .admin-preview-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .admin-gallery-preview {
    grid-template-columns: 1fr;
  }
}


/* luxury-redesign-v6 */
.homepage-redesign .premium-hero {
  padding-top: clamp(1.4rem, 2vw, 2.4rem);
}
.homepage-redesign .hero-copy-panel {
  padding: clamp(1.5rem, 2.4vw, 2.4rem);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
}
.hero-copy-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
}
.hero-eyebrow {
  color: #64748b;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-editorial-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.1rem 0 1.25rem;
}
.hero-kpi-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 14px 32px rgba(15,23,42,.08);
}
.hero-kpi-card strong,
.hero-kpi-card span { display: block; }
.hero-kpi-card strong { margin-bottom: .3rem; font-size: .98rem; }
.hero-kpi-card span { color: #64748b; font-size: .92rem; line-height: 1.5; }
.hero-curation-note {
  margin-top: 1.1rem;
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(32,52,91,.94));
  color: #e5eefc;
}
.hero-curation-note p { margin: .4rem 0 0; color: rgba(255,255,255,.82); }
.hero-curation-note__label {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c8a96a;
}
.market-overview-grid { gap: 1rem; }
.market-stat-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,247,250,.94));
  border: 1px solid rgba(226,232,240,.88);
}
.featured-collection-section .section-head,
.property-filter-section .section-head,
#property-table .section-head.compact,
#property-form .section-head.compact {
  align-items: end;
}
.featured-collection-section .section-head p,
.property-filter-section .section-head p { max-width: 60ch; }
.homepage-redesign .luxury-service-band .luxury-info-card,
.homepage-redesign .premium-dual-callout .panel {
  border-radius: 30px;
}

.properties-page .listing-page-hero {
  padding-bottom: 1.5rem;
}
.properties-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 1.2rem;
  align-items: stretch;
}
.properties-hero-actions { margin-top: 1.15rem; }
.properties-hero-aside {
  display: grid;
  gap: .85rem;
}
.listing-snapshot-card {
  padding: 1.1rem 1.15rem;
  border-radius: 26px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 20px 48px rgba(15,23,42,.08);
}
.listing-snapshot-card span,
.detail-overview-card span {
  display: block;
  margin-bottom: .35rem;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.listing-snapshot-card strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.02rem;
}
.listing-snapshot-card p { margin: 0; color: #516071; }
.properties-page .gallery-card,
.properties-page .property-card,
.properties-page .filter-panel,
.properties-page .mortgage-box {
  border-radius: 28px;
}
.properties-page .filter-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
  border: 1px solid rgba(226,232,240,.9);
}
.properties-page .property-card .property-body {
  padding: 1.1rem 1.15rem 1.2rem;
}
.properties-page .property-media {
  min-height: 250px;
}

.property-detail-shell { padding-top: .2rem; }
.refined-detail-hero {
  min-height: clamp(420px, 54vw, 620px);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(15,23,42,.18);
}
.refined-detail-hero::before {
  background: linear-gradient(180deg, rgba(10,17,32,.12), rgba(10,17,32,.72));
}
.detail-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .9rem;
}
.detail-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.detail-hero-subcopy {
  max-width: 66ch;
  color: rgba(255,255,255,.84);
}
.detail-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 1rem 0 1.15rem;
}
.detail-hero-metrics span {
  display: inline-flex;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 600;
}
.btn-light-outline {
  border-color: rgba(255,255,255,.28);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.btn-light-outline:hover { background: rgba(255,255,255,.14); }
.detail-overview-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.35rem;
}
.detail-overview-card {
  padding: 1rem 1.05rem;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
}
.detail-overview-card strong { font-size: 1rem; }
.luxury-detail-layout {
  gap: 1.35rem;
}
.detail-main-stack,
.detail-sidebar-stack {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}
.detail-story-panel,
.detail-gallery-panel,
.detail-contact-panel,
.luxury-inquiry-box {
  border-radius: 30px;
}
.detail-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 1rem;
  align-items: start;
}
.detail-summary-card {
  padding: 1.1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248,250,252,.98), rgba(255,255,255,.98));
  border: 1px solid rgba(226,232,240,.9);
}
.detail-summary-card__label {
  display: inline-block;
  margin-bottom: .55rem;
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.refined-spec-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.detail-gallery a {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(226,232,240,.88);
  box-shadow: 0 18px 44px rgba(15,23,42,.08);
}
.detail-gallery a:first-child {
  grid-column: 1 / -1;
}
.detail-gallery img {
  width: 100%;
  height: clamp(220px, 30vw, 340px);
  object-fit: cover;
}
.detail-gallery a:first-child img {
  height: clamp(280px, 42vw, 440px);
}
.gallery-label {
  display: block;
  padding: .8rem .95rem 1rem;
  color: #516071;
  font-size: .92rem;
}
.luxury-inquiry-box {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,247,250,.96));
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
}
.compact-feature-list li { margin-bottom: .55rem; }

.admin-redesign {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef3f9 100%);
}
.admin-redesign .dashboard-layout {
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.2rem;
}
.admin-redesign .sidebar {
  position: sticky;
  top: 1rem;
  align-self: start;
  height: calc(100vh - 2rem);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(24,43,76,.96));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 26px 60px rgba(15,23,42,.18);
}
.admin-brand-block p,
.admin-sidebar-note span { color: rgba(255,255,255,.72); }
.admin-brand-tag {
  display: inline-flex;
  margin-bottom: .65rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-sidebar-note {
  margin-top: auto;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-note strong,
.admin-sidebar-note span { display: block; }
.admin-sidebar-note strong { margin-bottom: .35rem; color: #fff; }
.admin-redesign .dashboard-main { padding: 0; }
.admin-top-banner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.3rem, 2.2vw, 2rem);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,244,249,.96));
  border: 1px solid rgba(226,232,240,.92);
  box-shadow: 0 24px 60px rgba(15,23,42,.10);
  margin-bottom: 1rem;
}
.admin-top-banner p { max-width: 65ch; margin-bottom: 0; }
.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  justify-content: flex-end;
}
.admin-metrics-grid { margin-bottom: 1rem; }
.admin-metric-card {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,249,252,.96));
  border: 1px solid rgba(226,232,240,.88);
}
.admin-metric-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(15,23,42,.95), rgba(34,58,99,.94));
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: .75rem;
}
.admin-redesign .panel {
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,252,.97));
}
.admin-redesign .table-wrap {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.88);
}
.admin-redesign table thead th {
  background: #f7fafc;
}
.admin-redesign .admin-media-panel,
.admin-redesign .admin-preview-frame,
.admin-redesign .admin-gallery-card,
.admin-redesign .admin-gallery-empty {
  border-radius: 24px;
}
@media (max-width: 1180px) {
  .hero-editorial-kpis,
  .detail-overview-band,
  .refined-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .properties-hero-shell,
  .detail-story-grid,
  .admin-top-banner {
    grid-template-columns: 1fr;
    display: grid;
  }
  .admin-quick-actions { justify-content: flex-start; }
}
@media (max-width: 980px) {
  .admin-redesign .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .admin-redesign .sidebar {
    position: relative;
    top: auto;
    height: auto;
  }
}
@media (max-width: 760px) {
  .hero-editorial-kpis,
  .detail-overview-band,
  .refined-spec-grid,
  .detail-gallery,
  .properties-hero-shell {
    grid-template-columns: 1fr;
  }
  .detail-gallery a:first-child { grid-column: auto; }
  .detail-price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
  }
  .hero-copy-topline { align-items: flex-start; }
  .properties-page .property-media { min-height: 220px; }
}


/* auth-header-visibility-fix */
.nav-actions .btn {
  min-height: 46px;
  padding: .78rem 1.05rem;
  white-space: nowrap;
}
.navbar .nav-actions {
  justify-content: flex-end;
}
@media (max-width: 1120px) and (min-width: 981px) {
  .nav-actions .btn {
    padding: .72rem .9rem;
    font-size: .94rem;
  }
}
@media (max-width: 980px) {
  .mobile-menu-link {
    display: block;
    width: 100%;
  }
}


/* customer-dashboard-functional-upgrade */
.btn-save-property.is-saved {
  background: linear-gradient(135deg, #f0d59b 0%, #c8a96a 100%);
  border-color: rgba(200,169,106,.45);
  color: #111827;
}
.btn-save-property-light.is-saved {
  background: rgba(240,213,155,.92);
  color: #111827;
  border-color: rgba(255,255,255,.24);
}
.dashboard-shell {
  display: grid;
  gap: 1.5rem;
}
.dashboard-sidebar-brand {
  display: grid;
  gap: .85rem;
  margin-bottom: 1.25rem;
}
.dashboard-sidebar-brand img {
  width: 180px;
  max-width: 100%;
}
.dashboard-customer-chip {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem .95rem;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  margin: .5rem 0 1rem;
}
.dashboard-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: linear-gradient(135deg, #f0d59b 0%, #c8a96a 100%);
  color: #111827;
}
.dashboard-hero-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: 30px;
  background: linear-gradient(135deg, #0f172a 0%, #1d3766 62%, #274a86 100%);
  color: #fff;
  box-shadow: 0 28px 60px rgba(15,23,42,.18);
}
.dashboard-hero-card p,
.dashboard-hero-card .badge { position: relative; z-index: 1; }
.dashboard-hero-card .badge {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.16);
}
.dashboard-hero-card h1 {
  margin: .8rem 0 .65rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}
.dashboard-hero-actions {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.dashboard-hero-actions .btn-outline {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.2);
}
.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-stat-card {
  padding: 1.2rem;
  border-radius: 24px;
}
.dashboard-stat-card p { margin: 0; }
.dashboard-stat-card .metric { margin-top: .4rem; }
.dashboard-section-card {
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-radius: 28px;
}
.dashboard-section-card .section-head { margin-bottom: 1rem; }
.dashboard-saved-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-message-list {
  display: grid;
  gap: 1rem;
}
.dashboard-message-card {
  padding: 1rem 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.96);
  box-shadow: var(--card-shadow);
}
.dashboard-message-card.success {
  border-color: rgba(15,118,110,.22);
  background: linear-gradient(180deg, rgba(240,253,250,.98), rgba(255,255,255,.98));
}
.dashboard-message-card__meta {
  margin: 0 0 .35rem;
  color: #64748b;
  font-size: .88rem;
}
.dashboard-message-card h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
}
.dashboard-message-card p { margin: 0; }
.dashboard-empty {
  text-align: center;
}
.dashboard-table th,
.dashboard-table td { vertical-align: top; }
.dashboard-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dashboard-account-grid .full { grid-column: 1 / -1; }
.dashboard-access-gate {
  max-width: 680px;
  margin: 0 auto;
}
.dashboard-access-gate .card { padding: 2rem; border-radius: 30px; }
@media (max-width: 980px) {
  .dashboard-stat-grid,
  .dashboard-saved-grid,
  .dashboard-account-grid { grid-template-columns: 1fr; }
}
