:root {
    color-scheme: light;
    --color-primary: #1f6feb;
    --color-text: #1f2937;
    --color-muted: #667085;
    --color-border: #d0d5dd;
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

.admin-body {
    background: #eef2f6;
}

a {
    color: var(--color-primary);
}

.app-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.app-status {
    width: min(100%, 680px);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.app-status h1 {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
}

.app-status p {
    margin: 0 0 16px;
    color: var(--color-muted);
    line-height: 1.5;
}

.app-status dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
}

.app-status dt {
    font-weight: 700;
}

.app-status dd {
    margin: 2px 0 0;
    color: var(--color-muted);
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
}

.auth-panel {
    width: min(100%, 420px);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.auth-kicker {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.auth-panel h1 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.2;
}

.installer-shell {
    min-height: 100vh;
    padding: 32px 18px;
    background: #eef2f6;
}

.installer-panel {
    width: min(100%, 1100px);
    margin: 0 auto;
}

.installer-heading {
    margin-bottom: 18px;
}

.installer-heading h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.15;
}

.installer-heading p:last-child {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.installer-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.installer-requirements span {
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.installer-requirements .is-ok {
    border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
}

.installer-requirements .is-warning {
    border-color: #fecaca;
    color: #991b1b;
    background: #fff1f2;
}

.installer-form {
    display: grid;
    gap: 16px;
}

.installer-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.installer-form input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    background: #ffffff;
    font: inherit;
}

.installer-form .panel-box {
    background: #ffffff;
}

.installer-complete {
    width: min(100%, 520px);
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.installer-complete h2 {
    margin: 0 0 8px;
}

.installer-complete p {
    margin: 0 0 16px;
    color: var(--color-muted);
    line-height: 1.5;
}

.installer-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.auth-copy,
.auth-link {
    color: var(--color-muted);
    line-height: 1.5;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-stack label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}

.form-stack input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font: inherit;
}

.settings-form,
.property-form {
    display: grid;
    gap: 18px;
}

.settings-form {
    font-size: 14px;
}

.settings-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.settings-fieldset:disabled {
    opacity: 0.72;
}

.property-form label,
.upload-control {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.settings-form label {
    display: grid;
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.settings-form .check-row,
.property-form .check-row {
    display: flex;
    font-weight: 400;
}

.settings-form .check-row input,
.property-form .check-row input {
    width: 18px;
    min-height: 18px;
    padding: 0;
}

.settings-form input,
.settings-form select,
.settings-form textarea,
.property-form input,
.property-form select,
.property-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    background: #ffffff;
    font: inherit;
}

.property-form input,
.property-form select,
.property-form textarea {
    min-height: 44px;
    padding: 10px 12px;
}

.settings-form input,
.settings-form select,
.settings-form textarea {
    color: #101828;
    font-size: 14px;
    font-weight: 400;
}

.settings-form input[type="file"] {
    padding: 7px 10px;
    font-size: 13px;
}

.settings-form textarea,
.property-form textarea {
    resize: vertical;
    line-height: 1.5;
}

button {
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    background: var(--color-primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.inline-form {
    margin-top: 20px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.button-link-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: var(--color-surface);
}

.admin-page {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 20px;
}

.admin-page-narrow {
    width: min(100%, 680px);
}

.admin-header {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-header h1 {
    margin: 0;
    font-size: 28px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

th {
    font-size: 13px;
    color: var(--color-muted);
    background: #f2f4f7;
}

tr:last-child td {
    border-bottom: 0;
}

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.row-actions form {
    margin: 0;
}

.link-button {
    min-height: auto;
    padding: 0;
    color: #b42318;
    background: transparent;
    font-weight: 700;
}

.auth-panel-wide {
    width: 100%;
}

fieldset {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

legend {
    padding: 0 6px;
    font-weight: 700;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.check-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.check-row small {
    display: block;
    margin-top: 2px;
    color: var(--color-muted);
    line-height: 1.4;
}

.check-row-inline {
    align-items: center;
}

.role-grid {
    display: grid;
    gap: 16px;
}

.role-card {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.role-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.role-card p {
    margin: 0 0 12px;
    color: var(--color-muted);
}

.role-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-card li {
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 13px;
    background: #f8fafc;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 280px;
    padding: 18px;
    border-right: 1px solid var(--color-border);
    background: #101828;
    color: #ffffff;
    transform: translateX(-100%);
    transition: transform 180ms ease;
}

.sidebar-open .admin-sidebar {
    transform: translateX(0);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    background: rgba(15, 23, 42, 0.45);
}

.sidebar-open .sidebar-backdrop {
    display: block;
}

.sidebar-brand {
    display: grid;
    gap: 2px;
    padding: 4px 2px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand a {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
}

.sidebar-brand span {
    color: #cbd5e1;
    font-size: 13px;
}

.sidebar-nav {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.sidebar-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #d0d5dd;
    text-decoration: none;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    color: #ffffff;
    background: #344054;
}

.nav-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.03);
    flex: 0 0 28px;
}

.nav-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.sidebar-nav a:hover .nav-icon,
.sidebar-nav a.is-active .nav-icon {
    border-color: rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.admin-main {
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.96);
}

.icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 11px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.icon-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    background: var(--color-text);
}

.topbar-title {
    display: grid;
    min-width: 0;
}

.topbar-title strong,
.topbar-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-title strong {
    font-size: 16px;
}

.topbar-title span {
    color: var(--color-muted);
    font-size: 13px;
}

.topbar-logout {
    margin: 0;
}

.topbar-logout button {
    min-height: 38px;
    padding: 8px 12px;
}

.admin-content {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px;
}

.page-heading {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.page-heading h1 {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.15;
}

.page-heading p {
    margin: 0;
    color: var(--color-muted);
}

.page-heading-row {
    align-items: start;
}

.metric-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.metric-card {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.metric-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.metric-card strong {
    font-size: 30px;
    line-height: 1;
}

.panel-grid {
    display: grid;
    gap: 16px;
}

.panel-box {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.panel-box h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

.settings-form .panel-box {
    display: grid;
    align-content: start;
    gap: 13px;
    padding: 16px;
}

.settings-form .panel-box h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e7ec;
    color: #101828;
    font-size: 17px;
    line-height: 1.25;
}

.settings-form .form-grid,
.settings-form .upload-grid {
    gap: 12px;
}

.settings-form .color-input {
    display: block;
    padding: 4px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #ffffff;
}

.settings-form .color-input input {
    min-height: 28px;
    padding: 0;
    border: 0;
}

.settings-form .image-preview {
    max-width: 100%;
    border: 1px solid #e4e7ec;
    border-radius: 6px;
    background: #f8fafc;
}

.settings-form .logo-preview {
    width: 160px;
    height: 80px;
    object-fit: contain;
}

.settings-form .favicon-preview {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.settings-form .cover-preview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.settings-form .check-row-inline {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: 13px;
}

.settings-form .sticky-actions {
    margin-top: 4px;
    padding: 14px 0 0;
}

.settings-form .sticky-actions button {
    min-height: 40px;
    padding: 9px 16px;
    font-size: 14px;
}

.panel-heading-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.panel-heading-row h2,
.panel-heading-row p {
    margin: 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    margin: 0;
}

.detail-list dt {
    font-weight: 700;
}

.detail-list dd {
    margin: 0;
    color: var(--color-muted);
}

.backup-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.backup-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
    line-height: 1.5;
}

.backup-command {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    overflow-x: auto;
    background: #f8fafc;
    color: var(--color-text);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.table-actions form {
    margin: 0;
}

.link-danger {
    padding: 0;
    border: 0;
    color: #b42318;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.form-panel {
    max-width: 760px;
}

.settings-grid {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.crm-detail-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.crm-form {
    display: grid;
    gap: 14px;
}

.crm-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.crm-form input,
.crm-form select,
.crm-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    background: #ffffff;
    font: inherit;
}

.crm-form textarea {
    resize: vertical;
    line-height: 1.5;
}

.crm-summary {
    align-content: start;
}

.crm-timeline {
    display: grid;
    gap: 12px;
}

.crm-timeline-wide {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.timeline-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.timeline-item.is-completed {
    opacity: 0.72;
}

.timeline-item span {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.timeline-item strong,
.timeline-item p {
    margin: 0;
}

.timeline-item p {
    color: var(--color-muted);
    line-height: 1.45;
}

.inline-action-form {
    margin-top: 6px;
}

.inline-action-form button {
    min-height: 34px;
    padding: 7px 10px;
}

.match-grid {
    display: grid;
    gap: 14px;
}

.match-card {
    display: grid;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.match-card-media {
    display: grid;
    width: 100%;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
    color: var(--color-muted);
    background: #f8fafc;
    font-size: 13px;
    font-weight: 800;
}

.match-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-card-body {
    display: grid;
    gap: 8px;
}

.match-card-body h3,
.match-card-body p {
    margin: 0;
}

.match-card-body p {
    color: var(--color-muted);
}

.match-card-top,
.match-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.match-card-top small {
    color: var(--color-muted);
    font-weight: 800;
}

.match-score {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #17663a;
    background: #eefaf2;
    font-size: 13px;
    font-weight: 800;
}

.match-reasons {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.35;
}

.stats-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.stat-list {
    display: grid;
    gap: 12px;
}

.stat-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(120px, 2fr) max-content;
    align-items: center;
    gap: 10px;
}

.stat-row span {
    color: var(--color-text);
    font-weight: 700;
}

.stat-row strong {
    min-width: 34px;
    text-align: right;
}

.stat-bar {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f6;
}

.stat-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--color-primary);
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.ranking-item > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font-weight: 800;
}

.ranking-item div {
    display: grid;
    gap: 3px;
}

.ranking-item small {
    color: var(--color-muted);
    font-weight: 800;
}

.audit-list {
    display: grid;
    gap: 12px;
}

.audit-item {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.audit-item-main {
    display: grid;
    gap: 8px;
}

.audit-item-main h2,
.audit-item-main p {
    margin: 0;
}

.audit-item-main h2 {
    font-size: 17px;
}

.audit-item-main p,
.audit-entity {
    color: var(--color-muted);
    font-size: 13px;
}

.audit-entity {
    margin-left: 8px;
    font-weight: 800;
}

.audit-values {
    display: grid;
    gap: 10px;
}

.audit-values details {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #f8fafc;
}

.audit-values summary {
    cursor: pointer;
    padding: 9px 10px;
    font-weight: 800;
}

.audit-values pre {
    max-height: 240px;
    margin: 0;
    overflow: auto;
    padding: 10px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    white-space: pre-wrap;
}

.upload-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.color-input {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #ffffff;
}

.color-input input {
    width: 100%;
    min-height: 32px;
    padding: 0;
    border: 0;
}

.image-preview {
    display: block;
    max-width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    object-fit: contain;
}

.logo-preview {
    width: 220px;
    height: 90px;
    padding: 10px;
}

.favicon-preview {
    width: 64px;
    height: 64px;
    padding: 8px;
}

.cover-preview {
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: 12px 0 0;
    background: linear-gradient(to top, #eef2f6 75%, rgba(238, 242, 246, 0));
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-pill.is-on {
    color: #17663a;
    background: #eefaf2;
}

.status-pill.is-off {
    color: #8a1f1f;
    background: #fff1f1;
}

.status-pill.is-neutral {
    color: #344054;
    background: #eef2f6;
}

.status-pill-new {
    color: #175cd3;
    background: #eff8ff;
}

.status-pill-contacted,
.status-pill-follow_up,
.status-pill-visit {
    color: #855a00;
    background: #fff8db;
}

.status-pill-negotiation {
    color: #6941c6;
    background: #f4f0ff;
}

.status-pill-won {
    color: #17663a;
    background: #eefaf2;
}

.status-pill-lost {
    color: #8a1f1f;
    background: #fff1f1;
}

.status-pill-prospect {
    color: #175cd3;
    background: #eff8ff;
}

.status-pill-active,
.status-pill-client {
    color: #17663a;
    background: #eefaf2;
}

.status-pill-archived {
    color: #344054;
    background: #eef2f6;
}

.cell-link {
    display: block;
    margin-top: 4px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.cell-muted {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.35;
}

.empty-cell {
    padding: 24px;
    color: var(--color-muted);
    text-align: center;
}

.thumb-placeholder {
    display: inline-grid;
    width: 74px;
    aspect-ratio: 4 / 3;
    place-items: center;
    border: 1px dashed var(--color-border);
    border-radius: 6px;
    color: var(--color-muted);
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.property-thumb {
    display: block;
    width: 74px;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    background: #f8fafc;
}

.visibility-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.property-form .panel-box {
    align-content: start;
}

.property-admin-form {
    font-size: 14px;
}

.property-admin-form .panel-box {
    display: grid;
    gap: 13px;
    padding: 16px;
}

.property-admin-form .panel-box h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e7ec;
    color: #101828;
    font-size: 17px;
    line-height: 1.25;
}

.property-admin-form label {
    color: #344054;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.property-admin-form .check-row {
    font-weight: 400;
}

.property-admin-form input,
.property-admin-form select,
.property-admin-form textarea {
    min-height: 40px;
    padding: 9px 10px;
    color: #101828;
    font-size: 14px;
    font-weight: 400;
}

.property-admin-form .form-grid,
.property-admin-form .image-manager,
.property-admin-form .upload-preview {
    gap: 12px;
}

.panel-wide {
    grid-column: 1 / -1;
}

.file-drop {
    display: grid;
    min-height: 112px;
    place-items: center;
    padding: 18px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    color: var(--color-muted);
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
}

.file-drop.is-dragging {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #eef5ff;
}

.file-drop input {
    max-width: 360px;
}

.upload-preview,
.image-manager {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.preview-list,
.image-manager {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.preview-item,
.property-photo-card {
    display: grid;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.preview-item img,
.property-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 6px;
    object-fit: cover;
    background: #f8fafc;
}

.preview-item span {
    overflow: hidden;
    color: var(--color-muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-controls {
    display: grid;
    gap: 8px;
}

.filter-panel {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.properties-filter-panel {
    gap: 12px;
    padding: 14px;
    font-size: 14px;
}

.leads-filter-panel {
    gap: 12px;
    padding: 14px;
    font-size: 14px;
}

.filter-panel label,
.bulk-form {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.properties-filter-panel label,
.properties-bulk-form,
.leads-filter-panel label {
    gap: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 500;
}

.filter-panel input,
.filter-panel select,
.bulk-form select,
.quick-edit-form select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    background: #ffffff;
    font: inherit;
}

.properties-filter-panel input,
.properties-filter-panel select,
.properties-bulk-form select,
.leads-filter-panel input,
.leads-filter-panel select,
.quick-edit-form select {
    min-height: 38px;
    padding: 8px 9px;
    color: #101828;
    font-size: 14px;
    font-weight: 400;
}

.leads-filter-panel .filter-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: end;
}

.leads-filter-panel .filter-actions button,
.leads-filter-panel .filter-actions a {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

.filter-actions,
.list-toolbar,
.bulk-form,
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-actions {
    align-self: end;
}

.list-toolbar {
    justify-content: space-between;
    margin-bottom: 12px;
}

.properties-toolbar {
    padding: 0 2px;
}

.list-toolbar p {
    margin: 0;
    color: var(--color-muted);
}

.bulk-form {
    grid-auto-flow: column;
}

.bulk-form select {
    width: auto;
    min-width: 150px;
}

.properties-table {
    min-width: 1120px;
}

.properties-table-wrap {
    border-color: #d6dce5;
}

.properties-admin-table {
    min-width: 1120px;
    font-size: 14px;
}

.properties-admin-table th {
    padding: 10px 12px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: #f8fafc;
}

.properties-admin-table td {
    padding: 14px 12px;
    color: #101828;
    vertical-align: middle;
}

.properties-admin-table td > strong {
    font-weight: 700;
}

.properties-admin-table tbody tr:hover {
    background: #fbfcfe;
}

.leads-table {
    min-width: 1080px;
    table-layout: fixed;
    font-size: 14px;
}

.leads-table-wrap {
    border-color: #d6dce5;
}

.leads-table th {
    padding: 10px 12px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    background: #f8fafc;
}

.leads-table td {
    padding: 12px;
    color: #101828;
    vertical-align: top;
}

.leads-table th:first-child,
.leads-table td:first-child {
    width: auto;
    text-align: left;
}

.lead-date-col,
.lead-date-column {
    width: 118px;
}

.lead-person-col,
.lead-person-column {
    width: 190px;
}

.lead-property-col,
.lead-property-column {
    width: 150px;
}

.lead-message-col,
.lead-message-column {
    width: auto;
}

.lead-manage-col,
.lead-manage-column {
    width: 270px;
}

.lead-date-cell,
.lead-person-cell,
.lead-property-cell {
    overflow-wrap: anywhere;
}

.lead-date-cell > strong,
.lead-person-cell > strong {
    display: block;
    font-weight: 700;
}

.lead-date-cell .cell-muted,
.lead-date-cell .status-pill {
    margin-top: 4px;
}

.lead-person-cell,
.lead-property-cell {
    line-height: 1.45;
}

.leads-table .cell-link {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.lead-property-cell .cell-link:first-child {
    font-weight: 700;
}

.properties-table th:first-child,
.properties-table td:first-child {
    width: 42px;
    text-align: center;
}

.leads-table th.lead-date-column,
.leads-table td.lead-date-cell {
    width: 118px;
    min-width: 118px;
    text-align: left;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.quick-edit-form {
    display: grid;
    gap: 8px;
    min-width: 190px;
}

.properties-admin-table .quick-edit-form {
    min-width: 180px;
}

.lead-message-cell {
    color: #475467;
}

.lead-message-cell p {
    margin: 0;
    color: #475467;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.lead-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    min-width: 0;
}

.lead-delete-form {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
}

.contact-delete-form .link-button,
.lead-delete-form .link-button {
    min-height: 36px;
    font-size: 13px;
    font-weight: 500;
}

.contact-delete-form {
    margin: 4px 0 0;
}

.inquiry-verification {
    min-width: 0;
    max-width: 100%;
    min-height: 140px;
}

.lead-inline-form label {
    display: grid;
    gap: 5px;
    color: #526070;
    font-size: 12px;
    font-weight: 600;
}

.lead-inline-form label:nth-of-type(3) {
    grid-column: 1 / -1;
}

.lead-inline-form select,
.lead-inline-form textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #101828;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
}

.lead-inline-form textarea {
    min-height: 66px;
    resize: vertical;
}

.lead-inline-form button {
    grid-column: 1 / -1;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 14px;
}

.quick-edit-form button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
}

.quick-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.quick-flags label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
}

.properties-row-actions {
    gap: 7px 10px;
    align-items: center;
}

.properties-row-actions a,
.properties-row-actions .link-button {
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.properties-row-actions .link-button {
    color: #b42318;
}

.quick-flags input,
.properties-table input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
}

.link-button-primary {
    color: var(--color-primary);
}

.pagination {
    justify-content: center;
    margin-top: 16px;
}

.pagination span {
    color: var(--color-muted);
    font-weight: 700;
}

.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.public-body {
    font-family: var(--public-font-family, Arial, Helvetica, sans-serif);
    background: #ffffff;
    overflow-x: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.home-notice-open,
.home-notice-open body {
    overflow: hidden;
}

.home-notice {
    width: min(520px, calc(100% - 32px));
    max-width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    background: #ffffff;
    font-family: inherit;
    box-shadow: 0 16px 48px rgb(0 0 0 / 20%);
}

.home-notice::backdrop {
    background: rgb(0 0 0 / 50%);
}

.home-notice-heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.home-notice-heading h2 {
    min-width: 0;
    margin: 8px 0 0;
    color: var(--brand-secondary, #111827);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.home-notice-close {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-border);
    color: #475569;
    background: #ffffff;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.home-notice-close:hover {
    background: #f2f4f7;
}

.home-notice-message {
    margin: 16px 0 24px;
    color: #475569;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.home-notice-actions {
    display: flex;
    justify-content: flex-end;
}

.home-notice button:focus-visible {
    outline: 2px solid var(--brand-primary, #1f6feb);
    outline-offset: 3px;
}

.site-header-inner,
.public-container,
.site-footer-inner {
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
}

.site-header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 74px;
}

.site-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: var(--brand-secondary, #111827);
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.site-brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
}

.site-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-menu-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    min-height: 44px;
    place-items: center;
    padding: 11px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.site-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    background: var(--brand-secondary, #111827);
}

.site-nav {
    display: none;
    grid-column: 1 / -1;
    gap: 6px;
    padding-bottom: 14px;
}

.site-nav.is-open {
    display: grid;
}

.site-nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    color: #344054;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand-primary, #1f6feb);
    background: #f2f4f7;
}

.site-nav-cta {
    color: #ffffff !important;
    background: var(--brand-primary, #1f6feb) !important;
}

.public-hero {
    min-height: clamp(520px, 72vh, 720px);
    display: grid;
    align-items: center;
    background-position: center;
    background-size: cover;
    color: #ffffff;
}

.hero-content {
    display: grid;
    max-width: 760px;
    gap: 18px;
    padding: 76px 0;
}

.hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.hero-content h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1;
}

.hero-content span {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.public-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 6px;
    color: #ffffff;
    background: var(--brand-primary, #1f6feb);
    font-weight: 700;
    text-decoration: none;
}

.public-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.public-section {
    padding: 58px 0;
}

.public-section-soft {
    background: #f3f6f8;
}

.public-search-band {
    padding: 0 0 34px;
    background: #ffffff;
}

.public-search {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.public-search-home {
    margin-top: -48px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

.public-search-catalog {
    margin-bottom: 18px;
}

.public-search label {
    display: grid;
    gap: 8px;
    color: #263648;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.public-search input,
.public-search select {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.public-search input::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.public-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.public-search-actions button,
.public-search-actions a {
    width: 100%;
    font-weight: 700;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--brand-primary, #1f6feb);
    font-size: 14px;
    font-weight: 600;
}

.section-split {
    display: grid;
    gap: 20px;
}

.section-heading-row {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.section-split h2,
.section-heading-row h2,
.cta-band h2,
.about-grid h2,
.public-page-title h1 {
    margin: 0;
    color: var(--brand-secondary, #111827);
    font-size: 34px;
    line-height: 1.12;
}

.section-split p,
.about-grid p,
.values-grid p,
.service-grid p,
.public-page-title span {
    margin: 0;
    color: #526070;
    font-size: 17px;
    line-height: 1.6;
}

.service-grid,
.values-grid,
.contact-grid {
    display: grid;
    gap: 16px;
}

.service-grid article,
.values-grid article,
.contact-card,
.about-panel {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.service-grid article span,
.contact-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--brand-primary, #1f6feb);
    font-weight: 800;
}

.service-grid h2,
.values-grid h2 {
    margin: 0 0 10px;
    color: var(--brand-secondary, #111827);
    font-size: 22px;
}

.cta-band {
    display: grid;
    gap: 18px;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.public-page-title {
    padding: 72px 0 42px;
    background: #f3f6f8;
}

.public-page-title .public-container {
    display: grid;
    max-width: 900px;
    gap: 12px;
}

.about-grid {
    display: grid;
    gap: 24px;
}

.about-grid > div:first-child {
    display: grid;
    gap: 14px;
}

.about-panel {
    display: grid;
    align-content: start;
    gap: 10px;
    border-top: 4px solid var(--brand-primary, #1f6feb);
}

.about-panel strong,
.contact-card strong,
.contact-card a {
    color: var(--brand-secondary, #111827);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
}

.about-panel span,
.about-panel small {
    color: #526070;
    line-height: 1.5;
}

.contact-card {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 140px;
}

.contact-card a {
    text-decoration: none;
}

.public-text-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-self: start;
    color: var(--brand-primary, #1f6feb);
    font-weight: 800;
    text-decoration: none;
}

.public-property-grid {
    display: grid;
    gap: 18px;
}

.public-property-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.public-property-media {
    position: relative;
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    color: #667085;
    background: #eef2f6;
    font-weight: 800;
    text-decoration: none;
}

.public-property-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-property-media strong {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--brand-primary, #1f6feb);
    font-size: 13px;
    font-weight: 600;
}

.public-property-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.property-operation {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--brand-primary, #1f6feb);
    font-size: 13px;
    font-weight: 600;
}

.public-property-body h2 {
    margin: 0 0 6px;
    color: var(--brand-secondary, #111827);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.22;
}

.public-property-body h2 a {
    color: inherit;
    text-decoration: none;
}

.public-property-body p {
    margin: 0;
    color: #526070;
    line-height: 1.45;
}

.property-price {
    color: var(--brand-secondary, #111827);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.08;
}

.property-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-facts li {
    padding: 6px 8px;
    border-radius: 999px;
    color: #344054;
    background: #f2f4f7;
    font-size: 13px;
    font-weight: 500;
}

.property-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.property-card-footer span {
    color: #667085;
    font-size: 13px;
    font-weight: 600;
}

.property-card-footer a {
    color: var(--brand-primary, #1f6feb);
    font-weight: 600;
    text-decoration: none;
}

.property-detail-title {
    padding-bottom: 34px;
}

.property-detail-title .section-kicker {
    font-weight: 600;
}

.property-detail-heading {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.property-detail-heading h1 {
    max-width: 820px;
    font-weight: 700;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.property-detail-price {
    display: grid;
    gap: 8px;
    align-content: start;
    justify-items: start;
}

.property-detail-price strong {
    color: var(--brand-secondary, #111827);
    font-size: 29px;
    font-weight: 700;
    line-height: 1.1;
}

.property-detail-price span {
    color: #526070;
    font-size: 16px;
    font-weight: 600;
}

.property-detail-section {
    padding-top: 34px;
}

.property-detail-grid {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.property-main-column,
.property-side-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.property-gallery {
    display: grid;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.property-gallery-main,
.property-gallery-empty {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 280px;
    aspect-ratio: 16 / 10;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    color: #526070;
    background: #eef2f6;
    font-weight: 500;
    text-decoration: none;
}

.property-gallery-main img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.property-gallery-thumbs a {
    display: block;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #eef2f6;
}

.property-gallery-thumbs img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.property-fact-grid div,
.property-detail-card,
.property-contact-card,
.property-inquiry-form,
.property-agent-card {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
}

.property-fact-grid div {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.property-fact-grid span,
.property-contact-card span,
.property-agent-card span {
    color: #526070;
    font-size: 13px;
    font-weight: 600;
}

.property-fact-grid strong {
    color: var(--brand-secondary, #111827);
    font-size: 20px;
    font-weight: 600;
}

.property-detail-card,
.property-contact-card,
.property-inquiry-form,
.property-agent-card {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.property-detail-card h2,
.property-inquiry-form h2 {
    margin: 0;
    color: var(--brand-secondary, #111827);
    font-size: 22px;
    font-weight: 700;
}

.property-detail-card p,
.property-contact-card p {
    margin: 0;
    color: #526070;
    line-height: 1.65;
}

.property-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.property-feature-list li {
    padding: 8px 10px;
    border-radius: 999px;
    color: #344054;
    background: #f2f4f7;
    font-weight: 500;
}

.property-map {
    width: 100%;
    min-height: 300px;
    border: 0;
    border-radius: 8px;
}

.property-contact-card strong {
    color: var(--brand-secondary, #111827);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.property-contact-card .public-button,
.property-contact-card .button-link {
    justify-content: center;
}

.property-share-button {
    gap: 8px;
    border-color: #bdebd0;
    color: #075e54;
    background: #ecfdf3;
    font-weight: 700;
}

.property-share-button:hover,
.property-share-button:focus {
    border-color: #8edbb1;
    color: #064e45;
    background: #dcfce7;
}

.property-share-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.property-inquiry-form label {
    display: grid;
    gap: 7px;
    color: var(--brand-secondary, #111827);
    font-size: 14px;
    font-weight: 600;
}

.property-inquiry-form input[name="website"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
}

.property-inquiry-form input,
.property-inquiry-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: #344054;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.property-inquiry-form input::placeholder,
.property-inquiry-form textarea::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.property-inquiry-form textarea {
    resize: vertical;
}

.property-inquiry-form input[name="website"] {
    width: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
}

.property-inquiry-form button {
    width: 100%;
    font-weight: 700;
}

.property-agent-card strong,
.property-agent-card a {
    color: var(--brand-secondary, #111827);
    font-weight: 600;
}

.property-agent-card a {
    text-decoration: none;
}

@media (max-width: 639px) {
    .site-header-inner,
    .public-container,
    .site-footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .property-detail-title {
        padding: 34px 0 30px;
    }

    .property-detail-heading {
        gap: 16px;
    }

    .property-detail-heading h1 {
        font-size: 42px;
        line-height: 1.05;
    }

    .property-detail-price strong {
        font-size: 36px;
    }

    .property-detail-section {
        padding-top: 24px;
    }

    .property-gallery-main,
    .property-gallery-empty {
        min-height: 220px;
        aspect-ratio: 4 / 3;
    }

    .property-gallery-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.catalog-summary {
    margin-bottom: 16px;
}

.catalog-summary p {
    margin: 0;
    color: #526070;
    font-weight: 700;
}

.empty-public-state {
    display: grid;
    gap: 10px;
    padding: 34px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.empty-public-state h2,
.empty-public-state p {
    margin: 0;
}

.empty-public-state p {
    color: #526070;
}

.public-pagination {
    margin-top: 22px;
}

.contact-card-action .public-button {
    justify-self: start;
    margin-top: 6px;
    color: #ffffff;
    font-size: 16px;
}

.contact-form-wrap {
    display: grid;
    gap: 12px;
    width: min(100% - 32px, 760px);
    margin-top: 22px;
}

.site-footer {
    padding: 44px 0 24px;
    color: #d0d5dd;
    background: var(--brand-secondary, #111827);
    font-size: 14px;
    line-height: 1.65;
}

.site-footer-inner {
    display: grid;
    gap: 28px;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 32px 40px;
    align-items: start;
}

.site-footer-grid > * {
    min-width: 0;
}

.footer-identity,
.footer-contact,
.footer-hours {
    display: grid;
    gap: 12px;
    align-content: start;
}

.site-footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-footer-brand strong {
    min-width: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.site-footer-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 4px;
    border-radius: 6px;
    background: #ffffff;
    object-fit: contain;
}

.site-footer .footer-heading {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.site-footer span,
.site-footer a,
.site-footer p {
    margin: 0;
    color: #d0d5dd;
    overflow-wrap: anywhere;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.footer-contact address {
    margin: 0;
    font-style: normal;
}

.footer-contact-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact-list li,
.footer-hours p {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.site-footer .footer-license,
.site-footer .footer-legal {
    font-size: 13px;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 14%);
}

.footer-legal {
    flex: 1 1 240px;
    min-width: 0;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-left: auto;
}

@media (max-width: 639px) {
    .site-footer {
        padding-top: 32px;
    }

    .footer-social {
        width: 100%;
        margin-left: 0;
    }
}

.alert {
    margin: 0 0 16px;
    padding: 12px;
    border-radius: 6px;
    line-height: 1.45;
}

.alert-error {
    border: 1px solid #f5b5b5;
    color: #8a1f1f;
    background: #fff1f1;
}

.alert-success {
    border: 1px solid #a9dbbd;
    color: #17663a;
    background: #eefaf2;
}

@media (min-width: 640px) {
    .app-status {
        padding: 32px;
    }

    .app-status dl {
        grid-template-columns: max-content 1fr;
        column-gap: 18px;
    }

    .app-status dd {
        margin: 0;
    }

    .auth-panel {
        padding: 32px;
    }

    .admin-page {
        padding: 32px;
    }

    .admin-header {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .admin-header .admin-actions {
        justify-content: flex-end;
        margin-top: 0;
    }

    .role-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-heading-row {
        grid-template-columns: 1fr auto;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-grid,
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crm-detail-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .match-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid,
    .backup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upload-grid,
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: span 2;
    }

    .leads-filter-panel {
        grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(120px, 1fr));
    }

    .leads-filter-panel .filter-search {
        grid-column: span 1;
    }

    .leads-filter-panel .filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .section-split,
    .section-heading-row,
    .about-grid,
    .cta-band {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .section-heading-row {
        align-items: end;
    }

    .section-heading-row .public-text-link {
        justify-self: end;
    }

    .service-grid,
    .values-grid,
    .contact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .public-property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-detail-heading {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .property-detail-price {
        justify-items: end;
        text-align: right;
    }

    .property-gallery-thumbs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .property-fact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .public-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-search-actions {
        grid-column: 1 / -1;
    }

    .public-search-actions button,
    .public-search-actions a {
        width: auto;
    }
}

@media (min-width: 960px) {
    .admin-shell {
        display: grid;
        grid-template-columns: 280px 1fr;
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none;
    }

    .sidebar-backdrop,
    .sidebar-open .sidebar-backdrop {
        display: none;
    }

    .icon-button {
        display: none;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        padding-inline: 24px;
    }

    .admin-content {
        padding: 28px;
    }

    .metric-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filter-panel {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .leads-filter-panel {
        grid-template-columns: minmax(240px, 1.7fr) repeat(4, minmax(120px, 1fr)) auto;
        align-items: end;
    }

    .leads-filter-panel .filter-actions {
        grid-column: auto;
        justify-content: flex-end;
    }

    .site-header-inner {
        grid-template-columns: 1fr auto;
    }

    .site-menu-button {
        display: none;
    }

    .site-nav {
        display: flex;
        grid-column: auto;
        align-items: center;
        padding-bottom: 0;
    }

    .public-property-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .property-detail-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        align-items: start;
    }

    .property-side-column {
        position: sticky;
        top: 24px;
    }

    .public-search {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .public-search-actions {
        grid-column: auto;
    }

    .public-search-home {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}
