@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;
}

.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));
}

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

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.4fr) repeat(3, minmax(150px, 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;
}
