/* Shared web theme. Colors and radii follow BuyerModels / BuyerSharedViews.swift.
   Loaded after legacy page styles; scoped to buyer and public account screens. */
.fazzie-web {
    height: auto;
    min-height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    background: #141414;
}

.fazzie-app {
    --fz-background: #141414;
    --fz-surface: #1f1f1f;
    --fz-input: #292929;
    --fz-green: #4caf50;
    --fz-muted: #b8b8b8;
    --fz-border: rgba(255, 255, 255, .1);
    --fz-header: calc(64px + env(safe-area-inset-top, 0px));
    --fz-nav: calc(94px + env(safe-area-inset-bottom, 0px));
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #f5f5f5;
    background: var(--fz-background);
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
}

.fazzie-app .main-content {
    position: relative;
    z-index: auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding: calc(var(--fz-header) + 20px) 24px calc(var(--fz-nav) + 24px);
    gap: 16px;
    justify-content: flex-start;
    background: var(--fz-background);
    animation: none;
    text-shadow: none;
    overflow: visible;
}

.fazzie-app :is(h1, h2, h3, p, label, .property-info, .property-card) { text-shadow: none; }
.fazzie-app h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.035em; }
.fazzie-app h2 { font-size: 22px; letter-spacing: -.025em; }
.fazzie-app h3 { font-size: 18px; }
.fazzie-app :is(button, input, select, textarea) { font-family: inherit; }
.fazzie-app :is(button, a, input, select, textarea, summary):focus-visible {
    outline: 3px solid #8bd98e;
    outline-offset: 3px;
}
.fazzie-app :is(button, a) { -webkit-tap-highlight-color: transparent; }
.fazzie-app button { min-height: 44px; border-radius: 14px; font-weight: 600; }
.fazzie-app button:disabled { opacity: .5; cursor: not-allowed; }

/* Native-style header and horizontally scrollable tab bar. */
.fazzie-app .banner {
    height: var(--fz-header);
    padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
    gap: 16px;
    background: var(--fz-background);
    border-bottom: 1px solid var(--fz-border);
    z-index: 950;
}
.fazzie-app .company-name { font-size: 30px; line-height: 1; }
.fazzie-app .page-title { margin-right: auto; color: var(--fz-muted); font-size: 14px; font-weight: 500; }
.fazzie-app .dropdown-button { width: 44px; height: 44px; padding: 0; margin: 0; font-size: 24px; }
.fazzie-app .dropdown-content {
    top: 48px;
    width: 240px;
    max-width: calc(100vw - 40px);
    max-height: calc(100dvh - var(--fz-header) - 24px);
    overflow-y: auto;
    padding: 8px;
    background: var(--fz-surface);
    border: 1px solid var(--fz-border);
    border-radius: 18px;
    box-shadow: 0 16px 40px #0008;
}
.fazzie-app .dropdown-content a {
    min-height: 44px;
    margin: 2px 0;
    padding: 10px 12px;
    text-align: left;
    background: transparent;
    border-radius: 10px;
    box-shadow: none;
    text-shadow: none;
}
.fazzie-app .dropdown-content a:hover { background: var(--fz-input); color: #fff; }
.fazzie-app .use-app-button { margin-left: auto; min-height: 36px; border-radius: 10px; }
.fazzie-app .buyer-tabs {
    position: fixed;
    z-index: 900;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    display: flex;
    width: max-content;
    max-width: calc(100% - 24px);
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
    background: rgba(31, 31, 31, .98);
    border: 1px solid var(--fz-border);
    border-radius: 22px;
    box-shadow: 0 6px 28px #0006;
}
.fazzie-app .buyer-tab {
    flex: 0 0 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 56px;
    border-radius: 14px;
    color: var(--fz-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}
.fazzie-app .buyer-tab i { font-size: 20px; }
.fazzie-app .buyer-tab:hover { background: #ffffff08; color: #fff; }
.fazzie-app .buyer-tab[aria-current="page"] { color: var(--fz-green); background: #4caf5014; }

/* Form fields retain their existing names, values, and behavior. */
.fazzie-app :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea) {
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--fz-border);
    border-radius: 12px;
    background: var(--fz-input);
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: none;
}
.fazzie-app input::placeholder { color: #aaa; opacity: 1; }
.fazzie-app :is(input[type="checkbox"], input[type="radio"], input[type="range"]) { accent-color: var(--fz-green); }
.fazzie-app input[type="radio"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.fazzie-app input[type="radio"]:focus-visible + label { outline: 2px solid #8bd98e; outline-offset: 3px; }
.fazzie-app :is(.green-button, .action-button, .login-button, .submit-button, .home-button, .looks-good-button, .apply-filters-button, .floating-button, .reset-button) {
    background: var(--fz-green);
    color: #102312;
    font-size: 16px;
    font-weight: 650;
    border: 0;
    border-radius: 14px;
    min-height: 48px;
    box-shadow: none;
    text-shadow: none;
}
.fazzie-app :is(.green-button, .action-button, .login-button, .submit-button, .home-button, .looks-good-button, .apply-filters-button, .floating-button, .reset-button):hover { background: #66bf69; }
.fazzie-app :is(.modal-content, .modal-card, .overlay-content, .property-overlay-content) {
    background: var(--fz-surface);
    color: #f5f5f5;
    border: 1px solid var(--fz-border);
    border-radius: 22px;
    box-shadow: 0 20px 60px #0008;
    max-height: 85dvh;
    overflow-y: auto;
    text-shadow: none;
}

/* Swipe: one large photo, quieter details, and reachable circular actions. */
.fazzie-swipe .main-content { gap: 18px; }
.fazzie-swipe #image-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--fz-surface);
    border: 1px solid var(--fz-border);
    border-radius: 22px;
}
.fazzie-swipe .image-card-header {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    padding: 18px 20px 12px;
    margin: 0;
}
.fazzie-swipe .header-info { align-items: flex-start; }
/* Legacy swipe rules force Calibri and normal weight with !important. */
.fazzie-swipe .image-card-header h3 { font-family: inherit !important; font-weight: 600 !important; text-align: left; text-shadow: none; }
.fazzie-swipe #listing-address { font-size: 21px; letter-spacing: -.025em; }
.fazzie-swipe #listing-city-state-zip { font-size: 14px; color: var(--fz-muted); margin-top: 3px; }
.fazzie-swipe .price-undo-container { width: 100%; margin: 8px 0 0; min-height: 44px; }
.fazzie-swipe .undo-button-overlay { position: static; width: 44px; height: 44px; background: var(--fz-input); color: #e7bc65; box-shadow: none; }
.fazzie-swipe #listing-price { height: auto; margin: 0; font-size: 22px; color: var(--fz-green); text-align: right; }
.fazzie-swipe .listing-badges { flex-wrap: wrap; }
.fazzie-swipe :is(.recommended-badge, .promoted-badge) { margin: 4px 0 0; padding: 4px 10px; font-size: 12px; box-shadow: none; }
.fazzie-swipe .recommended-badge { background: #4caf5026; color: #8bd98e; }
.fazzie-swipe #image-container { height: clamp(240px, 46dvh, 480px); max-height: none; aspect-ratio: auto; border-radius: 0; }
.fazzie-swipe #listing-image { display: block; width: 100%; height: 100%; margin: 0; border-radius: 0; object-fit: cover; }
.fazzie-swipe .fullscreen-photo-button { position: absolute; right: 10px; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #ffffff40; border-radius: 50%; background: #0009; color: #fff; font-size: 20px; cursor: pointer; }
.fazzie-swipe .fullscreen-photo-button:hover { background: #000c; }
.fazzie-swipe :is(.fullscreen-photo-button, .close-zoom):focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.fazzie-swipe .close-zoom { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #ffffff1a; font-size: 32px; line-height: 1; }
.fazzie-swipe .image-indicators { position: absolute; top: 10px; width: 100%; padding: 0 12px; }
.fazzie-swipe .indicator { flex: 1; height: 3px; max-width: 32px; border-radius: 3px; }
.fazzie-swipe .image-card-footer { inset: auto; transform: none; max-width: none; width: 100%; padding: 16px 20px; margin: 0; font-size: 14px; text-shadow: none; }
.fazzie-swipe .button-footer { position: relative; inset: auto; width: 100%; }
.fazzie-swipe .button-row-container { margin: 0; gap: 14px; flex-wrap: nowrap; }
.fazzie-swipe .button-wrapper { flex-shrink: 0; width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 50%; background: var(--fz-surface); border: 1px solid var(--fz-border); box-shadow: none; font-size: 21px; }
.fazzie-swipe .button-wrapper.large-button { width: 62px; height: 62px; font-size: 25px; }
.fazzie-swipe .like-button-overlay { color: var(--fz-green) !important; }
.fazzie-swipe .dislike-button-overlay { color: #ff6965; }
.fazzie-swipe .info-button-overlay { color: #d0d0d0; }

/* Preferences: scroll the document, not a viewport-height box inside it. */
.fazzie-preferences .main-content { max-width: 800px; margin: auto; gap: 16px; }
.fazzie-preferences .saved-search-toolbar { position: relative; width: 100%; height: auto; margin: 0; padding: 0; justify-content: flex-start; }
.fazzie-preferences .saved-search-button { background: var(--fz-surface); border: 1px solid var(--fz-border); min-height: 48px; }
.fazzie-preferences .section-selector { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; margin: 0 !important; padding: 6px; border-radius: 16px; background: var(--fz-surface); }
.fazzie-preferences .section-selector label { flex: 1 0 auto; margin: 0; padding: 10px 12px; font-size: 14px; border-radius: 10px; background: transparent; border: 0; color: var(--fz-muted); box-shadow: none; }
.fazzie-preferences .section-selector label:has(input:checked) { background: #4caf5026; color: #8bd98e; }
.fazzie-preferences .section-selector label:focus-within { outline: 2px solid #8bd98e; }
.fazzie-preferences #accordion-container { width: 100%; max-width: none; height: auto; min-height: 0; padding: 0; margin: 0; overflow: visible; }
.fazzie-preferences #accordion-container .accordion-content { width: 100%; max-width: none; padding: 24px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 20px; }
.fazzie-preferences .question { margin: 0 0 24px; font-size: 21px; line-height: 1.35; text-align: left; }
.fazzie-preferences .radio-group { gap: 10px; }
.fazzie-preferences .radio-button { min-height: 48px; padding: 12px 16px; font-size: 16px; background: var(--fz-input); border: 1px solid var(--fz-border); border-radius: 12px; box-shadow: none; }
.fazzie-preferences .radio-group input:checked + label { background: #4caf5026; border-color: var(--fz-green); color: #8bd98e; }
.fazzie-preferences :is(.price-section, .features-section, .size-section, .fazzie-section) { width: 100%; max-width: none; }
.fazzie-preferences :is(.price-row, .features-keywords, .size-row) { width: 100%; max-width: none; gap: 16px; padding: 10px 0; }
.fazzie-preferences :is(.price-row, .features-keywords, .size-row) label { font-size: 14px; }
.fazzie-preferences #sizeInfo .input-group { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: none; margin: 0 0 16px; gap: 8px; }
.fazzie-preferences #sizeInfo .input-group label { width: auto; margin: 0; font-size: 14px; text-align: left; }
.fazzie-preferences #sizeInfo .input-group select { width: 100%; max-width: none; margin: 0; font-size: 16px; }
.fazzie-preferences #sizeInfo .input-group > div { width: 100%; min-width: 0; align-items: center; }
.fazzie-preferences #sizeInfo .input-group > div select { flex: 1; width: 0; }
.fazzie-preferences .features-checkbox-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); width: 100%; gap: 8px 16px; }
.fazzie-preferences .features-checkbox-group label { width: 100%; max-width: none; min-height: 44px; font-size: 14px; justify-content: space-between; gap: 16px; text-align: left; }
.fazzie-preferences :is(.price-section, .fazzie-section) .disclaimer { font-size: 13px; line-height: 1.5; color: var(--fz-muted); }
.fazzie-preferences #saleTypeSection :is(.sale-type-dropdown select, .structure-type-dropdown .dropdown-toggle) { min-height: 48px; height: auto; line-height: 1.4; font-size: 16px; margin-bottom: 0; background: var(--fz-input); border: 1px solid var(--fz-border); border-radius: 12px; }
.fazzie-preferences .preference-select { position: relative; width: 100%; min-width: 0; flex: 1; }
.fazzie-preferences .preference-select.is-open { z-index: 40; }
.fazzie-preferences .preference-select-native { display: none !important; }
.fazzie-preferences .preference-select-trigger { position: relative; display: block; width: 100%; min-height: 48px; margin: 0; padding: 12px 36px 12px 14px; border: 1px solid var(--fz-border); border-radius: 12px; background: var(--fz-input); color: #f5f5f5; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left; cursor: pointer; }
.fazzie-preferences .preference-select-trigger::after { content: '⌄'; position: absolute; right: 14px; top: 50%; transform: translateY(-60%); color: var(--fz-muted); }
.fazzie-preferences .preference-select-menu, .fazzie-preferences #home_type_options, .fazzie-preferences .saved-search-menu { position: absolute; top: calc(100% + 6px); left: 0; right: auto; width: 100%; max-width: 100%; max-height: min(280px, calc(100dvh - var(--fz-header) - var(--fz-nav) - 80px)); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--fz-border); border-radius: 12px; background: #292929; color: #f5f5f5; box-shadow: 0 12px 32px #0009; z-index: 40; font-size: 16px; line-height: 1.4; scroll-margin-bottom: calc(var(--fz-nav) + 16px); }
.fazzie-preferences .preference-select-menu[hidden] { display: none; }
/* Expand below the field so long menus push later controls clear of the tab bar. */
.fazzie-preferences .preference-select-menu { position: relative; top: auto; left: auto; margin-top: 6px; }
.fazzie-preferences .preference-select-option { display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left; white-space: normal; cursor: pointer; }
.fazzie-preferences .preference-select-option:is(:hover, :focus-visible), .fazzie-preferences .preference-select-option[aria-selected="true"] { background: #4caf5026; color: #b6edba; }
.fazzie-preferences .preference-select-option:focus-visible { outline-offset: -2px; }
.fazzie-preferences #sizeInfo .input-group > div { align-items: flex-start; }
.fazzie-preferences #sizeInfo .input-group > div > label { flex: 0 0 auto; align-self: start; padding-top: 12px; }
.fazzie-preferences #home_type_dropdown { position: relative; display: block; width: 100%; }
.fazzie-preferences #saleTypeSection .structure-type-dropdown { width: 100%; }
.fazzie-preferences #saleTypeSection .structure-type-dropdown .dropdown-toggle { width: 100%; }
.fazzie-preferences #home_type_options { position: relative; top: auto; margin-top: 6px; }
.fazzie-preferences #home_type_options label { min-height: 44px; margin: 0; padding: 10px 8px; font-size: 16px; font-weight: 500; line-height: 1.4; text-align: left; }
.fazzie-preferences #home_type_options input { width: 20px; height: 20px; flex-shrink: 0; }
.fazzie-preferences .saved-search-button { width: 100%; font-size: 16px; line-height: 1.4; padding: 12px 14px; }
.fazzie-preferences .saved-search-button .label { color: var(--fz-muted); }
.fazzie-preferences #savedSearchCurrent { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.fazzie-preferences .saved-search-button .chev { margin-left: auto; }
.fazzie-preferences .saved-search-item { min-height: 44px; padding: 0 4px; border-radius: 8px; font-size: 16px; }
.fazzie-preferences .saved-search-item:hover { background: var(--fz-input); }
.fazzie-preferences .saved-search-name { min-height: 44px; margin: 0; padding: 10px 8px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; color: #f5f5f5; }
.fazzie-preferences .saved-search-delete { width: 44px; min-width: 44px; height: 44px; margin: 0; background: transparent; }
.fazzie-preferences .looks-good-button { align-self: flex-end; margin: 0 !important; min-width: 100px; }
.fazzie-preferences .page-footer { width: 100%; margin: 8px 0 0; padding: 0; }
/* Override legacy fixed mobile CTA so it cannot cover the new tab bar. */
.fazzie-preferences #update-confirm-button { position: static !important; transform: none !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 48px; font-size: 16px; margin: 0; }

/* Finance and account cards. */
.fazzie-finance .main-wrapper { display: flex; flex-direction: column; align-items: stretch; gap: 20px; width: 100%; max-width: 680px; height: auto; min-height: 0; padding: 0; }
.fazzie-finance #max-values-container { position: static; z-index: auto; padding: 20px; border: 1px solid var(--fz-border); border-radius: 20px; background: var(--fz-surface); text-align: left; }
.fazzie-finance :is(#max-price-display, #max-payment-display) { margin: 0; text-align: left; font-size: 19px; line-height: 1.8; }
.fazzie-finance #max-price-display { color: #8bd98e; }
.fazzie-finance .form-container { width: 100%; max-width: none; margin: 0; padding: 0; text-align: left; text-shadow: none; }
.fazzie-finance #accordion-container { position: static; width: 100%; max-width: none; height: auto; max-height: none; padding: 0; gap: 12px; overflow: visible; }
.fazzie-finance .accordion-section { background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 18px; }
.fazzie-finance .accordion-header { margin: 0; background: var(--fz-surface); min-height: 58px; padding: 16px 20px; font-size: 16px; }
.fazzie-finance .accordion-header.open { color: #8bd98e; }
.fazzie-finance .field-group { display: block; margin-bottom: 16px; text-align: left; }
.fazzie-finance .looks-good-button { display: flex; align-items: center; justify-content: center; min-height: 48px; height: auto; padding: 12px 16px; line-height: 1.25; color: #fff; }
.fazzie-finance .form-label { display: block; width: 100%; margin-bottom: 8px; font-size: 14px; text-shadow: none; }
.fazzie-finance :is(.input-field, #credit_score) { width: 100%; max-width: none; margin: 8px 0; padding: 12px 14px; font-size: 16px; }
.fazzie-finance .field-group label[for="credit_score"] { width: 100%; text-align: left; }
.fazzie-finance .accordion-header { scroll-margin-top: calc(var(--fz-header) + 16px); }
/* Existing JS sets a pixel max-height before expanded padding is applied. */
.fazzie-finance .accordion-content.open { max-height: none !important; overflow: visible; }

/* Saved homes use full-width photos and a responsive card grid. */
/* Saved homes use the compact photo-and-summary rows from the iPhone app. */
.fazzie-listings .banner .dropdown:hover .dropdown-content:not(.show) { display: none; }
.fazzie-listings .main-content { gap: 12px; padding-top: calc(var(--fz-header) + 16px); }
.fazzie-listings .main-content > :is(.listing-toolbar, .listing-filters, .match-container) { width: 100%; max-width: 1120px; }
.fazzie-listings .listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.fazzie-listings .listing-toolbar h1 { margin: 0; font-size: 24px; line-height: 1.2; }
.fazzie-listings .listing-toolbar p { margin: 4px 0 0; font-size: 13px; color: var(--fz-muted); }
.fazzie-listings .view-on-map-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; padding: 10px 14px; margin: 0; background: var(--fz-input); color: #8bd98e; border: 1px solid var(--fz-border); border-radius: 12px; box-shadow: none; }
.fazzie-listings .view-on-map-button:hover { transform: none; background: var(--fz-surface); }
.fazzie-listings .listing-filters { border: 1px solid var(--fz-border); border-radius: 14px; background: var(--fz-surface); text-align: left; }
.fazzie-listings .listing-filters > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.fazzie-listings summary::-webkit-details-marker { display: none; }
.fazzie-listings .listing-filters > summary > .fa-chevron-down { margin-left: auto; font-size: 11px; color: var(--fz-muted); }
.fazzie-listings .listing-filters[open] > summary > .fa-chevron-down { transform: rotate(180deg); }
.fazzie-listings .filter-count { padding: 2px 7px; border-radius: 6px; color: #8bd98e; background: #4caf5026; font-size: 11px; }
.fazzie-listings .filter-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: 100%; padding: 4px 14px 14px; }
.fazzie-listings .filter-form label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 12px; color: var(--fz-muted); }
.fazzie-listings .filter-form input { width: 100%; min-width: 0; margin: 0; font-size: 16px; box-shadow: none; }
.fazzie-listings .filter-buttons { grid-column: 1 / -1; display: flex; gap: 10px; margin: 0; padding: 0; }
.fazzie-listings .filter-buttons :is(button, a) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: none; text-decoration: none; }
.fazzie-listings .apply-filters-button { color: #fff; }
.fazzie-listings .clear-filters-button { color: #eee; background: var(--fz-input); border: 1px solid var(--fz-border); }
.fazzie-listings .match-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: start; gap: 10px; margin: 0; padding: 0; }
.fazzie-listings .property-card { display: block; position: relative; width: 100%; max-width: none; margin: 0; padding: 12px; border: 1px solid var(--fz-border); border-radius: 16px; background: var(--fz-surface); box-shadow: none; overflow: hidden; }
.fazzie-listings .listing-open { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 88px; margin: 0; padding: 0 36px 0 0; border: 0; border-radius: 8px; background: transparent; color: #fff; font-weight: 400; text-align: left; cursor: pointer; }
.fazzie-listings .property-image-container { position: relative; display: flex; width: 88px; height: 76px; margin: 0; border-radius: 8px; background: var(--fz-input); }
.fazzie-listings .listing-image-placeholder { color: #888; font-size: 25px; }
.fazzie-listings .property-image { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; object-fit: cover; }
.fazzie-listings .property-image[hidden] { display: none; }
.fazzie-listings .listing-summary { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fazzie-listings .listing-price { font-size: 18px; line-height: 1.25; font-weight: 700; color: #fff; }
.fazzie-listings .listing-address { font-size: 14px; line-height: 1.35; color: #e0e0e0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.fazzie-listings .listing-location { font-size: 12px; line-height: 1.4; color: var(--fz-muted); overflow-wrap: anywhere; }
.fazzie-listings .listing-facts { display: flex; flex-wrap: wrap; column-gap: 8px; font-size: 11px; line-height: 1.6; color: var(--fz-muted); }
.fazzie-listings .listing-facts > span { white-space: nowrap; }
.fazzie-listings .listing-actions > summary { position: absolute; right: 4px; top: 8px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--fz-muted); cursor: pointer; list-style: none; }
.fazzie-listings .listing-actions[open] > summary { background: var(--fz-input); color: #fff; }
.fazzie-listings .listing-action-menu { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--fz-border); scroll-margin-bottom: calc(var(--fz-nav) + 16px); }
.fazzie-listings .listing-action-menu button { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 44px; height: auto; margin: 0; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--fz-input); color: #eee; font-size: 14px; line-height: 1.4; text-align: left; box-shadow: none; }
.fazzie-listings .listing-action-menu .move-to-dislikes { background: #ff69651a; color: #ffaaa7; }
.fazzie-listings .listing-action-menu .move-to-likes { background: #4caf5026; color: #8bd98e; }
.fazzie-listings .listing-action-menu .unmatch-button { background: #e7bc651a; color: #e7bc65; }
.fazzie-listings .listing-ranking { display: flex; gap: 6px; }
.fazzie-listings .share-options.show { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fazzie-listings .share-options button { flex-direction: column; gap: 3px; padding: 8px 4px; font-size: 12px; text-align: center; }
.fazzie-listings .listings-empty { grid-column: 1 / -1; padding: 48px 16px; text-align: center; }
.fazzie-listings .listings-empty > i { font-size: 32px; color: #8bd98e; }
.fazzie-listings .listings-empty h2 { margin: 16px 0 8px; font-size: 20px; }
.fazzie-listings .listings-empty p { margin: 0 auto 16px; max-width: 340px; font-size: 14px; color: var(--fz-muted); }
.fazzie-listings .listings-empty a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; background: #4caf5026; color: #8bd98e; text-decoration: none; }
.fazzie-listings #image-modal { z-index: 1600; background: #000f; }
.fazzie-listings #image-modal img { max-width: 100%; max-height: 90dvh; object-fit: contain; }
.fazzie-listings #image-modal :is(.modal-close, .modal-prev, .modal-next) { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #ffffff30; border-radius: 50%; background: #292929cc; font-size: 22px; }
.fazzie-listings #image-modal .modal-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.fazzie-listings #image-modal .modal-prev { left: 12px; }
.fazzie-listings #image-modal .modal-next { right: 12px; }
.fazzie-listings .map-modal { z-index: 1600; }
.fazzie-listings .map-modal-content { inset: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom)); width: auto; height: auto; border-radius: 16px; background: #17191c; }
.fazzie-listings .map-modal .close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #292929; color: #fff; }
.fazzie-listings #map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) saturate(.45) brightness(.85) contrast(.85); }

/* Public entry and account screens use the same surfaces as the buyer app. */
.fazzie-auth { --fz-nav: 0px; }
.fazzie-auth :is(.login-container, .create-account-container) { width: 100%; min-height: 0; padding: 16px 0; }
.fazzie-app :is(.login-card, .form-card, .create-account-form, .forgot-password-form, .welcome-container, .message-container) { width: 100%; max-width: 480px; margin: 0 auto; padding: 28px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 22px; text-align: left; }
.fazzie-app :is(.login-card, .form-card, .create-account-form) label { font-size: 14px; font-weight: 500; }
.fazzie-app :is(.login-card, .form-card) h1 { font-size: 28px; text-shadow: none; }
.fazzie-app .password-container button { right: 12px; width: auto; margin: 0; color: var(--fz-muted); }
.fazzie-app .password-container input { padding-right: 70px; }
.fazzie-app .toggle-switch { gap: 8px; }
.fazzie-app .toggle-option { flex: 1; text-align: center; border-radius: 12px; background: var(--fz-input); }
.fazzie-app input[type="radio"]:checked + .toggle-option { background: #4caf5026; color: #8bd98e; }
.fazzie-home .main-content { justify-content: center; padding-top: 40px; }
.fazzie-home .home-container { width: 100%; max-width: 440px; padding: 32px; background: var(--fz-surface); border: 1px solid var(--fz-border); border-radius: 24px; text-align: center; }
.fazzie-home .home-container h1 { font-size: 60px; margin: 0 0 20px; }
.fazzie-home .button-container { position: static; transform: none; gap: 8px; margin: 0; }
.fazzie-home .button-container p { font-size: 14px; color: var(--fz-muted); }
.fazzie-home .home-button { width: 100%; margin: 0; }
.fazzie-home :is(#login-btn, #get-started-btn) { background: var(--fz-input); color: #eee; border: 1px solid var(--fz-border); }

@media (max-width: 600px) {
    .fazzie-app:not(.fazzie-auth) { --fz-nav: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .fazzie-app .main-content { padding-right: 16px; padding-left: 16px; }
    .fazzie-app .buyer-tabs { bottom: calc(6px + env(safe-area-inset-bottom, 0px)); max-width: calc(100% - 16px); gap: 3px; padding: 5px; border-radius: 16px; scrollbar-width: none; }
    .fazzie-app .buyer-tabs::-webkit-scrollbar { display: none; }
    .fazzie-app .buyer-tab { flex-basis: 60px; min-height: 44px; gap: 3px; border-radius: 10px; font-size: 10px; }
    .fazzie-app .buyer-tab i { font-size: 17px; }
    .fazzie-app .banner { padding-right: 16px; padding-left: 16px; gap: 12px; }
    /* Keep the photo, details, and actions inside the available phone viewport. */
    .fazzie-swipe .main-content { height: 100dvh; min-height: 100dvh; gap: 0; padding: calc(var(--fz-header) + 8px) 12px calc(var(--fz-nav) + 72px); }
    .fazzie-swipe #image-card { display: grid; grid-template-areas: "photo" "address" "location" "price" "stats"; grid-template-rows: minmax(0, 1fr) auto auto auto auto; flex: 1; min-height: 0; border-radius: 16px; z-index: 2; }
    .fazzie-swipe :is(.image-card-header, .header-info, .price-undo-container) { display: contents; font-family: inherit !important; }
    .fazzie-swipe #image-container { grid-area: photo; height: 100%; min-height: 0; z-index: 0; }
    .fazzie-swipe .undo-button-overlay { grid-area: photo; position: relative; inset: auto; align-self: start; justify-self: start; margin: 26px 0 0 10px; width: 44px; height: 44px; border-radius: 50%; background: #0009; color: #f0ca72; font-size: 16px; z-index: 5; }
    .fazzie-swipe .listing-badges { grid-area: photo; align-self: end; justify-self: start; max-width: calc(100% - 74px); margin: 0 10px 10px; z-index: 4; }
    .fazzie-swipe :is(.recommended-badge, .promoted-badge) { margin: 0; padding: 4px 8px; font-size: 10px; line-height: 1.3; }
    .fazzie-swipe .recommended-badge { background: #183d21ed; color: #b6edba; }
    .fazzie-swipe #listing-address { grid-area: address; margin: 10px 12px 0; font-size: 17px; line-height: 1.25; font-weight: 700 !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .fazzie-swipe #listing-city-state-zip { grid-area: location; margin: 3px 12px 0; font-size: 12px; line-height: 1.4; color: #ffffffd9; }
    .fazzie-swipe #listing-price { grid-area: price; margin: 4px 12px 0; font-size: 24px; line-height: 1.2; font-weight: 700 !important; color: #fff; text-align: left; }
    .fazzie-swipe .image-card-footer { grid-area: stats; padding: 8px 12px 10px; gap: 8px; font-size: 12px; line-height: 1.4; }
    .fazzie-swipe .button-footer { position: fixed; left: 0; right: 0; bottom: calc(var(--fz-nav) + 8px); height: 52px; z-index: 30; }
    .fazzie-swipe .button-row-container { gap: 10px; }
    .fazzie-swipe .button-wrapper { width: 44px; height: 44px; font-size: 19px; }
    .fazzie-swipe .button-wrapper.large-button { width: 52px; height: 52px; font-size: 23px; }
    .fazzie-preferences #accordion-container .accordion-content { padding: 20px 16px; }
    .fazzie-preferences .section-selector label { padding: 10px 8px; font-size: 13px; }
    .fazzie-preferences .price-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .fazzie-preferences .price-row label { width: auto; text-align: left; }
    .fazzie-listings .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fazzie-listings .filter-form .zip-filter { grid-column: 1 / -1; }
    .fazzie-app :is(.login-card, .form-card, .create-account-form) { padding: 24px 20px; }
    .fazzie-map .main-content { padding: 0; }
}

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