/* =============================================================================
   Edyhillz kit: tokens and every component, built for this product.
   Navy acts and marks what is selected. Gold marks what is yours: saved homes,
   unread items, featured stock. Cool neutrals carry everything else.
   Loaded after the structural sheets; every rule is scoped to .property-app.
   ============================================================================= */

:root {
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --gold: #d4af37;
    --gold-light: #f3d069;
    --gold-100: #f8f1d8;
    --gold-600: #a88719;
    --gold-ink: #765f0b;
    --gold-dark: #765f0b;

    --n-25: #fafbfc;
    --n-50: #f4f5f7;
    --n-100: #eceef1;
    --n-150: #e3e6ea;
    --n-200: #d5dae1;
    --n-300: #b7bfca;
    --n-500: #5a6272;
    --n-700: #334155;

    --ground: var(--n-50);
    --canvas: var(--n-50);
    --surface: #fff;
    --raised: var(--n-25);
    --active: var(--n-100);
    --secondary: var(--n-100);
    --secondary-hover: var(--n-150);
    --line: #e6e8ec;
    --rule: #eef0f3;
    --line-strong: var(--n-200);
    --ink: var(--navy);
    --muted: var(--n-500);
    --body: var(--n-700);
    --muted-2: var(--n-500);
    --success: #146c43;
    --success-bg: #e3f3ea;
    --danger: #b42318;
    --danger-bg: #fdeceb;
    --field: var(--n-50);
    --field-hover: #edeff2;

    --ring: 0 0 0 1.5px var(--navy), 0 0 0 5px rgba(15, 23, 42, .08);
    --ring-danger: 0 0 0 1.5px var(--danger), 0 0 0 5px rgba(180, 35, 24, .1);
    --radius-xs: 8px;
    --radius-control: 12px;
    --radius-inner: 16px;
    --radius-panel: 24px;
    --radius-pill: 999px;
    --shadow-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .03);
    --shadow-2: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .16);
    --shadow-3: 0 2px 4px rgba(15, 23, 42, .05), 0 20px 48px -16px rgba(15, 23, 42, .22);
    --shadow-float: 0 0 0 1px rgba(15, 23, 42, .05), 0 24px 64px -16px rgba(15, 23, 42, .26);
    --scrim: rgba(10, 16, 32, .48);

    --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: var(--sans);
    --track-display: -.035em;
    --track-head: -.02em;
    --dur-press: 120ms;
    --dur-fast: 160ms;
    --dur: 220ms;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.4, .64, 1);

    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6272' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}

/* ===== Base ===== */
.property-app { background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 20px; letter-spacing: -.005em; }
.property-app.property-app :where(h1, h2, h3, h4) { font-family: var(--sans); letter-spacing: var(--track-head); }
.property-app ::selection { background: var(--gold-100); color: var(--navy); }
.property-app :focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.property-app * { scrollbar-width: thin; scrollbar-color: var(--n-200) transparent; }
.property-app ::-webkit-scrollbar { width: 10px; height: 10px; }
.property-app ::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: var(--radius-pill); background: var(--n-200) padding-box; }
.property-app ::-webkit-scrollbar-track { background: transparent; }
.property-app a { text-underline-offset: 4px; }
.property-app .premium-icon { stroke-width: 1.6; }

/* Browser defaults never set spacing: zero specificity, so every component rule wins. */
:where(.property-app) :where(button) { padding: 0; }
/* Search fields carry their own clear and submit controls; the browser's own button stays out. */
.property-app input[type="search"]::-webkit-search-cancel-button, .property-app input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.property-app :is(.check-row, .radio-row, .publish-state label, .admin-segmented label, .toggle-field) > input { margin: 0; }

/* Headings across pages: size does the work, weight stays at 500. */
.property-app.property-app :where(.portal-hero h1, .admin-page-head h1) { font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: var(--track-display); }
.property-app .auth-panel h1 { font-size: 36px; font-weight: 500; line-height: 44px; letter-spacing: var(--track-display); }
.property-app .info-masthead h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; line-height: 1.05; letter-spacing: var(--track-display); }
.property-app .listing-title-row h1 { font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: var(--track-display); }
.property-app .page-empty-state h1 { font-size: 40px; font-weight: 500; line-height: 48px; letter-spacing: var(--track-display); }
.property-app.property-app :where(.info-section h2, .contact-faq-intro h2, .info-cta h2) { font-size: 32px; font-weight: 500; line-height: 40px; letter-spacing: var(--track-display); }
.property-app.property-app :where(.dossier-section h2, .listing-contact-card h2, .contact-form-card h2, .admin-modal-card h2, .contact-modal-card h3, .save-sheet h3, .empty-state h3) { font-size: 24px; font-weight: 500; line-height: 32px; }
.property-app.property-app :where(.portal-card-heading h2, .portal-card > h2, .legal-prose h2, .editorial-row h3, .filter-heading h2) { font-size: 20px; font-weight: 500; line-height: 28px; }
.property-app .info-band .editorial-row h3 { font-size: 24px; line-height: 32px; }

/* Running text: body ink at 7:1 or more. Grey stays for labels, counts and metadata. */
.property-app :is(.auth-lead, .contact-modal-sub, .save-sheet p, .portal-hero p, .admin-page-head p, .info-masthead .info-lead, .contact-faq-intro p, .info-cta p, .contact-form-note, .listing-description, .publisher-callout > p, .admin-modal-copy, .mail-test-card > p, .settings-card .portal-card-heading p) { color: var(--body); }

/* ===== Buttons: pills, one family ===== */
.property-app.property-app :where(.ui-button, .primary-action, .secondary-action, .contact-submit, .filter-apply, .empty-state button, .compare-button, .google-auth-button, .save-sheet-actions a, .cookie-consent-actions button, .mobile-auth-signin, .mobile-auth-register, .header-signin, .header-register, .mobile-filter-trigger, .lp-button, .gallery-top-actions button, .view-gallery, .mobile-menu-auth > form button) {
    position: relative; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    overflow: visible; padding: 0 24px; border: 0; border-radius: var(--radius-pill); box-shadow: none;
    font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease);
}
.property-app.property-app :where(.ui-button, .primary-action, .secondary-action, .contact-submit, .filter-apply, .empty-state button, .compare-button, .google-auth-button, .save-sheet-actions a, .cookie-consent-actions button, .mobile-auth-signin, .mobile-auth-register, .header-signin, .header-register, .mobile-filter-trigger, .lp-button, .gallery-top-actions button, .view-gallery, .mobile-menu-auth > form button):active:not(:disabled) { transform: scale(.97); }
.property-app.property-app :where(.ui-button, .primary-action, .secondary-action, .contact-submit, .filter-apply, .compare-button, .lp-button):is(:disabled, [aria-disabled="true"]) { opacity: .45; cursor: not-allowed; }
.property-app.property-app :where(.ui-button, .primary-action, .secondary-action, .contact-submit, .filter-apply, .lp-button) .premium-icon { width: 16px; height: 16px; }

/* Primary: navy, with an arrow that steps forward on hover */
.property-app.property-app :where(.ui-button-primary, .primary-action, .contact-submit, .filter-apply, .empty-state button, .header-register, .mobile-auth-register, .cookie-consent-accept, .lp-button-primary, .mobile-filter-trigger) { background: var(--navy); color: #fff; }
.property-app.property-app :where(.ui-button-primary:not(:has(> .premium-icon)), .primary-action, .contact-submit, .lp-button-primary:not(:has(> .premium-icon)), .empty-state button)::after {
    content: ""; position: static; flex: 0 0 16px; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none;
    background: currentColor; -webkit-mask: var(--icon-arrow) center / 16px no-repeat; mask: var(--icon-arrow) center / 16px no-repeat;
}
.property-app.property-app :where(.contact-submit.is-sending, .contact-submit.is-sent, .action-feedback.is-loading, .ui-button.is-loading)::after { display: none; }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app :where(.ui-button-primary, .primary-action, .contact-submit, .filter-apply, .empty-state button, .header-register, .mobile-auth-register, .cookie-consent-accept, .lp-button-primary, .mobile-filter-trigger):hover:not(:disabled) { background: var(--navy-soft); }
}

/* Secondary: a tonal pill */
.property-app.property-app :where(.ui-button-secondary, .secondary-action, .compare-button, .google-auth-button, .mobile-auth-signin, .cookie-consent-actions [data-cookie-decline], .lp-button:not(.lp-button-primary), .mobile-menu-auth > form button) { background: var(--n-100); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app :where(.ui-button-secondary, .secondary-action, .compare-button, .google-auth-button, .mobile-auth-signin, .cookie-consent-actions [data-cookie-decline], .lp-button:not(.lp-button-primary), .mobile-menu-auth > form button):hover:not(:disabled, .is-active) { background: var(--n-150); }
}
.property-app .compare-button.is-active { background: var(--navy); color: #fff; }
.property-app .compare-button.is-active .premium-icon { fill: none; }

/* Quiet: text on the surface until hovered */
.property-app .header-signin { background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .property-app .header-signin:hover { background: var(--n-100); } }

/* On photographs: white, lifted */
.property-app.property-app :where(.gallery-top-actions button, .view-gallery) { min-height: 40px; padding: 0 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.property-app .view-gallery { position: absolute; right: 16px; bottom: 16px; }
.property-app .gallery-top-actions { top: 16px; right: 16px; }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.gallery-top-actions button, .view-gallery):hover { background: #fff; box-shadow: var(--shadow-2); } }
.property-app .gallery-top-actions button.is-active { background: var(--gold); color: var(--navy); }
.property-app .gallery-top-actions [data-compare].is-active { background: var(--navy); color: #fff; }
@media (max-width: 720px) {
    /* Icon-only on a phone; the label stays as the button's name for screen readers. */
    .property-app .gallery-top-actions button span { position: absolute; display: inline; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Sizes */
.property-app.property-app :where(.header-signin, .header-register) { min-height: 40px; padding: 0 16px; }
.property-app .lp-button { min-height: 48px; padding: 0 24px; }
.property-app.property-app :where(.ui-button-block, .contact-submit, .filter-apply) { width: 100%; }
.property-app .application-grid .ui-button { min-height: 36px; padding: 0 16px; font-size: 13px; }
.property-app.property-app :where(.cookie-consent-actions button, .save-sheet-actions a) { min-height: 40px; padding: 0 16px; }

/* Loading */
.property-app .action-spinner { width: 16px; height: 16px; border-width: 1.75px; border-radius: 50%; }
.property-app .ui-button.is-loading { pointer-events: none; opacity: .8; }
.property-app .ui-button.is-loading::before { width: 16px; height: 16px; border-radius: 50%; }

/* ===== Icon buttons: circles ===== */
.property-app.property-app :where(.round-action, .save-card, .detail-save, .detail-close, .photo-nav, .contact-modal-close, .admin-modal-close, .mobile-menu-head button, .mobile-nav-trigger, .drawer-close, .viewer-bar button, .viewer-nav, .toast button:not(.toast-action), .flash-alert [data-flash-dismiss], .row-actions a, .row-actions button, .activity-link, .filter-reset, .search-clear) {
    width: 40px; height: 40px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--ink); box-shadow: none; cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease);
}
.property-app.property-app :where(.round-action, .save-card, .detail-save, .detail-close, .photo-nav, .contact-modal-close, .admin-modal-close, .mobile-menu-head button, .mobile-nav-trigger, .drawer-close, .viewer-bar button, .viewer-nav, .row-actions a, .row-actions button, .activity-link, .filter-reset, .search-clear):active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app :where(.round-action, .contact-modal-close, .admin-modal-close, .mobile-menu-head button, .mobile-nav-trigger, .drawer-close, .viewer-bar button, .toast button:not(.toast-action), .flash-alert [data-flash-dismiss], .row-actions a, .row-actions button, .activity-link, .filter-reset, .search-clear):hover { background: var(--n-100); color: var(--ink); }
}
.property-app.property-app :where(.filter-reset, .search-clear, .flash-alert [data-flash-dismiss]) { width: 28px; height: 28px; color: var(--muted); }
.property-app.property-app :where(.filter-reset, .search-clear) .premium-icon { width: 14px; height: 14px; }
.property-app.property-app :where(.toast button:not(.toast-action), .row-actions a, .row-actions button) { width: 36px; height: 36px; }
.property-app .row-actions .danger-action { color: var(--danger); }
@media (hover: hover) and (pointer: fine) { .property-app .row-actions .danger-action:hover { background: var(--danger-bg); color: var(--danger); } }
.property-app.property-app :where(.contact-modal-close, .admin-modal-close) { position: absolute; top: 16px; right: 16px; background: var(--n-100); }

/* On photographs */
.property-app.property-app :where(.save-card, .detail-save, .photo-nav, .viewer-nav) { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
@media (max-width: 1100px) { .property-app .detail-close { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); } }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.save-card, .detail-save, .photo-nav):hover { background: #fff; box-shadow: var(--shadow-2); } .property-app .viewer-nav:hover { background: var(--n-100); } }
.property-app.property-app :where(.save-card, .detail-save).is-saved { background: var(--gold); color: var(--navy); }
.property-app.property-app :where(.save-card, .detail-save).is-saved .premium-icon { fill: currentColor; }

/* Icon buttons that only belong at some widths keep their own display rules */
@media (min-width: 1241px) { .property-app .mobile-nav-trigger { display: none; } }
@media (min-width: 1101px) { .property-app .detail-close { display: none; } }

/* ===== Fields ===== */
.property-app.property-app :where(.app-form input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"], [type="hidden"]), .app-form textarea, .app-form select, .contact-field input, .contact-field textarea, .chat-compose textarea) {
    width: 100%; min-width: 0; min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-control);
    background-color: var(--field); color: var(--ink); box-shadow: none; outline: 0;
    font: inherit; font-size: 16px; font-weight: 400; line-height: 22px;
    transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.property-app.property-app :where(.app-form textarea, .contact-field textarea, .chat-compose textarea) { min-height: 128px; padding: 12px 16px; resize: vertical; }
.property-app.property-app :where(.app-form input, .app-form textarea, .contact-field input, .contact-field textarea, .chat-compose textarea)::placeholder { color: var(--muted); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app :where(.app-form input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"]), .app-form textarea, .app-form select, .contact-field input, .contact-field textarea, .chat-compose textarea):hover:not(:focus, :disabled) { background-color: var(--field-hover); }
}
.property-app.property-app :where(.app-form input:not([type="checkbox"], [type="radio"], [type="file"], [type="range"]), .app-form textarea, .app-form select, .contact-field input, .contact-field textarea, .chat-compose textarea):focus { border-color: transparent; background-color: #fff; box-shadow: var(--ring); outline: 0; }
.property-app.property-app :where(.app-form, .contact-field) :is(input, textarea, select):is([aria-invalid="true"], :user-invalid) { box-shadow: var(--ring-danger); }
.property-app .app-form :is(input, textarea, select):disabled { opacity: .6; cursor: not-allowed; }

.property-app.property-app :where(.app-form label, .contact-field label) { color: var(--ink); font-size: 13px; font-weight: 500; line-height: 18px; }
.property-app .app-form label { gap: 8px; }
.property-app .app-form label > span:first-child { justify-content: flex-start; gap: 8px; }
.property-app .app-form label > span:first-child > :is(small, a):last-child { margin-left: auto; }
.property-app .contact-field { display: grid; gap: 8px; }
.property-app.property-app :where(.app-form label small, .contact-field label span) { color: var(--muted); font-size: 12px; font-weight: 400; }

/* Field with an icon and an action inside */
.property-app .input-shell { height: 48px; grid-template-columns: 18px minmax(0, 1fr) 32px; gap: 12px; padding: 0 8px 0 16px; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--field); box-shadow: none; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .input-shell:focus-within { border-color: transparent; background: #fff; box-shadow: var(--ring); }
.property-app.property-app .app-form .input-shell > input, .property-app.property-app .app-form .input-shell > input:is(:hover, :focus) { min-height: 0; height: 46px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.property-app .input-shell > .premium-icon { width: 18px; height: 18px; color: var(--muted); }
.property-app .input-shell button { width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .property-app .input-shell button:hover { background: var(--n-100); color: var(--ink); } }
.property-app .password-meter i { height: 4px; border-radius: var(--radius-pill); background: var(--n-150); }

/* Search fields */
.property-app .global-search { height: 40px; max-width: 360px; grid-template-columns: 16px minmax(0, 1fr) 24px; gap: 8px; padding: 0 8px 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--n-50); box-shadow: none; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .global-search > .premium-icon { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .property-app .global-search:hover:not(:focus-within) { background: var(--n-100); } }
.property-app .global-search:focus-within { background: #fff; box-shadow: var(--ring); }
.property-app .global-search:has(input:placeholder-shown) .search-clear { visibility: hidden; }
.property-app .global-search:has(input:placeholder-shown)::after { content: "⌘K"; position: absolute; top: 50%; right: 8px; min-width: 32px; height: 24px; display: grid; place-items: center; padding: 0 8px; border-radius: var(--radius-pill); background: #fff; color: var(--muted); font-size: 12px; font-weight: 500; transform: translateY(-50%); pointer-events: none; box-shadow: var(--shadow-1); }
.property-app .global-search:focus-within::after { opacity: 0; }
.property-app .global-search .search-clear { width: 24px; height: 24px; }
.property-app .global-search input { font-size: 14px; }
.property-app.property-app :where(.mobile-menu-search, .table-search) { border: 0; background: var(--n-50); box-shadow: none; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .mobile-menu-search { height: 48px; border-radius: var(--radius-pill); }
.property-app .table-search { height: 40px; padding: 0 16px; border-radius: var(--radius-pill); }
.property-app .table-search input { background: transparent; font-size: 14px; }
.property-app.property-app :where(.mobile-menu-search, .table-search):focus-within { background: #fff; box-shadow: var(--ring); }

/* Two ends of one range */
.property-app .field-pair { gap: 8px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.property-app .field-pair label { height: 44px; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--radius-control); background: var(--field); box-shadow: none; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .field-pair label + label { box-shadow: none; }
.property-app .field-pair label:focus-within { border-color: transparent; background: #fff; box-shadow: var(--ring); }
.property-app .field-pair input { font-size: 14px; }
.property-app.property-app :where(.field-pair, .app-form) input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.property-app.property-app :where(.field-pair, .app-form) input[type="number"]::-webkit-inner-spin-button, .property-app.property-app :where(.field-pair, .app-form) input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

/* Alerts inside forms */
.property-app .form-alert { padding: 12px 16px; border-radius: var(--radius-control); font-size: 13px; line-height: 20px; }
.property-app.property-app :where(.form-alert-error, .contact-form-error) { background: var(--danger-bg); color: var(--danger); }
.property-app .form-alert-success { background: var(--success-bg); color: var(--success); }
.property-app .contact-form-error { padding: 12px 16px; border-radius: var(--radius-control); }

/* ===== Selects ===== */
/* Native (touch devices, and tables): styled to match the fields */
.property-app select:not([multiple]):not(.cselect-native) { -webkit-appearance: none; appearance: none; padding-right: 48px; background-image: var(--icon-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; cursor: pointer; }
.property-app .data-row select { min-height: 36px; padding: 0 32px 0 12px; border: 0; border-radius: 10px; background-color: var(--field); background-position: right 8px center; color: var(--ink); font-size: 13px; }
.property-app .sort-control select:not(.cselect-native) { min-height: 36px; padding: 0 32px 0 12px; border: 0; border-radius: var(--radius-pill); background-color: transparent; color: var(--ink); font: inherit; font-weight: 500; }

/* Custom listbox (mouse and trackpad) */
.cselect-native { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; margin: -1px !important; padding: 0 !important; border: 0 !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.cselect { position: relative; min-width: 0; }
.cselect--field, .cselect--bare, .cselect--compact { width: 100%; }
.cselect--inline { display: inline-block; }
.cselect-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.cselect-trigger:focus-visible { outline: 0; }
.cselect-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect.is-placeholder .cselect-value { color: var(--muted); }
.cselect-trigger svg { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform var(--dur) var(--ease); }
.cselect.is-open .cselect-trigger svg { transform: rotate(180deg); }
.cselect.is-disabled { opacity: .5; }
.cselect.is-disabled .cselect-trigger { cursor: not-allowed; }

.cselect--field .cselect-trigger { min-height: 48px; padding: 0 16px 0 16px; border-radius: var(--radius-control); background: var(--field); font-size: 16px; line-height: 22px; }
.cselect--compact .cselect-trigger { min-height: 36px; padding: 0 12px 0 12px; border-radius: 10px; background: var(--field); font-size: 13px; }
.cselect--inline .cselect-trigger { min-height: 36px; padding: 0 12px 0 16px; border-radius: var(--radius-pill); font-weight: 500; }
.cselect--bare .cselect-trigger { min-height: 24px; gap: 8px; padding: 0; font-size: 16px; font-weight: 500; line-height: 24px; }
@media (hover: hover) and (pointer: fine) {
    .cselect:is(.cselect--field, .cselect--compact):not(.is-open, .is-disabled) .cselect-trigger:hover { background: var(--field-hover); }
    .cselect--inline:not(.is-disabled) .cselect-trigger:hover { background: var(--n-100); }
}
.cselect:is(.cselect--field, .cselect--compact) :is(.cselect-trigger:focus-visible, .cselect-trigger[aria-expanded="true"]) { background: #fff; box-shadow: var(--ring); }
.cselect--inline .cselect-trigger:focus-visible { box-shadow: var(--ring); }
.cselect.is-invalid .cselect-trigger { box-shadow: var(--ring-danger); }

.cselect-list { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; display: none; min-width: 100%; width: max-content; max-width: min(360px, calc(100vw - 32px)); max-height: 296px; overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: var(--radius-inner); background: #fff; box-shadow: var(--shadow-float); outline: 0; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; transition: opacity 120ms var(--ease), transform 160ms var(--ease), display 160ms allow-discrete; }
.cselect--inline .cselect-list { right: 0; left: auto; transform-origin: top right; }
.cselect--bare .cselect-list { left: -12px; min-width: calc(100% + 24px); }
.cselect.is-up .cselect-list { top: auto; bottom: calc(100% + 8px); transform: translateY(4px) scale(.98); transform-origin: bottom left; }
.cselect.is-open .cselect-list { display: block; opacity: 1; transform: none; transition: opacity 160ms var(--ease), transform 200ms var(--ease), display 0s allow-discrete; }
@starting-style { .cselect.is-open .cselect-list { opacity: 0; transform: translateY(-4px) scale(.98); } .cselect.is-up.is-open .cselect-list { transform: translateY(4px) scale(.98); } }
.cselect-option { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 20px; cursor: pointer; user-select: none; }
.cselect-option.is-active { background: var(--n-50); }
.cselect-option[aria-selected="true"] { font-weight: 500; }
.cselect-option svg { flex: none; width: 16px; height: 16px; color: var(--navy); visibility: hidden; }
.cselect-option[aria-selected="true"] svg { visibility: visible; }
.cselect-option[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* Filter currency: the shell yields to the listbox */
.property-app .filter-select-shell { height: auto; border: 0; background: transparent; box-shadow: none; }
.property-app .filter-select-shell:has(.cselect) > .premium-icon { display: none; }
.property-app .filter-select-shell .filter-select:not(.cselect-native) { height: 48px; padding: 0 48px 0 16px; border-radius: var(--radius-control); background-color: var(--field); }
.property-app .filter-select-shell:not(:has(.cselect)) > .premium-icon { display: none; }

/* ===== Checkboxes, radios, switches ===== */
.property-app .app-form input[type="checkbox"] { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; min-height: 0; flex: 0 0 18px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--n-300); cursor: pointer; transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .app-form input[type="checkbox"]:checked { background: var(--navy) var(--icon-check) center / 12px no-repeat; box-shadow: none; }
.property-app .app-form label.settings-remove { padding: 12px 16px; border: 0; border-radius: var(--radius-control); background: var(--danger-bg); color: var(--danger); }
.property-app .app-form label.settings-remove input:checked { background-color: var(--danger); }

/* Filter rows: the whole row is the control, the box is drawn */
.property-app .option-list { gap: 2px; margin-inline: -12px; }
.property-app .check-row { position: relative; min-height: 40px; gap: 12px; padding: 0 12px; border-radius: var(--radius-control); background: transparent; color: var(--ink); font-weight: 400; transition: background-color var(--dur-fast) var(--ease); }
.property-app .check-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.property-app .check-row::before { content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--n-300); transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .check-row::after { content: none; }
.property-app .check-row:has(input:checked) { background: transparent; font-weight: 500; }
.property-app .check-row:has(input:checked)::before { background: var(--navy) var(--icon-check) center / 12px no-repeat; box-shadow: none; }
.property-app .check-row:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: -2px; }
.property-app .check-row:active { transform: none; }
.property-app .check-row:has(input:checked) .option-count { display: inline; }
@media (hover: hover) and (pointer: fine) { .property-app .check-row:hover { background: var(--n-50); } }
.property-app .option-count { color: var(--muted); font-size: 12px; }

/* Price presets: a two by two segmented block */
.property-app .price-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-inner); background: var(--n-100); box-shadow: none; }
.property-app .radio-row { position: relative; min-height: 40px; justify-content: center; padding: 0 8px; border-radius: var(--radius-control); background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; text-align: center; outline: 0; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .radio-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.property-app .radio-row:has(input:checked) { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); outline: 0; }
.property-app .radio-row:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 1px; }
.property-app .radio-row:has(input[value="custom"]) { display: none; }
.property-app .radio-row:has(input:disabled) { opacity: .5; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .property-app .radio-row:not(:has(input:checked, input:disabled)):hover { background: rgba(255, 255, 255, .6); color: var(--ink); } }

/* Must-have switches */
.property-app .chip-row { display: grid; gap: 2px; margin-inline: -12px; }
.property-app .filter-chip { position: relative; width: 100%; min-height: 44px; padding: 0 64px 0 12px; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--ink); font-size: 14px; font-weight: 400; text-align: left; transition: background-color var(--dur-fast) var(--ease); }
.property-app .filter-chip:active { transform: none; }
.property-app .filter-chip.is-active { border: 0; background: transparent; color: var(--ink); }
.property-app .filter-chip::after { content: ""; position: absolute; top: calc(50% - 12px); right: 12px; width: 40px; height: 24px; border-radius: var(--radius-pill); background: var(--n-200); transition: background-color var(--dur) var(--ease); }
.property-app .filter-chip::before { content: ""; position: absolute; z-index: 1; top: calc(50% - 10px); right: 30px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform 280ms var(--spring); }
.property-app .filter-chip.is-active::after { background: var(--navy); }
.property-app .filter-chip.is-active::before { transform: translateX(16px); }
@media (hover: hover) and (pointer: fine) { .property-app .filter-chip:hover, .property-app .filter-chip:not(.is-active):hover { border: 0; background: var(--n-50); } }

/* Admin switch */
.property-app .toggle-field > span { width: 40px; height: 24px; padding: 2px; border-radius: var(--radius-pill); background: var(--n-200); transition: background-color var(--dur) var(--ease); }
.property-app .toggle-field > span i { width: 20px; height: 20px; box-shadow: var(--shadow-1); transition: transform 280ms var(--spring); }
.property-app .toggle-field > input:checked + span { background: var(--navy); }
.property-app .toggle-field > input:checked + span i { transform: translateX(16px); }
.property-app .toggle-field > input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.property-app .toggle-field > b { color: var(--ink); font-size: 14px; font-weight: 500; }

/* ===== Segmented controls and tabs ===== */
.property-app .type-counts { display: inline-flex; flex-wrap: nowrap; gap: 2px; width: fit-content; max-width: 100%; margin: 0; padding: 4px; border: 0; border-radius: var(--radius-pill); background: var(--n-100); box-shadow: none; }
.property-app .type-count { position: relative; min-height: 36px; gap: 8px; padding: 0 12px; font-size: 13px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-weight: 500; white-space: nowrap; box-shadow: none; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .type-count::after { content: none; }
.property-app .type-count[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.property-app .type-count small, .property-app .type-count[aria-pressed="true"] small { min-width: 0; padding: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .property-app .type-count:not([aria-pressed="true"]):hover { color: var(--ink); } }

.property-app .contact-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 24px; padding: 4px; border: 0; border-radius: var(--radius-pill); background: var(--n-100); box-shadow: none; }
.property-app .contact-tabs::before, .property-app .listing-contact-card .contact-tabs::before { top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); height: auto; border-radius: var(--radius-pill); background: #fff; box-shadow: var(--shadow-1); }
.property-app .contact-tabs[data-active="viewing"]::before { transform: translateX(100%); }
.property-app .contact-tabs button { min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--muted); font-weight: 500; }
.property-app .contact-tabs button.is-active, .property-app .listing-contact-card .contact-tabs button.is-active { color: var(--ink); }

/* State switches (admin): a navy pill slides under the active option */
.property-app.property-app :where(.admin-segmented, .publish-state-options, .inquiry-workflow, .viewing-progress) { --motion-radius: 10px; --motion-bg: var(--navy); padding: 4px; border: 0; border-radius: 14px; background: var(--n-100); }
.property-app.property-app :where(.admin-segmented label > span, .publish-state label > span, .workflow-step) { border-radius: 10px; font-size: 12px; }
.property-app .workflow-step.is-complete { background: var(--gold-100); color: var(--gold-ink); }
.property-app .settings-nav { --motion-radius: 14px; --motion-bg: var(--navy); padding: 8px; border: 0; border-radius: 20px; background: var(--n-100); }
.property-app .settings-nav a { border-radius: 14px; }
.property-app .admin-tabs { gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--line); }
.property-app .admin-tabs button { min-height: 48px; padding: 0 16px; color: var(--muted); font-size: 13px; }
.property-app .admin-tabs button::after { right: 14px; left: 14px; height: 2px; border-radius: 2px 2px 0 0; }
.property-app .admin-tabs button.is-active { color: var(--ink); }
.property-app .admin-tabs button.is-active::after { background: var(--navy); }
.property-app .admin-tabs button span { border-radius: var(--radius-pill); background: var(--n-100); color: var(--ink); }

/* ===== Badges and tags ===== */
.property-app .status-badge { min-height: 24px; gap: 8px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--n-100); color: var(--n-700); font-size: 12px; font-weight: 500; line-height: 16px; text-transform: capitalize; }
.property-app .status-badge::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.property-app.property-app :where(.status-live, .status-active, .status-approved, .status-confirmed, .status-completed) { background: var(--success-bg); color: var(--success); }
.property-app.property-app :where(.status-pending, .status-requested, .status-new) { background: var(--gold-100); color: var(--gold-ink); }
.property-app.property-app :where(.status-declined, .status-suspended, .status-cancelled) { background: var(--danger-bg); color: var(--danger); }
.property-app { --icon-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.8 6.1 6.7.7-5 4.5 1.4 6.6L12 17l-5.9 3.4 1.4-6.6-5-4.5 6.7-.7z' fill='black'/%3E%3C/svg%3E"); }
/* Featured: a small brushed-brass plate, the same material as the model trims and the cast wordmark. */
.property-app .card-tag {
    position: absolute; z-index: 2; top: 12px; left: 12px; min-height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px 0 8px;
    border-radius: var(--radius-pill); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: .01em; text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, rgba(118, 95, 11, .05) 1px 2px), linear-gradient(110deg, #b38b1d 0%, #f3d069 36%, #e2bf52 52%, #d4af37 64%, #a88719 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(118, 95, 11, .45), 0 2px 8px -2px rgba(10, 16, 32, .35);
}
.property-app .card-tag::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 0; background: currentColor; -webkit-mask: var(--icon-star) center / 12px no-repeat; mask: var(--icon-star) center / 12px no-repeat; }
.property-app.property-app :where(.filter-heading h2 small, .mode-link span.has-count, .favorite-count.has-count, .notification-badge) { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: var(--radius-pill); background: var(--gold); color: var(--navy); font-family: var(--sans); font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0; }
.property-app .filter-heading h2 small { margin-left: 8px; vertical-align: 2px; }
.property-app .notification-badge { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border: 2px solid #fff; }
.property-app .unread-dot { background: var(--gold); }
.property-app .settings-status { min-height: 28px; gap: 8px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: var(--gold-100); color: var(--gold-ink); font-size: 12px; font-weight: 500; }
.property-app .settings-status.is-ready { border: 0; background: var(--success-bg); color: var(--success); }

/* ===== Panels ===== */
.property-app.property-app :where(.portal-card, .contact-form-card, .listing-contact-card, .info-cta, .thread-card) { border: 0; border-radius: var(--radius-panel); background: #fff; box-shadow: none; }
.property-app .portal-card { padding: 32px; }
.property-app.property-app :where(.table-card, .admin-tabs-card) { padding: 0; overflow: hidden; }
.property-app.property-app :where(.table-card, .admin-panel) > .portal-card-heading { padding: 24px 24px 8px; }
.property-app .portal-card-heading { margin-bottom: 24px; }
.property-app .portal-card-heading a, .property-app .card-link { color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.portal-card-heading a, .card-link):hover { color: var(--ink); text-decoration-color: currentColor; } }
.property-app .portal-hero { margin-bottom: 24px; }
.property-app .portal-page { padding: 48px 32px 96px; }

.property-app .metric-grid { gap: 12px; margin-bottom: 24px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.property-app .metric-grid > * { min-height: 120px; flex-direction: column; justify-content: space-between; padding: 24px 24px; border: 0; border-radius: 20px; background: #fff; }
/* Label on top, count pinned to the foot, so counts line up across a row whatever the label length. */
.property-app .metric-grid span { flex: 1; justify-content: space-between; gap: 4px; }
.property-app .metric-grid strong { font-size: 36px; font-weight: 500; line-height: 40px; letter-spacing: var(--track-display); }
.property-app .metric-grid small { padding-right: 16px; color: var(--muted); font-size: 13px; }
.property-app a.metric-card { color: var(--ink); text-decoration: none; transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.property-app .metric-arrow { position: absolute; top: 20px; right: 20px; margin: 0; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.property-app .metric-grid > * { position: relative; }
@media (hover: hover) and (pointer: fine) { .property-app a.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); } .property-app a.metric-card:hover .metric-arrow { color: var(--ink); } }

/* Photo cards: the picture carries the card, no box around it */
.property-app.property-app :where(.related-grid a, .saved-property-grid a) { padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease); }
.property-app.property-app :where(.related-grid, .saved-property-grid) img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-inner); outline: 0; object-fit: cover; transition: transform 500ms var(--ease); }
.property-app.property-app :where(.related-grid, .saved-property-grid) a > span { gap: 2px; padding: 12px 0 0; }
.property-app.property-app :where(.related-grid b, .saved-property-grid b) { font-size: 20px; font-weight: 500; line-height: 28px; letter-spacing: var(--track-head); }
.property-app.property-app :where(.related-grid strong, .saved-property-grid strong) { font-size: 15px; font-weight: 500; line-height: 22px; }
.property-app .related-grid { gap: 24px; }
.property-app .saved-property-grid { gap: 24px; }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.related-grid a, .saved-property-grid a):hover { transform: translateY(-2px); background: transparent; box-shadow: none; } }
.property-app.property-app :where(.related-grid a, .saved-property-grid a) img { border-radius: var(--radius-inner); }

/* Lists inside panels */
.property-app.property-app :where(.activity-list article, .compare-list a) { border-top: 1px solid var(--rule); }
.property-app.property-app :where(.activity-list img, .compare-list img) { border-radius: 10px; }
.property-app .activity-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--n-100); }
.property-app .activity-list article { grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 12px; }
.property-app .activity-list article > :last-child.activity-link { margin-left: 0; }
.property-app .activity-icon .premium-icon { width: 18px; height: 18px; }
.property-app.property-app :where(.activity-list strong, .compare-list strong, .notification-list strong, .notifications-row-body strong) { color: var(--ink); font-size: 14px; font-weight: 500; }
.property-app .activity-link { width: 32px; height: 32px; background: var(--n-100); }
@media (hover: hover) and (pointer: fine) { .property-app .activity-link:hover { background: var(--navy); color: #fff; } }

/* ===== Tables ===== */
.property-app .data-row { gap: 16px; min-height: 64px; padding: 12px 24px; border-top: 1px solid var(--rule); font-size: 14px; }
.property-app .data-head { min-height: 44px; border-top: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .property-app .data-row:not(.data-head):hover { background: var(--n-25); } }
.property-app .table-card .data-head + .data-row { border-top: 0; }
.property-app.property-app :where(.property-cell, .user-cell) img { border-radius: 10px; }
.property-app .user-avatar { background: var(--n-100); color: var(--ink); }
.property-app .property-row-actions .property-edit-action { width: auto; min-width: 0; height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: var(--navy); color: #fff; font-size: 13px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .property-app .property-row-actions .property-edit-action:hover { border: 0; background: var(--navy-soft); color: #fff; } .property-app .property-row-actions :is(a, button):not(.property-edit-action):hover { border: 0; background: var(--n-100); } }
.property-app .property-row-actions :is(a, button):not(.property-edit-action) { border: 0; border-radius: 50%; background: transparent; }
.property-app .locked-action { color: var(--muted); }
.property-app .application-grid article { padding: 24px; border: 0; border-radius: var(--radius-inner); background: var(--n-50); }
.property-app .viewing-cancel { border: 0; border-radius: 14px; background: var(--danger-bg); color: var(--danger); }
@media (hover: hover) and (pointer: fine) { .property-app .viewing-cancel:hover:not(:disabled) { background: #fbdcd9; } }
.property-app .viewing-cancel:disabled { background: var(--danger); color: #fff; }

/* ===== Menus and popovers ===== */
.property-app.property-app :where(.profile-dropdown, .notifications-dropdown, .search-suggestions) { border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-float); -webkit-backdrop-filter: none; backdrop-filter: none; }
.property-app .profile-dropdown { padding: 8px; }
.property-app.property-app :where(.profile-dropdown a, .profile-dropdown button) { min-height: 40px; gap: 12px; padding: 0 12px; border-radius: var(--radius-control); color: var(--ink); font-size: 14px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.profile-dropdown a, .profile-dropdown button):hover { background: var(--n-50); color: var(--ink); } }
.property-app .profile-dropdown .premium-icon { color: var(--muted); }
.property-app .profile-dropdown form { border-top: 1px solid var(--rule); }
.property-app.property-app :where(.notifications-head, .notifications-foot) { border-color: var(--rule); }
.property-app .notifications-head strong { font-size: 14px; font-weight: 500; }
.property-app .notification-item { border-radius: var(--radius-control); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .property-app .notification-item:hover, .property-app .notifications-foot:hover { background: var(--n-50); } }
.property-app .notification-item strong { font-size: 13px; }
.property-app .search-suggestions { padding: 8px; }
.property-app .search-suggestion { border-radius: var(--radius-control); }
.property-app .search-suggestion.is-active, .property-app .search-suggestion:hover { background: var(--n-50); color: var(--ink); }
.property-app .search-suggestion strong, .property-app .search-property > b { color: var(--ink); }
.property-app .search-property img { border-radius: 8px; }
.property-app.property-app :where(.search-suggestions-head kbd, .search-suggestions-foot kbd) { border: 0; border-radius: 6px; background: var(--n-100); box-shadow: none; color: var(--muted); font-family: var(--sans); }
.property-app.property-app :where(.search-suggestion-group + .search-suggestion-group, .search-suggestions-foot) { border-color: var(--rule); }

/* ===== Dialogs and sheets ===== */
.property-app.property-app :where(.contact-modal-backdrop, .mobile-menu-backdrop, .drawer-backdrop) { background: var(--scrim); }
.property-app.property-app :where(.save-sheet, .admin-modal)::backdrop { background: var(--scrim); }
.property-app .contact-modal-card { width: min(480px, calc(100vw - 32px)); padding: 32px; border-radius: 28px; box-shadow: var(--shadow-float); }
.property-app .contact-modal-card h3 { margin: 0 48px 8px 0; }
.property-app .contact-modal-sub { margin: 0 0 24px; font-size: 14px; line-height: 22px; }
.property-app #contact-agent-form { display: grid; gap: 16px; }
.property-app .contact-modal-card .contact-field input { min-height: 48px; }
.property-app .save-sheet { width: min(440px, calc(100vw - 32px)); border-radius: 28px; box-shadow: var(--shadow-float); }
.property-app .save-sheet-card { padding: 32px; }
.property-app .save-sheet h3 { margin: 0 48px 8px 0; }
.property-app .save-sheet p { margin: 0 0 24px; line-height: 22px; }
.property-app .save-sheet-actions { gap: 8px; }
.property-app .sheet-icon, .property-app .empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--gold-100); color: var(--gold-ink); }
.property-app .empty-icon { background: var(--n-100); color: var(--ink); }
.property-app .empty-model { width: min(100%, 320px); margin: 0 auto 32px; }
.property-app.property-app :where(.sheet-icon, .empty-icon) .premium-icon { width: 24px; height: 24px; }
.property-app .admin-modal { border-radius: 28px; box-shadow: var(--shadow-float); }
.property-app .admin-modal-card { padding: 32px; border: 0; border-radius: 28px; }
.property-app .admin-modal-copy { font-size: 14px; line-height: 22px; }

/* Photo viewer */
.property-app .photo-viewer svg { width: 20px; height: 20px; }
.property-app .viewer-bar { min-height: 72px; padding: 0 16px 0 32px; }
.property-app .viewer-bar strong { font-size: 20px; font-weight: 500; letter-spacing: var(--track-head); }
.property-app .viewer-nav { width: 48px; height: 48px; }
.property-app .viewer-stage img { border-radius: var(--radius-panel); }
.property-app .viewer-thumbs button { width: 80px; height: 56px; border-radius: 10px; }
.property-app .viewer-thumbs button[aria-current="true"] { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ===== Feedback ===== */
.property-app.property-app :where(.toast, .page-toast) { border: 0; border-radius: var(--radius-inner); background: #fff; box-shadow: var(--shadow-float); }
.property-app .toast .toast-action { height: 32px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .property-app .toast .toast-action:hover { background: var(--gold-light); } }
.property-app .flash-alert { padding: 16px 12px 16px 16px; border: 0; border-radius: var(--radius-inner); background: #fff; box-shadow: var(--shadow-float); font-size: 14px; line-height: 20px; }
.property-app .flash-alert-success > i { color: var(--success); }
.property-app .flash-alert-error > i { color: var(--danger); }
.property-app .cookie-consent { gap: 16px; padding: 24px; border: 0; border-radius: 20px; background: #fff; box-shadow: var(--shadow-float); }
.property-app .cookie-consent-copy p { color: var(--body); font-size: 13px; line-height: 20px; }
.property-app .cookie-consent-copy a { color: var(--ink); text-decoration: underline; }
.property-app .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* Phones: a floating card lands on the hero search pill and the two read as one broken card,
   so the notice docks as an edge-to-edge bottom sheet instead. */
@media (max-width: 760px) {
    .property-app .cookie-consent { right: 0; bottom: 0; left: 0; width: auto; padding: 24px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; box-shadow: 0 -1px 0 rgba(15, 23, 42, .06), 0 -16px 48px -16px rgba(15, 23, 42, .32); }
}
.property-app .inline-notice { padding: 12px 16px; border-radius: var(--radius-control); background: var(--n-50); }

/* Architectural model renders: transparent, grounded by a soft shadow cast down and to the right */
.model-art { display: block; max-width: 100%; height: auto; filter: drop-shadow(14px 26px 28px rgba(15, 23, 42, .12)); pointer-events: none; user-select: none; }

/* Empty states */
.property-app .empty-state { padding: 64px 32px; }
.property-app .empty-state p { max-width: 40ch; margin: 0 0 24px; color: var(--body); line-height: 22px; }
.property-app.property-app :where(.empty-graphic, .sheet-graphic, .aside-graphic) { display: none; }
.property-app .page-empty-state::before { content: none; }
.property-app .page-empty-state > span { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--n-100); }
.property-app .page-empty-state > span .premium-icon { width: 28px; height: 28px; }
.property-app .page-missing-art { width: min(100%, 360px); margin: 0 auto 32px; }
.property-app .page-empty-state > p { max-width: 44ch; margin: 12px auto 32px; color: var(--body); font-size: 16px; line-height: 26px; }
.property-app .page-empty-state .info-hero-actions { justify-content: center; margin-top: 0; }
.property-app .compact-empty > .premium-icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--n-100); box-sizing: border-box; }
.property-app .compact-empty h3 { color: var(--ink); font-size: 15px; font-weight: 500; }
.property-app .compact-empty p { font-size: 13px; }

/* ===== Header ===== */
.property-app .app-header { border-bottom: 0; background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }
/* Three zones on desktop: the mark left, the sections centred between, search and account right. */
@media (min-width: 1241px) {
    .property-app .app-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; }
    .property-app .app-header > .brand { justify-self: start; }
    .property-app .app-header > .mode-nav { justify-self: center; }
    .property-app .header-end { justify-self: end; display: flex; align-items: center; gap: 16px; min-width: 0; }
}
@media (max-width: 1240px) { .property-app .header-end { display: contents; } }

/* Sections as one segmented track: the current one is a raised pill that slides between pages. */
.property-app .mode-nav { align-self: center; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: var(--n-50); }
.property-app .mode-link { min-height: 36px; gap: 8px; padding: 0 16px; border-radius: var(--radius-pill); color: var(--muted); font-size: 14px; font-weight: 500; box-shadow: none; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .property-app .mode-link:not(.is-active):hover { color: var(--ink); } }
.property-app .mode-link.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.property-app .nav-count { min-width: 20px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--n-100); color: var(--muted); font-size: 12px; font-weight: 500; line-height: 20px; text-align: center; }
.property-app .mode-link.is-active .nav-count { background: var(--n-50); color: var(--ink); }

/* Search stays compact until it is used. */
.property-app .header-end .global-search { width: 240px; max-width: none; transition: width var(--dur) var(--ease), background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.property-app .header-end .global-search:focus-within { width: 320px; }
.property-app .header-actions { gap: 8px; }
.property-app .profile { min-height: 40px; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); background: transparent; transition: background-color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .property-app .profile:hover { background: var(--n-100); } }
.property-app .profile:is([aria-expanded="true"], .is-current) { background: var(--n-100); }
.property-app .profile .avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--n-100); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.property-app .profile:is(:hover, [aria-expanded="true"], .is-current) .avatar-initials { background: #fff; }
.property-app .profile-name { max-width: 120px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.property-app .profile-chevron { width: 16px; height: 16px; color: var(--muted); }

/* The menu opens on who is signed in. */
.property-app .profile-head { display: grid; gap: 2px; margin-bottom: 4px; padding: 8px 12px 12px; border-bottom: 1px solid var(--rule); }
.property-app .profile-head strong { overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.property-app .profile-head small { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.property-app .profile-head .profile-role { justify-self: start; margin: 8px 0 0; padding: 0 8px; border-radius: var(--radius-pill); background: var(--n-100); color: var(--n-700); font-size: 12px; font-weight: 500; line-height: 24px; text-transform: none; }

/* Mobile menu */
.property-app .mobile-menu-panel { gap: 16px; padding: 16px; border-radius: 24px 0 0 24px; }
.property-app .mobile-menu-head { border-bottom: 0; }
.property-app .mobile-menu-head button { border: 0; background: var(--n-100); }
.property-app.property-app :where(.mobile-menu-nav > button, .mobile-menu-nav > a) { min-height: 48px; border-radius: var(--radius-control); color: var(--ink); font-size: 15px; font-weight: 500; }
.property-app.property-app :where(.mobile-menu-nav > button, .mobile-menu-nav > a).is-active { background: var(--n-100); color: var(--ink); }
.property-app .mobile-menu-nav .premium-icon { color: var(--muted); }
.property-app .mobile-menu-auth { border-top: 1px solid var(--rule); }
.property-app.property-app :where(.mobile-auth-signin, .mobile-auth-register, .mobile-menu-auth > form button) { min-height: 48px; width: 100%; }

/* ===== Footer ===== */
.property-app .app-footer { padding: 96px 32px 32px; border-top: 0; background: #fff; box-shadow: none; }
.property-app .app-footer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px 24px; align-items: start; }

/* The desk: who answers, and the address set large enough to read across a room */
.property-app .app-footer-desk { grid-column: 1 / span 5; display: grid; justify-items: start; gap: 24px; }
.property-app .app-footer-logo img { width: auto; height: 40px; }
.property-app .app-footer-note { max-width: 32ch; margin: 0; color: var(--body); font-size: 16px; line-height: 26px; }
.property-app .app-footer-mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.property-app .app-footer-mail { margin: 0; color: var(--ink); font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; text-decoration: underline; text-decoration-color: var(--n-300); text-decoration-thickness: 2px; text-underline-offset: 8px; transition: text-decoration-color var(--dur-fast) var(--ease); }
.property-app .app-footer-copy { min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.property-app .app-footer-copy:active { transform: scale(.97); }
.property-app .app-footer-copy.is-copied { background: var(--navy); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
    .property-app .app-footer-mail:hover { text-decoration-color: currentColor; }
    .property-app .app-footer-copy:not(.is-copied):hover { box-shadow: inset 0 0 0 1px var(--n-300); }
}

/* The directory: one row per floor, label on the left, destinations on the right */
.property-app .app-footer-directory { grid-column: 6 / -1; }
.property-app .app-footer-directory dl { margin: 0; }
.property-app .directory-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: baseline; gap: 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.property-app .directory-row:last-child { border-bottom: 1px solid var(--line); }
.property-app .directory-row dt { color: var(--muted); font-size: 13px; font-weight: 500; line-height: 24px; }
.property-app .directory-row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.property-app.property-app :where(.directory-row dd a, .directory-row dd button) { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 17px; font-weight: 500; line-height: 24px; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; cursor: pointer; transition: text-decoration-color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.directory-row dd a, .directory-row dd button):hover { text-decoration-color: currentColor; } }
@media (max-width: 900px) {
    .property-app .app-footer-grid { grid-template-columns: minmax(0, 1fr); }
    .property-app :is(.app-footer-desk, .app-footer-directory) { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    /* On a phone the directory becomes two columns of link groups: label over a short list. */
    .property-app .app-footer-grid { row-gap: 48px; }
    .property-app .app-footer-desk { gap: 16px; }
    .property-app .app-footer-mail { font-size: 24px; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
    .property-app .app-footer-directory dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 32px; border-top: 1px solid var(--line); }
    .property-app .directory-row { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 12px; padding: 0; border: 0; }
    .property-app .directory-row:last-child { border-bottom: 0; }
    .property-app .directory-row dd { flex-direction: column; align-items: flex-start; gap: 8px; }
    .property-app.property-app :where(.directory-row dd a, .directory-row dd button) { font-size: 15px; line-height: 24px; text-align: left; }
}
.property-app .footer-wordmark { overflow: visible; max-width: 1280px; margin: 96px auto 0; color: var(--navy); font-family: var(--sans); font-size: calc(min(1280px, 100vw - 64px) / 3.23); font-weight: 600; line-height: .8; letter-spacing: -.06em; text-indent: -.077em; white-space: nowrap; }
.property-app .footer-wordmark { position: relative; padding-bottom: .16em; }
/* Once the shader has drawn the cast letters, the set text stays for layout and fallback only. */
.property-app .footer-wordmark.is-cast { color: transparent; }
.property-app .wordmark-cast { position: absolute; display: block; pointer-events: none; }
/* The cast's shadow margin may run past the screen; the footer clips it so it never widens the page. */
.property-app .app-footer { overflow-x: clip; }
.property-app .app-footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.property-app .app-footer-legal-note a { color: var(--ink); text-decoration-color: var(--gold); }

/* ===== Pagination ===== */
.property-app .pagination { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.property-app .pagination p { color: var(--muted); font-size: 13px; }
.property-app.property-app :where(.pagination-page, .pagination-direction) { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.property-app .pagination-page.is-current { background: var(--navy); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .property-app.property-app :where(.pagination-page, .pagination-direction):not(.is-current):hover { border: 0; background: var(--n-100); color: var(--ink); transform: none; } }
.property-app.property-app :where(.pagination-page, .pagination-direction):active { transform: scale(.95); }

@media (max-width: 620px) {
    /* One row on a phone: the count on the left, the page controls grouped on the right. */
    .property-app .pagination { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
    .property-app .pagination-links { width: auto; justify-content: flex-end; gap: 4px; }
    .property-app .pagination-direction { width: 40px; padding: 0; }
    /* The label leaves the screen but stays the link's name for screen readers. */
    .property-app .pagination-direction span { position: absolute; display: inline; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ===== Accordion ===== */
.property-app .faq-item { border-bottom: 1px solid var(--line); }
.property-app .faq-item button { min-height: 72px; grid-template-columns: minmax(0, 1fr) 32px; padding: 16px 0; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 26px; letter-spacing: -.01em; }
.property-app .faq-item button .premium-icon { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--n-100); color: var(--ink); box-sizing: border-box; transition: transform var(--dur) var(--ease), background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.property-app .faq-item.is-open button .premium-icon { background: var(--navy); color: #fff; }
.property-app .faq-panel p { padding: 0 48px 24px 0; color: var(--body); font-size: 15px; line-height: 24px; }

/* ===== Conversation ===== */
.property-app .chat-bubble { max-width: 76%; padding: 12px 16px; border: 0; border-radius: 20px; }
.property-app .chat-bubble p { font-size: 14px; line-height: 22px; }
.property-app .chat-bubble.is-mine { border-bottom-right-radius: 6px; background: var(--navy); color: #fff; }
.property-app .chat-bubble.is-mine small { color: rgba(255, 255, 255, .7); }
.property-app .chat-bubble.is-theirs { border: 0; border-bottom-left-radius: 6px; background: var(--n-100); }
.property-app .chat-compose { border-top: 1px solid var(--rule); }

/* ===== Price instrument (filters) ===== */
.property-app .price-instrument { margin-bottom: 8px; }
.property-app .dual-range { position: relative; height: 56px; margin: 4px 0 0; }
.property-app .price-bars { position: absolute; top: 0; right: 10px; left: 10px; height: 40px; gap: 4px; border: 0; }
.property-app .price-bars i { border-radius: 3px 3px 0 0; background: var(--n-150); }
.property-app .price-bars i.is-in-range { background: var(--navy); }
.property-app .range-track { position: absolute; top: 44px; right: 10px; left: 10px; height: 4px; border-radius: var(--radius-pill); background: var(--n-150); }
.property-app .range-track i { position: absolute; top: 0; bottom: 0; height: auto; border-radius: inherit; background: var(--navy); }
.property-app .dual-range input[type="range"] { top: 0; height: 56px; }
.property-app .dual-range input[type="range"]::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.property-app .dual-range input[type="range"]::-webkit-slider-thumb { width: 20px; height: 56px; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: grab; }
.property-app .dual-range input[type="range"]::-moz-range-track { height: 56px; background: transparent; }
.property-app .dual-range input[type="range"]::-moz-range-thumb { width: 20px; height: 56px; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: grab; }
.property-app .dual-range::before, .property-app .dual-range::after { content: ""; position: absolute; z-index: 1; top: 36px; width: 20px; height: 20px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px var(--navy), var(--shadow-2); pointer-events: none; transition: transform var(--dur-press) var(--ease); }
.property-app .dual-range::before { left: calc(10px + (100% - 20px) * var(--min-f)); }
.property-app .dual-range::after { left: calc(10px + (100% - 20px) * var(--max-f)); }
.property-app .dual-range:active::before, .property-app .dual-range:active::after { transform: scale(1.1); }
.property-app .dual-range:has(input:focus-visible)::before, .property-app .dual-range:has(input:focus-visible)::after { box-shadow: 0 0 0 1.5px var(--navy), 0 0 0 5px rgba(15, 23, 42, .1); }
.property-app .price-readout { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.property-app .price-readout > div { display: grid; gap: 2px; }
.property-app .price-readout > div + div { text-align: right; }
.property-app .price-readout small { color: var(--muted); font-size: 12px; line-height: 16px; }
.property-app.property-app :where(.dual-range output, .price-readout output) { position: static; font-size: 18px; font-weight: 500; line-height: 24px; letter-spacing: var(--track-head); }
.property-app .price-rail-note { margin: 8px 0 12px; }

/* ===== Price ladder: this listing among live listings of the same kind, cheapest first ===== */
.property-app .price-rank { display: grid; gap: 4px; margin: 0 0 16px; }
.property-app .price-rank strong { color: var(--ink); font-size: 28px; font-weight: 500; line-height: 32px; letter-spacing: var(--track-display); }
.property-app .price-rank span { color: var(--body); font-size: 14px; line-height: 20px; }
.property-app .price-ladder { --bar-area: 96px; position: relative; height: calc(var(--bar-area) + 24px); }
/* Slim columns spread across the chart, ends on its edges; they start at zero so heights compare honestly. */
.property-app .price-ladder-bars { position: absolute; right: 0; bottom: 0; left: 0; height: var(--bar-area); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--ladder-gap, 4px); box-shadow: 0 1px 0 var(--line-strong); }
.property-app .price-ladder-bars i { position: relative; flex: 1 1 0; min-width: 1px; max-width: 32px; height: calc(var(--h, .1) * 100%); border-radius: 999px 999px 0 0; background: var(--n-200); transition: background-color var(--dur) var(--ease); }
.property-app .price-ladder-bars i.is-current { background: var(--navy); }
/* Only the current column shows its price; it leans inward at either end so it never leaves the chart. */
.property-app .price-ladder-bars i.is-current::after { content: attr(data-label); position: absolute; bottom: calc(100% + 8px); left: 50%; color: var(--ink); font-size: 13px; font-style: normal; font-weight: 600; line-height: 16px; white-space: nowrap; translate: calc(-1 * var(--x, .5) * 100%) 0; animation: ladder-label-in var(--dur) var(--ease) both; }
@keyframes ladder-label-in { from { opacity: 0; transform: translateY(4px); } }
.property-app .price-ladder-ends { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 16px; }
.property-app .listing-price-rail { max-width: 560px; }
.property-app .listing-price-rail .price-rank { margin-top: 16px; }

/* ===== Gallery and media ===== */
#detail-image { cursor: zoom-in; }
.property-app .photo-nav { position: absolute; z-index: 3; top: calc(50% - 20px); }
.property-app .photo-prev { left: 16px; }
.property-app .photo-next { right: 16px; }
.property-app .photo-open { position: absolute; z-index: 3; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border: 0; border-radius: var(--radius-pill); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.property-app .photo-open:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) { .property-app .photo-open:hover { background: #fff; box-shadow: var(--shadow-2); } }
.property-app .map-preview { position: relative; height: 240px; overflow: hidden; margin: 0; border-radius: var(--radius-inner); background: var(--n-100); }
/* The embed cannot take a custom map style, so it is set in monochrome to sit in the site's palette. */
.property-app .map-preview iframe { width: 100%; height: 100%; display: block; border: 0; filter: grayscale(1) contrast(1.04) brightness(1.04); }
.property-app .map-preview::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); pointer-events: none; }
.property-app .map-pin { position: absolute; z-index: 1; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(15, 23, 42, .1); pointer-events: none; }
.property-app .map-pin::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #fff, var(--shadow-2); }
.property-app .map-open { display: inline-flex; align-items: center; gap: 4px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--n-300); text-underline-offset: 4px; transition: text-decoration-color var(--dur-fast) var(--ease); }
.property-app .map-open .premium-icon { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .property-app .map-open:hover { text-decoration-color: currentColor; } }
.property-app .real-map-frame { height: 360px; border-radius: var(--radius-panel); background: var(--n-100); }
.property-app .real-map-frame.is-google iframe { filter: grayscale(1) contrast(1.04) brightness(1.04); }
.property-app .real-map-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06); pointer-events: none; }
.property-app .location-section .section-heading-split { align-items: flex-end; margin-bottom: 24px; }
.property-app .location-section .section-heading-split h2 { margin: 0; }
.property-app .map-place { margin: 8px 0 0; color: var(--body); font-size: 16px; font-weight: 500; line-height: 24px; }
.property-app .upload-zone { border: 1.5px dashed var(--n-300); border-radius: 20px; background: var(--n-50); }
@media (hover: hover) and (pointer: fine) { .property-app .upload-zone:hover { border-color: var(--navy); background: #fff; } }
.property-app .upload-zone:focus-within { border-color: var(--navy); background: #fff; box-shadow: var(--ring); }
.property-app .upload-zone-cover.has-image .upload-zone-hint { border-radius: var(--radius-pill); box-shadow: var(--shadow-1); }
.property-app .editor-image-preview { border-radius: var(--radius-inner); }

/* ===== Listing page ===== */
.property-app .listing-breadcrumb { min-height: 64px; }
.property-app .listing-breadcrumb a { color: var(--ink); }
.property-app .listing-gallery { margin: 0 32px; gap: 8px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.property-app .gallery-cell { overflow: hidden; border-radius: var(--radius-inner); }
.property-app .gallery-cell-1 { border-radius: var(--radius-panel); }
.property-app .listing-content-grid { gap: 64px; padding: 48px 32px 0; }
.property-app .listing-price strong { font-size: 36px; font-weight: 500; line-height: 44px; letter-spacing: var(--track-display); }
.property-app .listing-facts { gap: 12px; margin-top: 32px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.property-app .listing-facts span { gap: 4px; padding: 16px 24px; border: 0; border-radius: var(--radius-inner); background: #fff; color: var(--muted); font-size: 13px; }
.property-app .listing-facts span:first-child { padding-left: 24px; }
.property-app .listing-facts strong { font-size: 24px; font-weight: 500; line-height: 32px; letter-spacing: var(--track-head); }
.property-app .dossier-section { padding-top: 48px; }
.property-app .listing-description, .property-app .listing-copy { font-size: 16px; line-height: 26px; }
.property-app .listing-copy h3 { font-size: 22px; font-weight: 500; line-height: 30px; }
.property-app .listing-copy > h3:first-child { font-size: 26px; line-height: 34px; }
.property-app .copy-list li::before { background: var(--gold); }
.property-app .copy-prices { padding: 8px 24px; border-radius: var(--radius-inner); background: #fff; box-shadow: none; }
.property-app .copy-prices dd { font-size: 20px; font-weight: 500; }
.property-app .amenity-grid span { min-height: 40px; }
.property-app .listing-contact-card { padding: 32px; }
.property-app .listing-contact-card > p:not(.contact-trust) { margin: 8px 0 24px; }
.property-app .listing-title-row p { margin-top: 8px; }
.property-app .section-heading-split a { color: var(--ink); font-weight: 500; }

/* ===== Auth ===== */
.property-app .auth-spotlight { margin: 16px 0 16px 16px; overflow: hidden; border-radius: var(--radius-panel); }
/* Same frosted listing pill as the home hero */
.property-app .spotlight-property { grid-template-columns: minmax(0, 1fr) auto 32px; padding: 8px 8px 8px 20px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 12px 32px -16px rgba(10, 16, 32, .4); transition: background-color var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease); }
.property-app .spotlight-property strong { font-size: 14px; line-height: 20px; }
.property-app .spotlight-property em { color: var(--body); font-size: 12px; line-height: 16px; }
.property-app .spotlight-property b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.property-app .spotlight-property > .premium-icon { display: block; width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--navy); color: #fff; transition: background-color var(--dur-fast) var(--ease); }
@media (hover: hover) and (pointer: fine) {
    .property-app .spotlight-property:hover { background: #fff; }
    .property-app .spotlight-property:hover > .premium-icon { background: var(--gold); color: var(--navy); }
}
.property-app .auth-panel { background: #fff; }
.property-app .auth-lead { margin: 8px 0 32px; font-size: 15px; line-height: 22px; }
.property-app .auth-form { gap: 24px; }
.property-app .auth-alt a, .property-app .auth-form label > span:first-child a { color: var(--ink); text-decoration-color: var(--n-300); }
.property-app .auth-divider { margin: 24px 0; }
.property-app .auth-divider::before, .property-app .auth-divider::after { background: var(--rule); }

/* ===== Info pages ===== */
.property-app .info-page { padding-top: 64px; }
.property-app .info-masthead .info-lead { font-size: 17px; line-height: 28px; }
.property-app .info-hero img { border-radius: var(--radius-panel); }
.property-app .info-section { padding: 64px 0; border-top: 1px solid var(--line); }
.property-app .editorial-row { padding: 24px 0; border-top: 1px solid var(--rule); }
.property-app .editorial-row:first-child { padding-top: 0; border-top: 0; }
.property-app .editorial-row p, .property-app .info-section p.lead { color: var(--body); font-size: 15px; line-height: 24px; }
/* The white band is a framed plate with its own inset, so the copy never touches its edge */
.property-app .info-band { padding: 64px; border: 0; border-radius: var(--radius-panel); background: #fff; box-shadow: none; }
.property-app .info-band + .info-section { border-top: 0; }
/* Closing call to action: the navy band, same as the home page close */
.property-app.property-app .info-cta { padding: 64px; background: radial-gradient(80% 120% at 85% 50%, #1e2a44 0%, var(--navy) 70%); }
.property-app.property-app .info-cta :is(h2, p) { color: #fff; }
.property-app.property-app .info-cta p { color: rgba(255, 255, 255, .78); }
.property-app.property-app .info-cta .ui-button-primary { background: #fff; color: var(--navy); }
.property-app.property-app .info-cta .ui-button-secondary { background: rgba(255, 255, 255, .1); color: #fff; }
@media (hover: hover) and (pointer: fine) {
    .property-app.property-app .info-cta .ui-button-primary:hover { background: var(--gold-100); }
    .property-app.property-app .info-cta .ui-button-secondary:hover { background: rgba(255, 255, 255, .18); }
}
.property-app .contact-form-card { padding: 32px; }
.property-app .contact-aside-row { padding: 24px 0; border-top: 1px solid var(--rule); }
.property-app .contact-aside-row > a { font-size: 24px; font-weight: 500; line-height: 32px; letter-spacing: var(--track-head); }
.property-app .contact-aside-row .card-link { font-size: 14px; line-height: 20px; letter-spacing: 0; }
/* The aside is a navy plate holding the direct contacts and the model, so the render stands on something */
.property-app .contact-aside { padding: 40px 40px 0; overflow: hidden; border-radius: var(--radius-panel); background: radial-gradient(90% 60% at 70% 100%, #1e2a44 0%, var(--navy) 75%); color: rgba(255, 255, 255, .78); }
.property-app .contact-aside-row { border-top-color: rgba(255, 255, 255, .12); }
.property-app .contact-aside-row:first-child { border-top: 0; }
.property-app .contact-aside-row > a, .property-app .contact-aside-row .card-link { color: #fff; }
.property-app .contact-aside-row p { color: rgba(255, 255, 255, .78); }
.property-app .contact-model { width: 180px; margin: 8px auto 32px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .4)); }
@media (max-width: 900px) { .property-app .contact-aside { padding: 32px 24px 8px; } .property-app .contact-model { display: none; } }
.property-app .legal-prose :is(p, li) { font-size: 15px; line-height: 24px; }

/* ===== Admin shell ===== */
/* The account area shares this shell; its menu head carries the signed-in email. */
.property-app .account-sidebar .admin-sidebar-head > span { min-width: 0; display: grid; gap: 2px; }
.property-app .account-sidebar .admin-sidebar-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.property-app .account-profile-card { max-width: 768px; }
.property-app .account-profile-card .app-form > button { justify-self: start; }
/* Photo cards keep their 4:3 frame; the img's height attribute only reserves space. */
.property-app :is(.saved-property-grid, .related-grid) img { height: auto; }
.property-app .admin-shell { gap: 32px; padding: 32px 32px 96px; }
.property-app .admin-sidebar nav { --motion-bg: #fff; --motion-radius: 12px; gap: 2px; }
.property-app .admin-sidebar nav[data-motion-switch]::before { box-shadow: var(--shadow-1); }
.property-app .admin-sidebar nav a { min-height: 40px; gap: 12px; padding: 0 12px; border-radius: var(--radius-control); color: var(--muted); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .property-app .admin-sidebar nav a:hover { background: rgba(255, 255, 255, .6); color: var(--ink); } }
.property-app .admin-sidebar nav a.is-active { color: var(--ink); }
.property-app .admin-sidebar-head strong { font-size: 16px; }
.property-app .admin-sidebar-foot { border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
    /* One row of tabs that scrolls sideways under a soft edge fade; the current tab is a raised pill. */
    /* minmax(0, 1fr): the menu row scrolls inside the column instead of widening the page. */
    .property-app .admin-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 24px 64px; overflow-x: clip; }
    .property-app .admin-sidebar { position: static; display: block; min-width: 0; margin-inline: -24px; overflow: visible; }
    .property-app .admin-sidebar nav { display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 24px; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
    .property-app .admin-sidebar nav::-webkit-scrollbar { display: none; }
    .property-app .admin-sidebar nav[data-motion-switch]::before { display: none; }
    .property-app .admin-sidebar nav a { flex: none; min-height: 40px; padding: 0 12px; border-radius: var(--radius-pill); white-space: nowrap; }
    .property-app .admin-sidebar nav a .premium-icon { display: none; }
    .property-app .admin-sidebar nav a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
}
@media (max-width: 620px) {
    .property-app .admin-shell { padding: 16px 16px 48px; }
    .property-app .admin-sidebar { margin-inline: -16px; }
    .property-app .admin-sidebar nav { padding-inline: 16px; -webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
}
.property-app .side-count { color: var(--muted); }
.property-app .admin-content { gap: 24px; }
/* Activity rows (account overview, notifications page): heading, icons and text share one 24px left edge. */
.property-app .portal-card.notifications-list-card { padding: 8px; }
.property-app .notifications-list-card > .portal-card-heading { margin: 0; padding: 16px 16px 8px; }
.property-app .notifications-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; min-height: 64px; padding: 12px 16px; border-radius: var(--radius-inner); color: var(--ink); text-decoration: none; transition: background-color var(--dur-fast) var(--ease); }
.property-app .notifications-row-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--n-100); color: var(--ink); }
.property-app .notifications-row-icon .premium-icon { width: 18px; height: 18px; stroke-width: 1.6; }
.property-app .notifications-row.is-unread .notifications-row-icon { background: var(--gold-100); color: var(--gold-ink); }
.property-app .notifications-row-body { gap: 2px; }
.property-app .notifications-row-body small { color: var(--muted); font-size: 13px; line-height: 20px; }
.property-app .notifications-row-meta time { font-weight: 400; }
.property-app .notifications-row:not([href]) { cursor: default; }
@media (hover: hover) and (pointer: fine) { .property-app .notifications-row[href]:hover { background: var(--n-50); } }
@media (max-width: 620px) {
    .property-app .notifications-row { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
    .property-app .notifications-row-meta { grid-column: 2; justify-self: start; }
}

/* ===== Responsive ===== */
@media (max-width: 1240px) {
    .property-app .mobile-nav-trigger { width: 44px; height: 44px; }
    .property-app .app-header.is-guest .header-signin { min-height: 40px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 1100px) {
    .property-app.property-app :where(.save-card, .detail-save, .detail-close, .photo-nav) { width: 44px; height: 44px; }
    .property-app.property-app :where(.check-row, .filter-chip, .radio-row) { min-height: 44px; }
    .property-app.property-app :where(.field-pair input, .table-search input, .global-search input, .mobile-menu-search input, .lp-search-field input) { font-size: 16px; }
}
@media (max-width: 760px) {
    .property-app .app-footer { padding: 64px 16px 24px; }
    .property-app .footer-wordmark { margin-top: 48px; font-size: calc((100vw - 32px) / 3.23); }
    .property-app .portal-page { padding: 24px 16px 64px; }
    .property-app.property-app :where(.portal-hero h1, .admin-page-head h1, .listing-title-row h1) { font-size: 32px; line-height: 40px; }
    .property-app .portal-card { padding: 24px; }
    .property-app .listing-gallery { margin: 0 16px; }
    .property-app .auth-spotlight { margin: 0; border-radius: 0; }
    .property-app .contact-form-card, .property-app .listing-contact-card, .property-app .contact-modal-card, .property-app .save-sheet-card, .property-app .admin-modal-card { padding: 24px; }
    .property-app.property-app .info-cta, .property-app .info-band { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .property-app.property-app :where(.filter-chip::before, .toggle-field > span i, .cselect-list, .cselect-trigger svg) { transition: none; }
    .property-app.property-app :where(a.metric-card, .related-grid a, .saved-property-grid a):hover { transform: none; }
}

/* Long listing copy previews in the inspector; the listing page has it all. */
#detail-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; }
.property-app .detail-more { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 500; text-underline-offset: 4px; }
.listing-description { overflow-wrap: anywhere; }
.listing-copy { max-width: 68ch; display: grid; gap: 16px; }
.listing-copy p { margin: 0; }
.listing-copy h3 { margin: 16px 0 -8px; }
.listing-copy > h3:first-child { margin-top: 0; }
.listing-copy a { color: var(--ink); font-weight: 500; white-space: nowrap; text-underline-offset: 3px; }
.copy-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.copy-list li { position: relative; padding-left: 16px; }
.copy-list li::before { content: ""; position: absolute; top: 10px; left: 0; width: 6px; height: 6px; border-radius: 50%; }
.copy-prices { margin: 0; }
.copy-prices > div { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.copy-prices > div + div { border-top: 1px solid var(--rule); }
.copy-prices dt { min-width: 0; }
.copy-prices dd { flex: none; margin: 0; line-height: 28px; }

/* Photo viewer layout */
.photo-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--ink); }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.photo-viewer::backdrop { background: #fff; }
.viewer-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 16px; }
.viewer-bar strong { overflow: hidden; line-height: 28px; text-overflow: ellipsis; white-space: nowrap; }
.viewer-bar span { color: var(--muted); }
.viewer-stage { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 96px; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-nav { position: absolute; top: calc(50% - 24px); }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
.viewer-thumbs { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 16px 32px 24px; }
.viewer-thumbs button { flex: none; overflow: hidden; padding: 0; border: 0; background: var(--n-100); opacity: .55; transition: opacity var(--dur-fast) var(--ease); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.is-single .viewer-nav, .is-single .viewer-thumbs { display: none; }
@media (hover: hover) and (pointer: fine) { .viewer-thumbs button:hover { opacity: 1; } }
.viewer-thumbs button[aria-current="true"] { opacity: 1; }
@media (max-width: 720px) {
    .viewer-bar { padding-left: 16px; }
    .viewer-stage { padding: 0; }
    .viewer-nav { top: auto; bottom: 8px; }
    .viewer-thumbs { justify-content: flex-start; padding: 12px 16px 16px; }
}
