@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-muted: #f8fafc;
    --text: #0d1b2a;
    --text-soft: #64748b;
    --line: #e2e8f0;
    --primary: #0b4da8;
    --primary-dark: #083c82;
    --secondary: #1e88e5;
    --accent: #ff6a00;
    --accent-light: #ffa726;
    --danger: #b42318;
    --success: #11845b;
    --shadow: 0 16px 36px rgba(13, 27, 42, 0.08);
    --glow: 0 12px 28px rgba(255, 106, 0, 0.25);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 12px;
    --container: 1120px;
    --pango-cursor: url("../cursors/pango-default.svg") 4 31, auto;
    --pango-cursor-property: url("../cursors/pango-property.svg") 5 32, pointer;
    --pango-cursor-key: url("../cursors/pango-key.svg") 5 30, pointer;
    --pango-cursor-pin: url("../cursors/pango-pin.svg") 5 31, pointer;
    --pango-cursor-heart: url("../cursors/pango-heart.svg") 5 30, pointer;
    --pango-cursor-chat: url("../cursors/pango-chat.svg") 5 30, pointer;
    --pango-cursor-search: url("../cursors/pango-search.svg") 5 30, text;
    --pango-cursor-loading: url("../cursors/pango-loading.svg") 5 30, progress;
}

/* PANGO conversation workspace */
.chat-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 10%, rgba(30, 136, 229, 0.10), transparent 26rem),
        var(--bg);
}

.chat-section {
    padding-top: 12px;
}

.chat-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    height: min(720px, calc(100vh - 120px));
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-strong);
    box-shadow: var(--compact-shadow);
}

.chat-thread-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-muted) 68%, var(--surface-strong));
}

.chat-panel-title,
.chat-conversation-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.chat-panel-title {
    justify-content: space-between;
}

.chat-panel-title h2,
.chat-conversation-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.chat-panel-title .eyebrow {
    margin: 0 0 2px;
    font-size: 10px;
}

.chat-thread-count,
.chat-unread {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.chat-thread-list {
    overflow-y: auto;
    padding: 6px;
}

.chat-thread {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    color: var(--text);
    transition: background 0.18s ease, transform 0.18s ease;
}

.chat-thread:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    transform: translateX(2px);
}

.chat-thread.is-active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 8%, transparent));
    box-shadow: inset 3px 0 0 var(--accent);
}

.chat-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(11, 77, 168, 0.16);
}

.chat-avatar.is-large {
    width: 42px;
    height: 42px;
}

.chat-avatar.is-small {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 11px;
}

.chat-avatar.is-landlord {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 8px 18px rgba(255, 106, 0, 0.18);
}

.chat-avatar.is-rentor {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-role-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
    vertical-align: middle;
}

.chat-role-tag.is-landlord {
    background: rgba(255, 106, 0, 0.13);
    color: var(--accent);
}

.chat-role-tag.is-rentor {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.chat-thread-copy {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.chat-thread-copy strong,
.chat-thread-copy span,
.chat-thread-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-thread-copy strong {
    font-size: 13px;
}

.chat-thread-copy span {
    color: var(--text-soft);
    font-size: 12px;
}

.chat-thread-copy small {
    color: var(--text-soft);
    font-size: 10px;
}

.chat-conversation-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    background:
        linear-gradient(color-mix(in srgb, var(--surface-strong) 94%, transparent), color-mix(in srgb, var(--surface-muted) 48%, var(--surface-strong)));
}

.chat-conversation-head span {
    display: block;
    max-width: 42vw;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-house-link {
    margin-left: auto;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
}

.chat-message-list {
    overflow-y: auto;
    padding: 18px;
    scroll-behavior: smooth;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 7px;
    margin-bottom: 10px;
}

.chat-message.is-mine {
    justify-content: flex-end;
}

.chat-message.is-right {
    justify-content: flex-end;
}

.chat-message.is-left {
    justify-content: flex-start;
}

.chat-bubble {
    width: fit-content;
    max-width: min(72%, 560px);
    padding: 9px 12px 7px;
    border-radius: 16px 16px 16px 5px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: 0 5px 16px rgba(13, 27, 42, 0.06);
}

.chat-message.is-mine .chat-bubble {
    border: 0;
    border-radius: 16px 16px 5px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.chat-message.is-right .chat-bubble {
    border-radius: 16px 16px 5px 16px;
}

.chat-message.is-left .chat-bubble {
    border-radius: 16px 16px 16px 5px;
}

.chat-message.is-mine.is-landlord .chat-bubble {
    background: linear-gradient(135deg, var(--accent), #e95500);
}

.chat-message.is-mine.is-rentor .chat-bubble {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.chat-message.is-theirs.is-landlord .chat-bubble {
    border-color: rgba(255, 106, 0, 0.28);
    background: color-mix(in srgb, var(--accent) 7%, var(--surface-strong));
}

.chat-message.is-theirs.is-rentor .chat-bubble {
    border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
    background: color-mix(in srgb, var(--primary) 6%, var(--surface-strong));
}

.chat-bubble-role {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.chat-message.is-mine .chat-bubble-role {
    color: rgba(255, 255, 255, 0.76);
}

.chat-message.is-theirs.is-landlord .chat-bubble-role {
    color: var(--accent);
}

.chat-message.is-theirs.is-rentor .chat-bubble-role {
    color: var(--primary);
}

.chat-hour-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 10px;
    color: var(--text-soft);
    font-size: 10px;
    font-weight: 700;
}

.chat-hour-separator::before,
.chat-hour-separator::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.chat-hour-separator span {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-muted);
}

.chat-bubble p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.chat-bubble small {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 9px;
    text-align: right;
}

.chat-message.is-mine .chat-bubble small {
    color: rgba(255, 255, 255, 0.72);
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    backdrop-filter: blur(12px);
}

.chat-compose-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    background: var(--surface-muted);
}

.chat-reply-preview[hidden] {
    display: none;
}

.chat-reply-preview span {
    min-width: 0;
    display: grid;
}

.chat-reply-preview strong {
    color: var(--accent);
    font-size: 10px;
}

.chat-reply-preview small {
    overflow: hidden;
    color: var(--text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-reply-preview button {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    background: transparent;
    color: var(--text-soft);
}

.chat-reply-quote {
    display: grid;
    gap: 1px;
    margin: 0 0 6px;
    padding: 6px 8px;
    border-left: 3px solid currentColor;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    opacity: 0.88;
}

.chat-message.is-theirs .chat-reply-quote {
    background: color-mix(in srgb, var(--surface-muted) 80%, transparent);
}

.chat-reply-quote strong {
    font-size: 9px;
}

.chat-reply-quote span {
    max-width: 260px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-bubble.is-deleted p {
    opacity: 0.6;
    font-style: italic;
}

.chat-message {
    position: relative;
    transition: transform 0.18s ease;
}

.chat-message-actions {
    position: absolute;
    top: calc(100% - 2px);
    z-index: 8;
    display: none;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.chat-message.is-left .chat-message-actions {
    left: 35px;
}

.chat-message.is-right .chat-message-actions {
    right: 35px;
}

.chat-message.is-actions-open {
    margin-bottom: 44px;
}

.chat-message.is-actions-open .chat-message-actions {
    display: flex;
}

.chat-message-actions button {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 10px;
}

.chat-message-actions button:hover {
    background: var(--surface-muted);
    color: var(--primary);
    box-shadow: none;
    transform: none;
}

.chat-action-form {
    display: none;
}

.chat-composer textarea {
    min-height: 42px;
    max-height: 120px;
    resize: none;
    padding: 10px 13px;
    border-radius: 16px;
    background: var(--surface-muted);
}

.chat-composer .button {
    min-height: 42px;
    padding: 0 15px;
}

.chat-conversation-panel > .alert {
    margin: 8px 12px 0;
}

.inbox-preview-list {
    gap: 8px;
}

.inbox-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-strong);
    box-shadow: 0 5px 16px rgba(13, 27, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.inbox-preview:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
    box-shadow: 0 12px 26px rgba(13, 27, 42, 0.09);
}

.inbox-preview.is-unread {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, var(--surface-strong)), var(--surface-strong));
    box-shadow: inset 3px 0 0 var(--accent), 0 5px 16px rgba(13, 27, 42, 0.05);
}

.inbox-preview-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.inbox-preview-copy strong {
    font-size: 13px;
}

.inbox-preview-copy > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.inbox-preview-copy p {
    margin: 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inbox-preview-meta {
    display: grid;
    justify-items: end;
    gap: 7px;
    color: var(--text-soft);
}

.inbox-preview-meta small {
    font-size: 10px;
}

.inbox-preview-meta i {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.12);
}

@media (max-width: 760px) {
    .chat-page .page-header {
        position: relative;
    }

    .chat-shell {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .chat-thread-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .chat-thread-list {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px;
    }

    .chat-thread {
        min-width: 230px;
    }

    .chat-conversation-panel {
        min-height: 520px;
        grid-template-rows: auto 1fr auto;
    }

    .chat-message-list {
        max-height: 420px;
        padding: 12px;
    }

    .chat-bubble {
        max-width: 84%;
    }

    .chat-composer .button span {
        display: none;
    }

    .chat-composer .button {
        width: 42px;
        padding: 0;
    }
}

/* PANGO SaaS compact design system override
   Standardizes typography, spacing, controls, cards, dashboards, and tables. */
:root {
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --font-h1: 28px;
    --font-h2: 22px;
    --font-h3: 18px;
    --font-body: 14px;
    --font-small: 12px;
    --control-height: 42px;
    --compact-shadow: 0 8px 24px rgba(13, 27, 42, 0.08);
}

html {
    font-size: 14px;
}

body {
    font-family: "Inter", sans-serif;
    font-size: var(--font-body);
    line-height: 1.5;
}

h1,
.hero-copy h1,
.detail-content h1,
.dashboard-header h1,
.page-header h1,
.auth-panel h1 {
    font-size: var(--font-h1);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h2,
.section-heading h2,
.profile-card h2,
.info-panel h2 {
    font-size: var(--font-h2);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

h3,
.feature-card h3,
.listing-content h2,
.content h2,
.activity-card h3,
.message-card h2 {
    font-size: var(--font-h3);
    font-weight: 600;
    line-height: 1.25;
}

p,
li,
td,
input,
select,
textarea {
    font-size: var(--font-body);
}

small,
.muted,
.eyebrow,
.pill,
.status-pill,
.service-pill,
.meta-pill,
.image-badge,
.admin-table th,
.admin-badge {
    font-size: var(--font-small);
}

.section,
.hero-section {
    padding: var(--space-6) 0;
}

.container {
    width: min(calc(100% - 24px), var(--container));
}

.section-heading {
    margin-bottom: var(--space-4);
}

.page-stack,
.activity-list,
.message-list,
.detail-main-flow,
.detail-side-panel,
.house-showcase {
    gap: var(--space-3);
}

.site-header,
.page-header {
    padding: var(--space-2) 0;
}

.site-header .nav-shell,
.page-header .header-row,
.dashboard-header {
    padding: var(--space-3);
    border-radius: 16px;
}

/* Dashboard header (landlord + admin) stays fixed at the top of the viewport
   while its page content scrolls underneath, matching the sticky site/page headers.
   Kept inside .dashboard-content's own padding (no negative margins) so it can't
   overlap the sidebar or collide with the mobile stacked layout. */
.dashboard-header {
    position: sticky;
    top: var(--space-3);
    z-index: 60;
    margin-bottom: var(--space-4);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.brand {
    font-size: 18px;
}

.brand::before,
.sidebar h3::before {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.nav-links {
    gap: var(--space-3);
}

.nav-links a,
.sidebar a {
    font-size: 14px;
}

.button,
.btn,
button,
.nav-cta {
    min-height: var(--control-height);
    padding: 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.theme-toggle {
    width: var(--control-height);
    height: var(--control-height);
}

input,
select,
textarea {
    min-height: var(--control-height);
    padding: 9px 12px;
    border-radius: 12px;
    box-shadow: none;
}

textarea {
    min-height: 96px;
}

.stack-form {
    gap: var(--space-3);
}

.stack-form label {
    gap: 6px;
}

.stack-form span,
.filter-field span,
.form-card label > span {
    font-size: 13px;
    font-weight: 600;
}

.hero-section {
    min-height: 520px;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(32px, 5vw, 56px);
}

.hero-slogan {
    margin: var(--space-3) 0 var(--space-4);
    font-size: 16px;
}

.hero-card,
.auth-panel,
.form-card,
.empty-state,
.info-panel,
.profile-card,
.feature-card,
.listing-card,
.house-card,
.message-card,
.detail-card {
    border-radius: 16px;
    box-shadow: var(--compact-shadow);
}

.hero-card,
.auth-panel,
.form-card,
.empty-state,
.info-panel,
.profile-card,
.feature-card {
    padding: var(--space-4);
}

.listing-grid,
.house-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-4);
}

.listing-image,
.listing-image img,
.house-card img {
    height: 176px;
}

.listing-content,
.content,
.detail-content {
    padding: var(--space-3);
}

.listing-meta,
.property-specs,
.card-actions,
.hero-actions,
.filter-actions,
.profile-meta {
    gap: var(--space-2);
}

.pill,
.status-pill,
.service-pill,
.meta-pill,
.image-badge {
    padding: 4px 8px;
    font-weight: 600;
}

.price {
    margin: var(--space-2) 0 var(--space-3);
    font-size: 15px;
    font-weight: 700;
}

.feature-grid,
.steps-grid,
.category-grid,
.service-grid,
.checkbox-grid {
    gap: var(--space-4);
}

.category-tile,
.media-tile,
.why-tile {
    min-height: 104px;
    padding: var(--space-4);
    border-radius: 16px;
}

.dashboard {
    grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
    padding: var(--space-4);
}

.sidebar h3 {
    margin-bottom: var(--space-3);
}

.sidebar-profile {
    padding: var(--space-3);
    margin-bottom: var(--space-4);
}

.sidebar a {
    min-height: 40px;
    padding: 9px 12px;
    margin-bottom: 4px;
    border-radius: 12px;
}

.dashboard-content {
    padding: var(--space-4);
}

.stat-panel,
.admin-stat-grid {
    gap: var(--space-3);
}

.stat-card,
.admin-stat-card {
    min-height: 88px;
    padding: var(--space-3);
    border-radius: 14px;
}

.stat-card strong,
.admin-stat-card strong {
    font-size: 22px;
}

.admin-layout {
    grid-template-columns: 240px minmax(0, 1fr);
}

.admin-content {
    padding: var(--space-4);
    gap: var(--space-3);
}

.admin-topbar {
    padding: var(--space-3);
    border-radius: 16px;
}

.admin-search {
    width: min(100%, 360px);
}

.admin-table-wrap {
    border-radius: 14px;
}

.admin-table {
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 9px 10px;
}

.admin-actions .button,
.inline-form .button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}

.admin-filters {
    margin-bottom: var(--space-3);
}

.admin-filters a {
    padding: 6px 10px;
    font-size: 12px;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--space-4);
}

.property-hero-card,
.price-strip,
.gallery-showcase,
.know-grid,
.map-detail-grid,
.rating-grid,
.review-form,
.landlord-stat-grid {
    gap: var(--space-3);
}

.gallery-main {
    min-height: 280px;
    max-height: 340px;
}

.gallery-side img {
    min-height: 132px;
    max-height: 160px;
}

.house-showcase .info-panel.compact {
    padding: var(--space-3);
}

.service-grid-compact {
    gap: var(--space-2);
}

.service-tile {
    min-height: 42px;
    padding: 6px 8px;
}

.alert {
    padding: var(--space-3);
    margin-bottom: var(--space-3);
}

@media (min-width: 1024px) {
    .listing-grid,
    .house-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .dashboard,
    .admin-layout,
    .hero-grid,
    .detail-layout,
    .two-column,
    .stat-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-content,
    .admin-content {
        padding: var(--space-3);
    }

    .sidebar,
    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-topbar {
        grid-template-columns: 1fr;
    }
}

.chat-avatar img,
.review-avatar img,
.avatar-badge img,
.profile-photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.profile-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-strong);
}

.profile-icon-button .chat-avatar {
    box-shadow: none;
}

.dashboard-menu {
    position: relative;
}

.dashboard-menu > summary {
    list-style: none;
}

.dashboard-menu > summary::-webkit-details-marker {
    display: none;
}

.dashboard-menu-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    z-index: 120;
    width: min(82vw, 14rem);
    display: grid;
    gap: 0.35rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 97%, transparent);
    box-shadow: var(--shadow);
}

.dashboard-menu-panel a {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.7rem;
    border-radius: 12px;
    color: var(--text);
    font-weight: 700;
}

.dashboard-menu-panel a small {
    margin-left: auto;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.menu-count {
    min-width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
    margin-left: auto;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
}

.dashboard-menu-panel a:hover {
    background: var(--surface-muted);
    color: var(--primary);
}

.profile-photo-preview {
    overflow: hidden;
}

@media (max-width: 900px) {
    .stat-panel,
    .dashboard-stat-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 68vw);
        grid-template-columns: none;
        gap: 0.75rem;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .stat-panel > *,
    .dashboard-stat-row > * {
        scroll-snap-align: start;
    }
}

@media (max-width: 640px) {
    :root {
        --font-h1: 24px;
        --font-h2: 20px;
        --font-h3: 16px;
    }

    .section,
    .hero-section {
        padding: var(--space-4) 0;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: 32px;
    }

    .button,
    .btn,
    button {
        width: auto;
    }

    .card-actions .button,
    .hero-actions .button,
    .stack-form .button {
        width: 100%;
    }

    .listing-grid,
    .house-grid,
    .category-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .listing-image,
    .listing-image img,
    .house-card img {
        height: 168px;
    }

    .gallery-main {
        min-height: 220px;
    }

    .admin-table {
        min-width: 760px;
    }
}

:root[data-theme="dark"] {
    --bg: #050b18;
    --surface: #0d1b2a;
    --surface-strong: #132238;
    --surface-muted: #132238;
    --text: #ffffff;
    --text-soft: #cbd5e1;
    --line: rgba(203, 213, 225, 0.16);
    --primary: #1e88e5;
    --primary-dark: #0b4da8;
    --secondary: #1e88e5;
    --accent: #ff6a00;
    --accent-light: #ffa726;
    --danger: #ff7d73;
    --success: #57d29f;
    --shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
    --glow: 0 12px 34px rgba(255, 106, 0, 0.34);
}

* {
    box-sizing: border-box;
    cursor: var(--pango-cursor) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(30, 136, 229, 0.12), transparent 28%),
        radial-gradient(circle at left 20%, rgba(255, 106, 0, 0.08), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 92%, var(--surface-muted) 8%) 100%);
    transition: background 0.25s ease, color 0.25s ease;
}

body.splash-active {
    overflow: hidden;
}

.page-shell {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.99);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.page-shell.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.pango-splash {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background:
        radial-gradient(circle at 35% 35%, rgba(30, 136, 229, 0.12), transparent 24%),
        radial-gradient(circle at 65% 68%, rgba(255, 106, 0, 0.12), transparent 22%),
        #050b18;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.pango-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-stage {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(100%, 38rem);
    text-align: center;
}

.splash-mark {
    position: relative;
    width: min(72vw, 20rem);
    aspect-ratio: 1 / 1;
}

.splash-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0;
    animation-duration: 2.9s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.splash-glow-blue {
    width: 9rem;
    height: 9rem;
    top: 17%;
    left: 18%;
    background: rgba(30, 136, 229, 0.38);
    animation-name: splashGlowBlue;
}

.splash-glow-orange {
    width: 8rem;
    height: 8rem;
    right: 19%;
    bottom: 17%;
    background: rgba(255, 106, 0, 0.34);
    animation-name: splashGlowOrange;
}

.splash-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.splash-house {
    transform: translate(-28%, -28%) scale(0.44);
    filter: drop-shadow(0 0 18px rgba(30, 136, 229, 0.45));
    animation: splashHouseMove 2.9s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
}

.splash-pin {
    transform: translate(30%, 28%) scale(0.42);
    filter: drop-shadow(0 0 18px rgba(255, 106, 0, 0.46));
    animation: splashPinMove 2.9s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
}

.splash-logo {
    opacity: 0;
    transform: scale(0.66);
    filter:
        drop-shadow(0 0 24px rgba(30, 136, 229, 0.34))
        drop-shadow(0 0 24px rgba(255, 106, 0, 0.24));
    animation: splashLogoReveal 2.9s ease forwards;
}

.splash-copy {
    opacity: 0;
    transform: translateY(16px);
    animation: splashCopyReveal 0.72s ease forwards;
    animation-delay: 2s;
}

.splash-copy h1 {
    margin: 0;
    font-size: clamp(2.6rem, 10vw, 5rem);
    line-height: 0.96;
    color: #fff;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.splash-copy p {
    margin: 0.4rem 0 0;
    font-size: clamp(1rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #fff;
}

.splash-copy-blue {
    color: #1e88e5;
}

.splash-copy-orange {
    color: #ff6a00;
}

.splash-copy-divider {
    color: rgba(255, 255, 255, 0.8);
}

@keyframes splashHouseMove {
    0% {
        opacity: 1;
        transform: translate(-28%, -28%) scale(0.44);
    }
    42% {
        opacity: 1;
        transform: translate(-8%, -8%) scale(0.5);
    }
    58% {
        opacity: 0.96;
        transform: translate(0, 0) scale(0.54);
    }
    72% {
        opacity: 0.35;
        transform: translate(1%, 1%) scale(0.55);
    }
    100% {
        opacity: 0;
        transform: translate(1%, 1%) scale(0.55);
    }
}

@keyframes splashPinMove {
    0% {
        opacity: 1;
        transform: translate(30%, 28%) scale(0.42);
    }
    42% {
        opacity: 1;
        transform: translate(10%, 10%) scale(0.48);
    }
    58% {
        opacity: 0.96;
        transform: translate(0, 0) scale(0.54);
    }
    72% {
        opacity: 0.3;
        transform: translate(-1%, -1%) scale(0.55);
    }
    100% {
        opacity: 0;
        transform: translate(-1%, -1%) scale(0.55);
    }
}

@keyframes splashLogoReveal {
    0%, 48% {
        opacity: 0;
        transform: scale(0.66);
    }
    64% {
        opacity: 1;
        transform: scale(1.06);
    }
    78% {
        opacity: 1;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashCopyReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashGlowBlue {
    0% {
        opacity: 0;
        transform: scale(0.8) translate(0, 0);
    }
    48% {
        opacity: 0.95;
        transform: scale(1.1) translate(18%, 18%);
    }
    100% {
        opacity: 0.44;
        transform: scale(1.05) translate(22%, 20%);
    }
}

@keyframes splashGlowOrange {
    0% {
        opacity: 0;
        transform: scale(0.78) translate(0, 0);
    }
    48% {
        opacity: 0.95;
        transform: scale(1.1) translate(-18%, -18%);
    }
    100% {
        opacity: 0.42;
        transform: scale(1.03) translate(-20%, -19%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pango-splash,
    .page-shell,
    .splash-glow,
    .splash-house,
    .splash-pin,
    .splash-logo,
    .splash-copy {
        animation: none !important;
        transition: none !important;
    }

    .page-shell {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .pango-splash {
        display: none;
    }

    body.splash-active {
        overflow: auto;
    }
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(11, 77, 168, 0.05), transparent 35%),
        radial-gradient(circle at 80% 10%, rgba(255, 106, 0, 0.12), transparent 22%);
    pointer-events: none;
    z-index: -2;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header,
.page-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0.9rem 0;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-shell,
.header-row,
.dashboard-header,
.header-actions,
.card-actions,
.footer-grid,
.footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-header::after,
.page-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: color-mix(in srgb, var(--line) 85%, transparent);
}

.site-header .nav-shell,
.page-header .header-row {
    position: relative;
    padding: 0.8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
    box-shadow: 0 10px 30px rgba(15, 23, 32, 0.08);
}

.site-header .nav-shell::before,
.page-header .header-row::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 45%),
        linear-gradient(180deg, color-mix(in srgb, white 22%, transparent), transparent);
    pointer-events: none;
}

.page-header .header-row {
    background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
    border-color: color-mix(in srgb, var(--primary) 14%, var(--line));
}

.browse-header {
    padding-bottom: 1rem;
}

.title-cluster {
    display: grid;
    gap: 0.35rem;
}

.header-stack {
    display: grid;
    gap: 0.75rem;
}

.header-search-slot {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
    min-height: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--primary);
}

.brand::before,
.sidebar h3::before {
    content: "";
    width: 2.35rem;
    height: 2.35rem;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #050b18 url("../images/pango-reference-logo.png") center / cover no-repeat;
    box-shadow: var(--glow);
}

:root[data-theme="dark"] .brand::before,
:root[data-theme="dark"] .sidebar h3::before {
    background-color: #ffffff;
}

.brand.small {
    font-size: 1rem;
}

.brand.small::before {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 11px;
}

.pango-logo {
    text-transform: none;
}

.logo-mark {
    width: 2.1rem;
    height: 2.1rem;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-weight: 900;
    box-shadow: var(--glow);
}

.brand .logo-mark,
.brand > .brand-icon,
.sidebar h3 > .brand-icon {
    display: none;
}

.brand-tagline,
.step-card p,
.empty-state p,
.listing-snippet {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.utility-nav,
.utility-chip,
.utility-panel-head,
.utility-item {
    display: flex;
    align-items: center;
}

.utility-nav {
    gap: 0.55rem;
    flex-wrap: wrap;
}

.utility-chip {
    position: relative;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-muted) 78%, transparent);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
}

.utility-dropdown {
    position: relative;
}

.utility-dropdown > summary {
    list-style: none;
}

.utility-dropdown > summary::-webkit-details-marker {
    display: none;
}

.utility-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    min-width: 1.15rem;
    height: 1.15rem;
    display: grid;
    place-items: center;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: 0.65rem;
    font-style: normal;
    box-shadow: 0 8px 22px rgba(217, 45, 32, 0.3);
}

.utility-panel {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(92vw, 23rem);
    max-height: 26rem;
    overflow: auto;
    padding: 0.8rem;
    display: grid;
    gap: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
    box-shadow: var(--shadow);
    z-index: 100;
}

.utility-panel-head {
    justify-content: space-between;
    gap: 1rem;
}

.landlord-mobile-menu {
    display: none;
}

.utility-panel-head a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 640px) {
    .utility-panel {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        max-height: 70vh;
    }
}

.utility-item {
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: var(--surface-muted);
    border: 1px solid transparent;
}

.utility-item.is-unread {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.utility-item-copy {
    display: grid;
    gap: 0.18rem;
}

.utility-item-copy strong,
.utility-item-copy small,
.utility-item-copy time {
    display: block;
}

.utility-item-copy small,
.utility-item-copy time,
.utility-empty {
    color: var(--text-soft);
}

.utility-empty {
    padding: 0.8rem 0.2rem 0.2rem;
}

.nav-links a {
    color: var(--text-soft);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 14%, transparent);
    color: var(--primary) !important;
    position: relative;
    z-index: 1;
}

.hero-section,
.section {
    padding: 1.2rem 0 2.35rem;
}

.hero-section {
    min-height: 62vh;
    display: grid;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(105deg, rgba(5, 11, 24, 0.72), rgba(11, 77, 168, 0.46));
    color: #fff;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(5, 11, 24, 0.78) 0%, rgba(5, 11, 24, 0.54) 38%, rgba(11, 77, 168, 0.22) 68%, rgba(5, 11, 24, 0.34) 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: heroSlideShow 18s infinite;
}

.hero-slide:nth-child(2) {
    animation-delay: 6s;
}

.hero-slide:nth-child(3) {
    animation-delay: 12s;
}

.hero-slide.is-first {
    opacity: 1;
}

.hero-slide.is-single {
    opacity: 1;
    animation: none;
}

@keyframes heroSlideShow {
    0%, 28% {
        opacity: 1;
        transform: scale(1);
    }
    36%, 92% {
        opacity: 0;
        transform: scale(1.04);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-admin-controls {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    z-index: 5;
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hero-admin-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem 0.25rem 2.15rem;
    min-height: 2rem;
    border-radius: 999px;
    background: rgba(5, 11, 24, 0.58);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-admin-control .landing-image-menu {
    top: 0;
    left: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: var(--hero-spotlight-opacity, 0);
    background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 50%), rgba(255, 106, 0, 0.24), transparent 18rem);
    transition: opacity 0.22s ease;
}

.hero-grid,
.detail-card,
.two-column {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.2rem;
    align-items: center;
}

.detail-wide {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-copy h1,
.detail-content h1,
.dashboard-header h1,
.page-header h1,
.section-heading h2,
.auth-panel h1,
.profile-card h2 {
    margin: 0;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.25rem);
    max-width: 9ch;
}

.hero-slogan {
    margin: 0.7rem 0 1.1rem;
    max-width: 34rem;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.86);
}

.hero-copy p,
.section-heading p,
.auth-panel p,
.detail-content p,
.message-card p,
.feature-card p,
.listing-content p,
.content p,
.activity-card small,
.message-card small {
    color: var(--text-soft);
}

.hero-actions,
.filter-actions,
.profile-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-tools {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.hero-card,
.feature-card,
.listing-card,
.detail-card,
.auth-panel,
.form-card,
.message-card,
.empty-state,
.info-panel,
.profile-card,
.house-card {
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card,
.auth-panel,
.form-card,
.empty-state,
.info-panel,
.profile-card {
    padding: 1.25rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.94);
    color: #0d1b2a;
}

:root[data-theme="dark"] .hero-card {
    background: rgba(19, 34, 56, 0.94);
    color: #fff;
}

.hero-card-graphic {
    position: relative;
    overflow: hidden;
}

.hero-graphic {
    position: absolute;
    inset: -1rem -1rem auto auto;
    width: 10rem;
    height: 10rem;
}

.graphic-ring {
    position: absolute;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}

.ring-a {
    inset: 0;
}

.ring-b {
    inset: 1.2rem;
}

.graphic-home {
    position: absolute;
    inset: 2.9rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: 1.4rem;
    box-shadow: var(--shadow);
}

.stack-form {
    display: grid;
    gap: 0.85rem;
}

.stack-form label {
    display: grid;
    gap: 0.45rem;
}

.stack-form span {
    font-size: 0.92rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--primary) 20%, transparent);
    border-color: var(--primary);
}

.button,
.btn,
button,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.05rem;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.button:hover,
.btn:hover,
button:hover,
.theme-toggle:hover {
    transform: translateY(-1px) scale(1.02);
}

.button-primary,
button,
.btn {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover,
button:hover,
.btn:hover {
    background: var(--accent);
    box-shadow: var(--glow);
}

.button-secondary {
    background: var(--primary);
    color: #fff;
}

.button-secondary:hover {
    background: var(--primary-dark);
    box-shadow: 0 12px 26px rgba(11, 77, 168, 0.22);
}

.button-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.button-ghost:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-danger:hover {
    background: color-mix(in srgb, var(--danger) 82%, black 18%);
}

.theme-toggle {
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
    color: var(--text);
    border: 1px solid var(--line);
}

.theme-icon-sun {
    display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
    display: block;
}

:root[data-theme="dark"] .theme-icon-moon {
    display: none;
}

.section-heading {
    margin-bottom: 0.85rem;
}

.inline-heading h2 {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.feature-grid,
.listing-grid,
.house-grid,
.steps-grid,
.service-grid,
.checkbox-grid,
.page-stack,
.activity-list,
.message-list {
    display: grid;
    gap: 1rem;
}

.listing-grid,
.house-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    padding: 1.15rem;
}

.feature-card h3,
.listing-content h2,
.content h2,
.message-card h2,
.activity-card h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.listing-card,
.house-card,
.visual-card {
    overflow: hidden;
    position: relative;
}

.listing-card,
.house-card {
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface-strong);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.listing-card:hover,
.house-card:hover,
.visual-card:hover {
    cursor: var(--pango-cursor-property) !important;
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 36px rgba(255, 106, 0, 0.16);
}

.listing-card:hover::after,
.house-card:hover::after {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border-radius: inherit;
    border: 1px solid rgba(255, 106, 0, 0.2);
    pointer-events: none;
    animation: pangoPulse 1.15s ease-in-out infinite;
}

.listing-image {
    position: relative;
    background: linear-gradient(135deg, #dbeafe, #fff3e0);
    height: 190px;
    overflow: hidden;
}

.detail-media {
    position: relative;
    background: linear-gradient(135deg, #dbeafe, #fff3e0);
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.listing-image img,
.house-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    display: block;
    background: #f8fafc;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.listing-content,
.content,
.detail-content {
    padding: 0.85rem;
}

.detail-content {
    padding: 1.35rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
}

.gallery-grid img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
}

.listing-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.property-specs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.55rem 0 0.1rem;
}

.property-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.category-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.category-tile {
    min-height: 126px;
    display: grid;
    align-content: center;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(11, 77, 168, 0.08), rgba(255, 106, 0, 0.08)),
        var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-weight: 800;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile .icon {
    width: 1.45rem;
    height: 1.45rem;
    color: var(--primary);
}

.category-tile:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--glow);
}

.media-tile {
    position: relative;
    overflow: hidden;
    align-items: end;
    min-height: 150px;
    color: #fff;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--tile-accent, rgba(5, 11, 24, 0.82)) 56%, transparent) 0%, color-mix(in srgb, var(--tile-accent, rgba(5, 11, 24, 0.82)) 22%, transparent) 34%, transparent 68%),
        var(--tile-image) center / cover no-repeat;
    border: 1px solid color-mix(in srgb, var(--tile-accent, rgba(255, 255, 255, 0.2)) 28%, var(--line));
    box-shadow: 0 16px 34px rgba(13, 27, 42, 0.16);
}

.media-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 18, 23, 0.16), rgba(10, 18, 23, 0.06));
}

.media-tile::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: min(58%, 190px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(90deg, rgba(5, 11, 24, 0.68) 0%, rgba(5, 11, 24, 0.38) 42%, rgba(5, 11, 24, 0.12) 72%, transparent 100%);
    pointer-events: none;
}

.media-tile > * {
    position: relative;
    z-index: 1;
}

.media-tile-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-icon,
.tile-copy {
    position: relative;
    z-index: 1;
}

.tile-icon {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tile-icon .icon {
    width: 1.1rem;
    height: 1.1rem;
    color: #fff;
}

.tile-copy {
    display: grid;
    gap: 0.28rem;
    max-width: 15rem;
}

.tile-copy strong,
.tile-copy h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.15;
    color: #fff;
}

.tile-copy small,
.why-tile .tile-copy p {
    display: block;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.86);
}

.why-tile {
    min-height: 170px;
    padding: 1rem;
    align-content: end;
}

.why-tile .step-number {
    top: 0.95rem;
    left: 0.95rem;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.why-tile .step-number .icon {
    color: #fff;
}

.why-tile .tile-copy {
    padding-right: 0.25rem;
}

.why-details {
    margin-top: 0.25rem;
}

.why-details summary {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.why-details summary::-webkit-details-marker {
    display: none;
}

.why-details summary::after {
    content: "+";
    margin-left: 0.35rem;
}

.why-details[open] summary::after {
    content: "-";
}

.why-details p {
    margin: 0.45rem 0 0;
}

.pill,
.status-pill,
.service-pill,
.meta-pill,
.image-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pill {
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
}

.status-pill,
.service-pill,
.meta-pill {
    background: color-mix(in srgb, var(--surface-muted) 75%, transparent);
    color: var(--text-soft);
    border: 1px solid var(--line);
}

.status-available {
    background: color-mix(in srgb, var(--success) 16%, transparent);
    color: var(--success);
}

.status-booked {
    background: color-mix(in srgb, #ffbd44 18%, transparent);
    color: #9a6700;
}

.status-rented {
    background: color-mix(in srgb, var(--danger) 16%, transparent);
    color: var(--danger);
}

.service-pill.active {
    background: color-mix(in srgb, var(--primary) 16%, transparent);
    color: var(--primary-dark);
}

.service-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.service-tile {
    min-height: 3.15rem;
    justify-content: center;
    padding: 0.55rem 0.45rem;
    border-radius: 14px;
    font-size: 0.78rem;
}

.service-tile .mini-icon {
    color: var(--primary);
}

.service-tile.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 14%, transparent), color-mix(in srgb, var(--accent) 10%, transparent));
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--line));
}

.image-badge {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    background: rgba(10, 18, 23, 0.72);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 0;
}

.price {
    margin: 0.25rem 0 0.7rem;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--accent);
}

.muted {
    margin: 0;
}

.listing-placeholder {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: var(--text-soft);
    font-weight: 700;
}

.filter-panel {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.filter-grid,
.form-split {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.location-compose {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--line));
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)),
        var(--surface-muted);
}

.location-compose-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.location-compose-head strong {
    display: block;
    color: var(--text);
}

.location-map-preview {
    width: 100%;
    height: 220px;
    border: 0;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
}

.location-map-preview:hover,
[data-user-distance]:hover,
[href*="maps"]:hover {
    cursor: var(--pango-cursor-pin) !important;
}

.button:hover,
.btn:hover,
button:hover,
.theme-toggle:hover {
    cursor: var(--pango-cursor-key) !important;
}

[href*="toggle_save"]:hover,
.button-ghost:hover {
    cursor: var(--pango-cursor-heart) !important;
}

[href*="contact"],
[action*="contact"],
textarea[name="message"],
.message-box:hover {
    cursor: var(--pango-cursor-chat) !important;
}

.hero-search-form:hover,
.smart-filter-card:hover,
input[type="search"]:hover,
input[name*="region"]:hover,
input[name*="price"]:hover {
    cursor: var(--pango-cursor-search) !important;
}

.nav-links a:hover {
    cursor: var(--pango-cursor-property) !important;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.is-loading,
.is-loading * {
    cursor: var(--pango-cursor-loading) !important;
}

.pango-cursor-trail {
    position: fixed;
    width: 0.55rem;
    height: 0.55rem;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 167, 38, 0.95), rgba(255, 106, 0, 0));
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.55);
    transform: translate(-50%, -50%);
    animation: pangoTrail 0.5s ease-out forwards;
}

.pango-cursor-trail::after {
    content: "";
    position: absolute;
    inset: 0.18rem;
    border-radius: 60% 60% 60% 0;
    background: rgba(255, 106, 0, 0.8);
    transform: rotate(-45deg);
}

@keyframes pangoTrail {
    from {
        opacity: 0.75;
        scale: 1;
    }
    to {
        opacity: 0;
        scale: 0.25;
        translate: 0 -10px;
    }
}

@keyframes pangoPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.98);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.01);
    }
}

.cropper-panel {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.65rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-muted) 80%, transparent);
}

.cropper-canvas {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 45 / 31;
    border-radius: 14px;
    background: #0d1b2a;
    box-shadow: inset 0 0 0 1px var(--line);
}

.cropper-controls {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cropper-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.cropper-status,
.video-upload-note {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.video-upload-note.is-error {
    color: var(--danger);
}

.video-upload-note.is-ok {
    color: var(--success);
}

.house-video-panel {
    padding: 0.5rem;
}

.house-video {
    width: 100%;
    border-radius: 16px;
    background: #050b18;
    box-shadow: var(--shadow);
}

.smart-filter-shell {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 30;
}

.browse-filter-stage {
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 30;
}

.browse-filter-anchor {
    height: 1px;
}

.smart-filter-card {
    width: min(100%, 980px);
    padding: 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    position: relative;
    z-index: 30;
}

.smart-filter-row {
    display: grid;
    gap: 0.8rem;
}

.smart-filter-main {
    grid-template-columns: minmax(240px, 1.35fr) minmax(170px, 0.8fr) auto auto;
    align-items: end;
}

.filter-field {
    display: grid;
    gap: 0.35rem;
}

.filter-field span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.filter-submit {
    min-width: 9rem;
}

.location-picker {
    position: relative;
    z-index: 50;
}

.location-picker > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 100%;
    padding: 0.82rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
    cursor: pointer;
}

.location-picker > summary::-webkit-details-marker {
    display: none;
}

.location-picker > summary strong {
    font-size: 0.97rem;
    font-weight: 700;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-picker > summary::after {
    content: "v";
    color: var(--text-soft);
    font-weight: 900;
}

.location-picker-panel {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    z-index: 80;
    width: min(90vw, 540px);
    padding: 0.9rem;
    display: grid;
    gap: 0.8rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.browse-filter-stage + .listing-grid,
.browse-filter-anchor + .browse-filter-stage + .listing-grid {
    position: relative;
    z-index: 1;
}

.compact-visible {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.filter-more {
    position: relative;
}

.filter-more > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 7.5rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.filter-more > summary::-webkit-details-marker {
    display: none;
}

.smart-filter-extra {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    margin-top: 0.8rem;
}

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

.filter-field-price {
    position: relative;
}

.filter-field-price input[hidden],
.filter-field-price select[hidden] {
    display: none;
}

.filter-field-price.is-custom-price input {
    display: block;
}

.smart-filter-shell:not(.is-compact) .filter-more {
    display: block;
}

.smart-filter-shell:not(.is-compact) .filter-more > summary {
    display: none;
}

.smart-filter-shell:not(.is-compact) .filter-more > div {
    display: grid !important;
}

.smart-filter-shell.is-compact .smart-filter-card {
    width: min(100%, 420px);
    max-width: 420px;
    padding: 0.4rem;
    border-radius: 16px;
    box-shadow: none;
}

.smart-filter-shell.is-compact .smart-filter-main {
    grid-template-columns: minmax(140px, 1fr) minmax(110px, 0.7fr) auto auto;
    gap: 0.45rem;
}

.smart-filter-shell.is-compact .filter-more {
    justify-self: end;
}

.smart-filter-shell.is-compact .filter-more > div {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(78vw, 620px);
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.smart-filter-shell.is-compact .location-picker > summary,
.smart-filter-shell.is-compact .filter-field select,
.smart-filter-shell.is-compact .filter-field input,
.smart-filter-shell.is-compact .filter-submit,
.smart-filter-shell.is-compact .filter-more > summary {
    min-height: 40px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.smart-filter-shell.is-compact .filter-field span {
    display: none;
}

.smart-filter-shell.is-compact .location-picker > summary strong {
    font-size: 0.82rem;
}

.smart-filter-shell.is-compact .filter-submit,
.smart-filter-shell.is-compact .filter-more > summary {
    min-width: 0;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    font-size: 0.82rem;
}

.smart-filter-shell.is-compact .filter-submit .icon,
.smart-filter-shell.is-compact .filter-more .icon {
    width: 0.9rem;
    height: 0.9rem;
}

.smart-filter-shell.is-compact .filter-field select {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.smart-filter-shell.is-compact .filter-submit-label {
    display: none;
}

.smart-filter-shell.is-compact .smart-filter-extra {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.smart-filter-shell.is-compact .filter-more {
    justify-self: end;
}

.smart-filter-shell.is-compact .filter-more > div {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    width: min(78vw, 620px);
    padding: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.back-link {
    margin-bottom: 0;
}

.compact {
    margin-top: 0.8rem;
    padding: 0.85rem 1rem;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.auth-shell {
    width: min(100%, 520px);
}

.auth-switch {
    margin-top: 1rem;
}

.auth-switch a,
.footer-links a,
.text-link {
    color: var(--primary);
    font-weight: 700;
}

.alert {
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-error {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    border-color: color-mix(in srgb, var(--danger) 35%, transparent);
    color: var(--danger);
}

.alert-success {
    background: color-mix(in srgb, var(--success) 14%, transparent);
    border-color: color-mix(in srgb, var(--success) 35%, transparent);
    color: var(--success);
}

.dashboard-page {
    background: var(--bg);
}

.dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #050b18;
    color: #fff;
    padding: 2rem 1.5rem;
    position: sticky;
    top: 0;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar h3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.35rem;
    letter-spacing: 0.1em;
}

.sidebar-user {
    color: #cbd5e1;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(19, 34, 56, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.sidebar-profile-text {
    display: grid;
    gap: 0.15rem;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.sidebar a:hover {
    background: rgba(30, 136, 229, 0.12);
    color: #fff;
}

.sidebar a:first-of-type {
    color: #fff;
    background: rgba(255, 106, 0, 0.14);
    box-shadow: inset 4px 0 0 var(--accent);
}

.sidebar a .icon {
    color: var(--secondary);
}

.dashboard-content {
    padding: 1.5rem;
}

.status-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 0.7rem 0 0.9rem;
}

.status-form select {
    flex: 1;
}

.empty-state {
    text-align: center;
}

.compact-empty {
    padding: 0.9rem 1rem;
}

.step-card {
    position: relative;
    padding-top: 3.25rem;
}

.step-number {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.soft-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2));
}

/* Footer stays out of the way at load, then docks fixed to the bottom of the
   viewport - fully visible - the moment the visitor starts scrolling.
   --footer-h is measured and kept in sync by theme.js so nothing overlaps it. */
body {
    padding-bottom: var(--footer-h, 0px);
}
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    background: var(--surface-strong);
    transform: translateY(100%);
    transition: transform .35s ease;
    box-shadow: 0 -12px 30px rgba(15, 23, 32, 0.1);
}
body.has-scrolled .site-footer {
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .site-footer {
        transition: none;
    }
}

.site-footer {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid var(--line);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(180px, 1fr));
    gap: 1rem;
    align-items: start;
}

.footer-brand-block,
.footer-column {
    display: grid;
    gap: 0.45rem;
}

.footer-brand-block p {
    max-width: 24rem;
    margin: 0;
    color: var(--text-soft);
}

.footer-column strong {
    color: var(--text);
    font-size: 0.88rem;
}

.footer-column a,
.footer-column span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 650;
}

.footer-column a:hover {
    color: var(--primary);
}

.profile-hero {
    position: relative;
    overflow: hidden;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar-badge {
    width: 4rem;
    height: 4rem;
    border-radius: 1.3rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.stat-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

.stat-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(11, 77, 168, 0.95), rgba(30, 136, 229, 0.85));
    border: 1px solid var(--line);
    color: #fff;
    display: grid;
    gap: 0.35rem;
}

.stat-card strong {
    font-size: 1.5rem;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.95), rgba(255, 167, 38, 0.85));
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(5, 11, 24, 0.95), rgba(11, 77, 168, 0.9));
}

.detail-topbar {
    margin-bottom: 1rem;
}

.house-showcase {
    display: grid;
    gap: 0.8rem;
}

.property-hero-card,
.price-strip,
.detail-layout,
.gallery-showcase,
.know-grid,
.map-detail-grid,
.rating-grid,
.review-form,
.landlord-stat-grid {
    display: grid;
    gap: 1rem;
}

.property-hero-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow);
}

.property-hero-card h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.05;
}

.detail-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.gallery-showcase {
    grid-template-columns: minmax(92px, 0.24fr) minmax(0, 1fr) minmax(92px, 0.24fr);
    align-items: stretch;
    gap: 0.55rem;
}

.gallery-main,
.gallery-side {
    display: grid;
    gap: 0.55rem;
}

.gallery-main {
    position: relative;
    min-height: 310px;
    max-height: 380px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #fff3e0);
    box-shadow: var(--shadow);
}

.gallery-main img,
.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-side img {
    min-height: 150px;
    max-height: 185px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.image-count-badge {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(5, 11, 24, 0.72);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 0.8rem;
}

.detail-main-flow,
.detail-side-panel {
    display: grid;
    gap: 0.8rem;
}

.detail-side-panel {
    position: sticky;
    top: 6.5rem;
}

.price-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow);
}

.price-strip .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.price-strip strong {
    display: block;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
}

.rating-grid {
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 0.55rem;
}

.rating-meter {
    display: grid;
    gap: 0.35rem;
    padding: 0.6rem;
    border-radius: 13px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
}

.rating-meter strong {
    color: var(--accent);
}

.rating-meter i {
    display: block;
    height: 0.42rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent) var(--rating-width), color-mix(in srgb, var(--line) 80%, transparent) var(--rating-width));
}

.review-list {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.review-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-muted) 80%, transparent);
    border: 1px solid var(--line);
}

.review-card span {
    display: block;
    color: var(--text-soft);
    font-size: 0.84rem;
}

.review-card p {
    margin-bottom: 0;
}

.review-avatar {
    width: 2.35rem;
    height: 2.35rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
}

.review-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 0.75rem;
    gap: 0.55rem;
}

.review-form .review-text,
.review-form button {
    grid-column: 1 / -1;
}

.map-detail-grid {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 0.75rem;
}

.map-info-box {
    display: grid;
    align-content: start;
    gap: 0.75rem;
}

.know-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.landlord-card,
.message-box {
    overflow: hidden;
}

.landlord-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.landlord-stat-grid span {
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem;
    border-radius: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.78rem;
}

.landlord-stat-grid strong {
    color: var(--text);
    font-size: 0.95rem;
}

.admin-grid {
    margin-top: 1rem;
    align-items: start;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.7rem 0.65rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table th {
    color: var(--text-soft);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-page {
    background: #f6f8fb;
}

:root[data-theme="dark"] .admin-page {
    background: var(--bg);
}

.admin-layout {
    grid-template-columns: 270px 1fr;
}

.admin-sidebar a.is-active {
    color: #fff;
    background: rgba(255, 106, 0, 0.16);
    box-shadow: inset 4px 0 0 var(--accent);
}

.admin-content {
    display: grid;
    gap: 1rem;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.admin-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(100%, 420px);
}

.admin-search input {
    min-width: 220px;
}

.admin-search .button {
    width: auto;
    min-width: 2.8rem;
}

.admin-stat-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-stat-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), color-mix(in srgb, var(--accent) 7%, transparent)),
        var(--surface-strong);
    box-shadow: var(--shadow);
}

.admin-stat-card span {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.admin-stat-card strong {
    font-size: 1.45rem;
    color: var(--text);
}

.admin-stat-card small {
    color: var(--text-soft);
    font-weight: 700;
}

.admin-filters {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.admin-filters a {
    padding: 0.48rem 0.75rem;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-filters a.is-active,
.admin-filters a:hover {
    background: color-mix(in srgb, var(--primary) 13%, transparent);
    color: var(--primary);
}

.admin-table td small {
    color: var(--text-soft);
    display: inline-block;
    max-width: 26rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-actions,
.inline-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-actions .button,
.inline-form .button {
    padding: 0.48rem 0.65rem;
    font-size: 0.76rem;
}

.tiny-input {
    width: 5.5rem;
    padding: 0.48rem 0.55rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

.claim-reply-form {
    display: grid;
    gap: 0.45rem;
    min-width: min(100%, 20rem);
}

.claim-reply-form textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.claim-reply-form select {
    min-height: 2.25rem;
}

.claim-history {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.claim-history h3 {
    margin: 0;
    font-size: 1rem;
}

.claim-history-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.claim-history-item > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.claim-history-item p,
.claim-history-item blockquote {
    margin: 0;
    color: var(--text-soft);
}

.claim-history-item blockquote {
    padding: 0.65rem 0.75rem;
    border-left: 3px solid var(--primary);
    background: var(--surface-muted);
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: var(--surface-muted);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: capitalize;
}

.admin-badge.is-pending {
    background: rgba(255, 189, 68, 0.16);
    color: #9a6700;
}

.admin-badge.is-approved {
    background: color-mix(in srgb, var(--success) 16%, transparent);
    color: var(--success);
}

.admin-badge.is-rejected {
    background: color-mix(in srgb, var(--danger) 16%, transparent);
    color: var(--danger);
}

.admin-badge.is-suspended {
    background: color-mix(in srgb, #64748b 18%, transparent);
    color: var(--text-soft);
}

.admin-badge.is-featured {
    background: color-mix(in srgb, var(--secondary) 16%, transparent);
    color: var(--secondary);
}

/* Refined admin console: clearer hierarchy, calmer cards, and less button noise. */
.admin-page {
    background:
        radial-gradient(circle at 18% 8%, rgba(30, 136, 229, 0.11), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(255, 106, 0, 0.10), transparent 22rem),
        #f5f7fb;
}

:root[data-theme="dark"] .admin-page {
    background:
        radial-gradient(circle at 20% 4%, rgba(30, 136, 229, 0.16), transparent 26rem),
        radial-gradient(circle at 90% 0%, rgba(255, 106, 0, 0.12), transparent 20rem),
        var(--bg);
}

.admin-layout {
    grid-template-columns: 248px minmax(0, 1fr);
}

.admin-sidebar {
    padding: 1.35rem 1rem;
    background:
        linear-gradient(180deg, rgba(13, 27, 42, 0.98), rgba(5, 11, 24, 1)),
        #050b18;
}

.admin-sidebar h3 {
    margin-bottom: 1rem;
}

.admin-sidebar .sidebar-profile {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar a,
.admin-sidebar a:first-of-type {
    min-height: 2.65rem;
    margin-bottom: 0.25rem;
    padding: 0.7rem 0.8rem;
    border-radius: 13px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.admin-sidebar a:hover {
    background: rgba(30, 136, 229, 0.13);
    color: #fff;
    transform: translateX(2px);
}

.admin-sidebar a.is-active,
.admin-sidebar a.is-active:first-of-type {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255, 106, 0, 0.24), rgba(30, 136, 229, 0.16));
    box-shadow: inset 3px 0 0 var(--accent), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.admin-content {
    gap: 1.15rem;
    padding: 1.15rem;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(260px, 430px) auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 22px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface-strong) 96%, transparent), color-mix(in srgb, var(--primary) 5%, var(--surface-strong))),
        var(--surface-strong);
}

.admin-topbar h1 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.admin-search {
    padding: 0.28rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-muted);
}

.admin-search input {
    border: 0;
    background: transparent;
    padding: 0.65rem 0.8rem;
}

.admin-search input:focus {
    outline: none;
}

.admin-search .button {
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.admin-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 0.9rem;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.94)),
        var(--surface-strong);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

:root[data-theme="dark"] .admin-stat-card {
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--surface-strong) 82%, white 4%), var(--surface));
}

.admin-stat-card::after {
    content: "";
    position: absolute;
    right: -2rem;
    top: -2rem;
    width: 5rem;
    height: 5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(13, 27, 42, 0.11);
}

.admin-stat-card span {
    width: 2rem;
    height: 2rem;
    border-radius: 11px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
}

.admin-stat-card strong {
    margin-top: 0.2rem;
    font-size: 1.55rem;
    line-height: 1;
}

.admin-stat-card small {
    font-size: 0.78rem;
}

.admin-grid,
.two-column.admin-grid {
    gap: 0.9rem;
}

.admin-page .info-panel {
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface-strong) 96%, transparent);
}

.admin-filters {
    position: sticky;
    top: 5.6rem;
    z-index: 10;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
    box-shadow: 0 10px 26px rgba(13, 27, 42, 0.07);
    backdrop-filter: blur(14px);
}

.admin-filters a {
    border: 0;
    background: transparent;
    padding: 0.48rem 0.8rem;
}

.admin-filters a.is-active,
.admin-filters a:hover {
    background: var(--primary);
    color: #fff;
}

.admin-table-wrap {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 0.82rem 0.8rem;
    background: var(--surface-muted);
    color: var(--text-soft);
}

.admin-table td {
    padding: 0.82rem 0.8rem;
    vertical-align: top;
}

.admin-table tbody tr {
    transition: background 0.18s ease;
}

.admin-table tbody tr:hover {
    background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.admin-table td:first-child,
.admin-table th:first-child {
    padding-left: 1rem;
}

.admin-actions {
    gap: 0.32rem;
    max-width: 24rem;
}

.admin-actions .button,
.inline-form .button {
    min-height: 2rem;
    padding: 0.42rem 0.58rem;
    border-radius: 999px;
    font-size: 0.72rem;
}

.admin-actions .button-danger,
.inline-form .button-danger {
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    color: var(--danger);
}

.admin-actions .button-danger:hover,
.inline-form .button-danger:hover {
    background: var(--danger);
    color: #fff;
}

.tiny-input {
    width: 4.4rem;
    min-height: 2rem;
    padding: 0.4rem 0.5rem;
}

.admin-badge {
    border: 0;
    padding: 0.34rem 0.62rem;
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

.admin-page .alert {
    margin-bottom: 0;
}

/* Compact admin mode: less visual noise, same controls behind disclosure. */
.admin-content {
    gap: 0.75rem;
    padding: 0.9rem;
}

.admin-topbar {
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
}

.admin-topbar .eyebrow {
    margin-bottom: 0.25rem;
    font-size: 0.68rem;
}

.admin-topbar h1 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.admin-search {
    width: min(100%, 360px);
}

.admin-search input,
.admin-search select {
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
}

.admin-search select {
    width: 5.2rem;
    border: 0;
    background: transparent;
    color: var(--text-soft);
}

.admin-search .button {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
}

.admin-stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 0.55rem;
}

.admin-stat-card {
    min-height: 86px;
    padding: 0.65rem;
    border-radius: 15px;
}

.admin-stat-card span {
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 9px;
}

.admin-stat-card strong {
    font-size: 1.16rem;
}

.admin-stat-card small {
    font-size: 0.7rem;
}

.admin-more-stats {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 94%, transparent);
}

.admin-more-stats > summary {
    list-style: none;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-more-stats > summary::-webkit-details-marker {
    display: none;
}

.admin-more-stats .admin-stat-grid {
    margin-top: 0.6rem;
}

.admin-page .info-panel {
    padding: 0.8rem;
    border-radius: 16px;
}

.admin-page .section-heading,
.admin-page .section-heading h2 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
}

.admin-filters {
    gap: 0.3rem;
    margin-bottom: 0.55rem;
    padding: 0.3rem;
}

.admin-filters a {
    padding: 0.36rem 0.58rem;
    font-size: 0.72rem;
}

.admin-table {
    font-size: 0.8rem;
}

.admin-table th {
    padding: 0.55rem 0.6rem;
    font-size: 0.66rem;
}

.admin-table td {
    padding: 0.58rem 0.6rem;
}

.admin-table td small {
    max-width: 18rem;
    font-size: 0.74rem;
}

.admin-badge {
    padding: 0.24rem 0.48rem;
    font-size: 0.64rem;
}

.admin-row-menu {
    position: relative;
}

.admin-row-menu > summary,
.admin-mini-details > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.52rem;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
}

.admin-row-menu > summary::-webkit-details-marker,
.admin-mini-details > summary::-webkit-details-marker {
    display: none;
}

.admin-row-menu[open] > summary,
.admin-mini-details[open] > summary {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.admin-row-menu .admin-actions {
    margin-top: 0.4rem;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-strong);
}

.admin-mini-details {
    margin-top: 0.32rem;
}

.admin-mini-details small {
    display: block;
    margin-top: 0.35rem;
    white-space: normal;
    line-height: 1.45;
}

.admin-actions .button,
.inline-form .button {
    min-height: 1.75rem;
    padding: 0.32rem 0.48rem;
    font-size: 0.66rem;
}

.tiny-input {
    width: 3.8rem;
    min-height: 1.75rem;
    padding: 0.3rem 0.42rem;
    font-size: 0.72rem;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
    padding: 0.62rem 0.72rem;
    border-radius: 11px;
    font-size: 0.84rem;
}

.admin-page .button {
    padding: 0.56rem 0.76rem;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        min-height: auto;
    }

    .admin-topbar {
        position: static;
    }

    .admin-search,
    .admin-search input {
        width: 100%;
        min-width: 0;
    }

    .admin-content {
        padding: 0.85rem;
    }

    .admin-topbar {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .admin-topbar .header-actions {
        justify-content: flex-start;
    }

    .admin-filters {
        position: static;
        border-radius: 18px;
    }

    .admin-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.9rem;
    }

    .admin-sidebar h3,
    .admin-sidebar .sidebar-profile {
        grid-column: 1 / -1;
    }

    .admin-sidebar a {
        margin-bottom: 0;
        font-size: 0.82rem;
    }
}

.house-showcase .info-panel.compact {
    margin-top: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 15px;
}

.house-showcase .info-panel h2 {
    margin: 0 0 0.55rem;
    font-size: 1rem;
}

.house-showcase p {
    font-size: 0.92rem;
}

.house-showcase .location-map-preview {
    height: 175px;
    border-radius: 14px;
}

.house-showcase .button {
    padding: 0.68rem 0.85rem;
    font-size: 0.88rem;
}

.house-showcase .profile-identity {
    gap: 0.75rem;
}

.house-showcase .avatar-badge {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
}

.read-more-panel {
    display: grid;
    gap: 0.65rem;
}

.read-more-panel > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-weight: 800;
    color: var(--text);
}

.read-more-panel > summary::-webkit-details-marker {
    display: none;
}

.read-more-panel > summary::after {
    content: "Read more";
    flex: 0 0 auto;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
}

.read-more-panel[open] > summary::after {
    content: "Minimize";
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.read-more-panel > summary span {
    margin-left: auto;
    min-width: 0;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.read-more-panel:not([open]) > *:not(summary) {
    display: none;
}

.review-list.is-short .review-card:nth-of-type(n + 3) {
    display: none;
}

.review-list.is-short.is-expanded .review-card {
    display: grid;
}

.read-more-toggle {
    justify-self: start;
    margin-top: 0.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line);
    background: var(--surface-muted);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.78rem;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
}

.orb-a {
    top: 5rem;
    right: 4rem;
    width: 12rem;
    height: 12rem;
    background: rgba(76, 201, 176, 0.16);
}

.orb-b {
    top: 20rem;
    left: 3rem;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 180, 84, 0.12);
}

.orb-c {
    bottom: 3rem;
    right: 10%;
    width: 10rem;
    height: 10rem;
    background: rgba(47, 180, 151, 0.15);
}

.icon,
.brand-icon,
.mini-icon,
.theme-icon,
.graphic-icon,
.avatar-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.brand-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.mini-icon {
    width: 0.9rem;
    height: 0.9rem;
}

.graphic-icon {
    width: 2rem;
    height: 2rem;
}

.avatar-icon {
    width: 1.7rem;
    height: 1.7rem;
}

@media (min-width: 1024px) {
    .listing-grid,
    .house-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-content .service-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-content h2,
    .content h2 {
        font-size: 1rem;
    }

    .listing-meta {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .pill,
    .status-pill,
    .service-pill,
    .meta-pill,
    .image-badge {
        font-size: 0.7rem;
        padding: 0.32rem 0.55rem;
    }
}

@media (min-width: 1200px) {
    .detail-content .service-grid-compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-card,
    .dashboard,
    .two-column,
    .stat-panel {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
    }

    .landlord-mobile-menu {
        display: inline-flex;
    }

    .landlord-page .sidebar {
        display: none;
    }

    .dashboard-content {
        padding-top: 0;
    }

    .detail-media {
        aspect-ratio: 16 / 10;
    }

    .smart-filter-main,
    .smart-filter-shell.is-compact .smart-filter-main,
    .smart-filter-extra,
    .smart-filter-shell.is-compact .smart-filter-extra {
        grid-template-columns: 1fr 1fr;
    }

    .property-hero-card,
    .detail-layout,
    .map-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-side-panel {
        position: static;
    }

    .gallery-showcase {
        grid-template-columns: 1fr;
    }

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

    .gallery-main {
        min-height: 250px;
    }

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

    .hero-section,
    .section {
        padding: 1rem 0 1.9rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .hero-slogan {
        font-size: 0.98rem;
    }

    .category-grid,
    .steps-grid {
        gap: 0.75rem;
    }

    .mobile-scroll-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82vw);
        grid-template-columns: none;
        gap: 0.75rem;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .category-grid.mobile-scroll-row {
        grid-auto-columns: minmax(180px, 70vw);
    }

    .steps-grid.mobile-scroll-row {
        grid-auto-columns: minmax(220px, 76vw);
    }

    .mobile-scroll-row > * {
        scroll-snap-align: start;
    }

    .media-tile {
        min-height: 140px;
    }
}

@media (max-width: 640px) {
    .site-header,
    .page-header {
        position: relative;
        padding: 0.55rem 0;
    }

    .browse-header {
        padding-bottom: 0.35rem;
    }

    .page-header .header-row,
    .site-header .nav-shell {
        padding: 0.65rem;
        border-radius: 16px;
        gap: 0.6rem;
    }

    .browse-header .title-cluster h1 {
        display: none;
    }

    .browse-header .header-actions {
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        gap: 0.45rem;
    }

    .browse-header .header-actions .button {
        padding: 0.55rem 0.65rem;
        font-size: 0.78rem;
    }

    .browse-header .theme-toggle {
        width: 2.35rem;
        height: 2.35rem;
    }

    .browse-filter-stage {
        margin-top: 0.25rem;
        margin-bottom: 0.9rem;
    }

    .smart-filter-card {
        padding: 0.55rem;
        border-radius: 16px;
    }

    .location-picker-panel {
        position: static;
        width: 100%;
        margin-top: 0.55rem;
        box-shadow: none;
    }

    .nav-shell,
    .header-row,
    .dashboard-header,
    .footer-grid,
    .site-footer-grid,
    .profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-copy h1 {
        max-width: none;
        font-size: clamp(2.1rem, 13vw, 3rem);
    }

    .hero-slogan {
        margin-bottom: 0.95rem;
        font-size: 0.92rem;
    }

    .eyebrow {
        margin-bottom: 0.45rem;
        font-size: 0.7rem;
    }

    .section-heading {
        margin-bottom: 0.7rem;
    }

    .section-heading h2 {
        font-size: 1.15rem;
    }

    .hero-card,
    .auth-panel,
    .detail-content {
        padding: 0.9rem;
    }

    .button,
    .btn,
    button {
        width: 100%;
    }

    .header-actions,
    .hero-actions,
    .card-actions {
        width: 100%;
    }

    .listing-image,
    .detail-media {
        aspect-ratio: 4 / 3;
    }

    .smart-filter-card,
    .smart-filter-shell.is-compact .smart-filter-card {
        width: 100%;
    }

    .smart-filter-main,
    .smart-filter-shell.is-compact .smart-filter-main,
    .smart-filter-extra,
    .smart-filter-shell.is-compact .smart-filter-extra {
        grid-template-columns: 1fr;
    }

    .smart-filter-shell.is-compact .filter-more > div {
        width: min(92vw, 420px);
    }

    .price-strip,
    .know-grid,
    .landlord-stat-grid,
    .review-form {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        min-height: 210px;
    }

    .gallery-side img {
        min-height: 105px;
    }

    .hero-section,
    .section {
        padding: 0.85rem 0 1.5rem;
    }

    .hero-section {
        min-height: auto;
    }

    .listing-content,
    .content,
    .detail-content {
        padding: 0.78rem;
    }

    .listing-content h2,
    .content h2,
    .feature-card h3 {
        margin-bottom: 0.45rem;
        font-size: 0.96rem;
    }

    .property-specs {
        gap: 0.35rem;
        margin-top: 0.45rem;
    }

    .property-specs span,
    .pill,
    .status-pill,
    .service-pill,
    .meta-pill,
    .image-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }

    .price {
        margin-bottom: 0.55rem;
        font-size: 0.9rem;
    }

    .category-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .media-tile,
    .why-tile {
        min-height: 132px;
        padding: 0.85rem;
        gap: 0.55rem;
    }

    .media-tile::after {
        width: min(48%, 145px);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: linear-gradient(90deg, rgba(5, 11, 24, 0.7) 0%, rgba(5, 11, 24, 0.34) 48%, rgba(5, 11, 24, 0.08) 76%, transparent 100%);
    }

    .tile-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 12px;
    }

    .tile-copy {
        max-width: 13rem;
        gap: 0.22rem;
    }

    .tile-copy strong,
    .tile-copy h3 {
        font-size: 0.92rem;
    }

    .tile-copy small,
    .why-tile .tile-copy p {
        font-size: 0.74rem;
        line-height: 1.3;
    }

    .why-tile .step-number {
        top: 0.8rem;
        left: 0.8rem;
        width: 1.8rem;
        height: 1.8rem;
    }

    .mobile-scroll-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82vw);
        grid-template-columns: none;
        gap: 0.75rem;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .category-grid.mobile-scroll-row {
        grid-auto-columns: minmax(180px, 70vw);
    }

    .steps-grid.mobile-scroll-row {
        grid-auto-columns: minmax(220px, 76vw);
    }

    .mobile-scroll-row > * {
        scroll-snap-align: start;
    }
}

@media (max-width: 900px) {
    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-inline: 0;
        padding-inline: 0;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .container,
    .page-stack,
    main,
    section {
        min-width: 0;
        max-width: 100%;
    }

    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        margin: 0;
        padding: 0 0 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        contain: inline-size;
    }

    .listing-grid > *,
    .house-grid > *,
    .mobile-scroll-row > * {
        flex: 0 0 min(82vw, 280px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .category-grid > *,
    .service-grid > * {
        flex: 0 0 min(70vw, 220px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .feature-grid > *,
    .steps-grid > * {
        flex: 0 0 min(76vw, 250px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .stat-panel > *,
    .dashboard-stat-row > * {
        flex: 0 0 min(68vw, 190px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .listing-grid > .empty-state,
    .house-grid > .empty-state,
    .stat-panel > .empty-state,
    .dashboard-stat-row > .empty-state {
        flex-basis: 100%;
    }
}

.chat-avatar,
.review-avatar,
.avatar-badge {
    overflow: hidden;
}

.chat-avatar img,
.review-avatar img,
.avatar-badge img,
.profile-photo-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.profile-icon-button {
    padding: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(11, 77, 168, 0.2), rgba(255, 106, 0, 0.22));
}

.profile-icon-button .chat-avatar {
    width: 2.55rem;
    height: 2.55rem;
    box-sizing: border-box;
    padding: 0.18rem;
    border: 1px solid color-mix(in srgb, var(--surface-strong) 86%, transparent);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 18px rgba(13, 27, 42, 0.12);
}

.profile-icon-button .chat-avatar img {
    border-radius: 999px;
}

.profile-photo-preview {
    width: 5.8rem;
    height: 5.8rem;
    box-sizing: border-box;
    padding: 0.22rem;
    border-radius: 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 34px rgba(13, 27, 42, 0.14);
}

.profile-photo-preview img {
    border-radius: 1.45rem;
}

@media (max-width: 900px) {
    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-inline: 0;
        padding-inline: 0;
    }
}

@media (max-width: 900px) {
    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 82vw);
        grid-template-columns: none;
        gap: 0.75rem;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .category-grid,
    .service-grid {
        grid-auto-columns: minmax(180px, 70vw);
    }

    .steps-grid,
    .feature-grid {
        grid-auto-columns: minmax(220px, 76vw);
    }

    .stat-panel,
    .dashboard-stat-row {
        grid-auto-columns: minmax(170px, 68vw);
    }

    .listing-grid > *,
    .house-grid > *,
    .feature-grid > *,
    .steps-grid > *,
    .category-grid > *,
    .service-grid > *,
    .stat-panel > *,
    .dashboard-stat-row > *,
    .mobile-scroll-row > * {
        scroll-snap-align: start;
    }
}

@media (max-width: 900px) {
    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-inline: 0;
        padding-inline: 0;
    }
}


/* Final mobile containment: card rows scroll, page does not. */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 900px) {
    .container,
    .page-stack,
    main,
    section {
        min-width: 0;
        max-width: 100%;
    }

    .listing-grid,
    .house-grid,
    .feature-grid,
    .steps-grid,
    .category-grid,
    .service-grid,
    .stat-panel,
    .dashboard-stat-row,
    .mobile-scroll-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        margin: 0;
        padding: 0 0 0.45rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        contain: inline-size;
    }

    .listing-grid > *,
    .house-grid > *,
    .mobile-scroll-row > * {
        flex: 0 0 min(82vw, 280px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .category-grid > *,
    .service-grid > * {
        flex: 0 0 min(70vw, 220px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .feature-grid > *,
    .steps-grid > * {
        flex: 0 0 min(76vw, 250px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .stat-panel > *,
    .dashboard-stat-row > * {
        flex: 0 0 min(68vw, 190px);
        min-width: 0;
        scroll-snap-align: start;
    }

    .listing-grid > .empty-state,
    .house-grid > .empty-state,
    .stat-panel > .empty-state,
    .dashboard-stat-row > .empty-state {
        flex-basis: 100%;
    }
}

/* Compact browse header and search filters. */
.browse-header {
    padding: 0.45rem 0;
}

.browse-header .header-row {
    padding: 0.55rem 0.7rem;
    gap: 0.55rem;
}

.browse-header .title-cluster h1 {
    font-size: 1.05rem;
    margin: 0;
}

.browse-header .brand.small {
    min-height: 2rem;
}

.browse-header .header-actions {
    gap: 0.4rem;
}

.browse-header .utility-chip {
    min-height: 2.15rem;
    padding: 0.45rem 0.62rem;
    font-size: 0.76rem;
}

.browse-header .theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
}

.browse-filter-stage {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.smart-filter-shell {
    justify-content: stretch;
}

.smart-filter-card {
    width: 100%;
    max-width: 100%;
    padding: 0.45rem;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.07);
}

.browse-search-row,
.smart-filter-main,
.smart-filter-shell:not(.is-compact) .smart-filter-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: end;
    gap: 0.45rem;
}

.browse-search-field span,
.smart-filter-card .filter-field span {
    display: none;
}

.browse-search-field input,
.smart-filter-card select,
.smart-filter-card input,
.location-picker > summary {
    min-height: 2.35rem;
    padding: 0.54rem 0.7rem;
    border-radius: 12px;
    font-size: 0.84rem;
}

.smart-filter-card .filter-submit,
.filter-more > summary {
    min-width: 0;
    min-height: 2.35rem;
    padding: 0.54rem 0.72rem;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.smart-filter-card .filter-submit .icon,
.filter-more > summary .icon {
    width: 0.92rem;
    height: 0.92rem;
}

.smart-filter-shell:not(.is-compact) .filter-more,
.smart-filter-shell.is-compact .filter-more {
    display: block;
    justify-self: end;
}

.smart-filter-shell:not(.is-compact) .filter-more > summary,
.smart-filter-shell.is-compact .filter-more > summary {
    display: inline-flex;
}

.smart-filter-shell:not(.is-compact) .filter-more > div,
.smart-filter-shell.is-compact .filter-more > div,
.filter-more > div {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 120;
    width: min(92vw, 560px);
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-strong) 97%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.filter-more[open] > div,
.smart-filter-shell:not(.is-compact) .filter-more[open] > div,
.smart-filter-shell.is-compact .filter-more[open] > div {
    display: grid !important;
}

.smart-filter-extra .filter-field,
.smart-filter-extra .filter-clear {
    min-width: 0;
}

.smart-filter-extra .filter-clear {
    min-height: 2.35rem;
    padding: 0.54rem 0.7rem;
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .browse-header .header-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .browse-header .title-cluster h1 {
        display: none;
    }

    .browse-header .header-actions {
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .browse-header .utility-nav {
        display: none;
    }

    .browse-search-row,
    .smart-filter-main,
    .smart-filter-shell:not(.is-compact) .smart-filter-main,
    .smart-filter-shell.is-compact .smart-filter-main {
        grid-template-columns: minmax(0, 1fr) 2.35rem 2.35rem;
        gap: 0.35rem;
    }

    .filter-submit-label,
    .filter-more > summary span {
        display: none;
    }

    .smart-filter-card .filter-submit,
    .filter-more > summary {
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
    }

    .smart-filter-shell:not(.is-compact) .filter-more > div,
    .smart-filter-shell.is-compact .filter-more > div,
    .filter-more > div {
        position: fixed;
        left: 0.75rem;
        right: 0.75rem;
        top: 5.25rem;
        width: auto;
        grid-template-columns: 1fr 1fr;
        max-height: calc(100vh - 6.5rem);
        overflow: auto;
    }
}

/* Footer mobile scroller: details move sideways, page stays fixed. */
.site-footer {
    overflow: hidden;
}

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

@media (max-width: 760px) {
    .site-footer-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        contain: inline-size;
    }

    .site-footer-grid > * {
        flex: 0 0 min(78vw, 260px);
        min-width: 0;
        scroll-snap-align: start;
    }
}

/* Admin landing image controls. */
.landing-image-wrap {
    position: relative;
    min-width: 0;
    min-height: inherit;
}

.landing-image-wrap > .media-tile,
.landing-image-wrap > .category-tile,
.landing-image-wrap > .why-tile {
    height: 100%;
}

.landing-image-wrap.is-hidden-admin {
    opacity: 0.48;
    filter: grayscale(0.55);
}

.landing-image-menu {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 12;
}

.landing-image-menu > summary {
    list-style: none;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(5, 11, 24, 0.68);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(5, 11, 24, 0.22);
}

.landing-image-menu > summary::-webkit-details-marker {
    display: none;
}

.landing-image-panel {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    width: min(82vw, 18rem);
    display: grid;
    gap: 0.45rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 98%, transparent);
    color: var(--text);
    box-shadow: var(--shadow);
}

.landing-image-panel form {
    display: grid;
    gap: 0.35rem;
}

.landing-image-panel input,
.landing-image-panel button {
    min-height: 2rem;
    padding: 0.42rem 0.55rem;
    border-radius: 10px;
    font-size: 0.76rem;
}

.landing-image-panel button {
    width: 100%;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.landing-image-panel form:nth-of-type(2) button {
    background: var(--accent);
}

.landing-image-panel form:nth-of-type(3) button {
    background: var(--danger);
}

.image-current {
    display: block;
    max-width: 100%;
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Admin landing editor page. */
.landing-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.landing-admin-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-strong);
}

.landing-admin-card.is-hidden-admin {
    opacity: 0.62;
}

.landing-admin-preview {
    position: relative;
    min-height: 132px;
    border-radius: 14px;
    box-shadow: none;
}

.landing-admin-preview-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-admin-preview::before {
    background: linear-gradient(135deg, rgba(10, 18, 23, 0.08), rgba(10, 18, 23, 0.02));
}

.landing-admin-preview::after {
    width: min(54%, 170px);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: linear-gradient(90deg, rgba(5, 11, 24, 0.62) 0%, rgba(5, 11, 24, 0.28) 48%, rgba(5, 11, 24, 0.08) 76%, transparent 100%);
}

.landing-admin-card .stack-form {
    gap: 0.55rem;
}

.landing-admin-card input[type="text"],
.landing-admin-card input[type="file"] {
    min-height: 2.35rem;
    padding: 0.54rem 0.65rem;
    font-size: 0.78rem;
}

.landing-admin-card .admin-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.landing-admin-card .admin-actions form {
    flex: 1 1 6rem;
}

.landing-admin-card .admin-actions .button {
    width: 100%;
}


.button-small {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
}

/* Add House launch card (shown before the wizard opens) */
.wizard-launch-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: var(--space-4);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--compact-shadow);
    max-width: 520px;
}

.wizard-launch-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary);
}

.wizard-launch-card h2 {
    margin: 0;
}

.wizard-launch-card p {
    color: var(--text-soft);
    margin: 0;
}

/* House wizard (Add House multi-step popup) */
.house-wizard.is-active .wizard-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    padding: 1rem;
    background: rgba(5, 11, 24, 0.6);
    z-index: 200;
    animation: wizardFadeIn 0.2s ease;
}

.house-wizard.is-active .wizard-dialog {
    display: flex;
    flex-direction: column;
    width: min(92vw, 680px);
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(5, 11, 24, 0.45);
    animation: wizardPopIn 0.25s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wizardPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .house-wizard.is-active .wizard-backdrop,
    .house-wizard.is-active .wizard-dialog {
        animation: none;
    }
}

.house-wizard:not(.is-active) .wizard-backdrop,
.wizard-backdrop {
    display: none;
}

body.wizard-open {
    overflow: hidden;
}

/* While the Add House wizard (or any full-screen modal) is open, tuck the
   fixed dashboard header and footer out of the way so they can never sit
   on top of the popup. */
body.wizard-open .dashboard-header,
body.media-modal-open .dashboard-header {
    visibility: hidden;
}
body.wizard-open .site-footer,
body.media-modal-open .site-footer {
    transform: translateY(100%) !important;
}
.house-wizard.is-active .wizard-backdrop {
    z-index: 400;
}

/* Sticky head with dial + dots + close */
.wizard-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--line);
}

.wizard-dial {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.wizard-dial-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.wizard-dial-track {
    fill: none;
    stroke: var(--line);
    stroke-width: 5;
}

.wizard-dial-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
}

.wizard-dial-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text);
}

.wizard-head-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.wizard-step-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.wizard-dots {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.wizard-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    transition: background 0.2s ease, transform 0.2s ease;
}

.wizard-dot.is-current {
    background: var(--primary);
    transform: scale(1.35);
}

.wizard-dot.is-done {
    background: var(--success);
}

.wizard-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.wizard-close:hover {
    background: var(--line);
}

/* Steps + transitions */
.house-wizard.is-active .wizard-step {
    display: none;
    padding: 1.5rem;
}

.house-wizard.is-active .wizard-step.is-current {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: none;
}

.wizard-step.is-entering-right { display: flex; flex-direction: column; gap: 1rem; transform: translateX(24px); opacity: 0; }
.wizard-step.is-entering-left { display: flex; flex-direction: column; gap: 1rem; transform: translateX(-24px); opacity: 0; }
.wizard-step.is-current.is-animating-out,
.wizard-step.is-current:not(.is-entering-right):not(.is-entering-left) {
    transform: translateX(0);
    opacity: 1;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.wizard-step.is-leaving-left.is-animating-out { transform: translateX(-24px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }
.wizard-step.is-leaving-right.is-animating-out { transform: translateX(24px); opacity: 0; transition: transform 0.22s ease, opacity 0.22s ease; }

.wizard-step.is-shaking {
    animation: wizardShake 0.35s ease;
}

@keyframes wizardShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.wizard-step-subtitle {
    margin: -0.5rem 0 0;
    color: var(--text-soft);
    font-size: 0.88rem;
}

.field-hint {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.field-error {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--danger);
    font-size: 0.82rem;
    margin: -0.4rem 0 0;
}

.field-error::before {
    content: "!";
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

input.has-error,
select.has-error,
textarea.has-error {
    border-color: var(--danger) !important;
}

/* Option cards (house type) */
.option-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.6rem;
}

.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.85rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.option-card:hover {
    border-color: var(--primary);
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.option-card-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-muted);
    color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
}

.option-card:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.option-card:has(input:checked) .option-card-check {
    background: var(--primary);
    color: #fff;
}

.option-card input:focus-visible ~ * {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Services chips */
.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.chip:has(input:checked) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

/* Photo dropzone */
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
    padding: 1.75rem 1rem;
    border: 2px dashed var(--line);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.dropzone-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--primary);
}

.dropzone small {
    color: var(--text-soft);
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* Confirmation checkbox */
.wizard-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    padding: 0.85rem;
    background: var(--surface-muted);
    border-radius: 12px;
}

/* Review step */
.wizard-review-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface-muted);
    border-radius: 14px;
    flex-wrap: wrap;
}

.wizard-review-cover {
    width: 120px;
    height: 90px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.wizard-review-cover-empty {
    display: grid;
    place-items: center;
    color: var(--text-soft);
    font-size: 0.78rem;
    background: var(--surface-strong);
    border: 1px dashed var(--line);
}

.wizard-review-card-body {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface-strong);
    border-radius: 10px;
}

.wizard-review-edit {
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}

/* Sticky bottom nav */
.wizard-nav {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--surface-strong);
    border-top: 1px solid var(--line);
}

.wizard-nav [data-wizard-back][hidden] {
    visibility: hidden;
}

.wizard-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .house-wizard.is-active .wizard-backdrop {
        padding: 0;
    }

    .house-wizard.is-active .wizard-dialog {
        width: 100vw;
        max-width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .wizard-head-copy .wizard-dots {
        display: none;
    }
}

.status-form-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.status-form-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-actions-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-actions-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-soft);
}

/* Modern sequential property media uploader */
.property-media{display:flex;flex-direction:column;gap:.85rem}.media-cover-picker,.media-photo-add{border:2px dashed var(--line);background:var(--surface-muted);color:var(--text);border-radius:16px;cursor:pointer}.media-cover-picker{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.45rem;padding:1.5rem}.media-cover-picker:hover,.media-photo-add:hover{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,var(--surface-muted))}.media-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:.7rem}.media-photo-tile,.media-photo-add{aspect-ratio:1;position:relative;overflow:hidden}.media-photo-tile{border-radius:14px;background:var(--surface-muted);border:1px solid var(--line)}.media-photo-tile img{width:100%;height:100%;object-fit:cover}.media-cover-badge{position:absolute;left:.4rem;bottom:.4rem;padding:.22rem .45rem;border-radius:999px;background:var(--primary);color:#fff;font-size:.68rem;font-weight:700}.media-photo-actions{position:absolute;right:.35rem;top:.35rem;display:flex;gap:.25rem}.media-photo-actions button{width:28px;height:28px;border:0;border-radius:999px;background:rgba(5,11,24,.72);color:#fff;cursor:pointer}.media-photo-add{display:grid;place-items:center;align-content:center;gap:.15rem;min-height:92px}.media-photo-add strong{font-size:1.5rem}.media-photo-add span{font-size:.72rem}.media-photo-meta{display:flex;justify-content:space-between;gap:.75rem;flex-wrap:wrap;color:var(--text-soft);font-size:.78rem}.media-crop-modal{position:fixed;inset:0;z-index:500;background:rgba(4,9,20,.78);display:grid;place-items:center;padding:1rem}.media-crop-modal[hidden]{display:none}.media-crop-dialog{width:min(94vw,650px);background:var(--surface-strong);border-radius:20px;overflow:hidden;box-shadow:0 25px 80px rgba(0,0,0,.45)}.media-crop-head,.media-crop-actions,.media-crop-controls{display:flex;align-items:center;gap:.75rem;padding:1rem 1.2rem}.media-crop-head{justify-content:space-between;border-bottom:1px solid var(--line)}.media-crop-head div{display:flex;flex-direction:column}.media-crop-head small{color:var(--text-soft)}.media-crop-head button{border:0;background:var(--surface-muted);width:34px;height:34px;border-radius:999px;font-size:1.25rem}.media-crop-stage{width:100%;aspect-ratio:4/3;position:relative;overflow:hidden;background:#090d16;touch-action:none;cursor:grab}.media-crop-stage canvas{display:block;width:100%;height:100%}.media-crop-frame{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 2px rgba(255,255,255,.9)}.media-crop-frame:before,.media-crop-frame:after,.media-crop-frame span{content:"";position:absolute;background:rgba(255,255,255,.35)}.media-crop-frame:before{left:33.33%;top:0;bottom:0;width:1px}.media-crop-frame:after{left:66.66%;top:0;bottom:0;width:1px}.media-crop-frame span:nth-child(1){top:33.33%;left:0;right:0;height:1px}.media-crop-frame span:nth-child(2){top:66.66%;left:0;right:0;height:1px}.media-crop-controls{justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line)}.media-crop-controls label{display:flex;align-items:center;gap:.55rem;flex:1;min-width:180px}.media-crop-controls input{width:100%}.media-crop-actions{justify-content:flex-end;border-top:1px solid var(--line)}body.media-modal-open{overflow:hidden}.video-editor{display:flex;flex-direction:column;gap:.8rem}.video-picker{padding:1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface-muted)}.video-trim-panel{display:flex;flex-direction:column;gap:.8rem}.video-trim-panel video{width:100%;max-height:340px;border-radius:14px;background:#000}.video-range-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.video-range-row label{display:flex;flex-direction:column;gap:.35rem}.video-trim-actions{display:flex;gap:.5rem;flex-wrap:wrap}@media(max-width:640px){.media-crop-modal{padding:0}.media-crop-dialog{width:100vw;height:100dvh;border-radius:0;display:flex;flex-direction:column}.media-crop-stage{margin:auto 0}.video-range-row{grid-template-columns:1fr}.media-photo-grid{grid-template-columns:repeat(4,1fr)}}

.wizard-error-banner {
    margin: 0 1.5rem;
}

/* Interactive location picker (Leaflet) */
.location-picker-map {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    overflow: hidden;
    background: var(--surface-muted);
    z-index: 0;
}

.location-picker-map .leaflet-pane,
.location-picker-map .leaflet-control {
    z-index: 1;
}

@media (max-width: 640px) {
    .location-picker-map {
        height: 200px;
    }
}

/* Pango staged listing upload: photos first, optional video second. */
.staged-upload-status {
    width: 100%;
    margin-top: .7rem;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-muted);
}
.staged-upload-status strong,
.staged-upload-status small { display: block; }
.staged-upload-status small { margin-top: .35rem; color: var(--text-soft); }
.staged-upload-track {
    height: .45rem;
    margin-top: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--line) 75%, transparent);
}
.staged-upload-track span {
    display: block;
    width: 3%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .22s ease;
}

/* Keep the landlord mobile dropdown fully on-screen and centered. */
@media (max-width: 900px) {
    .landlord-mobile-menu {
        position: static;
    }
    .landlord-mobile-menu[open] .dashboard-menu-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        width: min(calc(100vw - 2rem), 23rem);
        max-height: min(72vh, 36rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1002;
    }
    .landlord-mobile-menu[open]::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(2, 8, 23, .46);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1001;
    }
    .landlord-mobile-menu > summary {
        position: relative;
        z-index: 1003;
    }
    .landlord-mobile-menu[open] > summary {
        position: fixed;
        top: max(1rem, env(safe-area-inset-top));
        right: 1rem;
        width: auto;
        min-width: 5.5rem;
    }
}

/* ===== Landlord dashboard compact controls (Aug 2026) ===== */
.dashboard-page .landlord-compact-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: .35rem;
}
.dashboard-page .landlord-compact-actions .utility-nav {
    gap: .35rem;
    flex-wrap: nowrap;
}
.dashboard-page .landlord-compact-actions .utility-wallet-chip {
    display: none;
}
.dashboard-page .landlord-compact-actions .utility-chip,
.dashboard-page .landlord-menu-trigger,
.dashboard-page .compact-icon-action {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--text);
}
.dashboard-page .landlord-compact-actions .utility-chip:hover,
.dashboard-page .landlord-menu-trigger:hover,
.dashboard-page .compact-icon-action:hover {
    background: var(--surface-muted) !important;
}
.dashboard-page .landlord-compact-actions .utility-label {
    display: none;
}
.dashboard-page .utility-profile-chip .chat-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    box-shadow: none;
}
.dashboard-page .utility-profile-chip .chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dashboard-page .landlord-menu-trigger .icon,
.dashboard-page .compact-icon-action .theme-icon,
.dashboard-page .utility-alerts-dropdown .mini-icon {
    width: 21px;
    height: 21px;
}
.dashboard-page .utility-badge {
    top: 0;
    right: 0;
}
.dashboard-page .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Listing actions: three compact icon actions in one row. */
.dashboard-page .listing-icon-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .55rem;
    margin-top: .75rem;
}
.dashboard-page .listing-icon-actions form {
    margin: 0;
    min-width: 0;
}
.dashboard-page .listing-icon-btn {
    width: 100%;
    height: 42px;
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--surface-muted);
    color: var(--text);
    box-shadow: none;
    cursor: pointer;
}
.dashboard-page .listing-icon-btn:hover {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-muted));
    color: var(--primary);
}
.dashboard-page .listing-icon-btn.is-danger {
    color: var(--danger, #d92d20);
}
.dashboard-page .listing-icon-btn .icon {
    width: 20px;
    height: 20px;
}

/* One Boost button, with the three promotion choices inside its dropdown. */
.dashboard-page .boost-dropdown {
    position: relative;
    margin-top: .6rem;
}
.dashboard-page .boost-dropdown > summary {
    list-style: none;
}
.dashboard-page .boost-dropdown > summary::-webkit-details-marker {
    display: none;
}
.dashboard-page .boost-button {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: 0 .9rem;
    border: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-muted));
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}
.dashboard-page .boost-chevron {
    margin-left: .15rem;
    transition: transform .18s ease;
}
.dashboard-page .boost-dropdown[open] .boost-chevron {
    transform: rotate(180deg);
}
.dashboard-page .boost-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 80;
    display: grid;
    gap: .35rem;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}
.dashboard-page .boost-menu form {
    margin: 0;
}
.dashboard-page .boost-menu button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .75rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}
.dashboard-page .boost-menu button:hover {
    background: var(--surface-muted);
}
.dashboard-page .boost-menu button strong,
.dashboard-page .boost-menu button small {
    display: block;
}
.dashboard-page .boost-menu button small {
    color: var(--text-soft);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open] .dashboard-menu-panel {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: min(calc(100vw - 2rem), 22rem) !important;
        max-height: min(72dvh, 34rem);
        overflow-y: auto;
        z-index: 1202 !important;
    }
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open]::before {
        z-index: 1201 !important;
    }
    /* Keep the hamburger where it belongs; only the menu panel moves to center. */
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open] > summary {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 40px !important;
        min-width: 40px !important;
        z-index: 1203 !important;
    }
}

@media (max-width: 640px) {
    .dashboard-page .dashboard-header {
        width: 100%;
        gap: .8rem;
    }
    .dashboard-page .dashboard-header .landlord-compact-actions {
        width: 100% !important;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    .dashboard-page .landlord-compact-actions .utility-nav {
        width: auto;
        display: flex;
        flex-direction: row;
    }
    .dashboard-page .landlord-compact-actions .utility-chip,
    .dashboard-page .landlord-menu-trigger,
    .dashboard-page .compact-icon-action,
    .dashboard-page .listing-icon-btn {
        width: 40px !important;
    }
    .dashboard-page .listing-icon-actions .listing-icon-btn {
        width: 100% !important;
    }
    .dashboard-page .boost-menu button,
    .dashboard-page .boost-button {
        width: 100% !important;
    }
}


/* ===== Landlord dashboard icon-only/mobile cleanup v2 ===== */
/* Top controls: no visible labels, no button containers, one horizontal row. */
.dashboard-page .landlord-compact-actions,
.dashboard-page .landlord-compact-actions .utility-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: .7rem !important;
}
.dashboard-page .landlord-compact-actions {
    justify-content: flex-end !important;
}
.dashboard-page .landlord-compact-actions .utility-label,
.dashboard-page .landlord-compact-actions .utility-wallet-chip {
    display: none !important;
}
.dashboard-page .landlord-compact-actions .utility-chip,
.dashboard-page .landlord-menu-trigger,
.dashboard-page .compact-icon-action {
    width: 34px !important;
    min-width: 34px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    color: var(--text) !important;
}
.dashboard-page .landlord-compact-actions .utility-chip:hover,
.dashboard-page .landlord-menu-trigger:hover,
.dashboard-page .compact-icon-action:hover {
    background: transparent !important;
    color: var(--primary) !important;
}
.dashboard-page .utility-profile-chip .chat-avatar,
.dashboard-page .utility-profile-chip .chat-avatar.is-small {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    overflow: hidden !important;
}
.dashboard-page .utility-profile-chip .chat-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.dashboard-page .utility-alerts-dropdown .mini-icon,
.dashboard-page .landlord-menu-trigger .icon,
.dashboard-page .compact-icon-action .theme-icon {
    width: 27px !important;
    height: 27px !important;
    stroke-width: 2.2;
}
.dashboard-page .utility-badge {
    top: -2px !important;
    right: -4px !important;
}

/* Listing actions: three icon-only controls, evenly spaced in one horizontal row.
   Preview + Edit share the neutral icon tone; Delete has no holder at all - just
   a clearly-colored trash icon so it stays obvious without looking like a button. */
.dashboard-page .listing-icon-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: .5rem !important;
    margin-top: .85rem !important;
    padding-top: .7rem !important;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
}
.dashboard-page .listing-icon-actions form {
    display: contents !important;
    margin: 0 !important;
}
.dashboard-page .listing-icon-btn,
.dashboard-page .listing-icon-actions .listing-icon-btn,
.dashboard-page .listing-icon-btn.is-danger {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--text-soft) !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
/* Preview + Edit get a faint holder only on hover/focus, purely as a hint - never a resting box. */
.dashboard-page .listing-icon-btn:hover,
.dashboard-page .listing-icon-btn:focus-visible {
    background: color-mix(in srgb, var(--primary) 12%, transparent) !important;
    color: var(--primary) !important;
    transform: translateY(-1px);
}
/* Delete: icon only, always, no holder even on hover - just a stronger red to stay legible. */
.dashboard-page .listing-icon-btn.is-danger {
    color: var(--danger, #d92d20) !important;
}
.dashboard-page .listing-icon-btn.is-danger:hover,
.dashboard-page .listing-icon-btn.is-danger:focus-visible {
    background: transparent !important;
    color: var(--danger, #d92d20) !important;
    transform: translateY(-1px) scale(1.06);
}
.dashboard-page .listing-icon-btn .icon {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.1;
}
.dashboard-page .listing-icon-btn.is-danger .icon {
    stroke-width: 2.3;
}

/* ===== Boost dropdown: modern pill trigger + floating card menu ===== */
.dashboard-page .boost-dropdown {
    margin-top: .65rem !important;
}
.dashboard-page .boost-button {
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)) !important;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 16%, var(--surface-muted)), color-mix(in srgb, var(--accent, var(--primary)) 10%, var(--surface-muted))) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 32, 0.06) !important;
    transition: box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.dashboard-page .boost-button:hover {
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 20%, transparent) !important;
    transform: translateY(-1px);
}
.dashboard-page .boost-dropdown[open] .boost-button {
    border-radius: 14px 14px 0 0 !important;
}
.dashboard-page .boost-button .mini-icon {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--primary) 45%, transparent));
}
.dashboard-page .boost-chevron {
    font-size: .8rem;
    opacity: .75;
}
.dashboard-page .boost-menu {
    top: calc(100% + .4rem) !important;
    padding: .4rem !important;
    border-radius: 16px !important;
    border: 1px solid color-mix(in srgb, var(--line) 80%, transparent) !important;
    background: var(--surface-strong) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 32, 0.16) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: boostMenuIn .16s ease both;
}
@keyframes boostMenuIn {
    from { opacity: 0; transform: translateY(-4px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.dashboard-page .boost-menu form + form {
    border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
    padding-top: .35rem;
    margin-top: .35rem !important;
}
.dashboard-page .boost-menu button {
    border-radius: 12px !important;
    transition: background .15s ease, padding-left .15s ease;
}
.dashboard-page .boost-menu button:hover {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-muted)) !important;
    padding-left: 1rem !important;
}
.dashboard-page .boost-menu button small {
    padding: .2rem .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
}
.dashboard-page .boost-menu button .mini-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    color: var(--primary);
}
.dashboard-page .boost-menu button strong {
    flex: 1 1 auto;
    margin-right: .5rem;
}

/* Mobile top bar remains one row and menu panel is always viewport-centered. */
@media (max-width: 900px) {
    .dashboard-page .dashboard-header .landlord-compact-actions {
        display: flex !important;
        width: auto !important;
        margin-left: auto !important;
        flex: 0 0 auto !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open] .dashboard-menu-panel {
        position: fixed !important;
        inset: auto !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        width: min(calc(100vw - 2rem), 22rem) !important;
        max-height: 72dvh !important;
        overflow-y: auto !important;
        z-index: 5002 !important;
    }
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open]::before {
        z-index: 5001 !important;
    }
    .dashboard-page .dashboard-menu.landlord-mobile-menu[open] > summary {
        position: relative !important;
        inset: auto !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 38px !important;
        z-index: 5003 !important;
    }
}
@media (max-width: 640px) {
    .dashboard-page .dashboard-header {
        align-items: flex-start !important;
    }
    .dashboard-page .dashboard-header .landlord-compact-actions {
        width: auto !important;
        gap: .58rem !important;
    }
}

/* ============================================================
   Landlord application shell v4
   One viewport shell: sidebar + header + footer stay in place;
   only the landlord page content scrolls.
   This final block intentionally overrides older experimental
   sticky/fixed/footer rules above.
   ============================================================ */
body.dashboard-page.landlord-page {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding-bottom: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
}

body.dashboard-page.landlord-page > .dashboard {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none;
    overflow: hidden !important;
}

body.dashboard-page.landlord-page .sidebar {
    height: 100%;
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.dashboard-page.landlord-page .dashboard-content {
    min-width: 0;
    min-height: 0 !important;
    height: 100%;
    padding: 1.5rem;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

/* The header belongs to the scroll pane but remains pinned to its top. */
body.dashboard-page.landlord-page .dashboard-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 110 !important;
    margin-top: 0 !important;
    margin-bottom: var(--space-4) !important;
}

/* Footer is the second fixed row of the shell, not an overlay. */
body.dashboard-page.landlord-page > .site-footer {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    width: 100%;
    transform: none !important;
    transition: none !important;
    z-index: 100 !important;
    margin: 0 !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 32, .08);
}

body.dashboard-page.landlord-page.has-scrolled > .site-footer {
    transform: none !important;
}

/* Keep the shell usable on phones: sidebar disappears, content gets the full row. */
@media (max-width: 900px) {
    body.dashboard-page.landlord-page > .dashboard {
        display: block !important;
    }

    body.dashboard-page.landlord-page .dashboard-content {
        width: 100%;
        height: 100%;
        padding: .85rem;
        padding-top: .7rem !important;
    }

    body.dashboard-page.landlord-page .dashboard-header {
        top: 0 !important;
        width: 100% !important;
    }
}

/* Small phones need a little less chrome so the content remains useful. */
@media (max-width: 640px) {
    body.dashboard-page.landlord-page .dashboard-content {
        padding-left: .7rem;
        padding-right: .7rem;
    }

    body.dashboard-page.landlord-page .dashboard-header {
        padding: .8rem !important;
        margin-bottom: .8rem !important;
    }
}


/* ============================================================
   Landlord shell v5 — reveal footer + safe viewport popovers
   Shared by Dashboard, Add House, Edit House, Bookings, Messages.
   ============================================================ */
body.dashboard-page.landlord-page {
    --landlord-header-z: 300;
    --landlord-footer-z: 260;
    --landlord-overlay-z: 20000;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

body.dashboard-page.landlord-page > .dashboard {
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

body.dashboard-page.landlord-page .dashboard-content {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    /* Keep the final content reachable when the reveal footer is on top. */
    padding-bottom: calc(1.5rem + var(--footer-h, 0px)) !important;
}

body.dashboard-page.landlord-page .dashboard-header {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--landlord-header-z) !important;
    isolation: isolate;
}

/* Footer starts below the viewport and slides up only after the content scrolls. */
body.dashboard-page.landlord-page > .site-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: var(--landlord-footer-z) !important;
    transform: translateY(calc(100% + 2px)) !important;
    transition: transform .24s ease, box-shadow .24s ease !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 32, .12) !important;
}

body.dashboard-page.landlord-page.has-scrolled > .site-footer {
    transform: translateY(0) !important;
}

/* The alert and hamburger panels are true viewport popovers, not header-bound dropdowns. */
body.dashboard-page.landlord-page .utility-alerts-dropdown[open],
body.dashboard-page.landlord-page .landlord-mobile-menu[open] {
    position: static !important;
}

body.dashboard-page.landlord-page .utility-alerts-dropdown[open]::before,
body.dashboard-page.landlord-page .landlord-mobile-menu[open]::before {
    content: "";
    position: fixed !important;
    inset: 0 !important;
    z-index: calc(var(--landlord-overlay-z) - 1) !important;
    background: rgba(2, 8, 23, .48) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.dashboard-page.landlord-page .utility-alerts-dropdown[open] .utility-panel,
body.dashboard-page.landlord-page .landlord-mobile-menu[open] .dashboard-menu-panel {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: min(calc(100vw - 2rem), 23rem) !important;
    max-height: min(72dvh, 36rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    z-index: var(--landlord-overlay-z) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28) !important;
}

/* Never let the fixed header/footer cover a modal or centered content overlay. */
body.dashboard-page.landlord-page.landlord-popover-open .dashboard-header {
    z-index: calc(var(--landlord-overlay-z) + 1) !important;
}
body.dashboard-page.landlord-page.landlord-popover-open > .site-footer {
    z-index: calc(var(--landlord-overlay-z) - 2) !important;
}
body.dashboard-page.landlord-page .media-crop-modal,
body.dashboard-page.landlord-page .wizard-modal,
body.dashboard-page.landlord-page [role="dialog"],
body.dashboard-page.landlord-page .modal,
body.dashboard-page.landlord-page .dialog-overlay {
    z-index: calc(var(--landlord-overlay-z) + 20) !important;
}

/* Open details triggers remain in the top bar; the panel itself is centered. */
body.dashboard-page.landlord-page .utility-alerts-dropdown[open] > summary,
body.dashboard-page.landlord-page .landlord-mobile-menu[open] > summary {
    position: relative !important;
    inset: auto !important;
    z-index: calc(var(--landlord-overlay-z) + 2) !important;
}

@media (max-width: 900px) {
    body.dashboard-page.landlord-page .dashboard-content {
        padding-bottom: calc(.85rem + var(--footer-h, 0px)) !important;
    }
    body.dashboard-page.landlord-page .utility-alerts-dropdown[open] .utility-panel,
    body.dashboard-page.landlord-page .landlord-mobile-menu[open] .dashboard-menu-panel {
        width: min(calc(100vw - 1.5rem), 22rem) !important;
        max-height: min(74dvh, 34rem) !important;
    }
}


/* ============================================================
   Shared app shell v6 — Notifications, Wallet, Public Listing
   Fixed top chrome, middle-only scroll, footer reveals on scroll.
   ============================================================ */
body.app-shell-page {
    --app-shell-header-z: 320;
    --app-shell-footer-z: 280;
    height: 100dvh !important;
    min-height: 100dvh !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

body.app-shell-page > .page-header {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
    z-index: var(--app-shell-header-z) !important;
    margin: 0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 32, .08);
}

body.app-shell-page > .app-shell-scroll {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(1.5rem + var(--app-footer-h, var(--footer-h, 0px))) !important;
    scrollbar-gutter: stable;
}

body.app-shell-page > .site-footer {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    z-index: var(--app-shell-footer-z) !important;
    margin: 0 !important;
    transform: translateY(calc(100% + 2px)) !important;
    transition: transform .24s ease, box-shadow .24s ease !important;
    box-shadow: 0 -10px 28px rgba(15, 23, 32, .12) !important;
}

body.app-shell-page.has-scrolled > .site-footer {
    transform: translateY(0) !important;
}

/* Public listing has its topbar inside the scroll pane, so pin that card. */
body.public-listing-page .app-shell-inner-header {
    position: sticky !important;
    top: 0 !important;
    z-index: var(--app-shell-header-z) !important;
    margin-bottom: 1rem !important;
    padding: .85rem 1rem !important;
    border-radius: 0 0 18px 18px;
    background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(15, 23, 32, .08);
}

/* Keep page-level overlays above both fixed shell elements. */
body.app-shell-page [role="dialog"],
body.app-shell-page .modal,
body.app-shell-page .dialog-overlay,
body.app-shell-page .utility-panel,
body.app-shell-page .media-crop-modal {
    z-index: 22000 !important;
}

/* Notifications: tighter, cleaner mobile presentation. */
body.notifications-page .message-list {
    display: grid;
    gap: .85rem;
}
body.notifications-page .message-card {
    border-radius: 18px;
}
body.notifications-page .filter-actions {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding-bottom: .15rem;
}
body.notifications-page .filter-actions::-webkit-scrollbar { display: none; }
body.notifications-page .filter-actions .button { flex: 0 0 auto; }

/* Wallet: make balances compact and purchases easier to scan. */
body.wallet-page .stat-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.wallet-page .stat-card {
    min-width: 0;
}

@media (max-width: 700px) {
    body.app-shell-page > .page-header .container {
        padding-left: .8rem;
        padding-right: .8rem;
    }
    body.app-shell-page > .page-header .header-row {
        gap: .65rem;
        flex-wrap: nowrap;
    }
    body.app-shell-page > .page-header .title-cluster h1 {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.app-shell-page > .app-shell-scroll {
        padding-top: .8rem !important;
        padding-bottom: calc(1rem + var(--app-footer-h, var(--footer-h, 0px))) !important;
    }
    body.wallet-page .stat-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
    }
    body.wallet-page .stat-card {
        padding: .8rem .6rem;
    }
    body.wallet-page .stat-card span {
        font-size: .72rem;
    }
    body.wallet-page .stat-card strong {
        font-size: 1.2rem;
    }
    body.public-listing-page .app-shell-inner-header {
        margin-left: -.7rem;
        margin-right: -.7rem;
        padding: .7rem .8rem !important;
        border-radius: 0 0 16px 16px;
    }
    body.public-listing-page .app-shell-inner-header .header-actions {
        gap: .4rem;
    }
}

/* ============================================================
   PANGO v7 — viewport-safe popovers + boost overlay
   Keeps menus/alerts/boost above fixed shell and outside scrollers.
   ============================================================ */
.pango-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 49990;
    background: rgba(2, 8, 23, .52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}
.pango-popover-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Panels are portalled to <body> by theme.js so no sticky/overflow ancestor can clip them. */
body > .pango-viewport-popover {
    position: fixed !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translate(-50%, -50%) !important;
    z-index: 50000 !important;
    margin: 0 !important;
    width: min(calc(100vw - 1.5rem), 24rem) !important;
    max-width: 24rem !important;
    max-height: min(82dvh, 42rem) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    border-radius: 20px !important;
    border: 1px solid color-mix(in srgb, var(--line) 82%, transparent) !important;
    background: var(--surface-strong, var(--surface, #fff)) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .34) !important;
    animation: pangoPopoverIn .18s ease both;
}
@keyframes pangoPopoverIn {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Alert/menu panels: ensure their own legacy offsets never survive after portalling. */
body > .utility-panel.pango-viewport-popover,
body > .dashboard-menu-panel.pango-viewport-popover {
    padding: .85rem !important;
}
body > .dashboard-menu-panel.pango-viewport-popover {
    display: grid !important;
    gap: .35rem !important;
}
body > .dashboard-menu-panel.pango-viewport-popover a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem .85rem;
    border-radius: 12px;
}

/* Boost menu is deliberately a visible modern action sheet. */
body > .boost-menu.pango-viewport-popover {
    width: min(calc(100vw - 1.5rem), 26rem) !important;
    max-width: 26rem !important;
    padding: .65rem !important;
}
body > .boost-menu.pango-viewport-popover::before {
    content: "Boost this listing";
    display: block;
    padding: .45rem .55rem .75rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}
body > .boost-menu.pango-viewport-popover form {
    margin: 0 !important;
}
body > .boost-menu.pango-viewport-popover form + form {
    border-top: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
    padding-top: .4rem;
    margin-top: .4rem !important;
}
body > .boost-menu.pango-viewport-popover button {
    width: 100% !important;
    min-height: 58px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    color: var(--text) !important;
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .7rem .75rem !important;
    text-align: left !important;
}
body > .boost-menu.pango-viewport-popover button:hover,
body > .boost-menu.pango-viewport-popover button:focus-visible {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface-muted)) !important;
}
body > .boost-menu.pango-viewport-popover button .mini-icon {
    width: 22px !important;
    height: 22px !important;
    color: var(--primary) !important;
}
body > .boost-menu.pango-viewport-popover button strong {
    font-size: .95rem;
    font-weight: 800;
}
body > .boost-menu.pango-viewport-popover button small {
    justify-self: end;
    white-space: nowrap;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 800;
}

/* While an overlay is open, shell chrome must stay below it. */
body.pango-overlay-open .dashboard-header,
body.pango-overlay-open > .page-header,
body.pango-overlay-open .app-shell-inner-header,
body.pango-overlay-open > .site-footer {
    z-index: 250 !important;
}

/* App-shell v6 corrections now that its CSS is valid. */
body.app-shell-page > .page-header {
    position: sticky !important;
    top: 0 !important;
}
body.app-shell-page > .app-shell-scroll {
    min-height: 0 !important;
}

@media (max-width: 640px) {
    body > .pango-viewport-popover {
        top: 50% !important;
        width: calc(100vw - 1rem) !important;
        max-width: calc(100vw - 1rem) !important;
        max-height: 84dvh !important;
        border-radius: 18px !important;
    }
}


/* FINAL UI: password visibility + designer credit */
.password-field-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.password-field-wrap > input {
    width: 100%;
    padding-right: 3rem !important;
}
.password-visibility-toggle {
    position: absolute;
    right: .7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    z-index: 3;
}
.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    color: var(--primary, #0b6cff);
    background: color-mix(in srgb, var(--primary, #0b6cff) 10%, transparent);
    outline: none;
}
.password-visibility-toggle svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.footer-designer {
    width: min(100% - 2rem, 1180px);
    margin: .9rem auto 0;
    padding: .75rem 0 calc(.25rem + env(safe-area-inset-bottom));
    border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .82rem;
}
.footer-designer-label { opacity: .65; }
.footer-designer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
    border: 2px solid color-mix(in srgb, var(--primary, #0b6cff) 40%, transparent);
}
.footer-designer-name { font-weight: 750; }
.footer-designer a {
    color: var(--primary, #0b6cff);
    font-weight: 750;
    text-decoration: none;
}
@media (max-width: 640px) {
    .footer-designer {
        gap: .35rem .45rem;
        font-size: .75rem;
        padding-top: .55rem;
    }
    .footer-designer-avatar { width: 28px; height: 28px; }
}

/* ===== PANGO Rental Ecosystem — Phase 1 additions ===== */
.plan-feature-picker {
    border: 1px solid var(--border-color, #e2e2e2);
    border-radius: 10px;
    padding: .75rem 1rem;
    margin: .5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: .35rem .75rem;
}
.plan-feature-picker legend {
    font-weight: 600;
    padding: 0 .35rem;
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}
.checkbox-row input {
    width: auto;
}
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.property-card {
    border: 1px solid var(--border-color, #e2e2e2);
    border-radius: 12px;
    padding: 1rem;
    background: var(--card-bg, #fff);
}
.property-card h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}
.property-card .unit-count {
    font-size: .85rem;
    color: var(--text-muted, #666);
    margin-bottom: .5rem;
}
.unit-row-list {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin: .5rem 0;
}
.unit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    background: var(--surface-muted, #f6f6f8);
    font-size: .88rem;
}
.plan-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.plan-compare-card {
    border: 1px solid var(--border-color, #e2e2e2);
    border-radius: 14px;
    padding: 1.1rem;
    background: var(--card-bg, #fff);
}
.plan-compare-card.is-current {
    border-color: var(--brand-color, #2f8f5b);
    box-shadow: 0 0 0 2px rgba(47,143,91,0.15);
}
.plan-compare-card h3 {
    margin: 0 0 .2rem;
}
.plan-compare-price {
    font-size: 1.3rem;
    font-weight: 700;
    margin: .3rem 0 .6rem;
}
.plan-compare-card ul {
    list-style: none;
    padding: 0;
    margin: .5rem 0 0;
    font-size: .85rem;
}
.plan-compare-card ul li {
    padding: .2rem 0;
}
.limit-meter {
    font-size: .8rem;
    color: var(--text-muted, #666);
    margin-top: .35rem;
}

/* ============================================================
   PANGO CARD REDESIGN
   A focused refresh of property, feature and category cards.
   Old look: pastel gradients, blurred glass badges, an animated
   orange pulse ring, and translucent overlays stacked on top of
   each other — busy and "local-looking".
   New look: flat surfaces, crisp edges, and exactly two brand
   colors doing the work — primary blue for structure/info,
   accent orange for price/attention — on a plain white base.
   ============================================================ */

/* --- Property cards (listing-card / house-card) --- */
.listing-card,
.house-card {
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: 16px;
    background: var(--surface-strong);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.listing-card:hover,
.house-card:hover,
.visual-card:hover {
    cursor: var(--pango-cursor-property) !important;
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 14px 28px rgba(11, 77, 168, 0.16);
}

/* retire the animated orange pulse ring */
.listing-card:hover::after,
.house-card:hover::after {
    content: none;
    animation: none;
    border: 0;
}

.listing-image,
.detail-media {
    background: var(--surface-muted);
}

.listing-placeholder {
    color: var(--primary);
    font-weight: 800;
}

/* category / feature chip on a card: flat primary fill, not a soft tint */
.listing-meta .pill,
.pill {
    background: var(--primary);
    color: #fff;
}

.image-badge {
    background: var(--accent);
    color: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 8px;
    font-weight: 800;
}

.price {
    color: var(--accent);
    font-size: 1.05rem;
}

/* --- Plain content cards (e.g. About page), not the photo tiles below --- */
.feature-card:not(.media-tile) {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    box-shadow: none;
}

.feature-grid .feature-card:not(.media-tile):nth-child(2n) {
    border-left-color: var(--accent);
}

.feature-card:not(.media-tile) h3 {
    color: var(--primary);
}

.feature-grid .feature-card:not(.media-tile):nth-child(2n) h3 {
    color: var(--accent);
}

/* --- Photo tiles (category tiles + "why choose us" tiles) ---
   One flat color wash instead of a layered gradient + blur stack. */
.category-tile,
.why-tile,
.media-tile {
    box-shadow: 0 6px 16px rgba(13, 27, 42, 0.10);
}

.category-tile:hover,
.media-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(11, 77, 168, 0.18);
}

.media-tile::before {
    background: color-mix(in srgb, var(--primary) 42%, transparent);
    background-image: none;
}

.media-tile::after {
    content: none;
}

.tile-copy {
    max-width: none;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: color-mix(in srgb, #050b18 55%, transparent);
    width: fit-content;
}

.tile-icon {
    background: var(--accent);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.why-tile .step-number {
    background: var(--accent);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.why-details summary {
    background: var(--primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* ============================================================
   PANGO CARD REDESIGN v2 — image-first browsing cards
   Public listing cards (home / browse / saved) now surface only
   photo, type, price and place at a glance. Everything else
   (title, specs, buttons) moved to the detail page, so the photo
   fills the card instead of a stack of colored panels and pills.
   ============================================================ */

.listing-card {
    border-top: 0;
}

.listing-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.listing-image {
    height: 235px;
}

.listing-image img {
    height: 235px;
}

.listing-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem 0.85rem;
}

.listing-content .price {
    margin: 0;
    font-size: 1.05rem;
    white-space: nowrap;
}

.listing-place {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    text-align: right;
    justify-content: flex-end;
}

.listing-place .mini-icon {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
}

.listing-type-pill {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    background: rgba(5, 11, 24, 0.6);
    color: #fff;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.listing-save-btn {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    z-index: 2;
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(5, 11, 24, 0.5);
    color: #fff;
}

.listing-save-btn:hover {
    transform: none;
    background: rgba(5, 11, 24, 0.68);
}

.listing-save-btn .icon {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
}

.listing-save-btn.is-saved {
    background: var(--accent);
}

.listing-save-btn.is-saved .icon {
    fill: currentColor;
}

@media (max-width: 640px) {
    .listing-image,
    .listing-image img {
        height: 190px;
    }
}
