:root {
  --ink: #14202b;
  --muted: #64727f;
  --line: #dfe5e9;
  --soft: #f5f7f8;
  --white: #ffffff;
  --navy: #173a5e;
  --navy-dark: #102b47;
  --success: #1d6b46;
  --danger: #a92d2d;
  --shadow: 0 18px 50px rgba(20, 32, 43, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.55; }
a { color: var(--navy); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.site-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header { background: #fff; border-bottom: 1px solid rgba(20,32,43,.08); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { text-decoration: none; font-size: 1.28rem; letter-spacing: -.03em; color: var(--ink); }
.brand span { font-weight: 800; }
.brand b { color: #3e6f92; font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; color: #273746; font-weight: 650; }
.site-nav a:hover { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; font-weight: 700; color: var(--ink); padding: 8px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--navy); border-radius: 10px; background: var(--navy); color: #fff !important; text-decoration: none; font-weight: 750; line-height: 1.2; transition: transform .15s ease, background .15s ease; }
.button:hover { background: var(--navy-dark); transform: translateY(-1px); }
.button-small { min-height: 38px; padding: 8px 13px; font-size: .92rem; }
.button-large { min-height: 52px; padding: 13px 22px; }
.button-full { width: 100%; }
.button-secondary { background: #fff; color: var(--navy) !important; border-color: #c8d4de; }
.button-secondary:hover { background: #f5f8fa; }
.button-light { background: #fff; border-color: #fff; color: var(--navy) !important; }
.eyebrow { margin: 0 0 8px; color: #4b6c84; font-size: .76rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.muted { color: var(--muted); }
.optional { color: #8a969f; font-weight: 500; font-size: .85em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.hero-home { overflow: hidden; background: linear-gradient(135deg, #f7fafc 0%, #eef5f8 100%); border-bottom: 1px solid #e1e7ea; }
.hero-grid { min-height: 670px; display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(330px, .75fr); gap: 72px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5.5vw, 5.4rem); line-height: .99; letter-spacing: -.055em; }
.hero-lead { max-width: 670px; margin: 26px 0 0; color: #52616d; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; margin-top: 30px; }
.hero-actions span { color: #70808d; font-size: .92rem; }
.hero-url { display: inline-block; margin-top: 27px; padding: 10px 14px; border: 1px solid #d4dfe5; border-radius: 9px; background: rgba(255,255,255,.75); color: #5b6c79; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hero-url strong { color: var(--ink); }
.phone-preview { width: min(100%, 365px); justify-self: center; padding: 18px 17px 24px; border: 9px solid #18222b; border-radius: 42px; background: #fff; box-shadow: 0 35px 75px rgba(20, 45, 64, .18); }
.phone-top { width: 95px; height: 18px; margin: -7px auto 18px; border-radius: 0 0 13px 13px; background: #18222b; }
.preview-agent { display: flex; flex-direction: column; align-items: center; text-align: center; }
.preview-avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 9px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.preview-agent strong { font-size: 1rem; }
.preview-agent span { color: #5d6d78; font-size: .8rem; }
.preview-agent small { color: #84909a; }
.preview-contact { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 16px 0; }
.preview-contact span { padding: 7px; border-radius: 7px; background: #173a5e; color: #fff; text-align: center; font-size: .72rem; font-weight: 750; }
.preview-heading { margin: 17px 0 9px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.preview-listing { display: grid; grid-template-columns: 78px 1fr; gap: 11px; align-items: center; padding: 9px; margin-bottom: 9px; border: 1px solid #e3e8eb; border-radius: 12px; }
.preview-listing div:last-child { min-width: 0; display: flex; flex-direction: column; }
.preview-listing strong { font-size: .82rem; }
.preview-listing span, .preview-listing small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6b7882; font-size: .68rem; }
.preview-photo { height: 64px; border-radius: 8px; background-size: cover; }
.photo-one { background: linear-gradient(135deg,#bccad3,#7793a6); }
.photo-two { background: linear-gradient(135deg,#d6c9b5,#8c9b87); }
.preview-link { display: flex; justify-content: space-between; margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: #eef3f7; color: #264b67; font-size: .74rem; font-weight: 700; }

.section { padding: 92px 0; }
.section-light { background: #f8fafb; }
.section-heading { margin-bottom: 38px; }
.section-heading.narrow { max-width: 760px; }
.section h2, .cta-band h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; letter-spacing: -.04em; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature-card h3 { margin: 12px 0 7px; font-size: 1.18rem; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-number { color: #6f8da2; font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.split-section { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; }
.split-section > div:first-child > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.05rem; }
.theme-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch-navy{background:#173A5E}.swatch-red{background:#B3262E}.swatch-burgundy{background:#74253B}.swatch-charcoal{background:#2F343A}.swatch-forest{background:#2D5A47}.swatch-coastal{background:#236C88}.swatch-neutral{background:#725B48}
.plain-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.plain-card h3 { margin: 0 0 7px; font-size: 1.45rem; }
.plain-card > p { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { position: relative; padding: 9px 0 9px 29px; border-top: 1px solid #edf0f2; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #35735a; font-weight: 900; }
.cta-band { padding: 70px 0; background: var(--navy); color: #fff; }
.cta-band .eyebrow { color: #b8d0df; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-footer { padding: 52px 0 26px; background: #101921; color: #aeb9c2; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; }
.brand-footer { color: #fff; }
.brand-footer b { color: #7faccc; }
.footer-inner p { margin: 10px 0 0; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner nav a { color: #d9e1e6; text-decoration: none; }
.footer-note { padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }

.flash-wrap { padding-top: 18px; }
.flash { padding: 13px 16px; border-radius: 10px; border: 1px solid #dce4e9; background: #f6f8fa; }
.flash-success { background: #edf7f1; color: #285f43; border-color: #cfe6d8; }
.flash-error, .flash-warning { background: #fff3ee; color: #87412d; border-color: #efd6cb; }
.flash-info { background: #eef5fa; color: #2d5874; border-color: #d3e3ed; }
.auth-section { min-height: 640px; display: grid; place-items: center; padding: 70px 20px; background: #f6f8f9; }
.auth-card { width: min(100%, 520px); padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0; font-size: 2.15rem; letter-spacing: -.04em; }
.auth-card > p:not(.eyebrow) { color: var(--muted); }
.stack-form { display: grid; gap: 18px; margin-top: 25px; }
label { display: grid; gap: 7px; color: #2a3844; font-weight: 700; }
label small { color: #7b8790; font-weight: 500; line-height: 1.4; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #cfd8de; border-radius: 9px; background: #fff; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: #6a8aa1; box-shadow: 0 0 0 3px rgba(61,111,146,.12); }
textarea { resize: vertical; }
.input-prefix { display: grid; grid-template-columns: auto 1fr; align-items: stretch; border: 1px solid #cfd8de; border-radius: 9px; overflow: hidden; }
.input-prefix:focus-within { border-color: #6a8aa1; box-shadow: 0 0 0 3px rgba(61,111,146,.12); }
.input-prefix span { display: flex; align-items: center; padding: 0 0 0 12px; background: #f5f7f8; color: #667581; font-weight: 600; }
.input-prefix input { border: 0; border-radius: 0; box-shadow: none; }
.auth-switch, .auth-links { margin: 20px 0 0; text-align: center; font-size: .92rem; }
.form-errors { margin: 20px 0; padding: 13px 16px; border: 1px solid #efc8c8; border-radius: 10px; background: #fff1f1; color: #8b3131; }
.form-errors p { margin: 4px 0; }

.dashboard-body { background: #f5f7f8; }
.dashboard-body .site-footer { margin-top: 50px; }
.dashboard-section { padding: 48px 0 20px; }
.dashboard-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 25px; }
.dashboard-top h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; line-height: 1.03; }
.dashboard-top p { margin-bottom: 0; }
.dashboard-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-nav { display: flex; gap: 6px; margin-bottom: 26px; padding: 7px; overflow-x: auto; border: 1px solid #e0e5e8; border-radius: 12px; background: #fff; }
.dashboard-nav a { flex: 0 0 auto; padding: 9px 13px; border-radius: 8px; color: #52616c; text-decoration: none; font-weight: 700; font-size: .9rem; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: #edf3f6; color: var(--navy); }
.setup-banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 22px; padding: 19px 22px; border: 1px solid #cadae5; border-radius: 13px; background: #f1f7fb; }
.setup-banner p { margin: 3px 0 0; color: #5f7483; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 22px; border: 1px solid #e0e5e8; border-radius: 14px; background: #fff; }
.stat-card span { display: block; color: #66747e; font-size: .88rem; font-weight: 650; }
.stat-card strong { display: block; margin: 7px 0 2px; font-size: 2rem; letter-spacing: -.04em; }
.stat-card small { color: #8a959d; }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; }
.dashboard-panel { border: 1px solid #e0e5e8; border-radius: 15px; background: #fff; overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 24px 0; }
.panel-heading h2, .form-panel h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.empty-state { padding: 48px 26px; text-align: center; }
.empty-state h2, .empty-state h3 { margin: 0 0 5px; }
.empty-state p { color: var(--muted); }
.small-empty { padding: 28px; }
.mini-list { padding: 10px 14px 17px; }
.mini-list a { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mini-list a:hover { background: #f6f8f9; }
.mini-thumb { width: 52px; height: 48px; display: grid; place-items: center; border-radius: 8px; overflow: hidden; background: #eef1f3; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list strong, .mini-list small { display: block; }
.mini-list small { color: var(--muted); }
.source-links { display: grid; gap: 9px; padding: 4px 24px 18px; }
.source-copy { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 13px; border: 1px solid #dce3e7; border-radius: 9px; background: #fff; text-align: left; color: var(--ink); }
.source-copy:hover { border-color: #b7c8d3; background: #f8fafb; }
.source-copy span { font-weight: 750; }
.source-copy small { color: #74838e; }
.text-link { display: inline-block; margin: 0 24px 24px; font-weight: 700; text-decoration: none; }
.editor-grid { display: grid; gap: 20px; }
.narrow-editor { max-width: 800px; }
.form-panel { padding: 26px; overflow: visible; }
.form-panel h2 { margin-bottom: 20px; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-col { grid-template-columns: repeat(2,1fr); }
.form-grid.three-col { grid-template-columns: repeat(3,1fr); }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid .wide-three { grid-column: 1 / -1; }
.existing-photo { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .9rem; }
.existing-photo img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.existing-listing-photo img { width: 240px; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; }
.checkbox-row { grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px; font-weight: 500; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); }
.checkbox-row strong, .checkbox-row small { display: block; }
.checkbox-row small { margin-top: 3px; }
.form-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px 0; }
.form-save-bar > div { display: flex; align-items: center; gap: 14px; }
.button-link { border: 0; padding: 0; background: transparent; color: var(--navy); text-decoration: underline; }
.danger-link { color: var(--danger); }
.manage-list { padding: 9px; }
.manage-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; padding: 13px; border-bottom: 1px solid #edf0f2; }
.manage-row:last-child { border-bottom: 0; }
.manage-image { width: 110px; aspect-ratio: 16/10; overflow: hidden; border-radius: 9px; display: grid; place-items: center; background: #eef1f3; }
.manage-image img { width: 100%; height: 100%; object-fit: cover; }
.manage-main { min-width: 0; }
.manage-main > span, .manage-main > small { display: block; color: var(--muted); }
.manage-main > small { margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.manage-title { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status-chip { display: inline-flex; padding: 3px 7px; border-radius: 999px; background: #e9f2f7; color: #34617e; font-size: .72rem; font-weight: 750; }
.muted-chip { background: #f0f1f2; color: #6f777d; }
.manage-actions { display: flex; gap: 8px; align-items: center; }
.copy-icon { border: 0; background: transparent; color: var(--navy); font-weight: 700; }
.compact-row { grid-template-columns: 48px 1fr auto; }
.link-type-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #eef3f6; color: var(--navy); font-weight: 800; }
.theme-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.theme-option { position: relative; display: block; padding: 14px; border: 2px solid transparent; border-radius: 14px; background: #fff; cursor: pointer; }
.theme-option:has(input:checked) { border-color: var(--theme-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 14%, transparent); }
.theme-option input { position: absolute; top: 12px; right: 12px; width: 17px; height: 17px; accent-color: var(--theme-accent); }
.theme-option strong { display: block; margin-top: 10px; font-size: .9rem; }
.theme-preview { display: block; height: 160px; padding: 14px; border-radius: 10px; background: var(--theme-soft); }
.theme-preview-top { display: block; height: 7px; width: 46%; margin: 0 auto 12px; border-radius: 5px; background: var(--theme-accent); opacity: .25; }
.theme-preview-avatar { display: block; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; background: var(--theme-accent); }
.theme-preview-line { display: block; width: 48%; height: 6px; margin: 6px auto; border-radius: 5px; background: #bcc5cb; }
.theme-preview-line.long { width: 70%; background: #8b99a3; }
.theme-preview-card { display: block; height: 28px; margin-top: 8px; border-radius: 6px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.custom-colour { margin-top: 22px; }
.custom-colour > p { color: var(--muted); }
.colour-input { display: flex; align-items: center; gap: 10px; max-width: 520px; }
.colour-input input[type=color] { width: 54px; min-width: 54px; height: 46px; padding: 3px; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.analytics-source { padding-top: 12px; }
.metric-list { padding: 15px 24px 24px; }
.metric-row { margin-top: 14px; }
.metric-row > div:first-child { display: flex; justify-content: space-between; gap: 15px; }
.metric-row span { color: var(--muted); }
.metric-bar { height: 8px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #edf1f3; }
.metric-bar span { display: block; height: 100%; border-radius: inherit; background: #5b829d; }
.data-table-wrap { padding: 10px 18px 18px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: 11px 8px; border-bottom: 1px solid #edf0f2; text-align: left; }
.data-table th { color: #6f7c85; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.data-table td:not(:first-child), .data-table th:not(:first-child) { text-align: right; }

.public-profile-body { margin: 0; background: #f7f8f9; color: #18242d; }
.public-shell { width: min(760px, calc(100% - 28px)); margin: 0 auto; }
.public-profile { min-height: calc(100vh - 80px); }
.agent-hero { padding: 38px 0 31px; border-top: 7px solid var(--profile-accent); background: #fff; text-align: center; }
.agent-photo { width: 108px; height: 108px; border: 4px solid var(--profile-soft); border-radius: 50%; object-fit: cover; }
.agent-initials { display: grid; place-items: center; margin: 0 auto; background: var(--profile-accent); color: #fff; font-size: 2rem; font-weight: 800; }
.agent-hero h1 { margin: 13px 0 2px; font-size: 2rem; letter-spacing: -.035em; }
.agent-title, .agent-brokerage, .agent-location { margin: 2px 0; color: #667681; }
.agent-title { color: #344854; font-weight: 650; }
.agent-brokerage { font-size: .95rem; }
.agent-location { font-size: .9rem; }
.verified-badge { display: inline-flex; margin-top: 10px; padding: 5px 9px; border-radius: 999px; background: var(--profile-soft); color: var(--profile-accent); font-size: .78rem; font-weight: 800; }
.contact-buttons { display: flex; justify-content: center; gap: 9px; margin: 20px 0 0; }
.contact-buttons a { min-width: 92px; padding: 10px 16px; border-radius: 9px; background: var(--profile-accent); color: #fff; text-decoration: none; font-weight: 750; }
.agent-bio { max-width: 610px; margin: 21px auto 0; color: #596a75; font-size: .94rem; }
.public-content { padding: 30px 0 45px; }
.public-section-heading { margin: 0 0 13px; }
.public-section-heading p { margin: 0 0 2px; color: var(--profile-accent); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.public-section-heading h2 { margin: 0; font-size: 1.4rem; letter-spacing: -.025em; }
.listing-card-grid { display: grid; gap: 16px; }
.public-listing-card { display: grid; grid-template-columns: 235px 1fr; overflow: hidden; border: 1px solid #e0e4e7; border-radius: 15px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 8px 24px rgba(20,32,43,.04); transition: transform .15s ease, box-shadow .15s ease; }
.public-listing-card:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(20,32,43,.08); }
.public-listing-image { position: relative; min-height: 175px; background: #e8edef; }
.public-listing-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-listing-image.no-photo { display: grid; place-items: center; color: #8b979f; font-weight: 750; background: linear-gradient(135deg, var(--profile-soft), #e9edef); }
.listing-status { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 6px; background: rgba(255,255,255,.94); color: #31404a; font-size: .72rem; font-weight: 800; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.public-listing-copy { padding: 20px; }
.listing-price { display: block; color: var(--profile-accent); font-size: 1.24rem; }
.public-listing-copy h3 { margin: 5px 0 2px; font-size: 1.12rem; }
.listing-place, .listing-facts { margin: 3px 0; color: #697983; font-size: .88rem; }
.view-listing { display: inline-block; margin-top: 16px; color: var(--profile-accent); font-size: .88rem; font-weight: 800; }
.public-links-section { margin-top: 34px; }
.public-links { display: grid; gap: 9px; }
.public-links a { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid #dfe4e7; border-radius: 10px; background: #fff; color: #25343f; text-decoration: none; }
.public-links a:hover { border-color: #b9c9d3; }
.public-link-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: var(--profile-soft); color: var(--profile-accent); font-weight: 800; }
.public-office { margin-top: 28px; padding-top: 20px; border-top: 1px solid #e1e5e8; color: #6b7a84; font-size: .9rem; }
.public-office strong { color: #354550; }
.public-office p { margin: 4px 0 0; }
.public-footer { min-height: 74px; display: grid; place-items: center; padding: 20px; border-top: 1px solid #e0e5e8; background: #fff; }
.public-footer a { color: #697782; text-decoration: none; font-size: .82rem; }
.public-footer strong { color: #344955; }
.listing-detail { min-height: calc(100vh - 74px); padding: 24px 0 45px; border-top: 7px solid var(--profile-accent); }
.back-profile { display: inline-block; margin: 3px 0 17px; color: var(--profile-accent); text-decoration: none; font-weight: 700; font-size: .9rem; }
.listing-detail-card { overflow: hidden; border: 1px solid #dfe4e7; border-radius: 16px; background: #fff; box-shadow: 0 12px 35px rgba(20,32,43,.06); }
.listing-hero-image { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.listing-detail-copy { padding: 28px; }
.detail-status { display: inline-flex; padding: 5px 9px; border-radius: 7px; background: var(--profile-soft); color: var(--profile-accent); font-size: .76rem; font-weight: 800; }
.detail-price { margin: 18px 0 0; color: var(--profile-accent); font-size: 1.65rem; font-weight: 850; }
.listing-detail-copy h1 { margin: 4px 0 0; font-size: clamp(1.8rem,5vw,2.6rem); line-height: 1.08; letter-spacing: -.04em; }
.detail-place { margin: 7px 0 0; color: #697983; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-facts span { padding: 7px 10px; border-radius: 7px; background: #f0f3f5; color: #465863; font-size: .87rem; font-weight: 700; }
.detail-description { margin: 22px 0; padding-top: 20px; border-top: 1px solid #edf0f2; color: #51626d; }
.listing-agent-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; margin-top: 17px; padding: 16px; border: 1px solid #dfe4e7; border-radius: 12px; background: #fff; }
.listing-agent-card img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.listing-agent-card div { display: flex; flex-direction: column; min-width: 0; }
.listing-agent-card small { color: #83909a; }
.listing-agent-card span { color: #697983; font-size: .84rem; }
.listing-agent-card a { color: var(--profile-accent); text-decoration: none; font-size: .87rem; font-weight: 750; }
.detail-contact { margin-top: 14px; }
.detail-contact a { flex: 1 1 0; text-align: center; }

.legal-section { padding: 75px 20px; background: #f7f9fa; }
.legal-copy { width: min(760px,100%); margin: 0 auto; padding: 38px; border: 1px solid #dfe4e7; border-radius: 18px; background: #fff; }
.legal-copy h1 { margin: 0; font-size: 2.5rem; letter-spacing: -.04em; }
.legal-copy h2 { margin: 34px 0 8px; font-size: 1.28rem; }
.legal-copy p { color: #54646f; }
.legal-date { font-size: .9rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-top: 55px; padding-bottom: 60px; }
  .hero-copy { text-align: center; }
  .hero-copy h1, .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .feature-grid, .stat-grid { grid-template-columns: repeat(2,1fr); }
  .split-section, .dashboard-grid, .analytics-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; z-index: 20; top: 68px; left: 14px; right: 14px; padding: 14px; flex-direction: column; align-items: stretch; gap: 4px; border: 1px solid #dfe4e7; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(20,32,43,.14); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px; }
  .hero-grid { min-height: 0; padding-top: 42px; gap: 42px; }
  .hero-copy h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .phone-preview { width: min(92%, 350px); }
  .section { padding: 65px 0; }
  .feature-grid, .stat-grid, .form-grid.two-col, .form-grid.three-col, .theme-grid { grid-template-columns: 1fr; }
  .cta-inner, .footer-inner, .dashboard-top, .setup-banner { align-items: stretch; flex-direction: column; }
  .cta-inner .button { width: 100%; }
  .footer-inner nav { flex-direction: column; gap: 10px; }
  .dashboard-section { padding-top: 30px; }
  .dashboard-actions { width: 100%; }
  .dashboard-actions .button { flex: 1; }
  .dashboard-nav { margin-left: -14px; margin-right: -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .manage-row { grid-template-columns: 90px 1fr; }
  .manage-image { width: 90px; }
  .manage-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .compact-row { grid-template-columns: 42px 1fr; }
  .compact-row .manage-actions { grid-column: 1 / -1; }
  .form-save-bar { align-items: flex-start; flex-direction: column; }
  .colour-input { align-items: stretch; flex-wrap: wrap; }
  .colour-input input[type=text] { flex: 1; }
  .public-listing-card { grid-template-columns: 1fr; }
  .public-listing-image { min-height: 210px; aspect-ratio: 16 / 10; }
  .agent-hero { padding-top: 30px; }
  .contact-buttons a { min-width: 0; flex: 1; padding-left: 10px; padding-right: 10px; }
  .listing-detail-copy { padding: 22px; }
  .listing-agent-card { grid-template-columns: 52px 1fr; }
  .listing-agent-card img { width: 52px; height: 52px; }
  .listing-agent-card > a { grid-column: 1 / -1; }
  .legal-copy { padding: 27px 22px; }
  .legal-copy h1 { font-size: 2.1rem; }
}

@media (max-width: 420px) {
  .auth-card { padding: 27px 20px; }
  .input-prefix { grid-template-columns: 1fr; }
  .input-prefix span { padding: 8px 12px; border-bottom: 1px solid #dbe2e6; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 17px; }
  .stat-card strong { font-size: 1.65rem; }
  .source-copy { align-items: flex-start; flex-direction: column; gap: 2px; }
}
.qr-layout { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(0,1.2fr); gap:22px; align-items:start; max-width:850px; }
.qr-card { padding:26px; text-align:center; }
.qr-card img { display:block; width:min(100%,360px); height:auto; margin:0 auto; border:1px solid #e1e5e8; }
.qr-card p { margin:15px 0 0; color:var(--muted); }
.qr-note { margin:18px 0 0; color:var(--muted); font-size:.82rem; }
@media (max-width:680px) { .qr-layout { grid-template-columns:1fr; } }

/* Version 2 account and signup feedback */
.username-status { min-height: 1.3em; color: #74838e; font-size: .84rem; font-weight: 650; }
.username-status.available { color: var(--success); }
.username-status.unavailable { color: var(--danger); }
.username-status.available::before { content: "✓ "; }
.account-deleted-message { margin-top: 18px; }
.account-facts { display: grid; gap: 0; }
.account-facts > div { display: grid; gap: 3px; padding: 14px 0; border-top: 1px solid #edf0f2; }
.account-facts > div:first-child { border-top: 0; padding-top: 0; }
.account-facts span { color: var(--muted); font-size: .82rem; }
.account-facts strong { overflow-wrap: anywhere; }
.danger-panel { padding: 26px; border-color: #eccaca; background: #fffafa; }
.danger-panel h2 { margin: 0 0 8px; color: #7f2424; }
.danger-panel p { color: #6e5151; }
.button-danger, .button-danger:hover { border-color: #9f2b2b; background: #9f2b2b; color: #fff !important; }
.button-danger-outline { border-color: #c56d6d; background: #fff; color: #962d2d !important; }
.button-danger-outline:hover { background: #fff3f3; }
.danger-confirm-form { max-width: 620px; }
.danger-actions { display: flex; flex-wrap: wrap; gap: 10px; }
