:root {
    --ink: #251f19;
    --muted: #6e6862;
    --soft: #f6f7f5;
    --paper: #ffffff;
    --line: #e4e0da;
    --teal: #e06a22;
    --teal-dark: #9c3f11;
    --coral: #c84f42;
    --gold: #f2a11f;
    --blue: #3d68a8;
    --green: #2f8f83;
    --violet: #6957a8;
    --shadow: 0 14px 38px rgba(51, 39, 30, 0.09);
    --shadow-lift: 0 20px 48px rgba(51, 39, 30, 0.14);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(248, 249, 247, 0.97), rgba(244, 246, 244, 0.98) 42%),
        url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=70") center top/cover fixed;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-text-size-adjust: 100%;
}

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

button {
    cursor: pointer;
    touch-action: manipulation;
}

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

.app-shell {
    min-height: 100dvh;
}

.workspace {
    width: min(1480px, 100%);
    margin: 0 auto;
    padding: 20px;
}

.mobile-tabbar {
    display: none;
}

.app-topbar {
    position: sticky;
    top: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: rgba(255, 253, 249, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.app-topbar::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--blue), var(--green), var(--teal));
    background-size: 240% 100%;
    transition: opacity 140ms ease;
}

.workspace.is-busy .app-topbar::after {
    opacity: 1;
    animation: scan-progress 1.2s linear infinite;
}

.brand-lockup {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #fff;
    background: var(--teal);
    border-radius: 8px;
    font-weight: 900;
}

.brand-lockup div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.brand-lockup strong {
    font-size: 17px;
}

.topbar-nav {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
    background: rgba(255, 240, 220, 0.9);
    border: 1px solid #edd2ae;
    border-radius: 8px;
}

.topbar-nav-button {
    min-height: 34px;
    padding: 0 11px;
    color: var(--teal-dark);
    background: transparent;
    border: 0;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 850;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.topbar-nav-button.active {
    color: #fff;
    background: var(--teal);
    box-shadow: 0 8px 18px rgba(224, 106, 34, 0.18);
}

.topbar-nav-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #fff5e9;
}

.topbar-nav-button.active:hover:not(:disabled) {
    background: var(--teal-dark);
}

.brand-lockup span,
.topbar-context span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-context {
    max-width: 220px;
    min-width: 0;
    padding: 8px 10px;
    background: #fff5e9;
    border: 1px solid #edd2ae;
    border-radius: 8px;
}

.menu-button,
.menu-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--teal-dark);
    background: #fff5e9;
    border: 1px solid #edd2ae;
    border-radius: 8px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.menu-button {
    flex-direction: column;
    gap: 5px;
}

.menu-button span {
    width: 18px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 999px;
    transition: transform 160ms ease, opacity 160ms ease;
}

.menu-button.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-close {
    font-size: 24px;
    line-height: 1;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(37, 31, 25, 0.28);
    backdrop-filter: blur(2px);
    animation: fade-in 120ms ease-out;
}

.app-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 90;
    width: min(390px, calc(100vw - 24px));
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    overflow: auto;
    color: var(--ink);
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 50px rgba(83, 45, 18, 0.18);
    animation: menu-in 160ms ease-out;
}

.menu-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.menu-label {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.menu-nav {
    display: grid;
    gap: 8px;
}

.menu-nav button {
    min-height: 42px;
    color: var(--teal-dark);
    background: #fff5e9;
    border: 1px solid #edd2ae;
    border-radius: 8px;
    font-weight: 850;
    text-align: left;
    padding: 0 12px;
}

.menu-nav .active {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.menu-identity {
    padding: 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.menu-note {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.app-menu .login-actions,
.app-menu .demo-actions {
    grid-column: auto;
    grid-template-columns: 1fr;
}

.app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 14px;
    padding: 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 4px solid var(--teal);
    pointer-events: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 28px;
    line-height: 1.08;
}

h2 {
    font-size: 18px;
    line-height: 1.2;
}

h3 {
    font-size: 16px;
}

.eyebrow {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
    margin-top: 6px;
}

.session-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.login-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    grid-column: 2 / -1;
}

.demo-actions {
    grid-column: 2 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(3, minmax(72px, auto));
    gap: 8px;
    align-items: center;
}

.demo-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.identity span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-width: 0;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    outline: none;
}

textarea {
    resize: vertical;
}

select {
    min-height: 42px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(224, 106, 34, 0.18);
}

.language-toggle {
    display: inline-flex;
    padding: 3px;
    background: #fff0dc;
    border-radius: 8px;
}

.language-toggle button,
.panel-tabs button {
    border: 0;
    background: transparent;
    color: var(--teal-dark);
    font-weight: 800;
    border-radius: 7px;
}

.language-toggle button {
    width: 42px;
    height: 34px;
}

.language-toggle .active,
.panel-tabs .active {
    color: #fff;
    background: var(--teal);
}

.panel-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    margin: 4px 0 14px;
    background: #fff0dc;
    border-radius: 8px;
}

.panel-tabs button {
    min-width: 120px;
    height: 40px;
    padding: 0 14px;
}

.status-line {
    margin-bottom: 14px;
    padding: 11px 14px;
    color: var(--teal-dark);
    background: #fff3df;
    border: 1px solid #f1c993;
    border-radius: 8px;
    font-weight: 700;
    animation: slide-in 180ms ease-out;
}

.status-line.issue {
    color: #7e2c24;
    background: #fff1ef;
    border-color: #f3cac4;
}

.form-feedback {
    padding: 10px 12px;
    color: var(--teal-dark);
    background: #eef8f5;
    border: 1px solid #b9ddd7;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

.form-feedback.issue {
    color: #7e2c24;
    background: #fff1ef;
    border-color: #f3cac4;
}

.split-view {
    display: grid;
    grid-template-columns: minmax(420px, 0.82fr) minmax(0, 1.18fr);
    gap: 16px;
    align-items: start;
}

.chat-view {
    grid-template-columns: minmax(520px, 1.12fr) minmax(360px, 0.88fr);
}

.conversation-surface,
.recommendation-surface,
.filter-surface,
.form-surface,
.stacked-surface,
.inventory-surface,
.owner-summary,
.empty-state,
.booking-box,
.map-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.conversation-surface,
.recommendation-surface,
.filter-surface,
.form-surface,
.stacked-surface,
.inventory-surface,
.owner-summary {
    padding: 16px;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.conversation-surface {
    display: flex;
    flex-direction: column;
}

.mobile-filter-summary,
.mobile-filter-head,
.mobile-filter-actions,
.mobile-filter-button {
    display: none;
}

.conversation-surface:hover,
.recommendation-surface:hover,
.property-card:hover,
.inventory-card:hover,
.booking-card:hover {
    transform: translateY(-2px);
    border-color: #e8bd84;
    box-shadow: var(--shadow-lift);
}

.section-head,
.property-title-row,
.owner-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.chat-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.provider-pill,
.chip,
.match-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    color: var(--teal-dark);
    background: #fff0dc;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.suggestions,
.criteria-strip,
.chip-row,
.thumb-row,
.action-row,
.toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestions {
    margin: 14px 0;
}

.criteria-strip {
    margin: 12px 0;
}

.criteria-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 10px;
    color: var(--teal-dark);
    background: #fff0dc;
    border: 1px solid #edc99c;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.criteria-chip:hover {
    transform: translateY(-1px);
    background: #ffe4c2;
    box-shadow: 0 7px 16px rgba(83, 45, 18, 0.1);
}

.refinement-panel {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.1), rgba(61, 104, 168, 0.08));
    border: 1px solid #cbdedb;
    border-radius: 8px;
}

.refinement-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.refinement-head > span {
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
}

.refinement-actions,
.follow-up-questions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.refinement-actions button,
.follow-up-questions button {
    min-height: 34px;
    padding: 6px 10px;
    color: var(--ink);
    background: rgba(255, 253, 249, 0.88);
    border: 1px solid #cbdedb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.refinement-actions button:hover,
.follow-up-questions button:hover {
    border-color: var(--green);
    box-shadow: 0 7px 16px rgba(47, 143, 131, 0.12);
}

.follow-up-questions {
    align-items: center;
    padding-top: 9px;
    border-top: 1px solid rgba(47, 143, 131, 0.2);
}

.follow-up-questions > span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.concierge-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
    padding: 8px;
    background:
        linear-gradient(135deg, rgba(224, 106, 34, 0.12), rgba(47, 143, 131, 0.09)),
        #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.concierge-strip div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 8px 9px;
    background: rgba(255, 253, 249, 0.78);
    border: 1px solid rgba(234, 215, 192, 0.78);
    border-radius: 7px;
}

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

.concierge-strip span {
    color: var(--teal);
    font-size: 16px;
    font-weight: 900;
}

.concierge-strip strong {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

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

.suggestions button,
.ghost-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    color: var(--teal-dark);
    background: #fff5e9;
    border: 1px solid #edd2ae;
    border-radius: 8px;
    padding: 0 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.suggestions .suggestion-card {
    min-height: 72px;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 11px 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.suggestion-card::after {
    content: "";
    position: absolute;
    inset: auto 10px 9px auto;
    width: 28px;
    height: 2px;
    background: var(--teal);
    box-shadow: 8px 0 0 var(--gold), 16px 0 0 var(--green);
    opacity: 0.55;
}

.suggestion-card strong,
.suggestion-card span {
    min-width: 0;
    max-width: 100%;
}

.suggestion-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: #fff;
    background: var(--teal);
    border: 1px solid var(--teal);
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.primary-button:hover:not(:disabled),
.ghost-button:hover:not(:disabled),
.small-button:hover:not(:disabled),
.suggestions button:hover:not(:disabled),
.menu-button:hover:not(:disabled),
.menu-close:hover:not(:disabled),
.menu-nav button:hover:not(:disabled),
.panel-tabs button:hover,
.language-toggle button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(83, 45, 18, 0.12);
}

.primary-button:hover:not(:disabled) {
    background: var(--teal-dark);
}

.primary-button.full {
    width: 100%;
}

.small-button {
    min-height: 32px;
    font-size: 13px;
}

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

.message-log {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 300px;
    max-height: 520px;
    overflow: auto;
    padding: 12px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.message {
    width: min(86%, 560px);
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    animation: message-in 180ms ease-out;
}

.message.user {
    align-self: flex-end;
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.message span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.message p,
.message-content {
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}

.message-content {
    display: grid;
    gap: 9px;
    min-width: 0;
    white-space: normal;
}

.message-content ul,
.message-content ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 20px;
}

.message-content li {
    padding-left: 2px;
}

.message-content h4 {
    margin: 2px 0 0;
    color: var(--teal-dark);
    font-size: 14px;
}

.message-content hr {
    width: 100%;
    margin: 2px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.chat-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.chat-table-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(106px, 1fr);
    width: max-content;
    min-width: 100%;
}

.chat-table-row > span,
.chat-table-row > strong {
    padding: 7px 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.chat-table-row > :last-child {
    border-right: 0;
}

.chat-table-row:last-child > * {
    border-bottom: 0;
}

.chat-table-row.header > * {
    color: var(--teal-dark);
    background: #fff0dc;
    font-weight: 900;
}

.message.typing p {
    display: flex;
    gap: 5px;
    min-height: 20px;
    align-items: center;
}

.message.typing i {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 999px;
    background: var(--teal);
    animation: typing-bounce 900ms ease-in-out infinite;
}

.message.typing i:nth-child(2) {
    animation-delay: 120ms;
}

.message.typing i:nth-child(3) {
    animation-delay: 240ms;
}

.composer {
    position: relative;
    margin-top: 12px;
}

.composer textarea {
    min-height: 68px;
    padding-right: 58px;
}

.send-button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #fff;
    background: var(--teal);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(224, 106, 34, 0.24);
    transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.send-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.send-button:hover:not(:disabled) {
    background: var(--teal-dark);
    box-shadow: 0 10px 20px rgba(156, 63, 17, 0.26);
    transform: translateY(-1px);
}

.send-button:active:not(:disabled) {
    transform: translateY(0);
}

.booking-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    margin: 12px 0;
    background: #fff3df;
    box-shadow: none;
}

.stage-track {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 2px;
}

.stage-step {
    min-width: 0;
    padding: 7px 6px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stage-step.active {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.booking-box span,
.booking-card span,
.inventory-card span {
    color: var(--muted);
    font-size: 13px;
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.feedback-actions span {
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
    gap: 14px;
}

.listing-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
}

.favorites-panel {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.favorite-compare {
    flex: 1 1 100%;
    display: grid;
    gap: 7px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.favorite-compare strong {
    color: var(--teal-dark);
    font-size: 13px;
}

.favorite-compare p,
.favorite-compare span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.ghost-button.favorite.active {
    color: #fff;
    background: var(--teal);
    border-color: var(--teal);
}

.property-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.property-card.is-map-focused {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(224, 106, 34, 0.18), var(--shadow-lift);
}

.recommendation-surface .property-card + .property-card {
    margin-top: 12px;
}

.media-frame {
    position: relative;
    height: 190px;
    overflow: hidden;
    background: #f2ddc5;
}

.media-frame::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(37, 31, 25, 0.42));
    pointer-events: none;
}

.media-frame img,
.inventory-card img,
.thumb-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms ease;
}

.property-card:hover .media-frame img {
    transform: scale(1.035);
}

.image-fallback {
    object-fit: cover;
    background: linear-gradient(135deg, #fff4e8, #f4c892, #d9ece9);
}

.match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background: rgba(224, 106, 34, 0.94);
    z-index: 1;
}

.media-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 850;
}

.media-badge.video {
    color: #fff;
    background: rgba(54, 103, 166, 0.94);
}

.property-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.fit-reason {
    display: grid;
    gap: 4px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(47, 143, 131, 0.1), rgba(105, 87, 168, 0.07));
    border-left: 3px solid var(--green);
    border-radius: 0 7px 7px 0;
}

.fit-reason span {
    color: var(--green);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.fit-reason p {
    color: var(--ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.property-body > .action-row > button {
    flex: 1 1 118px;
}

.property-title-row strong {
    color: var(--teal);
    white-space: nowrap;
}

.property-title-row p {
    color: var(--muted);
    font-size: 13px;
}

.trust-line {
    color: var(--teal-dark);
    font-weight: 800;
    font-size: 13px;
}

.score-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.score-row > span {
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 850;
}

.score-meter,
.trust-meter {
    height: 8px;
    overflow: hidden;
    background: #f1dcc5;
    border-radius: 999px;
}

.score-meter span,
.trust-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    transition: width 320ms ease;
}

.score-meter span {
    background: var(--teal);
}

.trust-meter {
    height: 6px;
    margin-top: -5px;
}

.trust-meter span {
    background: var(--gold);
}

.thumb-row img {
    width: 72px;
    height: 52px;
    border-radius: 8px;
    transition: transform 160ms ease;
}

.thumb-row img:hover {
    transform: scale(1.04);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.filter-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

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

.media-upload-field input[type="file"] {
    min-height: 44px;
    padding: 9px;
    background: #fff5e9;
    border-style: dashed;
}

.map-panel {
    margin-top: 14px;
    padding: 12px;
    background: #fffaf3;
    color: var(--ink);
    min-height: 332px;
    position: relative;
    overflow: hidden;
}

.map-panel.expanded {
    position: fixed;
    inset: 10px;
    z-index: 120;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    margin: 0;
    min-height: 0;
    padding: 14px;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 28px 80px rgba(37, 31, 25, 0.28);
}

.map-panel.expanded::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(37, 31, 25, 0.34);
}

.map-panel::after {
    display: none;
}

.map-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.map-actions span {
    color: var(--teal-dark);
    font-weight: 850;
}

.map-panel strong {
    display: block;
    margin-top: 4px;
}

.osm-map {
    width: 100%;
    height: 246px;
    overflow: hidden;
    background: #f2ddc5;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.zivora-map-popup {
    display: grid;
    gap: 4px;
    min-width: 190px;
}

.zivora-map-popup img {
    width: 100%;
    height: 84px;
    margin-bottom: 4px;
    object-fit: cover;
    border-radius: 6px;
}

.zivora-map-popup span,
.zivora-map-popup small {
    color: var(--muted);
    font-size: 12px;
}

.map-panel.expanded .osm-map {
    height: 100%;
    min-height: 0;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(37, 31, 25, 0.42);
    backdrop-filter: blur(3px);
    animation: fade-in 120ms ease-out;
}

.listing-detail-panel {
    position: fixed;
    inset: 24px;
    z-index: 140;
    display: grid;
    grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto;
    gap: 14px;
    max-width: 1080px;
    max-height: calc(100dvh - 48px);
    margin: 0 auto;
    padding: 16px;
    overflow: auto;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(37, 31, 25, 0.3);
    animation: slide-in 160ms ease-out;
}

.detail-head,
.detail-price-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.detail-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    min-height: 250px;
}

.detail-hero-image,
.detail-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.detail-thumbs {
    display: grid;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 14px;
}

.detail-main,
.detail-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-main p {
    color: var(--muted);
    line-height: 1.5;
}

.detail-price-line strong {
    color: var(--teal);
    font-size: 20px;
}

.detail-price-line span,
.detail-side span {
    padding: 9px 10px;
    color: var(--muted);
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 750;
}

.booking-detail-panel {
    max-width: 960px;
}

.booking-detail-section {
    display: grid;
    gap: 7px;
    padding: 12px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking-detail-section > span,
.booking-detail-section > strong {
    color: var(--muted);
    font-size: 13px;
}

.booking-detail-section > strong {
    color: var(--ink);
    font-size: 16px;
}

.booking-timeline {
    display: grid;
    gap: 8px;
}

.booking-timeline > div {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.booking-timeline strong {
    color: var(--teal-dark);
    font-size: 13px;
}

.booking-timeline span,
.booking-timeline small {
    color: var(--muted);
    font-size: 12px;
}

.price-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: auto !important;
    background: transparent;
    border: 0;
}

.price-marker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    padding: 5px 9px;
    color: #fff;
    background: var(--teal);
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(83, 45, 18, 0.24);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.price-marker:hover span {
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.osm-map .leaflet-control-attribution,
.osm-map .leaflet-popup-content {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.osm-map .leaflet-popup-content {
    display: grid;
    gap: 3px;
    margin: 10px 12px;
    color: var(--ink);
}

.osm-map .leaflet-popup-content span {
    color: var(--muted);
    font-size: 12px;
}

.osm-map .leaflet-control-zoom a {
    color: var(--teal-dark);
}

.owner-map-tools {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.owner-location-picker {
    min-height: 220px;
    overflow: hidden;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.owner-map {
    width: 100%;
    height: 220px;
    background: #f2ddc5;
}

.geocode-results {
    display: grid;
    gap: 8px;
}

.geocode-results button {
    display: grid;
    gap: 3px;
    width: 100%;
    min-height: 48px;
    padding: 9px 11px;
    color: var(--ink);
    background: #fff5e9;
    border: 1px solid #edd2ae;
    border-radius: 8px;
    text-align: left;
}

.geocode-results button strong,
.geocode-results button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geocode-results button strong {
    color: var(--teal-dark);
    font-size: 13px;
}

.geocode-results button span {
    color: var(--muted);
    font-size: 12px;
}

.owner-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.owner-hero {
    align-items: center;
}

.owner-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.admin-owner-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 12px 18px;
    align-items: end;
    padding: 14px 16px;
    background: #fff8ef;
    border: 1px solid #edcfaa;
    border-radius: 8px;
}

.admin-owner-context h2 {
    margin: 2px 0 4px;
    font-size: 18px;
}

.admin-owner-context label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-owner-context select {
    width: 100%;
    min-width: 0;
}

.admin-owner-signals {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-owner-signals span {
    padding: 5px 8px;
    color: var(--teal-dark);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}

.admin-owner-assignment {
    padding: 11px 12px;
    background: #fff8ef;
    border: 1px solid #edcfaa;
    border-radius: 8px;
}

.admin-owner-assignment strong {
    color: var(--ink);
    font-size: 15px;
}

.admin-owner-assignment small {
    color: var(--muted);
    line-height: 1.45;
}

.owner-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.owner-channel-strip {
    display: grid;
    gap: 10px;
    padding: 2px 0;
}

.owner-channel-heading,
.owner-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.owner-channel-heading h2 {
    margin: 2px 0 0;
    font-size: 17px;
}

.owner-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.owner-channel-card {
    min-height: 70px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.owner-channel-card > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.owner-channel-card strong {
    color: var(--ink);
    font-size: 14px;
}

.owner-channel-card span:not(.channel-state) {
    color: var(--muted);
    font-size: 12px;
}

.channel-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
}

.channel-state.connected {
    color: #17675f;
    background: #e9f6f3;
}

.channel-state.pending {
    color: #85431d;
    background: #fff1e3;
}

.owner-metric {
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.owner-metric span,
.owner-form-section > span {
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.owner-metric strong {
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
}

.owner-metric small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.owner-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
    gap: 14px;
    align-items: start;
}

.owner-main-column,
.owner-side-column,
.owner-form,
.owner-form-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.owner-side-column {
    min-width: 0;
}

.owner-form {
    scroll-margin-top: 82px;
}

.owner-form-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 140;
    width: min(620px, 100%);
    height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 0;
    box-shadow: -24px 0 64px rgba(37, 31, 25, 0.24);
    animation: drawer-in 180ms ease-out;
}

.owner-form-drawer > .section-head {
    position: sticky;
    top: -18px;
    z-index: 4;
    display: block;
    margin: -18px -18px 0;
    padding: 18px 72px 18px 18px;
    background: rgba(255, 253, 249, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.owner-form-drawer > .section-head .menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.owner-columns {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
}

.stacked-surface {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reputation-line,
.booking-card,
.inventory-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffaf3;
}

.reputation-panel .reputation-line {
    background: var(--paper);
}

.reputation-line strong {
    color: var(--teal);
    font-size: 18px;
}

.booking-card-head,
.inventory-title-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.booking-card-head > div,
.inventory-title-line {
    min-width: 0;
}

.owner-request {
    gap: 10px;
}

.owner-request-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.owner-request-meta span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.status-chip.published,
.status-chip.completed {
    color: var(--teal-dark);
    background: #fff0dc;
}

.status-chip.booked,
.status-chip.cancelled {
    color: #7e2c24;
    background: #fff1ef;
}

.status-chip.scheduled,
.status-chip.contacted {
    color: var(--blue);
    background: #edf3ff;
}

.status-chip.pending {
    color: var(--gold);
    background: #fff7e8;
}

.inventory-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.inventory-card img {
    height: 72px;
    border-radius: 8px;
}

.inventory-card button {
    grid-column: 1 / -1;
}

.inventory-actions {
    grid-column: 1 / -1;
}

.owner-inventory-card {
    align-items: start;
}

.owner-inventory-card img {
    object-fit: cover;
}

.owner-inventory-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.owner-form .filter-grid {
    grid-template-columns: 1fr;
    margin-top: 8px;
}

.owner-form .toggle-row {
    margin-top: 8px;
}

.owner-form-section {
    gap: 8px;
}

.draft-readiness {
    display: grid;
    gap: 7px;
    padding: 11px 12px;
    background: linear-gradient(135deg, rgba(224, 106, 34, 0.1), rgba(242, 161, 31, 0.08));
    border: 1px solid #edcfaa;
    border-radius: 8px;
}

.draft-readiness > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--teal-dark);
    font-size: 12px;
    font-weight: 850;
}

.readiness-meter {
    height: 7px;
    overflow: hidden;
    background: #f1dcc5;
    border-radius: 999px;
}

.readiness-meter span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--gold), var(--green));
    border-radius: inherit;
    transition: width 220ms ease;
}

.draft-readiness small {
    color: var(--muted);
    font-size: 12px;
}

.empty-state {
    padding: 18px;
}

.concierge-empty {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
    min-height: 240px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.94), rgba(255, 244, 232, 0.88)),
        var(--paper);
}

.concierge-map-preview {
    position: relative;
    min-height: 202px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(224, 106, 34, 0.09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(61, 104, 168, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, #fffaf3, #f7e2c6 52%, #eaf3f2);
    background-size: 34px 34px, 34px 34px, 100% 100%;
}

.route-line {
    position: absolute;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--green), var(--teal), transparent);
    opacity: 0.72;
    transform-origin: left center;
    animation: route-scan 2.8s ease-in-out infinite;
}

.route-one {
    width: 74%;
    left: 11%;
    top: 42%;
    transform: rotate(-18deg);
}

.route-two {
    width: 62%;
    left: 17%;
    top: 62%;
    transform: rotate(20deg);
    animation-delay: 380ms;
}

.map-price-pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 32px;
    padding: 5px 9px;
    color: #fff;
    background: var(--teal);
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(83, 45, 18, 0.22);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    animation: price-pin-rise 2.6s ease-in-out infinite;
}

.pin-one {
    left: 13%;
    top: 24%;
}

.pin-two {
    right: 12%;
    top: 46%;
    background: var(--blue);
    animation-delay: 260ms;
}

.pin-three {
    left: 37%;
    bottom: 17%;
    background: var(--green);
    animation-delay: 520ms;
}

.concierge-empty-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.concierge-empty-copy p {
    color: var(--muted);
    line-height: 1.45;
}

.concierge-steps {
    display: grid;
    gap: 8px;
}

.concierge-steps div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    background: #fffaf3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.concierge-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--teal);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 900;
}

.concierge-steps div:nth-child(2) span {
    background: var(--blue);
}

.concierge-steps div:nth-child(3) span {
    background: var(--green);
}

.concierge-steps strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-stack {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.preview-stack span {
    height: 10px;
    width: 100%;
    max-width: 340px;
    display: block;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4dfc8, #fff8ef, #f4dfc8);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
}

.preview-stack span:nth-child(2) {
    width: 78%;
}

.preview-stack span:nth-child(3) {
    width: 54%;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes menu-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes drawer-in {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (min-width: 1180px) {
    .chat-view .suggestion-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .chat-view .suggestions .suggestion-card {
        min-height: 76px;
    }

    .chat-view .message-log {
        min-height: clamp(180px, calc(100dvh - 515px), 330px);
    }
}

@keyframes message-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        opacity: 0.45;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

@keyframes shimmer {
    from {
        background-position: 200% 0;
    }
    to {
        background-position: -200% 0;
    }
}

@keyframes scan-progress {
    from {
        background-position: 240% 0;
    }
    to {
        background-position: 0 0;
    }
}

@keyframes route-scan {
    0%, 100% {
        opacity: 0.35;
        filter: saturate(0.8);
    }
    50% {
        opacity: 0.9;
        filter: saturate(1.2);
    }
}

@keyframes price-pin-rise {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes pin-pop {
    0%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    50% {
        transform: rotate(-45deg) translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 12px 16px;
    color: #fff;
    background: var(--coral);
}

#blazor-error-ui .reload {
    color: #fff;
    font-weight: 800;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

@media (max-width: 1120px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .topbar-nav {
        display: none;
    }
}

@media (max-width: 980px) {
    .workspace {
        padding: 12px;
    }

    .split-view,
    .chat-view,
    .owner-columns,
    .owner-workbench {
        grid-template-columns: 1fr;
    }

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

    .owner-channel-grid {
        grid-template-columns: 1fr;
    }

    .session-panel {
        grid-template-columns: 1fr;
    }

    .login-actions {
        grid-column: auto;
    }

    .demo-actions {
        grid-column: auto;
    }

    .panel-tabs {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
        width: 100%;
    }

    .panel-tabs button {
        min-width: 0;
        padding: 0 8px;
        white-space: normal;
        line-height: 1.1;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .concierge-empty {
        grid-template-columns: 1fr;
    }

    .concierge-map-preview {
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .workspace {
        padding: calc(10px + env(safe-area-inset-top)) 10px 10px;
        padding-bottom: calc(82px + env(safe-area-inset-bottom));
    }

    .mobile-tabbar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        z-index: 70;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        gap: 3px;
        min-height: 62px;
        padding: 5px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 14px 36px rgba(37, 31, 25, 0.18);
        backdrop-filter: blur(16px);
    }

    .mobile-tabbar button {
        min-width: 0;
        min-height: 52px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--muted);
        background: transparent;
        border: 0;
        border-radius: 7px;
        font-weight: 800;
    }

    .mobile-tabbar button span {
        font-size: 19px;
        line-height: 1;
    }

    .mobile-tabbar button small {
        max-width: 100%;
        color: inherit;
        font-size: 10px;
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .mobile-tabbar button.active {
        color: #fff;
        background: var(--teal);
        box-shadow: 0 7px 16px rgba(224, 106, 34, 0.2);
    }

    .conversation-surface,
    .recommendation-surface,
    .filter-surface,
    .form-surface,
    .stacked-surface,
    .inventory-surface,
    .owner-summary,
    .empty-state {
        padding: 12px;
    }

    .app-topbar {
        top: max(8px, env(safe-area-inset-top));
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px;
    }

    input,
    select,
    textarea {
        min-height: 46px;
        font-size: 16px;
    }

    .primary-button,
    .ghost-button,
    .small-button,
    .suggestions button {
        min-height: 44px;
    }

    .topbar-context {
        display: none;
    }

    .brand-mark,
    .menu-button,
    .menu-close {
        width: 38px;
        height: 38px;
    }

    .app-menu {
        width: min(372px, calc(100vw - 12px));
        padding: 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 17px;
    }

    .section-head,
    .owner-summary,
    .property-title-row,
    .favorites-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-head-actions {
        justify-content: space-between;
    }

    .section-head > .primary-button,
    .owner-summary > .primary-button,
    .owner-hero-actions,
    .owner-hero-actions > .primary-button {
        width: 100%;
    }

    .owner-hero-actions {
        justify-content: stretch;
    }

    .admin-owner-context {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .admin-owner-signals {
        grid-column: auto;
    }

    .owner-dashboard-grid {
        gap: 8px;
    }

    .owner-metric {
        min-height: 96px;
        padding: 12px;
    }

    .owner-metric strong {
        font-size: 24px;
    }

    .owner-workbench,
    .owner-main-column,
    .owner-side-column,
    .owner-form,
    .owner-form-section {
        gap: 10px;
    }

    .owner-map-tools {
        grid-template-columns: 1fr;
    }

    .owner-map-tools .small-button {
        width: 100%;
    }

    .booking-card-head,
    .inventory-title-line {
        flex-direction: column;
        gap: 6px;
    }

    .status-chip {
        align-self: flex-start;
    }

    .split-view,
    .chat-view {
        gap: 10px;
    }

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

    .concierge-strip span {
        font-size: 14px;
    }

    .suggestion-cards {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .suggestions .suggestion-card {
        flex: 0 0 min(76vw, 270px);
        min-height: 62px;
        scroll-snap-align: start;
    }

    .suggestion-cards::-webkit-scrollbar {
        display: none;
    }

    .chat-view .message-log {
        min-height: 210px;
    }

    .concierge-empty {
        gap: 10px;
        min-height: 0;
    }

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

    .refinement-actions button {
        width: 100%;
        min-height: 40px;
    }

    .follow-up-questions button {
        flex: 1 1 100%;
        min-height: 40px;
        text-align: left;
    }

    .concierge-map-preview {
        min-height: 160px;
    }

    .conversation-surface,
    .recommendation-surface,
    .filter-surface {
        min-width: 0;
    }

    .panel-tabs {
        gap: 4px;
        padding: 4px;
    }

    .panel-tabs button {
        min-height: 42px;
        height: auto;
        padding: 7px 6px;
        font-size: 13px;
    }

    .suggestions,
    .criteria-strip,
    .chip-row,
    .thumb-row,
    .action-row,
    .toggle-row {
        gap: 7px;
    }

    .ghost-button,
    .small-button,
    .primary-button {
        width: 100%;
        min-height: 42px;
    }

    .suggestions {
        flex-wrap: nowrap;
        margin: 10px -2px 12px;
        padding: 0 2px 4px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .suggestions::-webkit-scrollbar {
        display: none;
    }

    .suggestions button {
        flex: 0 0 auto;
        width: auto;
        min-height: 36px;
        padding: 0 12px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .suggestion-cards .suggestion-card {
        flex: 0 0 min(76vw, 250px);
        width: min(76vw, 250px);
        white-space: normal;
    }

    .conversation-surface > .section-head {
        order: 0;
    }

    .conversation-surface > .composer {
        order: 1;
    }

    .conversation-surface > .suggestion-cards {
        order: 2;
    }

    .conversation-surface > .message-log {
        order: 3;
    }

    .conversation-surface > .concierge-strip {
        order: 4;
        margin-bottom: 0;
    }

    .login-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .demo-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .language-toggle button {
        width: 44px;
        min-height: 36px;
    }

    .message-log {
        min-height: clamp(240px, 46dvh, 390px);
        max-height: 52dvh;
        padding: 10px;
    }

    .message {
        width: min(94%, 560px);
    }

    .composer {
        margin-top: 10px;
    }

    .composer textarea {
        min-height: 84px;
        padding-right: 54px;
    }

    .send-button {
        right: 7px;
        bottom: 7px;
        width: 38px;
        height: 38px;
    }

    .stage-track {
        grid-template-columns: repeat(5, minmax(46px, 1fr));
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .stage-track::-webkit-scrollbar {
        display: none;
    }

    .stage-step {
        padding: 7px 5px;
        font-size: 10px;
    }

    .media-frame {
        height: clamp(168px, 48vw, 220px);
    }

    .property-body {
        gap: 8px;
        padding: 10px;
    }

    .thumb-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .thumb-row::-webkit-scrollbar {
        display: none;
    }

    .thumb-row img {
        flex: 0 0 auto;
    }

    .property-title-row strong {
        white-space: normal;
    }

    .score-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .filter-surface {
        display: flex;
        flex-direction: column;
    }

    .filter-surface > .section-head .desktop-search-button {
        display: none;
    }

    .mobile-filter-summary {
        display: grid;
        gap: 10px;
        order: 1;
        margin-top: 10px;
        padding: 10px;
        background: #fff7eb;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .mobile-filter-summary .criteria-strip {
        margin: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mobile-filter-summary .criteria-strip::-webkit-scrollbar {
        display: none;
    }

    .mobile-filter-summary .criteria-chip {
        flex: 0 0 auto;
    }

    .mobile-filter-summary-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .mobile-filter-summary-actions .mobile-filter-button {
        display: inline-flex;
    }

    .mobile-filter-summary-actions button {
        min-width: 0;
        width: 100%;
    }

    .filter-surface > .filter-grid:not(.mobile-open) {
        display: none;
    }

    .filter-surface > .filter-grid.mobile-open {
        position: fixed;
        inset: 0;
        z-index: 150;
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 14px;
        margin: 0;
        padding: 0 14px;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: var(--paper);
    }

    .filter-surface.filters-open .map-panel {
        visibility: hidden;
        pointer-events: none;
    }

    .filter-surface > .filter-grid.mobile-open .wide,
    .mobile-filter-head,
    .mobile-filter-actions {
        grid-column: 1 / -1;
    }

    .mobile-filter-head {
        position: sticky;
        top: 0;
        z-index: 4;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin: 0 -14px;
        padding: calc(14px + env(safe-area-inset-top)) 14px 14px;
        background: rgba(255, 253, 249, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(12px);
    }

    .mobile-filter-actions {
        position: sticky;
        bottom: 0;
        z-index: 4;
        display: block;
        margin: 4px -14px 0;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 253, 249, 0.96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(12px);
    }

    .filter-surface > .section-head {
        order: 0;
    }

    .filter-grid {
        order: 3;
        margin-top: 12px;
    }

    .owner-form .filter-grid {
        order: 0;
        margin-top: 8px;
    }

    .map-panel {
        order: 2;
        margin-top: 12px;
        min-height: 306px;
    }

    .map-panel.expanded {
        inset: 6px;
        padding: 10px;
    }

    .map-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-panel.expanded .map-summary {
        gap: 8px;
        margin-bottom: 8px;
    }

    .map-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .map-actions span {
        flex-basis: 100%;
    }

    .map-actions .small-button {
        flex: 1 1 136px;
        width: auto;
        min-height: 38px;
    }

    .map-panel.expanded .map-actions {
        gap: 6px;
    }

    .map-panel.expanded .map-actions .small-button {
        flex-basis: 118px;
        min-height: 36px;
    }

    .osm-map {
        height: 220px;
    }

    .listing-detail-panel {
        inset: 6px;
        max-height: calc(100dvh - 12px);
        padding: 12px;
        gap: 10px;
    }

    .detail-head,
    .detail-price-line {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .detail-hero-image {
        height: clamp(210px, 56vw, 310px);
    }

    .detail-thumbs {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .detail-thumbs::-webkit-scrollbar {
        display: none;
    }

    .detail-thumbs img {
        flex: 0 0 92px;
        height: 66px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .inventory-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .inventory-card img {
        height: 64px;
    }

    .owner-inventory-card .ghost-button {
        grid-column: 1 / -1;
    }
}

@media (hover: none) and (pointer: coarse) {
    .conversation-surface:hover,
    .recommendation-surface:hover,
    .property-card:hover,
    .inventory-card:hover,
    .booking-card:hover,
    .primary-button:hover:not(:disabled),
    .ghost-button:hover:not(:disabled),
    .small-button:hover:not(:disabled),
    .suggestions button:hover:not(:disabled),
    .menu-button:hover:not(:disabled),
    .menu-close:hover:not(:disabled),
    .menu-nav button:hover:not(:disabled),
    .language-toggle button:hover,
    .thumb-row img:hover,
    .price-marker:hover span,
    .property-card:hover .media-frame img {
        transform: none;
    }

    .conversation-surface:hover,
    .recommendation-surface:hover,
    .property-card:hover,
    .inventory-card:hover,
    .booking-card:hover {
        box-shadow: var(--shadow);
    }
}

@media (max-width: 380px) {
    .workspace {
        padding: 8px;
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .owner-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .conversation-surface,
    .recommendation-surface,
    .filter-surface,
    .form-surface,
    .stacked-surface,
    .inventory-surface,
    .owner-summary,
    .empty-state {
        padding: 10px;
    }

    .panel-tabs button {
        font-size: 12px;
        padding-inline: 4px;
    }

    .provider-pill,
    .chip,
    .match-badge,
    .media-badge {
        font-size: 11px;
    }

    .refinement-actions {
        grid-template-columns: 1fr;
    }
}
