/* =====================================================================
   Real Estate theme
   ---------------------------------------------------------------------
   Brand colours come from Admin > Settings > Branding (CSS variables).
   Typography: Bricolage Grotesque (display) + Manrope (text), self-hosted.
   Your own overrides: Admin > Settings > Custom code > Custom CSS.
   ===================================================================== */
:root {
  --primary: #0b1f3a; --primary-dark: #07152a; --primary-soft: #e9ecf1;
  --secondary: #1f5daa; --secondary-dark: #194a88; --secondary-soft: #e8eff7;
  --accent: #c8a75d; --accent-dark: #967d45; --accent-soft: #f4eddc;
  --bg: #f8f7f3; --card: #ffffff; --text: #17202a; --muted: #667085;
  --success: #16855b; --success-soft: #e3f2ec; --line: #e5e7eb;
  --danger: #b42318; --danger-soft: #fdecea; --warning: #b54708; --warning-soft: #fef4e6;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(11, 31, 58, .06);
  --shadow: 0 2px 4px rgba(11, 31, 58, .04), 0 12px 32px -12px rgba(11, 31, 58, .16);
  --shadow-lg: 0 30px 70px -24px rgba(11, 31, 58, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 78px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-feature-settings: "ss01", "cv11"; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--secondary-dark); }
::selection { background: var(--primary); color: #fff; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--primary); font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.18rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; z-index: 300; border-radius: 8px; }
.skip-link:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; display: block; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary); margin-bottom: 12px; display: block; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .93rem; cursor: pointer; text-decoration: none; transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--secondary); color: #fff; }
.btn-blue { background: var(--secondary); color: #fff; }
.btn-blue:hover { background: var(--primary); color: #fff; }
.btn-gold, .btn-accent { background: var(--accent); color: var(--primary); }
.btn-gold:hover, .btn-accent:hover { background: #d6b874; color: var(--primary); }
.btn-outline { background: var(--card); border-color: #d9dce1; color: var(--primary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn-light:hover { background: #fff; color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--accent); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #912018; color: #fff; }
.btn-ghost { background: transparent; color: var(--secondary); padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--secondary-soft); }
.btn-lg { padding: 17px 28px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 9px 15px; font-size: .84rem; border-radius: 9px; }
.btn-xs { padding: 6px 11px; font-size: .78rem; border-radius: 7px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-ghost.is-loading::after, .btn-gold.is-loading::after, .btn-white.is-loading::after { border-color: rgba(11, 31, 58, .2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: .95rem; }
.link-arrow .arrow { transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--secondary); }
.link-arrow:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(248, 247, 243, .88); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
.site-header.scrolled { border-color: rgba(11, 31, 58, .08); box-shadow: 0 12px 30px -24px rgba(11, 31, 58, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--primary); letter-spacing: -.03em; }
.logo:hover { color: var(--primary); }
.logo img:not(.logo-img) { max-height: 44px; width: auto; }
.logo-mark { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--primary); color: #fff; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > a { position: relative; padding: 9px 13px; color: var(--text); font-weight: 600; font-size: .93rem; border-radius: 8px; transition: color .2s var(--ease), background .2s var(--ease); }
.main-nav > a:hover { background: rgba(11, 31, 58, .05); color: var(--primary); }
.main-nav > a.active { color: var(--primary); }
.main-nav > a.active::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--secondary); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-link-plain { padding: 9px 12px; color: var(--primary); font-weight: 700; font-size: .93rem; border-radius: 8px; }
.nav-link-plain:hover { background: rgba(11, 31, 58, .05); color: var(--primary); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--primary); }
.home-hero-page .site-header { position: fixed; left: 0; right: 0; }
.home-hero-page .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home-hero-page .site-header:not(.scrolled) .logo, .home-hero-page .site-header:not(.scrolled) .main-nav > a, .home-hero-page .site-header:not(.scrolled) .nav-link-plain, .home-hero-page .site-header:not(.scrolled) .nav-toggle { color: #fff; }
.home-hero-page .site-header:not(.scrolled) .main-nav > a:hover, .home-hero-page .site-header:not(.scrolled) .nav-link-plain:hover { background: rgba(255, 255, 255, .1); }
.home-hero-page .site-header:not(.scrolled) .user-btn { color: #fff; border-color: rgba(255, 255, 255, .25); }
.home-hero-page .site-header:not(.scrolled) .btn-primary { background: #fff; color: var(--primary); }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid #d9dce1; border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; font: inherit; font-weight: 700; color: var(--primary); }
.dropdown { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); min-width: 230px; padding: 8px; z-index: 70; animation: pop .18s var(--ease); }
.dropdown.open { display: block; }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 10px 14px; color: var(--text); border-radius: 9px; background: none; border: 0; font: inherit; font-size: .92rem; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg); color: var(--primary); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.avatar { border-radius: 50%; object-fit: cover; }
.avatar-initials { display: inline-grid; place-items: center; background: var(--secondary); color: #fff; font-weight: 800; border-radius: 50%; font-family: var(--font-display); }
.maint-bar { background: var(--accent-soft); color: var(--primary); text-align: center; padding: 8px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; padding: calc(var(--header-h) + 64px) 0 96px; overflow: hidden; background: var(--primary); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 600px at 78% 30%, rgba(31, 93, 170, .55), transparent 65%), radial-gradient(600px 400px at 0% 100%, rgba(31, 93, 170, .25), transparent 70%); z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .9; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: 1; letter-spacing: -.032em; margin-bottom: 26px; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.16rem; color: rgba(255, 255, 255, .72); max-width: 560px; margin-bottom: 34px; line-height: 1.6; }
.search-box { background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); max-width: 760px; color: var(--text); }
.search-tabs { display: inline-flex; gap: 2px; padding: 4px; margin: 2px 2px 10px; background: var(--bg); border-radius: 10px; }
.search-tabs label { margin: 0; position: relative; }
.search-tabs input { position: absolute; opacity: 0; }
.search-tabs span { display: inline-block; padding: 7px 16px; border-radius: 8px; color: var(--muted); font-weight: 700; font-size: .86rem; cursor: pointer; transition: all .2s var(--ease); }
.search-tabs input:checked + span { background: #fff; color: var(--primary); box-shadow: var(--shadow-xs); }
.search-tabs input:focus-visible + span { outline: 2px solid var(--secondary); }
.search-fields { display: grid; grid-template-columns: 1.7fr 1fr 1fr auto; gap: 8px; }
.search-fields input, .search-fields input[type=search], .search-fields select { height: 54px; border-color: var(--line); background-color: var(--bg); border-radius: 11px; }
.search-fields .btn { height: 54px; padding: 0 26px; border-radius: 11px; background: var(--secondary); }
.search-fields .btn:hover { background: var(--primary); }
.hero-proof { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-size: .92rem; }
.hero-proof strong { color: #fff; font-weight: 800; }
.hero-proof .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero-avatars { display: flex; }
.hero-avatars > * { margin-left: -10px; box-shadow: 0 0 0 3px var(--primary); }
.hero-avatars > *:first-child { margin-left: 0; }
/* Collage */
.hero-art { position: relative; height: 560px; }
.hero-art .shot { position: absolute; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.hero-art .shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .shot-a { inset: 0 60px 90px 0; }
.hero-art .shot-b { width: 46%; height: 42%; right: 0; bottom: 0; border: 6px solid var(--primary); }
.float-card { position: absolute; background: rgba(255, 255, 255, .97); color: var(--text); border-radius: 16px; padding: 14px 16px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); display: flex; gap: 12px; align-items: center; animation: bob 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.float-card strong { font-family: var(--font-display); color: var(--primary); font-size: 1.05rem; letter-spacing: -.02em; }
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); flex-shrink: 0; }
.float-1 { left: -34px; top: 38px; }
.float-2 { left: 24px; bottom: 26px; animation-delay: -3s; }
.float-1 .fc-icon { background: var(--secondary-soft); color: var(--secondary); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* City ticker */
.ticker { background: var(--primary-dark); color: rgba(255, 255, 255, .9); overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.ticker a:hover { color: #fff; }
.ticker a small { font-family: var(--font); font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.ticker a::after { content: ""; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--card); }
.section-navy { background: var(--primary); color: rgba(255, 255, 255, .72); position: relative; isolation: isolate; }
.section-navy::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); z-index: -1; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head p { margin: 12px 0 0; color: var(--muted); max-width: 540px; font-size: 1.04rem; }
.page-head { padding: 56px 0 40px; position: relative; border-bottom: 1px solid var(--line); background: var(--bg); }
.page-head h1 { margin-bottom: 10px; }
.page-head .muted { font-size: 1.05rem; }
.breadcrumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 18px; }
.tile { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; overflow: hidden; display: flex; flex-direction: column; }
.tile h3 { font-size: 1.3rem; margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; font-size: .95rem; }
.tile-big { grid-column: span 2; grid-row: span 2; background: var(--primary); color: rgba(255, 255, 255, .72); border: 0; isolation: isolate; }
.tile-big::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(31, 93, 170, .6), transparent 70%), var(--grain); z-index: -1; }
.tile-big h3 { color: #fff; font-size: 1.7rem; max-width: 420px; }
.tile-big .mega { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 10vw, 8.5rem); line-height: .85; letter-spacing: -.06em; color: #fff; margin: auto 0 18px; }
.tile-big .mega span { color: var(--accent); }
.tile-wide { grid-column: span 2; }
.tile-blue { background: var(--secondary); border: 0; color: rgba(255, 255, 255, .8); }
.tile-blue h3 { color: #fff; } .tile-blue p { color: rgba(255, 255, 255, .78); }
.mini-ui { margin-top: auto; padding-top: 22px; }
.mini-days { display: flex; gap: 6px; }
.mini-days span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid var(--line); font-size: .74rem; font-weight: 700; color: var(--muted); line-height: 1.25; }
.mini-days span b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); }
.mini-days span.on { background: var(--primary); border-color: var(--primary); color: rgba(255, 255, 255, .7); }
.mini-days span.on b { color: #fff; }
.mini-bars { display: grid; gap: 9px; }
.mini-bars div { display: grid; grid-template-columns: 70px 1fr 32px; gap: 10px; align-items: center; font-size: .8rem; font-weight: 600; }
.mini-bars i { display: block; height: 7px; border-radius: 7px; background: var(--line); overflow: hidden; position: relative; }
.mini-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--secondary); border-radius: 7px; }
.tile-blue .mini-bars i { background: rgba(255, 255, 255, .2); } .tile-blue .mini-bars i::after { background: #fff; }
.mini-avatars { display: flex; align-items: center; }
.mini-avatars > * { margin-left: -10px; box-shadow: 0 0 0 3px var(--card); }
.mini-avatars > *:first-child { margin-left: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.check-list .icon { color: var(--accent); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: relative; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
a.card { color: inherit; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-pad { padding: 26px; }
.card-media { display: block; position: relative; aspect-ratio: 4/3; background: var(--primary-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.property-card { padding: 8px; }
.property-card .card-media { border-radius: 16px; }
.property-card .card-body { padding: 16px 12px 12px; }
.card-body { padding: 20px 22px 22px; }
.card-title { font-size: 1.06rem; margin: 4px 0 6px; line-height: 1.3; }
.card-title a { color: var(--primary); }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--secondary); }
.card-loc { color: var(--muted); font-size: .86rem; margin: 0 0 14px; display: flex; gap: 5px; align-items: center; }
.card-tags { position: absolute; left: 12px; right: 60px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.photo-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(11, 31, 58, .72); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 7px; backdrop-filter: blur(6px); display: inline-flex; align-items: center; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 7px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; background: rgba(255, 255, 255, .95); color: var(--primary); }
.tag-sale, .tag-rent { background: var(--primary); color: #fff; }
.tag-rent { background: var(--secondary); }
.tag-featured { background: var(--accent); color: var(--primary); }
.tag-verified, .tag-sold { background: var(--success); color: #fff; }
.price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--primary); letter-spacing: -.03em; line-height: 1.1; }
.price small { font-family: var(--font); font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.specs { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; font-weight: 600; color: #475467; border-top: 1px solid var(--line); padding-top: 13px; }
.specs span { display: inline-flex; align-items: center; gap: 6px; }
.specs .icon { color: var(--muted); }
.fav-btn { position: absolute; right: 18px; top: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: var(--primary); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 31, 58, .18); z-index: 3; transition: transform .2s var(--ease), color .2s var(--ease); }
.fav-btn:hover { transform: scale(1.1); color: #d92d20; }
.fav-btn.active { color: #d92d20; animation: heart .45s var(--ease); }
.fav-btn.active svg, .fav-inline.active svg { fill: currentColor; }
.fav-inline.active { color: #d92d20; border-color: #f4c7c3; }
@keyframes heart { 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }
/* Horizontal rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 3.4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 26px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 46px; height: 46px; border-radius: 12px; border: 1px solid #d9dce1; background: var(--card); color: var(--primary); cursor: pointer; display: grid; place-items: center; transition: all .2s var(--ease); }
.rail-nav button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* City tiles */
.city-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 240px; gap: 18px; }
.city-tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; background: var(--primary); }
.city-tile:first-child { grid-row: span 2; }
.city-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.city-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 58, 0) 35%, rgba(11, 31, 58, .85)); z-index: -1; }
.city-tile:hover { color: #fff; }
.city-tile:hover img { transform: scale(1.06); }
.city-tile strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.city-tile:first-child strong { font-size: 2.8rem; }
.city-tile span { font-size: .88rem; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.city-tile .go { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); display: grid; place-items: center; transition: all .3s var(--ease); }
.city-tile:hover .go { background: #fff; color: var(--primary); transform: rotate(-45deg); }
.city-card { display: block; border-radius: var(--radius); background: var(--primary); color: #fff; padding: 24px; }
.how-card { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.how-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--secondary); line-height: 1; margin-bottom: 16px; display: block; letter-spacing: -.05em; }

/* Agents */
.agent-card { text-align: left; padding: 22px; display: flex; gap: 16px; align-items: center; }
.agent-card .avatar, .agent-card .avatar-initials { flex-shrink: 0; }
.agent-card h3 { margin-bottom: 2px; font-size: 1.08rem; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: .78rem; font-weight: 800; }
.stars { color: var(--accent); letter-spacing: 1px; }

/* Home: journal block */
.journal { display: grid; grid-template-columns: 1.25fr 1fr; gap: 34px; }
.journal-lead { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; color: #fff; isolation: isolate; }
.journal-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.journal-lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(7, 21, 42, .92)); z-index: -1; }
.journal-lead:hover img { transform: scale(1.04); }
.journal-lead h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.035em; margin: 10px 0 10px; }
.journal-lead p { color: rgba(255, 255, 255, .75); margin: 0; max-width: 560px; }
.journal-lead:hover { color: #fff; }
.journal-list { display: grid; align-content: start; }
.journal-item { display: grid; grid-template-columns: 56px 1fr 120px; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; }
.journal-item:first-child { padding-top: 0; }
.journal-item .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #c9ced6; letter-spacing: -.04em; transition: color .3s var(--ease); }
.journal-item:hover .num { color: var(--secondary); }
.journal-item h3 { font-size: 1.12rem; margin: 4px 0 0; transition: color .2s var(--ease); }
.journal-item:hover h3 { color: var(--secondary); }
.journal-item img { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; }
.post-meta { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.post-meta .cat { color: var(--secondary); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.journal-lead .post-meta, .journal-lead .post-meta .cat { color: var(--accent); }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--secondary); color: rgba(255, 255, 255, .82); border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 100% 100%, rgba(11, 31, 58, .55), transparent 70%), var(--grain); z-index: -1; }
.cta h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.04em; }
.cta form { display: flex; gap: 8px; margin-top: 14px; }
.cta input { border: 0; border-radius: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, .62); padding: 90px 0 0; margin-top: 80px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); z-index: -1; pointer-events: none; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: end; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 56px; }
.footer-top h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1; margin: 0; }
.footer-top form { display: flex; gap: 8px; }
.site-footer .footer-top input { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: #fff; height: 54px; }
.site-footer .footer-top input::placeholder { color: rgba(255, 255, 255, .45); }
.site-footer .footer-top input:focus { border-color: var(--accent); box-shadow: none; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-grid h4 { color: #fff; font-family: var(--font); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-grid > div > a { display: block; padding: 5px 0; font-size: .93rem; }
.footer-grid p { font-size: .93rem; }
.logo-footer { color: #fff !important; margin-bottom: 18px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; font-size: .86rem; }
.social a { padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; }
.social a:hover { border-color: #fff; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 66px; background: var(--primary-dark); z-index: 1; }
.footer-wordmark { position: relative; z-index: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 15vw, 15rem); line-height: .8; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .16); white-space: nowrap; margin: 70px 0 -.12em; user-select: none; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { position: relative; z-index: 1; padding: 22px 28px; font-size: .82rem; color: rgba(255, 255, 255, .45); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.newsletter-mini { display: flex; gap: 6px; margin-top: 16px; }
.newsletter-mini input { padding: 10px 14px; background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 58px; height: 58px; border-radius: 18px; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .65); z-index: 40; transition: transform .25s var(--ease); }
.wa-float:hover { color: #fff; transform: translateY(-3px); }

/* ---------- Blog ---------- */
.blog-hero { padding: 60px 0 30px; }
.blog-hero h1 { font-size: clamp(3rem, 7vw, 6rem); letter-spacing: -.05em; line-height: .95; margin-bottom: 14px; }
.blog-hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; }
.blog-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chips a { padding: 8px 14px; border-radius: 9px; font-size: .86rem; font-weight: 700; color: var(--text); border: 1px solid transparent; }
.cat-chips a:hover { border-color: #d9dce1; color: var(--primary); }
.cat-chips a.active { background: var(--primary); color: #fff; }
.blog-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; margin-bottom: 64px; color: inherit; }
.blog-feature .bf-img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--primary-soft); }
.blog-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.blog-feature:hover img { transform: scale(1.03); }
.blog-feature h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.04em; margin: 12px 0 14px; transition: color .2s var(--ease); }
.blog-feature:hover h2 { color: var(--secondary); }
.blog-feature p { color: var(--muted); font-size: 1.06rem; }
.byline { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.byline strong { color: var(--primary); }
.post-card { border: 0; background: transparent; border-radius: 0; overflow: visible; }
.post-card:hover { transform: none; box-shadow: none; }
.post-card .card-media { border-radius: var(--radius-lg); aspect-ratio: 16/11; }
.post-card .card-body { padding: 18px 2px 0; }
.post-card .card-title { font-size: 1.28rem; letter-spacing: -.025em; margin: 8px 0 8px; }
.post-card .card-body p { color: var(--muted); font-size: .95rem; }
.article-head { padding: 50px 0 10px; text-align: left; }
.article-head h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: -.045em; line-height: 1; margin: 14px 0 22px; }
.article-head .dek { font-size: 1.25rem; color: #475467; line-height: 1.5; max-width: 720px; }
.article-hero { margin: 34px 0 10px; }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--radius-lg); }
.article-layout { display: grid; grid-template-columns: 1fr 260px; gap: 70px; align-items: start; padding: 30px 0 40px; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; font-size: .9rem; }
.article-aside h4 { font-family: var(--font); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list a { padding: 6px 11px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--primary); }
.tag-list a:hover { border-color: var(--primary); }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); margin: 40px 0; }
.author-box h3 { margin: 0 0 2px; }
.read-progress { position: fixed; left: 0; top: 0; height: 3px; background: var(--secondary); width: 0; z-index: 90; transition: width .1s linear; }
.comment { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.author-hero { display: flex; gap: 28px; align-items: center; padding: 60px 0 40px; flex-wrap: wrap; }
/* ---------- Toasts & alerts ---------- */
.toast-stack { position: fixed; top: calc(var(--header-h) + 14px); right: 20px; z-index: 250; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastIn .45s var(--ease); position: relative; overflow: hidden; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .3; transform-origin: left; animation: toastTimer var(--toast-time, 6s) linear forwards; }
.toast-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; }
.toast-msg { flex: 1; padding-top: 3px; color: var(--text); }
.toast-close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px; }
.toast-success { color: var(--success); } .toast-success .toast-icon { background: var(--success-soft); }
.toast-error { color: var(--danger); } .toast-error .toast-icon { background: var(--danger-soft); }
.toast-warning { color: var(--warning); } .toast-warning .toast-icon { background: var(--warning-soft); }
.toast-info { color: var(--secondary); } .toast-info .toast-icon { background: var(--secondary-soft); }
.toast.leaving { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@keyframes toastTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.flash-wrap:empty { display: none; }
.alert { position: relative; padding: 14px 44px 14px 18px; border-radius: 12px; margin-bottom: 14px; border: 1px solid; font-size: .93rem; }
.alert-success { background: var(--success-soft); border-color: rgba(22, 133, 91, .25); color: #0f5e40; }
.alert-error { background: var(--danger-soft); border-color: rgba(180, 35, 24, .2); color: #912018; }
.alert-info { background: var(--secondary-soft); border-color: rgba(31, 93, 170, .2); color: var(--secondary-dark); }
.alert-warning { background: var(--warning-soft); border-color: rgba(181, 71, 8, .2); color: #93370d; }
.alert-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 20px; cursor: pointer; color: inherit; opacity: .6; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .84rem; margin-bottom: 7px; color: var(--primary); letter-spacing: .01em; }
.label-hint { font-weight: 500; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], input[type=datetime-local], input[type=color], select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .95rem; background-color: var(--card); color: var(--text); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input[type=color] { padding: 4px; height: 48px; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #cfd4dc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(31, 93, 170, .12); }
input:user-invalid, textarea:user-invalid, select:user-invalid { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; display: block; }
.checkbox, .radio { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; color: var(--text); font-size: .92rem; }
.checkbox input, .radio input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 18px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.auth-wrap { max-width: 460px; margin: 48px auto; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 64px; }
.password-wrap button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--secondary); cursor: pointer; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.strength { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.strength span { display: block; height: 100%; width: 0; transition: width .3s var(--ease), background .3s var(--ease); }
/* Pill choices */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 500; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text); background: var(--card); cursor: pointer; transition: all .2s var(--ease); }
.chip span small { display: block; font-weight: 500; color: var(--muted); font-size: .7rem; }
.chip:hover span { border-color: var(--primary); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 6px 16px -8px rgba(11, 31, 58, .6); }
.chip input:checked + span small { color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.date-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.date-chips .chip { display: block; }
.date-chips .chip span { flex-direction: column; gap: 0; padding: 8px 4px; border-radius: 12px; width: 100%; line-height: 1.25; text-align: center; }

/* ---------- Search / listing page ---------- */
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 36px 0 70px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); box-shadow: var(--shadow-xs); }
.filters h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 18px; }
.filters .form-group { margin-bottom: 14px; }
.filters details summary { cursor: pointer; color: var(--primary); font-size: .85rem; }
.filters .checkbox { font-size: .86rem; margin-bottom: 6px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.results-bar select { width: auto; padding-top: 9px; padding-bottom: 9px; border-radius: 999px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; background: var(--primary-soft); color: var(--primary); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.filter-chip a { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(11, 31, 58, .1); color: var(--primary); font-size: 14px; line-height: 1; }
.filter-chip a:hover { background: var(--primary); color: #fff; }
.empty-state { text-align: center; padding: 70px 24px; background: var(--card); border: 1px dashed #d0d5dd; border-radius: var(--radius-lg); color: var(--muted); }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.filters-toggle { display: none; }

/* ---------- Property detail ---------- */
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 520px; border-radius: var(--radius-lg); overflow: hidden; margin: 22px 0 34px; }
.gallery a { position: relative; overflow: hidden; background: var(--primary-soft); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery a:hover img { transform: scale(1.04); }
.gallery .more { position: absolute; inset: 0; background: rgba(11, 31, 58, .55); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.05rem; }
.gallery.single { grid-template-columns: 1fr; }
.gallery-all { position: absolute; right: 18px; bottom: 18px; z-index: 3; }
.detail-layout { display: grid; grid-template-columns: 1fr 390px; gap: 40px; padding-bottom: 70px; align-items: start; }
.detail-title { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.detail-title h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.detail-title .price { font-size: 2.2rem; }
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin: 28px 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--card); padding: 18px 20px; }
.fact span { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 4px; }
.fact strong { font-size: 1.08rem; color: var(--primary); }
.detail-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 22px; }
.detail-section h2 { font-size: 1.5rem; }
.detail-section h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.amenity-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.amenity-list li { display: flex; gap: 10px; align-items: center; font-size: .93rem; }
.amenity-list .icon { color: var(--accent-dark); background: var(--accent-soft); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.map-embed { width: 100%; height: 360px; border: 0; border-radius: 14px; background: var(--primary-soft); }
.video-embed { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sticky-side { position: sticky; top: calc(var(--header-h) + 16px); }
.contact-card { border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.agent-box { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calc-result { background: linear-gradient(160deg, var(--primary), var(--primary-dark)); color: rgba(255, 255, 255, .7); border-radius: 14px; padding: 20px; text-align: center; margin-top: 14px; }
.calc-result strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: #fff; font-weight: 600; margin: 4px 0; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lightbox { position: fixed; inset: 0; background: rgba(7, 21, 42, .96); z-index: 400; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; animation: fade .25s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 26px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }
.lb-count { position: absolute; bottom: 22px; color: rgba(255, 255, 255, .7); font-size: .85rem; letter-spacing: .1em; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.score-bars { display: grid; gap: 12px; }
.score-bar span { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.score-bar div { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--secondary), var(--primary)); border-radius: 6px; }
.visit-panel { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.mobile-cta { display: none; }

/* ---------- Confirmation ---------- */
.confirm-wrap { max-width: 720px; margin: 60px auto 80px; }
.confirm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.confirm-top { background: radial-gradient(500px 240px at 100% 0%, rgba(31, 93, 170, .5), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-dark)); color: rgba(255, 255, 255, .75); padding: 48px 40px 38px; text-align: center; }
.confirm-top h1 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.confirm-check { width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: rgba(200, 167, 93, .12); border: 1px solid var(--accent); color: var(--accent); }
.confirm-check svg { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-body { padding: 34px 40px 40px; }
.confirm-prop { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 26px; }
.confirm-prop img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.slot-box { display: flex; gap: 14px; align-items: center; background: var(--accent-soft); border: 1px solid rgba(200, 167, 93, .45); border-radius: 14px; padding: 16px 18px; margin-bottom: 26px; color: var(--primary); }
.slot-box .icon { color: var(--accent-dark); }
.steps-list { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: s; }
.steps-list li { position: relative; padding: 0 0 20px 50px; counter-increment: s; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; background: var(--card); }
.steps-list li::after { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 1px; background: var(--line); }
.steps-list li:last-child::after { display: none; }
.steps-list strong { color: var(--primary); display: block; }

/* ---------- Content / prose ---------- */
.prose { font-size: 1.03rem; line-height: 1.8; color: #2c3440; }
.prose h2 { margin-top: 1.8em; } .prose h3 { margin-top: 1.5em; }
.prose img { border-radius: 14px; margin: 1.2em 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: 6px 22px; color: var(--primary); font-family: var(--font-display); font-size: 1.2rem; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--line); padding: 10px; }
.prose a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Community ---------- */
.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding: 36px 0 70px; align-items: start; }
.topic-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); align-items: center; transition: background .2s var(--ease); }
.topic-row:hover { background: #fcfbf8; }
.topic-row:last-child { border-bottom: 0; }
.topic-row h3 { font-size: 1rem; margin: 0 0 3px; }
.topic-row h3 a { color: var(--primary); }
.topic-row h3 a:hover { color: var(--secondary); }
.topic-meta { font-size: .8rem; color: var(--muted); }
.topic-stats { text-align: right; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.topic-stats strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: var(--primary-soft); color: var(--primary); margin-right: 6px; vertical-align: 2px; }
.pill-amber { background: var(--accent-soft); color: var(--accent-dark); }
.post-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.post-box.op { border-top: 3px solid var(--accent); }
.post-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.post-head strong { color: var(--primary); }
.post-actions { margin-top: 12px; display: flex; gap: 14px; font-size: .82rem; }
.post-actions button, .post-actions a { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.post-actions button:hover, .post-actions a:hover { color: var(--danger); }
.cat-list a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: .93rem; }
.cat-list a:last-child { border-bottom: 0; }
.cat-list a.active, .cat-list a:hover { color: var(--primary); font-weight: 700; }
.review { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review:last-child { border-bottom: 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--primary); font-size: .88rem; font-weight: 700; }
.pagination a:hover { border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Auth (split screen) ---------- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside { position: relative; overflow: hidden; background: radial-gradient(700px 400px at 100% 0%, rgba(31, 93, 170, .55), transparent 60%), linear-gradient(160deg, var(--primary), var(--primary-dark)); color: rgba(255, 255, 255, .72); padding: 70px 64px; display: flex; flex-direction: column; justify-content: center; isolation: isolate; }
.auth-aside::before { content: ""; position: absolute; left: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(200, 167, 93, .3); z-index: -1; }
.auth-aside .eyebrow { color: rgba(255,255,255,.6); }
.auth-aside h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; max-width: 480px; }
.auth-aside h2 em { color: var(--accent); }
.auth-benefits { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; max-width: 460px; }
.auth-benefits li { display: flex; gap: 14px; align-items: flex-start; font-size: .92rem; }
.auth-benefits .icon { color: var(--accent); margin-top: 3px; }
.auth-benefits strong { color: #fff; display: block; font-size: .95rem; }
.auth-quote { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 460px; font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: rgba(255, 255, 255, .88); }
.auth-quote small { display: block; font-family: var(--font); font-style: normal; font-size: .74rem; color: var(--accent); margin-top: 10px; letter-spacing: .12em; text-transform: uppercase; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 56px 28px; }
.auth-inner { width: 100%; max-width: 440px; }
.auth-main h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.auth-main .lead { color: var(--muted); margin-bottom: 28px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: .78rem; margin-top: 18px; }
.secure-note .icon { color: var(--success); }

/* ---------- Listing wizard ---------- */
.wizard-steps { display: none; gap: 0; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px; overflow-x: auto; }
.wizard-on .wizard-steps { display: flex; }
.wizard-steps button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .25s var(--ease); }
.wizard-steps button b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; font-size: .74rem; }
.wizard-steps button.done { color: var(--success); }
.wizard-steps button.current { background: var(--primary); color: #fff; }
.wizard-steps button.current b { border-color: var(--accent); color: var(--accent); }
.wizard-progress { display: none; height: 3px; background: var(--line); border-radius: 3px; margin: 0 16px 26px; overflow: hidden; }
.wizard-on .wizard-progress { display: block; }
.wizard-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-dark)); transition: width .4s var(--ease); }
.wizard-on [data-step] { display: none; }
.wizard-on [data-step].active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: none; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.wizard-on .wizard-nav { display: flex; }
.wizard-on .final-actions { display: none; }
.wizard-on.last-step .final-actions { display: flex; }
.wizard-on.last-step .wizard-next { visibility: hidden; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.review-grid div { padding: 14px 16px; box-shadow: 0 0 0 .5px var(--line); }
.review-grid span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.review-grid strong { color: var(--primary); word-break: break-word; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 2px dashed #cfd4dc; border-radius: var(--radius); padding: 40px 20px; text-align: center; background: var(--bg); cursor: pointer; transition: all .25s var(--ease); color: var(--muted); font-weight: 500; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); color: var(--primary); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--accent-dark); box-shadow: var(--shadow); }
.dropzone strong { color: var(--primary); font-size: 1rem; }
.dz-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 14px; }
.dz-previews figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--line); animation: stepIn .3s var(--ease); }
.dz-previews img { width: 100%; height: 100%; object-fit: cover; }
.dz-previews figcaption { position: absolute; left: 6px; top: 6px; background: var(--primary); color: var(--accent); font-size: .62rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Dashboard & admin ---------- */
.app-shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.app-side { background: var(--primary); color: rgba(255, 255, 255, .7); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-side .logo { color: #fff; margin: 0 8px 28px; font-size: 1.2rem; }
.app-side nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: rgba(255, 255, 255, .72); border-radius: 10px; font-size: .9rem; font-weight: 500; margin-bottom: 2px; transition: all .2s var(--ease); }
.app-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-side nav a.active { background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; }
.app-side nav a.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.app-side nav a.active .icon { color: var(--accent); }
.app-side .nav-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .18em; color: rgba(200, 167, 93, .85); margin: 22px 14px 8px; font-weight: 700; }
.app-side .count { margin-left: auto; background: var(--accent); color: var(--primary); border-radius: 999px; padding: 0 8px; font-size: .7rem; font-weight: 800; }
.app-main { min-width: 0; background: var(--bg); }
.app-top { background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 16px 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; }
.app-top h1 { font-size: 1.45rem; margin: 0; }
.app-content { padding: 32px; }
.app-shell .toast-stack { top: 84px; }
.side-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--primary); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; left: 22px; top: 0; width: 28px; height: 2px; background: var(--accent); }
.stat span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--primary); margin: 4px 0; }
.stat a { font-size: .82rem; font-weight: 700; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 26px; }
.panel-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--font); font-size: 1.02rem; font-weight: 700; margin: 0; letter-spacing: 0; }
.panel-body { padding: 24px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 700; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; padding: 12px 16px; background: #fbfaf7; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s var(--ease); }
.table tbody tr:hover { background: #fcfbf8; }
.table .thumb { width: 68px; height: 50px; object-fit: cover; border-radius: 8px; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.table .actions form { margin: 0; }
.status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.status-green { background: var(--success-soft); color: var(--success); } .status-amber { background: var(--accent-soft); color: var(--accent-dark); } .status-red { background: var(--danger-soft); color: var(--danger); }
.status-blue { background: var(--secondary-soft); color: var(--secondary); } .status-gray { background: #f2f4f7; color: #475467; } .status-purple { background: var(--primary-soft); color: var(--primary); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .68rem; font-weight: 800; background: #f2f4f7; color: #344054; letter-spacing: .04em; }
.badge-admin { background: var(--primary); color: var(--accent); } .badge-agent { background: var(--secondary-soft); color: var(--secondary); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 12px 16px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; font-size: .88rem; }
.tabs a.active, .tabs a:hover { color: var(--primary); border-color: var(--accent); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; padding: 9px 14px; border-radius: 999px; }
.toolbar select { padding-right: 38px; }
.img-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.img-item { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.img-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.img-item .img-tools { display: flex; justify-content: space-between; padding: 8px; gap: 4px; }
.img-item .cover-label { position: absolute; top: 8px; left: 8px; background: var(--primary); color: var(--accent); font-size: .62rem; padding: 3px 9px; border-radius: 99px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.preview-img { max-height: 84px; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; background: var(--bg); padding: 4px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
code { background: #f2f4f7; padding: 2px 7px; border-radius: 6px; font-size: .85em; }
.var-list code { display: inline-block; margin: 2px; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #fbfaf7; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
.editor-bar + textarea { border-radius: 0 0 12px 12px; }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .84rem; line-height: 1.55; }
.editor-preview { margin-top: 10px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 26px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row strong { display: block; font-size: .95rem; color: var(--primary); }
.toggle-row span { font-size: .84rem; color: var(--muted); }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #d0d5dd; border-radius: 26px; transition: .25s var(--ease); cursor: pointer; }
.switch i::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--primary); }
.switch input:checked + i::before { transform: translateX(20px); background: var(--accent); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.palette-preview { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.palette-preview span { display: grid; place-items: end center; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); font-size: .6rem; font-weight: 700; padding-bottom: 4px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }

/* ---------- Ads ---------- */
.ad-slot { position: relative; margin: 18px 0; text-align: center; }
.ad-slot.mb-2 { margin-bottom: 1rem; } .ad-slot.mt-3 { margin-top: 1.5rem; }
.ad-slot img { margin: 0 auto; border-radius: 14px; width: 100%; height: auto; }
.ad-label { position: absolute; top: 8px; right: 10px; z-index: 2; background: rgba(11, 31, 58, .7); color: #fff; font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; pointer-events: none; }
.ad-link { display: block; color: inherit; }
.ad-link:hover { color: inherit; }
.ad-type-code .ad-label, .ad-type-text .ad-label { position: static; display: inline-block; background: none; color: var(--muted); padding: 0 0 6px; }
.ad-type-code { overflow: hidden; }
.ad-code { display: flex; justify-content: center; min-height: 50px; }
.ad-text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; }
.ad-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--primary); font-weight: 600; }
.ad-text p { margin: 0; color: var(--muted); font-size: .92rem; }
.ad-text small { color: var(--muted); font-size: .74rem; }
.ad-card { margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.ad-card .ad-text { border: 0; height: 100%; justify-content: center; }
.ad-card img { border-radius: 0; height: 100%; object-fit: cover; }
.ad-mobile { display: none; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 120px 20px; }
.error-page .big { font-family: var(--font-display); font-size: 6rem; font-weight: 600; color: var(--accent); line-height: 1; }

/* ---------- Brand logo ---------- */
.logo-img { display: block; width: auto; max-width: 260px; object-fit: contain; }
.logo .logo-on-dark { display: none; }
.home-hero-page .site-header:not(.scrolled) .logo-on-light { display: none; }
.home-hero-page .site-header:not(.scrolled) .logo-on-dark { display: block; }
.logo-footer .logo-img { max-width: 240px; }
.app-side .logo { margin: 0 6px 26px; }
.app-side .logo-img { max-width: 200px; }
.auth-logo { height: 76px; width: auto; align-self: flex-start; margin-bottom: 36px; }
@media (max-width: 980px) {
  .site-header .logo-img { max-height: 42px !important; height: auto !important; }
  .auth-logo { height: 56px; margin-bottom: 24px; }
}

/* ---------- Workspace role card ---------- */
.side-role { display: flex; align-items: center; gap: 10px; margin: -8px 6px 8px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.side-role strong { display: block; color: #fff; font-size: .88rem; line-height: 1.2; }
.side-role span { font-size: .74rem; color: rgba(255, 255, 255, .55); }
.hero.has-image { background-size: cover; background-position: center; }
.hero.has-image::before { background: linear-gradient(100deg, rgba(11, 31, 58, .95) 0%, rgba(11, 31, 58, .75) 50%, rgba(11, 31, 58, .35) 100%); }
.ad-desktop { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav > a { padding: 9px 9px; }
  .hero-grid { gap: 36px; }
  .hero-art { height: 480px; }
  .float-1 { left: -10px; }
  .rail { grid-auto-columns: calc((100% - 2 * 22px) / 2.4); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .article-layout { gap: 40px; grid-template-columns: 1fr 220px; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--card); flex-direction: column; align-items: stretch; padding: 14px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav.open { display: flex; animation: pop .2s var(--ease); }
  .main-nav > a, .home-hero-page .site-header:not(.scrolled) .main-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); }
  .main-nav > a.active::after { display: none; }
  .home-hero-page .site-header:not(.scrolled) .main-nav .nav-link-plain, .home-hero-page .site-header:not(.scrolled) .main-nav .user-btn { color: var(--primary); border-color: var(--line); }
  .home-hero-page .site-header:not(.scrolled) .main-nav .btn-primary { background: var(--primary); color: #fff; }
  .nav-actions { margin: 16px 0 0; flex-wrap: wrap; }
  .user-menu .dropdown { position: static; box-shadow: none; border: 0; padding: 6px 0 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: calc(var(--header-h) + 40px) 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 420px; max-width: 640px; }
  .float-1 { left: 12px; }
  .journal, .blog-feature, .footer-top { grid-template-columns: 1fr; }
  .journal-lead { min-height: 420px; }
  .city-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .city-tile:first-child { grid-column: span 2; grid-row: auto; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); padding-top: 24px; }
  .listing-layout, .detail-layout, .forum-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .sticky-side { position: static; }
  .gallery { height: 360px; }
  .cta { grid-template-columns: 1fr; padding: 44px 30px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { padding: 40px 24px; order: 2; }
  .auth-aside .auth-quote { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-side { position: fixed; left: -290px; width: 272px; z-index: 100; transition: left .3s var(--ease); box-shadow: var(--shadow-lg); }
  .app-side.open { left: 0; }
  .side-toggle { display: block; }
  .app-content { padding: 20px; }
  .app-top { padding: 12px 20px; }
  .mobile-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(11, 31, 58, .25); }
  .mobile-cta .price { font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .has-mobile-cta .wa-float { bottom: 92px; }
  .has-mobile-cta .site-footer { padding-bottom: 80px; }
  .site-header .logo-img { max-height: 42px !important; height: auto !important; }
  .auth-logo { height: 56px; margin-bottom: 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr; }
  .search-fields .btn { grid-column: auto; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-art { height: 330px; }
  .hero-art .shot-a { inset: 0 30px 60px 0; }
  .hero-art .shot-b { border-width: 4px; }
  .float-card { padding: 10px 12px; }
  .float-1 { top: 16px; }
  .float-2 { left: 10px; bottom: 12px; }
  .ticker a { font-size: 1.2rem; gap: 18px; padding-right: 18px; }
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-wide { grid-column: auto; grid-row: auto; }
  .tile-big { min-height: 380px; }
  .rail { grid-auto-columns: 84%; }
  .city-grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .city-tile:first-child { grid-column: auto; }
  .journal-item { grid-template-columns: 40px 1fr; }
  .journal-item img { display: none; }
  .journal-lead { min-height: 380px; padding: 24px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 30px; }
  .footer-top form, .cta form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-wordmark { margin-top: 44px; }
  .article-aside { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 280px; border-radius: 16px; }
  .gallery a:not(:first-child) { display: none; }
  .topic-row { grid-template-columns: 38px 1fr; }
  .topic-stats { display: none; }
  .form-card { padding: 24px; }
  .detail-section { padding: 22px; }
  .kv { grid-template-columns: 1fr; }
  .confirm-top, .confirm-body { padding-left: 22px; padding-right: 22px; }
  .date-chips { grid-template-columns: repeat(3, 1fr); }
  .wizard-steps button span { display: none; }
  .ad-desktop { display: none; } .ad-mobile { display: block; }
  .detail-title > div:last-child { text-align: left !important; }
  .detail-title .flex { justify-content: flex-start !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
@media print {
  .site-header, .site-footer, .sticky-side, .wa-float, .fav-btn, .mobile-cta, .ad-slot, .read-progress { display: none !important; }
  .detail-layout, .article-layout { grid-template-columns: 1fr; }
}

/* City grid adapts to how many cities exist */
.city-grid.n4 .city-tile:last-child { grid-column: span 2; }
.city-grid.n3 { grid-template-columns: 1.4fr 1fr; }
.city-grid.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 320px; }
.city-grid.n1 { grid-template-columns: 1fr; grid-auto-rows: 320px; }
.city-grid.n2 .city-tile:first-child, .city-grid.n1 .city-tile:first-child { grid-row: auto; }
@media (max-width: 980px) {
  .city-grid.n3, .city-grid.n2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .city-grid.n4 .city-tile:last-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .city-grid.n3, .city-grid.n2 { grid-template-columns: 1fr; }
  .city-grid.n3 .city-tile:first-child { grid-column: auto; }
}
@media (max-width: 640px) { .latest-grid > :nth-child(n+5) { display: none; } }
