/* Generated from css/listings.css by scripts/stamp-assets.js; edit the source. */

    /**/
    .listings-hero {
      background: linear-gradient(135deg, rgba(10,10,15,0.78) 0%, rgba(20,15,40,0.78) 100%),
                  url('/images/DowntownCalgary-800px.jpg') center/cover no-repeat;
      background: linear-gradient(135deg, rgba(10,10,15,0.78) 0%, rgba(20,15,40,0.78) 100%),
                  image-set(url('/images/DowntownCalgary-800px.avif') type('image/avif'),
                            url('/images/DowntownCalgary-800px.webp') type('image/webp'),
                            url('/images/DowntownCalgary-800px.jpg') type('image/jpeg')) center/cover no-repeat;
      padding: 140px 0 38px;
      text-align: center;
    }
    .listings-hero h1 {
      font-size: clamp(1.6rem, 3.2vw, 2.2rem);
      margin: 0 0 8px;
      color: #f5f0e6;
      line-height: 1.2;
    }
    .listings-hero .hero-sub {
      color: rgba(245,240,230,0.85);
      max-width: 540px;
      margin: 0 auto 18px;
      font-size: 1rem;
      line-height: 1.5;
    }
    /**/
    .hero-lead-form {
      display: flex;
      gap: 8px;
      max-width: 460px;
      margin: 0 auto;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(0,65,217,0.35);
      border-radius: 12px;
      padding: 6px;
      backdrop-filter: blur(4px);
    }
    .hero-lead-form input[type="email"] {
      flex: 1;
      min-width: 0;
      background: transparent;
      border: 0;
      color: #f5f0e6;
      padding: 11px 14px;
      font-size: 0.96rem;
      font-family: inherit;
    }
    .hero-lead-form input[type="email"]::placeholder { color: rgba(245,240,230,0.5); }
    .hero-lead-form input[type="email"]:focus { background: rgba(255,255,255,0.04); border-radius: 8px; }
    .hero-lead-form button {
      background: var(--t-gold-fill);
      color: var(--t-on-primary, #fff);
      border: 0;
      border-radius: 8px;
      padding: 11px 18px;
      font-weight: 800;
      font-family: inherit;
      font-size: 0.92rem;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s;
    }
    .hero-lead-form button:hover { background: #e0c04b; }
    .hero-lead-form button:disabled { background: rgba(0,65,217,0.5); cursor: wait; }
    .hero-lead-status {
      min-height: 1.2em;
      font-size: 0.86rem;
      color: var(--t-gold-ink);
      margin-top: 10px;
      line-height: 1.45;
      max-width: 460px;
      margin-left: auto;
      margin-right: auto;
    }
    .hero-lead-status.is-error { color: #ff8b6b; }
    /**/
    .hero-lead-freq {
      display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
      max-width: 540px; margin: 10px auto 0;
      font-size: 0.78rem;
      color: rgba(245,240,230,0.78);
    }
    .hero-lead-freq-label {
      font-size: 0.7rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: rgba(245,240,230,0.55);
    }
    .hero-lead-freq-opt {
      display: inline-flex; align-items: center; gap: 5px;
      cursor: pointer; padding: 4px 8px;
      border-radius: 8px;
      transition: background 0.15s;
    }
    .hero-lead-freq-opt:hover { background: rgba(0,65,217,0.08); }
    .hero-lead-freq-opt input { accent-color: var(--t-gold-ink); }
    .hero-trust {
      font-size: 0.78rem;
      color: rgba(245,240,230,0.65);
      margin-top: 14px;
      line-height: 1.5;
    }
    @media (max-width: 480px) {
      .listings-hero { padding: 120px 0 22px; }
      .listings-hero h1 { font-size: 1.4rem; }
      .listings-hero .hero-sub { font-size: 0.88rem; margin-bottom: 14px; padding: 0 6px; }
      .hero-lead-form {
        flex-direction: column;
        padding: 8px;
        gap: 6px;
      }
      .hero-lead-form input[type="email"] {
        text-align: center;
        padding: 12px 14px;
      }
      .hero-lead-form button {
        width: 100%;
        padding: 13px 18px;
      }
      .hero-trust { font-size: 0.72rem; }
      /**/
      .nav-logo { gap: 9px !important; min-width: 0; flex-shrink: 1; }
      .nav-logo > img { width: 38px !important; height: 38px !important; flex-shrink: 0; }
      .nav-logo .nav-logo-text { min-width: 0; overflow: hidden; }
      .nav-logo .nav-logo-name {
        font-size: 1.05rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: clip;
      }
      .nav-logo .nav-logo-sub { display: none !important; }
    }
    /**/
    html, body { overflow-x: hidden; }
    body { overflow-x: clip; }   /**/
    /**/
    .hero-lang-pill {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 30px;
      background: rgba(0,65,217,0.18);
      border: 1px solid rgba(0,65,217,0.4);
      color: #ffd86b;
      font-size: 0.82rem;
      font-weight: 600;
      white-space: nowrap;
    }
    /**/

    /**/
    /**/

    /**/

    /**/

    /**/

    /**/
    .persona-filter {
      display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
      padding: 20px 0 18px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      margin-bottom: 16px;
    }
    .persona-label { font-size: 0.75rem; font-weight: 700; color: #909090; text-transform: uppercase; letter-spacing: 0.1em; flex-shrink: 0; }
    .persona-pills { display: flex; gap: 8px; flex-wrap: wrap; }
    .persona-pill {
      padding: 8px 16px; border-radius: 20px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.03);
      color: #c0c0c0; font-size: 0.83rem; font-weight: 600;
      cursor: pointer; font-family: var(--font-sans);
      transition: all 0.15s;
    }
    .persona-pill:hover  { border-color: rgba(0,65,217,0.35); color: var(--t-gold-ink); background: rgba(0,65,217,0.06); }
    .persona-pill.active { border-color: rgba(0,65,217,0.55); color: var(--t-gold-ink); background: rgba(0,65,217,0.13); }

    /**/
    .persona-tip {
      display: flex; align-items: flex-start; gap: 14px;
      background: rgba(0,65,217,0.07);
      border: 1px solid rgba(0,65,217,0.28);
      border-radius: 10px; padding: 16px 20px;
      margin-bottom: 16px; position: relative;
    }
    .persona-tip-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
    .persona-tip-body { flex: 1; }
    .persona-tip-text { font-size: 0.88rem; color: #ddd; line-height: 1.65; margin-bottom: 8px; }
    .persona-tip-link { font-size: 0.82rem; font-weight: 700; color: var(--t-gold-ink); text-decoration: none; }
    .persona-tip-link:hover { text-decoration: underline; }
    .persona-tip-close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #666; cursor: pointer; font-size: 1.1rem; line-height: 1; }
    .persona-tip-close:hover { color: #aaa; }

    /**/
    .alerts-bar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; flex-wrap: wrap;
      padding: 14px 20px;
      background: rgba(0,65,217,0.06);
      border: 1px solid rgba(0,65,217,0.2);
      border-radius: 10px;
      margin-bottom: 0;
    }
    .alerts-bar-text { font-size: 0.88rem; color: #c8c8c8; line-height: 1.5; }
    .alerts-bar-text strong { color: #f0f0f0; }
    .alerts-bar-btn {
      padding: 9px 20px; border-radius: 6px;
      background: linear-gradient(135deg, var(--t-gold-fill) 0%, var(--t-gold-fill-hover) 100%);
      color: var(--t-on-primary, #fff); font-weight: 700; font-size: 0.82rem;
      border: none; cursor: pointer; white-space: nowrap;
      font-family: var(--font-sans); transition: opacity 0.2s;
      flex-shrink: 0;
    }
    .alerts-bar-btn:hover { opacity: 0.88; }

    /**/
    .idx-section { padding: 40px 0 100px; }
    .idx-wrap {
      border: 1px solid rgba(0,65,217,0.35);
      border-radius: 10px;
      overflow: hidden;
      margin: 16px 0 40px;
      background: #0a0a0f;
    }
    .idx-wrap iframe {
      display: block; width: 100%; min-height: 840px; border: none;
    }
    @media(max-width:600px) { .idx-wrap iframe { min-height: 680px; } }

    /**/
    .cta-strip {
      display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
      margin: 0 0 40px;
    }
    @media(max-width:700px){ .cta-strip{ grid-template-columns: 1fr; } }
    .cta-strip-card {
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 10px; padding: 24px 22px;
      text-align: center;
    }
    .cta-strip-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
    .cta-strip-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
    .cta-strip-card p  { font-size: 0.82rem; color: #909090; margin-bottom: 14px; line-height: 1.65; }
    .cta-strip-card a  { font-size: 0.82rem; font-weight: 700; color: var(--t-gold-ink); text-decoration: none; }
    /**/
    [data-theme="light"] .cta-strip-card p { color: var(--t-ink-3); }
    [data-theme="light"] .cta-strip-card a { color: var(--t-gold-ink); }

    /**/
    .popup-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 300;
      display: flex; align-items: center; justify-content: center;
      padding: 20px;
      opacity: 0; pointer-events: none;
      transition: opacity 0.3s;
      visibility: hidden;
      /**/
      transition: opacity .3s ease, visibility 0s linear .3s;
    }
    .popup-overlay.visible { opacity: 1; pointer-events: all; visibility: visible; transition: opacity .3s ease, visibility 0s linear 0s; }
    .popup-card {
      /**/
      background: var(--t-canvas);
      border: 1px solid var(--t-line);
      box-shadow: var(--t-shadow-3);
      border-radius: 14px;
      padding: 40px 44px;
      max-width: 480px; width: 100%;
      position: relative;
      transform: translateY(20px);
      transition: transform 0.3s;
      box-sizing: border-box;
    }
    .popup-overlay.visible .popup-card { transform: translateY(0); }
    @media(max-width:520px) { .popup-card { padding: 32px 24px; } }
    .popup-close {
      position: absolute; top: 16px; right: 18px;
      background: none; border: none; color: var(--t-ink-3);
      font-size: 1.4rem; cursor: pointer; line-height: 1;
    }
    .popup-close:hover { color: var(--t-ink); }
    .popup-icon  { font-size: 2rem; margin-bottom: 12px; }
    .popup-badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; color: var(--t-gold-ink); text-transform: uppercase; margin-bottom: 10px; }
    .popup-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--t-ink); }
    .popup-card p  { color: var(--text-mid); font-size: 0.9rem; line-height: 1.75; margin-bottom: 22px; }
    .popup-area-chip {
      display: inline-flex; align-items: center; padding: 7px 12px;
      background: var(--t-canvas);
      border: 1px solid var(--t-control-line);
      border-radius: 6px; cursor: pointer;
      transition: border-color 0.15s, background 0.15s;
    }
    .popup-area-chip input { display: none; }
    .popup-area-chip span { font-size: 0.82rem; color: var(--t-ink-2); }
    .popup-area-chip:has(input:checked) { background: rgba(0,65,217,0.13); border-color: rgba(0,65,217,0.55); }
    .popup-area-chip:has(input:checked) span { color: var(--t-gold-ink); }
    .popup-form { display: flex; flex-direction: column; gap: 12px; }
    .popup-input {
      padding: 12px 14px;
      background: var(--t-canvas);
      border: 1px solid var(--t-control-line);
      border-radius: 6px; color: var(--t-ink); font-size: 0.92rem;
      transition: border-color 0.2s;
      /**/
      box-sizing: border-box; width: 100%; min-width: 0;
    }
    /**/
    @media (max-width: 520px) {
      .popup-form > div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
      }
    }
    .popup-input:focus { border-color: var(--t-gold-fill); }
    .popup-input:focus:not(:focus-visible) { outline: none; }
    .popup-submit {
      padding: 13px;
      background: linear-gradient(135deg, var(--t-gold-fill) 0%, var(--t-gold-fill-hover) 100%);
      color: var(--t-on-primary, #fff); font-weight: 700; font-size: 0.95rem;
      border: none; border-radius: 8px; cursor: pointer;
      transition: opacity 0.2s;
    }
    .popup-submit:hover    { opacity: 0.9; }
    .popup-submit:disabled { opacity: 0.6; cursor: wait; }
    .popup-skip   { text-align: center; margin-top: 10px; }
    .popup-skip a { font-size: 0.8rem; color: var(--t-ink-3); text-decoration: none; }
    .popup-skip a:hover { color: var(--t-ink); }
    .popup-success { text-align: center; padding: 10px 0; display: none; }
    .popup-success .success-icon { font-size: 2.5rem; margin-bottom: 10px; }
    .popup-success p { color: var(--t-ok); font-weight: 600; margin: 0; }
    /**/
    [data-theme="light"] #mlsListingsWrap .mls-chip-active,
    [data-theme="light"] #mlsActiveChips button {
      background: rgba(0,65,217,0.13) !important;
      color: var(--t-gold-ink) !important;
      border-color: rgba(0,65,217,0.4) !important;
    }
    [data-theme="light"] .mls-badge-new-today { background:var(--t-alert) !important; color:#fff !important; }
    [data-theme="light"] .mls-badge-recent    { background:var(--t-gold-fill) !important; color:var(--t-on-primary, #fff) !important; }
    [data-theme="light"] .mls-badge-week      { background:rgba(0,65,217,0.18) !important; color:var(--t-gold-ink) !important; }
    [data-theme="light"] .mls-badge-pricedrop { background:#16a34a !important; color:#fff !important; }
    [data-theme="light"] .mls-badge-openhouse { background:var(--t-gold-fill) !important; color:var(--t-on-primary, #fff) !important; }
    [data-theme="light"] .mls-badge-type-tag  { color:var(--t-gold-ink) !important; }
    [data-theme="light"] .mls-card-courtesy   { color:var(--t-ink) !important; }
    [data-theme="light"] .mls-savesearch-btn  { background:var(--t-gold-fill) !important; color:var(--t-on-primary, #fff) !important; }
    /**/
    /**/
    [data-theme="light"] #mlsSyncStatus { color: var(--text-bright) !important; }
    /**/
    [data-theme="light"] #mlsRecentRow > a > div > div:first-child { color:var(--t-gold-ink) !important; }
    /**/
    [data-theme="light"] .persona-tip-text   { color: var(--t-ink) !important; }
    [data-theme="light"] .persona-tip-link   { color: var(--t-gold-ink) !important; }
    [data-theme="light"] .persona-tip-close  { color: var(--t-ink-3) !important; }
    [data-theme="light"] .persona-tip-close:hover { color: var(--t-ink) !important; }
    [data-theme="light"] .alerts-bar-text         { color: var(--t-ink) !important; }
    [data-theme="light"] .alerts-bar-text strong  { color: var(--t-ink) !important; }
    [data-theme="light"] .persona-pill        { color: var(--t-ink); }
    [data-theme="light"] .persona-pill:hover  { color: var(--t-gold-ink); }
    [data-theme="light"] .persona-pill.active { color: var(--t-gold-ink); }
    [data-theme="light"] .persona-label       { color: var(--t-ink) !important; }

    /**/
    /**/
    /**/
    /**/
    .search-panel {
      margin: 22px 0 14px;
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    }
    [data-theme="light"] .search-panel { background: var(--t-canvas); box-shadow: 0 6px 24px rgba(0,65,217,0.10); }
    .search-tabs {
      display: flex; gap: 0;
      background: var(--surface-2);
      border-bottom: 1px solid var(--border);
    }
    .search-tab {
      flex: 1 1 0;
      min-width: 0;
      padding: 14px 10px;
      background: transparent;
      color: var(--text-mid);
      border: none;
      font-family: inherit;
      font-size: 0.9rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      display: inline-flex; align-items: center; gap: 8px; justify-content: center;
      border-bottom: 3px solid transparent;
      transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
      position: relative;
    }
    .search-tab:hover { color: var(--text-bright); background: rgba(0,65,217,0.05); }
    .search-tab.active {
      color: var(--gold);
      background: var(--surface-1);
      border-bottom-color: var(--gold);
    }
    [data-theme="light"] .search-tab.active { background: var(--t-canvas); }
    .search-tab-icon { font-size: 1.05rem; line-height: 1; }
    .search-tab-eyebrow {
      position: absolute; top: 4px; right: 8px;
      font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
      color: var(--gold); text-transform: uppercase;
    }
    /**/
    .search-tab-short { display: none; }
    @media (max-width: 640px) {
      .search-tab-full { display: none; }
      .search-tab-short { display: inline; }
    }
    .search-pane { display: none; padding: 18px 20px; }
    .search-pane.active { display: block; }
    /**/
    .search-pane > .ai-search,
    .search-pane > .alerts-bar,
    .search-pane > .nbhd-matcher-cta,
    .search-pane > .fbar {
      margin: 0; box-shadow: none;
    }
    .search-pane > .ai-search { background: transparent; border: none; padding: 0; }
    .search-pane > .alerts-bar { background: transparent; border: none; padding: 6px 0; }
    .search-pane > .nbhd-matcher-cta { background: transparent; border: none; padding: 6px 0; }
    .search-pane > .fbar { background: transparent; border: none; padding: 0; }
    @media (max-width: 640px) {
      .search-panel { margin: 14px 0 10px; border-radius: 14px; }
      .search-tab { padding: 12px 14px; font-size: 0.84rem; }
      .search-tab-eyebrow { display: none; }
      .search-pane { padding: 14px; }
    }

    .ai-search {
      margin: 24px 0 10px;
      background: linear-gradient(135deg, rgba(0,65,217,0.13), rgba(0,65,217,0.04));
      border: 1px solid rgba(0,65,217,0.35);
      border-radius: 16px;
      padding: 16px 18px 14px;
      box-shadow: 0 4px 18px rgba(0,65,217,0.06);
    }
    [data-theme="light"] .ai-search { background: linear-gradient(135deg, rgba(0,65,217,0.10), rgba(0,65,217,0.04)); border-color: rgba(0,65,217,0.35); }
    .ai-search-eyebrow {
      display: flex; align-items: center; gap: 8px;
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.10em;
      text-transform: uppercase; color: var(--gold);
      margin-bottom: 10px;
    }
    .ai-search-eyebrow-dot {
      width: 7px; height: 7px; border-radius: 50%;
      background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,0.5);
      animation: ai-pulse 2s ease-in-out infinite;
    }
    @keyframes ai-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); } 50% { box-shadow: 0 0 0 6px rgba(22,163,74,0); } }
    .ai-search-row {
      display: flex; align-items: center; gap: 8px;
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 6px 6px 6px 14px;
    }
    .ai-search-icon {
      font-size: 1.15rem; line-height: 1;
      flex-shrink: 0;
    }
    /**/
    .ai-search-lang {
      flex-shrink: 0;
      padding: 8px 8px;
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text-bright);
      font-size: 0.88rem;
      font-family: inherit;
      cursor: pointer;
      max-width: 140px;
    }
    .ai-search-lang:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
    @media (max-width: 540px) {
      /**/
      .ai-search-lang { max-width: 116px; font-size: 0.82rem; padding: 7px 6px; }
    }
    @media (max-width: 380px) {
      .ai-search-lang { max-width: 92px; font-size: 0.78rem; padding: 6px 4px; }
    }
    .ai-search-row input {
      flex: 1; min-width: 0;
      padding: 12px 4px;
      border: none;
      background: transparent;
      color: var(--text-bright);
      font-size: 1rem;
      font-family: inherit;
    }
    .ai-search-row input::placeholder { color: var(--text-mid); }
    .ai-search-row button {
      padding: 11px 18px;
      background: var(--gold);
      color: var(--t-on-primary, #fff);
      border: none;
      border-radius: 9px;
      font-size: 0.92rem;
      font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.12s, transform 0.06s;
      display: inline-flex; align-items: center; gap: 6px;
      min-height: 44px; /**/
    }
    .ai-search-row button:hover { background: #c49f2a; }
    .ai-search-row button:disabled { opacity: 0.7; cursor: wait; }
    /**/
    .nbhd-matcher-cta {
      display: flex; align-items: center; gap: 14px;
      margin: 14px 0 8px;
      padding: 14px 18px;
      background: linear-gradient(135deg, rgba(26,38,69,0.6), rgba(26,38,69,0.35));
      border: 1px solid rgba(0,65,217,0.28);
      border-radius: 12px;
      color: var(--text-bright);
      text-decoration: none;
      transition: border-color 0.18s ease, transform 0.06s ease;
    }
    .nbhd-matcher-cta:hover { border-color: var(--gold); transform: translateY(-1px); }
    .nbhd-matcher-icon { font-size: 1.7rem; line-height: 1; flex-shrink: 0; }
    .nbhd-matcher-body { flex: 1; min-width: 0; }
    .nbhd-matcher-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 3px; color: var(--text-bright); }
    .nbhd-matcher-sub { color: var(--text-mid); font-size: 0.82rem; line-height: 1.5; }
    .nbhd-matcher-arrow {
      flex-shrink: 0; padding: 10px 16px;
      background: var(--gold); color: var(--t-on-primary, #fff);
      border-radius: 8px;
      font-weight: 700; font-size: 0.85rem;
      white-space: nowrap;
    }
    [data-theme="light"] .nbhd-matcher-cta { background: linear-gradient(135deg, rgba(0,65,217,0.10), rgba(0,65,217,0.04)); color: var(--text-bright); }
    [data-theme="light"] .nbhd-matcher-arrow { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    @media (max-width: 640px) {
      .nbhd-matcher-cta { flex-direction: column; align-items: flex-start; padding: 14px; }
      .nbhd-matcher-arrow { width: 100%; text-align: center; }
    }

    /**/
    [data-theme="light"] .ai-search-row button { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    [data-theme="light"] .ai-search-row button:hover { background: var(--t-gold-fill); }
    .ai-search-spinner {
      width: 14px; height: 14px;
      border: 2px solid rgba(10,10,15,0.25);
      border-top-color: #0a0a0f;
      border-radius: 50%;
      animation: ai-spin 0.7s linear infinite;
    }
    [data-theme="light"] .ai-search-spinner { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }
    @keyframes ai-spin { to { transform: rotate(360deg); } }
    .ai-search-hints {
      display: flex; flex-wrap: wrap; gap: 6px;
      margin-top: 10px;
      align-items: center;
    }
    .ai-search-hint-label {
      font-size: 0.72rem; color: var(--text-mid);
      letter-spacing: 0.08em; text-transform: uppercase;
      font-weight: 600;
      padding-right: 2px;
    }
    .ai-search-hint {
      padding: 5px 11px;
      background: rgba(255,255,255,0.04);
      color: var(--text-mid);
      border: 1px solid var(--border);
      border-radius: 14px;
      font-size: 0.78rem;
      font-family: inherit;
      cursor: pointer;
      transition: border-color 0.12s, color 0.12s, background 0.12s;
    }
    .ai-search-hint:hover { border-color: rgba(0,65,217,0.5); color: var(--text-bright); background: rgba(0,65,217,0.08); }
    [data-theme="light"] .ai-search-hint { background: #fff; }
    .ai-search-status {
      margin-top: 10px;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 0.85rem;
      line-height: 1.5;
    }
    .ai-search-status.ai-success {
      background: rgba(22,163,74,0.12);
      border: 1px solid rgba(22,163,74,0.35);
      color: var(--text-bright);
    }
    .ai-search-status.ai-error {
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.35);
      color: var(--text-bright);
    }
    /**/
    .ai-search-status.ai-info {
      background: rgba(0,65,217,0.10);
      border: 1px solid rgba(0,65,217,0.45);
      color: var(--text-bright);
    }
    /**/
    .ai-save-cta {
      margin-left: 8px;
      padding: 4px 12px;
      background: var(--gold); color: var(--t-on-primary, #fff);
      border: none; border-radius: 14px;
      font-size: 0.78rem; font-weight: 700;
      font-family: inherit; cursor: pointer;
      vertical-align: middle;
    }
    .ai-save-cta:hover { background: #c49f2a; }
    [data-theme="light"] .ai-save-cta { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    .ai-save-form {
      display: none;
      margin-top: 10px;
      padding: 10px 12px;
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: 8px;
      gap: 8px; align-items: center; flex-wrap: wrap;
    }
    .ai-save-form.open { display: flex; flex-wrap: wrap; }
    .ai-save-form input[type=email] {
      flex: 1; min-width: 0;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--surface-2);
      color: var(--text-bright);
      font-size: 0.92rem;
      font-family: inherit;
    }
    .ai-save-form button {
      padding: 8px 14px;
      background: var(--gold); color: var(--t-on-primary, #fff);
      border: none; border-radius: 6px;
      font-weight: 700; font-size: 0.86rem;
      cursor: pointer; font-family: inherit;
    }
    .ai-save-form button:hover { background: #c49f2a; }
    [data-theme="light"] .ai-save-form button { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }

    /**/
    .alert-cta {
      display: flex; align-items: center; gap: 14px;
      padding: 14px 18px; margin: 0 0 18px;
      background: linear-gradient(135deg, rgba(0,65,217,0.10), rgba(0,65,217,0.04));
      border: 1px solid rgba(0,65,217,0.45);
      border-radius: 12px;
    }
    /**/
    .alert-cta[hidden] { display: none !important; }
    .alert-cta-icon { font-size: 1.6rem; flex-shrink: 0; }
    /**/
    .alert-cta-icon .ic, .cta-strip-card .icon .ic, .moyyc-sheet-btn-icon .ic, .qf-card-icon .ic { width: 1em; height: 1em; transform: none; }
    .alert-cta-icon, .cta-strip-card .icon, .qf-card-icon { color: var(--t-gold-ink); }
    .fg-label .fg-icon .ic { width: 1.2em; height: 1.2em; color: var(--t-gold-ink); }
    .alert-cta-body { flex: 1; min-width: 0; }
    .alert-cta-title { font-weight: 700; color: var(--text-bright); font-size: 0.98rem; margin-bottom: 2px; }
    .alert-cta-sub { color: var(--text-mid); font-size: 0.82rem; line-height: 1.5; }
    /**/
    .alert-cta-sub a { color: var(--text-bright); text-decoration: underline; font-weight: 600; }
    .alert-cta-btn {
      flex-shrink: 0; padding: 10px 18px;
      background: var(--gold); color: var(--t-on-primary, #fff);
      border: none; border-radius: 8px;
      font-weight: 700; font-size: 0.88rem; font-family: inherit; cursor: pointer;
      white-space: nowrap;
    }
    .alert-cta-btn:hover { background: #c49f2a; }
    /**/
    a.alert-cta-btn { display: inline-block; text-decoration: none; text-align: center; }
    /**/
    [data-theme="light"] .alert-cta-btn { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    @media (max-width: 640px) {
      .alert-cta { flex-direction: column; align-items: flex-start; padding: 14px; }
      .alert-cta-btn { width: 100%; }
    }

    /**/
    .save-alert-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
    .save-alert-backdrop { position: absolute; inset: 0; background: rgba(8,8,12,0.66); backdrop-filter: blur(4px); }
    .save-alert-card {
      position: relative; max-width: 480px; width: 100%;
      background: var(--surface-1); color: var(--text-bright);
      border: 1px solid var(--border); border-radius: 14px;
      padding: 28px 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    }
    .save-alert-close {
      position: absolute; top: 10px; right: 12px;
      background: transparent; border: none; color: var(--text-mid);
      font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px;
    }
    .save-alert-close:hover { color: var(--text-bright); }
    .save-alert-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
    .save-alert-title { font-family: Georgia, serif; font-size: 1.35rem; margin: 0 0 8px; color: var(--text-bright); }
    .save-alert-body { color: var(--text-mid); font-size: 0.9rem; line-height: 1.55; margin: 0 0 14px; }
    .save-alert-warn { padding: 10px 12px; background: rgba(239,68,68,0.10); border: 1px solid rgba(239,68,68,0.4); border-radius: 8px; font-size: 0.84rem; margin-bottom: 14px; }
    .save-alert-filters { margin-bottom: 14px; }
    .save-alert-chips-label { font-size: 0.78rem; color: var(--text-mid); margin-bottom: 6px; }
    .save-alert-chip { display: inline-block; padding: 4px 10px; margin: 0 4px 4px 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; font-size: 0.78rem; }
    .save-alert-label { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 6px; display: block; }
    .save-alert-input { width: 100%; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text-bright); font-size: 0.96rem; font-family: inherit; box-sizing: border-box; }
    .save-alert-input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
    .save-alert-row { display: flex; gap: 12px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
    .save-alert-submit { padding: 11px 22px; background: var(--gold); color: var(--t-on-primary, #fff); border: none; border-radius: 8px; font-weight: 700; font-size: 0.94rem; font-family: inherit; cursor: pointer; }
    .save-alert-submit:hover { background: #c49f2a; }
    .save-alert-submit:disabled { opacity: 0.7; cursor: wait; }
    [data-theme="light"] .save-alert-submit { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    .save-alert-book { color: var(--gold); text-decoration: none; font-size: 0.86rem; font-weight: 600; }
    .save-alert-book:hover { text-decoration: underline; }
    .save-alert-fine { font-size: 0.72rem; color: var(--text-mid); margin: 14px 0 0; line-height: 1.55; }
    .save-alert-fine + .save-alert-fine { margin-top: 6px; }
    /**/
    .save-alert-freq { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
    .save-alert-freq legend { padding: 0; margin-bottom: 4px; }
    .save-alert-freq label { display: flex; gap: 8px; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; color: var(--text-bright, inherit); cursor: pointer; }
    .save-alert-freq input { margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--t-gold-ink); }
    .ai-save-consent { flex-basis: 100%; font-size: 0.72rem; line-height: 1.5; color: var(--text-mid); margin: 6px 0 0; }
    .save-alert-result { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; line-height: 1.5; }
    .save-alert-result--ok { background: rgba(22,163,74,0.14); border: 1px solid rgba(22,163,74,0.4); }
    .save-alert-result--error { background: rgba(239,68,68,0.14); border: 1px solid rgba(239,68,68,0.4); }
    @media (max-width: 640px) {
      /**/
      .ai-search { padding: 14px 12px; margin: 16px 0 8px; }
      .ai-search-eyebrow { font-size: 0.68rem; margin-bottom: 8px; }
      .ai-search-row {
        flex-wrap: wrap;
        padding: 8px; gap: 8px;
      }
      .ai-search-icon { display: none; }
      .ai-search-row input {
        order: 1; flex-basis: 100%;
        padding: 12px 12px;
        background: var(--surface-2);
        border-radius: 8px;
        font-size: 1rem;
      }
      #aiSearchBtn { order: 2; flex: 1 1 100%; justify-content: center; padding: 13px 16px; font-size: 0.96rem; }
    }

    /**/
    .mls-skel-card {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      overflow: hidden;
      animation: mls-skel-pulse 1.6s ease-in-out infinite;
    }
    .mls-skel-photo {
      aspect-ratio: 16 / 10;
      background: linear-gradient(90deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.04) 100%);
      background-size: 200% 100%;
      animation: mls-skel-shimmer 1.6s linear infinite;
    }
    html:not([data-theme="light"]) .mls-skel-photo {
      background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
      background-size: 200% 100%;
    }
    .mls-skel-body { padding: 16px 18px; }
    .mls-skel-line {
      height: 12px; border-radius: 6px; margin-bottom: 10px;
      background: linear-gradient(90deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.06) 100%);
      background-size: 200% 100%;
      animation: mls-skel-shimmer 1.6s linear infinite;
    }
    html:not([data-theme="light"]) .mls-skel-line {
      background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 100%);
      background-size: 200% 100%;
    }
    .mls-skel-line--price { height: 22px; width: 42%; }
    .mls-skel-line--addr { width: 72%; }
    .mls-skel-line--specs { width: 56%; margin-bottom: 0; }
    @keyframes mls-skel-pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.85 } }
    @keyframes mls-skel-shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
    /**/
    @keyframes mlsFreshPulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
      50%      { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
    }

    /**/
    .mls-ptr {
      position: relative;
      height: 0;
      overflow: hidden;
      text-align: center;
      transition: height 0.18s ease, opacity 0.18s ease;
      opacity: 0;
      color: var(--text-mid);
      font-size: 0.84rem;
      pointer-events: none;
    }
    .mls-ptr.is-visible { opacity: 1; }
    .mls-ptr.is-refreshing { height: 56px; opacity: 1; }
    .mls-ptr-icon {
      display: inline-block; width: 22px; height: 22px;
      vertical-align: middle; margin-right: 8px;
      transition: transform 0.15s ease;
    }
    .mls-ptr.is-refreshing .mls-ptr-icon { animation: mls-ptr-spin 0.9s linear infinite; }
    @keyframes mls-ptr-spin { to { transform: rotate(360deg); } }

    /**/
    .moyyc-brand-bar {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px; margin: 14px 0 4px;
    }
    .moyyc-brand-mark { display: flex; align-items: center; gap: 12px; }
    .moyyc-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
    .moyyc-brand-name {
      font-family: var(--font-serif);
      font-size: 1.45rem; font-weight: 700;
      color: var(--gold);
      letter-spacing: -0.01em;
    }
    .moyyc-brand-tag {
      font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em;
      color: var(--text-mid);
    }
    @media (max-width: 480px) {
      .moyyc-brand-logo { width: 38px; height: 38px; }
      .moyyc-brand-name { font-size: 1.25rem; }
    }
    .moyyc-install-btn {
      background: var(--gold); color: var(--t-on-primary, #fff); border: none;
      padding: 8px 14px; border-radius: 8px;
      font-family: inherit; font-weight: 700; font-size: 0.82rem;
      cursor: pointer; transition: background 0.15s, transform 0.06s;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .moyyc-install-btn:hover { background: #c49f2a; }
    .moyyc-install-btn:active { transform: scale(0.96); }
    [data-theme="light"] .moyyc-install-btn { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    html.pwa-standalone .moyyc-install-btn { display: none !important; }

    /**/
    .moyyc-tabbar {
      display: none;
      position: fixed; bottom: 0; left: 0; right: 0;
      /**/
      z-index: 1100;
      padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
      /**/
      background: #ffffff;
      border-top: 1px solid rgba(0,0,0,0.10);
      box-shadow: 0 -4px 14px rgba(0,0,0,0.06);
    }
    html[data-theme="light"] .moyyc-tabbar { background: var(--t-canvas); }
    html:not([data-theme="light"]) .moyyc-tabbar {
      background: #131316;
      border-top-color: rgba(255,255,255,0.10);
      box-shadow: 0 -4px 14px rgba(0,0,0,0.45);
    }
    @media (max-width: 900px) {
      .moyyc-tabbar { display: flex; align-items: stretch; }
      body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    }
    .moyyc-tab {
      flex: 1; min-width: 0;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 3px;
      padding: 8px 4px 6px;
      background: transparent; border: none;
      color: var(--t-ink-3);
      font-family: inherit; font-size: 0.66rem; font-weight: 600;
      letter-spacing: 0.02em;
      cursor: pointer;
      position: relative;
      transition: color 0.15s ease, transform 0.08s ease, background 0.15s ease;
      -webkit-tap-highlight-color: transparent;
    }
    .moyyc-tab svg { width: 22px; height: 22px; stroke-width: 2; pointer-events: none; }
    .moyyc-tab span { pointer-events: none; }
    .moyyc-tab:active { transform: scale(0.88); background: rgba(0,65,217,0.10); }
    /**/
    .moyyc-tab--active { color: var(--t-gold-ink); }
    .moyyc-tab--active::before {
      content: '';
      position: absolute; top: 0; left: 25%; right: 25%;
      height: 3px; border-radius: 0 0 4px 4px;
      background: var(--t-gold-fill);
    }
    .moyyc-tab--active svg { stroke: var(--t-gold-fill); }
    html:not([data-theme="light"]) .moyyc-tab { color: #c8c8c8; }
    html:not([data-theme="light"]) .moyyc-tab--active { color: var(--t-gold-ink); }
    html:not([data-theme="light"]) .moyyc-tab--active svg { stroke: var(--t-gold-fill); }
    html:not([data-theme="light"]) .moyyc-tab--active::before { background: var(--t-gold-fill); }
    .moyyc-tab-badge {
      position: absolute; top: 4px; right: 18%;
      min-width: 18px; height: 18px; padding: 0 5px;
      background: var(--t-gold-fill); color: var(--t-on-primary, #fff);
      border-radius: 9px; font-size: 0.66rem; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 1px 4px rgba(0,0,0,0.25);
      pointer-events: none;
    }

    /**/

    /**/
    .moyyc-sheet {
      /**/
      position: fixed; inset: 0; z-index: 9500;
      display: flex; align-items: flex-end; justify-content: center;
    }
    .moyyc-sheet[hidden] { display: none; }
    /**/
    body:has(.moyyc-sheet:not([hidden])) #emon-chat-btn,
    body:has(.moyyc-sheet:not([hidden])) .leaflet-control-container { display: none !important; }
    .moyyc-sheet-backdrop {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.42); backdrop-filter: blur(6px);
      animation: moyyc-fade 0.18s ease-out;
    }
    .moyyc-sheet-card {
      position: relative; width: 100%; max-width: 580px;
      background: var(--t-canvas);
      border-radius: 20px 20px 0 0;
      padding: 8px 22px calc(22px + env(safe-area-inset-bottom, 0px));
      box-shadow: 0 -16px 60px rgba(0,0,0,0.28);
      animation: moyyc-slide 0.22s cubic-bezier(0.32, 0.72, 0, 1);
      max-height: 84vh; overflow-y: auto;
    }
    html:not([data-theme="light"]) .moyyc-sheet-card { background: #1d1d20; color: #f5f5f5; }
    .moyyc-sheet-grab {
      width: 48px; height: 5px; border-radius: 3px;
      background: rgba(0,0,0,0.18); margin: 0 auto 16px;
      cursor: pointer;
    }
    html:not([data-theme="light"]) .moyyc-sheet-grab { background: rgba(255,255,255,0.22); }
    .moyyc-sheet-close {
      position: absolute; top: 10px; right: 12px;
      width: 44px; height: 44px;              /**/
      display: flex; align-items: center; justify-content: center;
      background: rgba(0,0,0,0.06); border: none; border-radius: 50%;
      color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
      z-index: 2;
    }
    .moyyc-sheet-close:hover { background: rgba(0,0,0,0.12); }
    html:not([data-theme="light"]) .moyyc-sheet-close { background: rgba(255,255,255,0.12); }
    .moyyc-sheet-header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
    .moyyc-sheet-logo { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
    .moyyc-sheet-name { font-family: Georgia, serif; font-size: 1.12rem; font-weight: 700; color: var(--t-ink); }
    html:not([data-theme="light"]) .moyyc-sheet-name { color: #f5f5f5; }
    .moyyc-sheet-role { font-size: 0.78rem; color: var(--t-ink-3); letter-spacing: 0.04em; }
    html:not([data-theme="light"]) .moyyc-sheet-role { color: #a0a0a0; }
    .moyyc-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .moyyc-sheet-btn {
      display: flex; align-items: center; gap: 10px;
      padding: 14px 14px;
      background: var(--t-surface-1); color: var(--t-ink);
      border-radius: 12px; text-decoration: none;
      transition: transform 0.08s ease, background 0.15s;
    }
    html:not([data-theme="light"]) .moyyc-sheet-btn { background: #28282c; color: #f5f5f5; }
    .moyyc-sheet-btn:active { transform: scale(0.97); }
    .moyyc-sheet-btn--primary { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); grid-column: 1 / -1; }
    .moyyc-sheet-btn--primary:active { background: var(--t-gold-fill-hover); }
    .moyyc-sheet-btn-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
    .moyyc-sheet-btn-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
    .moyyc-sheet-btn-text strong { font-size: 0.95rem; }
    .moyyc-sheet-btn-text small { font-size: 0.72rem; opacity: 0.75; }
    .moyyc-sheet-divider { height: 1px; background: rgba(0,0,0,0.10); margin: 18px 0; }
    html:not([data-theme="light"]) .moyyc-sheet-divider { background: rgba(255,255,255,0.10); }
    .moyyc-sheet-links { display: flex; flex-direction: column; gap: 2px; }
    .moyyc-sheet-link {
      display: flex; align-items: center; gap: 12px;
      padding: 12px 6px;
      background: transparent; border: none;
      color: inherit; text-decoration: none;
      font-family: inherit; font-size: 0.92rem; text-align: left; cursor: pointer;
      width: 100%;
    }
    .moyyc-sheet-link span:nth-child(2) { flex: 1; }
    .moyyc-sheet-link span:last-child { color: var(--t-gold-ink); opacity: 0.6; font-size: 0.86rem; }
    html:not([data-theme="light"]) .moyyc-sheet-link span:last-child { color: var(--t-gold-ink); }
    .moyyc-sheet-link:active { background: rgba(0,65,217,0.08); }
    .moyyc-sheet-footer {
      text-align: center; font-size: 0.74rem;
      color: var(--t-ink-3); margin-top: 16px; line-height: 1.6;
    }
    html:not([data-theme="light"]) .moyyc-sheet-footer { color: #a0a0a0; }
    @keyframes moyyc-slide { from { transform: translateY(40px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
    @keyframes moyyc-fade  { from { opacity: 0; } to { opacity: 1; } }

    /**/
    html.pwa-standalone .site-header,
    html.pwa-standalone .nav-drawer,
    html.pwa-standalone .site-footer,
    html.pwa-standalone #emon-chat-btn { display: none !important; }
    html.pwa-standalone body { padding-top: env(safe-area-inset-top, 0px); }
    html.pwa-standalone .idx-section { padding-top: 14px; }

    /**/
    .qs-strip-wrap { position: relative; margin: 18px 0 12px; }
    .qs-strip {
      display: flex; gap: 8px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      padding: 4px 2px 8px;
      scrollbar-width: thin;
      scrollbar-color: rgba(0,65,217,0.4) transparent;
    }
    .qs-strip::-webkit-scrollbar { height: 6px; }
    .qs-strip::-webkit-scrollbar-thumb { background: rgba(0,65,217,0.35); border-radius: 6px; }
    .qs-strip-label {
      font-size: 0.72rem; font-weight: 700;
      color: var(--text-mid);
      letter-spacing: 0.1em; text-transform: uppercase;
      flex-shrink: 0; align-self: center; padding-right: 4px;
    }
    .qs-chip {
      flex-shrink: 0;
      padding: 8px 14px;
      background: var(--surface-2);
      color: var(--text-bright);
      border: 1px solid var(--border);
      border-radius: 22px;
      font-size: 0.84rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: border-color 0.12s, background 0.12s, transform 0.06s;
    }
    .qs-chip:hover { border-color: rgba(0,65,217,0.45); background: rgba(0,65,217,0.08); }
    .qs-chip.active { background: linear-gradient(135deg,var(--t-gold-fill),var(--t-gold-fill-hover)); color: var(--t-on-primary, #fff); border-color: var(--t-gold-fill); }
    /**/
    .qs-chip.active::after { content: ' ✕'; opacity: 0.55; margin-left: 4px; font-size: 0.78rem; }
    .qs-chip--clear { background: transparent; color: var(--text-mid); border-style: dashed; }
    /**/
    .qs-strip--drawer { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .qs-strip--drawer .qs-chip { flex: 0 0 auto; white-space: nowrap; }
    [data-theme="light"] .qs-chip { background: #fff; }
    [data-theme="light"] .qs-chip.active { background: linear-gradient(135deg,var(--t-gold-fill),var(--t-gold-fill)); color: var(--t-on-primary, #fff); }

    /**/
    .fbar {
      background: var(--surface-2);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 12px;
    }
    .fbar-search-row { margin-bottom: 10px; }
    .fbar-search-row input {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface-1);
      color: var(--text-bright);
      font-size: 0.96rem;
      font-family: inherit;
    }
    .fbar-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr) auto;
      gap: 8px;
      align-items: stretch;
    }
    .fbar-row select {
      padding: 10px 12px;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: var(--surface-1);
      color: var(--text-bright);
      font-size: 0.92rem;
      font-family: inherit;
      cursor: pointer;
      width: 100%;            /**/
      min-width: 0;            /**/
      max-width: 100%;
      box-sizing: border-box;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .fbar-all {
      padding: 10px 18px;
      background: var(--gold);
      color: var(--t-on-primary, #fff);
      border: none;
      border-radius: 8px;
      font-size: 0.9rem;
      font-weight: 700;
      cursor: pointer;
      font-family: inherit;
      white-space: nowrap;
      display: inline-flex; align-items: center; gap: 6px;
      transition: background 0.12s;
    }
    .fbar-all:hover { background: #c49f2a; }
    .fbar-all-count {
      background: rgba(10,10,15,0.18);
      color: #0a0a0f;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 10px;
    }
    .fbar-all-count[hidden] { display: none; }
    [data-theme="light"] .fbar-all { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    [data-theme="light"] .fbar-all:hover { background: var(--t-gold-fill); }
    [data-theme="light"] .fbar-all-count { background: rgba(255,255,255,0.25); color: #fff; }
    @media (max-width: 740px) {
      .fbar-row { grid-template-columns: 1fr 1fr; }
      .fbar-all { grid-column: 1 / -1; justify-content: center; padding: 11px 14px; }
    }

    /**/
    .result-toolbar {
      display: flex; align-items: center; gap: 10px;
      flex-wrap: wrap; margin-bottom: 14px;
    }
    .result-toolbar-status {
      flex: 1; min-width: 0;
      font-size: 0.92rem; font-weight: 600;
      color: var(--text-bright);
    }
    .result-toolbar-status-sub {
      display: block;
      font-size: 0.78rem; font-weight: 500;
      color: var(--text-mid);
      margin-top: 2px;
    }
    .result-toolbar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
    .result-toolbar-actions select,
    .result-toolbar-actions button {
      padding: 8px 32px 8px 14px;
      background: var(--surface-2);
      color: var(--text-bright);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 0.84rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      min-width: 140px;
    }
    .result-toolbar-actions button { padding: 8px 14px; min-width: 0; }
    .result-toolbar-actions select {
      appearance: none; -webkit-appearance: none; -moz-appearance: none;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
      background-repeat: no-repeat;
      background-position: right 12px center;
    }
    /**/
    .result-toolbar-actions select option { background: var(--surface-2); color: var(--text-bright); }
    .result-toolbar-actions select:hover,
    .result-toolbar-actions button:hover { border-color: rgba(0,65,217,0.5); }
    .result-toolbar-actions select:focus { border-color: rgba(0,65,217,0.7); }
    .result-toolbar-actions select:focus:not(:focus-visible) { outline: none; }
    /**/
    [data-theme="light"] .result-toolbar-actions select {
      background-color: #fff; color: var(--t-ink);
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23a07820' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    }
    [data-theme="light"] .result-toolbar-actions select option { background: #fff; color: var(--t-ink); }
    [data-theme="light"] .result-toolbar-actions button { background: #fff; color: var(--t-ink); }
    @media (max-width: 600px) {
      .result-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
      .result-toolbar-actions {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
      }
      .result-toolbar-actions select,
      .result-toolbar-actions button { flex-shrink: 0; font-size: 0.82rem; padding: 7px 11px; }
    }

    /**/
    .drawer { position: fixed; inset: 0; z-index: 10000; display: none; }
    /**/
    body.drawer-open #emon-chat-btn { display: none !important; }
    .drawer[open], .drawer.open { display: block; }
    .drawer-backdrop {
      position: absolute; inset: 0;
      background: rgba(0,0,0,0.62);
      animation: drawer-fade 0.18s ease-out;
    }
    .drawer-panel {
      position: absolute; right: 0; top: 0; bottom: 0;
      width: min(540px, 100%);
      background: var(--surface-1);
      border-left: 1px solid var(--border);
      display: flex; flex-direction: column;
      animation: drawer-slide 0.22s ease-out;
      box-shadow: -8px 0 32px rgba(0,0,0,0.4);
    }
    [data-theme="light"] .drawer-panel { background: #f5efe2; }
    @keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
    @keyframes drawer-slide { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
    .drawer-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 18px 22px; border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .drawer-header h3 {
      margin: 0; font-family: var(--font-serif);
      font-size: 1.3rem; color: var(--text-bright);
    }
    .drawer-close {
      background: transparent; border: none;
      color: var(--text-mid); font-size: 1.8rem;
      cursor: pointer; padding: 0 8px; line-height: 1;
    }
    .drawer-close:hover { color: var(--text-bright); }
    .drawer-body {
      flex: 1; overflow-y: auto;
      padding: 18px 22px 24px;
    }
    .drawer-footer {
      display: flex; gap: 8px; align-items: center;
      padding: 14px 22px;
      border-top: 1px solid var(--border);
      background: var(--surface-2);
      flex-shrink: 0;
      flex-wrap: wrap;
    }
    .drawer-footer .drawer-footer-spacer { flex: 1; min-width: 4px; }
    .drawer-footer button {
      padding: 10px 16px;
      background: transparent;
      color: var(--text-bright);
      border: 1px solid var(--border);
      border-radius: 8px;
      font-size: 0.86rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
    }
    .drawer-footer button:hover { border-color: rgba(0,65,217,0.5); }
    .drawer-footer button.primary {
      background: var(--gold);
      color: var(--t-on-primary, #fff);
      border-color: var(--gold);
      padding: 11px 22px;
      font-weight: 700;
    }
    .drawer-footer button.primary:hover { background: #c49f2a; }
    [data-theme="light"] .drawer-footer button.primary { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); border-color: var(--t-gold-fill); }
    @media (max-width: 600px) {
      .drawer-panel { width: 100%; }
      .drawer-header { padding: 14px 16px; }
      .drawer-body { padding: 14px 16px 20px; }
      .drawer-footer { padding: 12px 16px; }
    }
    /**/
    body.drawer-open { overflow: hidden; }

    /**/
    .fg-section + .fg-section { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
    .fg-label {
      display: block;
      font-size: 0.7rem; font-weight: 700;
      color: var(--text-mid);
      letter-spacing: 0.1em;
      text-transform: uppercase;
      margin-bottom: 6px;
    }
    .fg-label .fg-icon { margin-right: 4px; font-weight: normal; letter-spacing: 0; }
    .fg-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 10px;
    }
    .fg-row--narrow { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    [data-theme="light"] .fg-label { color: var(--t-ink-3); }
    /**/
    .filter-toolbar {
      display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
      margin-top: 14px; padding: 10px 12px;
      background: rgba(0,0,0,0.18);
      border: 1px solid var(--border);
      border-radius: 9px;
    }
    [data-theme="light"] .filter-toolbar { background: rgba(0,0,0,0.04); }
    .filter-toolbar .ft-spacer { flex: 1; min-width: 4px; }
    .ft-btn {
      padding: 8px 14px;
      background: transparent;
      color: var(--text-bright);
      border: 1px solid var(--border);
      border-radius: 7px;
      font-size: 0.84rem;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: border-color 0.12s, background 0.12s;
    }
    .ft-btn:hover { border-color: rgba(0,65,217,0.5); background: rgba(0,65,217,0.06); }
    .ft-btn--primary {
      color: var(--gold);
      border-color: var(--gold);
    }
    .ft-btn--primary:hover { background: rgba(0,65,217,0.13); }
    @media (max-width: 600px) {
      .filter-toolbar { padding: 8px 10px; }
      .ft-btn { padding: 7px 11px; font-size: 0.8rem; }
      .ft-spacer { display: none; }
    }

    /**/
    .qf-board {
      display: grid;
      grid-template-columns: 1fr 2fr 1.2fr;
      gap: 12px;
      margin-bottom: 14px;
    }
    /**/
    .drawer .qf-board { grid-template-columns: 1fr; }
    .qf-card {
      position: relative;
      /**/
      background: var(--surface-1);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 14px 14px;
      overflow: hidden;
    }
    [data-theme="light"] .qf-card { background: #fff; }
    /**/
    .qf-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 3px;
    }
    .qf-card--status::before    { background: linear-gradient(90deg, #ef4444, #f59e0b); }
    .qf-card--lot::before       { background: linear-gradient(90deg, #16a34a, #84cc16); }
    .qf-card--interior::before  { background: linear-gradient(90deg, var(--t-gold-fill), #f5d77f); }
    .qf-card--comfort::before   { background: linear-gradient(90deg, #f97316, #fb923c); }
    .qf-card--parking::before   { background: linear-gradient(90deg, #6366f1, #a78bfa); }
    .qf-card--building::before  { background: linear-gradient(90deg, #06b6d4, #67e8f9); }
    .qf-card--lifestyle::before { background: linear-gradient(90deg, #ec4899, #f9a8d4); }
    .qf-card-header {
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 10px;
    }
    .qf-card-icon { font-size: 1.05rem; line-height: 1; }
    .qf-card-title {
      font-size: 0.78rem; font-weight: 700;
      color: var(--text-bright);
      letter-spacing: 0.06em; text-transform: uppercase;
    }
    .qf-card-count {
      font-size: 0.66rem; font-weight: 700;
      background: var(--gold); color: var(--t-on-primary, #fff);
      padding: 2px 8px; border-radius: 10px;
      margin-left: auto;
      letter-spacing: 0.04em;
    }
    [data-theme="light"] .qf-card-count { background: var(--t-gold-fill); color: var(--t-on-primary, #fff); }
    .qf-card-pills {
      display: flex; flex-wrap: wrap; gap: 6px;
    }
    .qf-toggle {
      padding: 7px 12px;
      background: rgba(255,255,255,0.04);
      color: var(--text-bright);
      border: 1px solid var(--border);
      border-radius: 18px;
      font-size: 0.82rem;
      font-family: inherit;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.12s, border-color 0.12s, transform 0.06s, box-shadow 0.12s;
    }
    .qf-toggle:hover { border-color: rgba(0,65,217,0.5); }
    .qf-toggle.active {
      background: linear-gradient(135deg, var(--t-gold-fill), var(--t-gold-fill-hover));
      color: var(--t-on-primary, #fff);
      border-color: var(--t-gold-fill);
      box-shadow: 0 2px 8px rgba(0,65,217,0.35);
    }
    [data-theme="light"] .qf-toggle { background: #fff; }
    [data-theme="light"] .qf-toggle.active {
      background: linear-gradient(135deg, var(--t-gold-fill), var(--t-gold-fill));
      color: var(--t-on-primary, #fff);
      border-color: var(--t-gold-fill);
      box-shadow: 0 2px 8px rgba(0,65,217,0.35);
    }
    /**/
    @media (max-width: 1000px) {
      .qf-board {
        grid-template-columns: 1fr 1fr;
      }
      .qf-card--features { grid-column: 1 / -1; }
    }
    /**/
    @media (max-width: 640px) {
      .qf-board {
        grid-template-columns: 1fr;
      }
      .qf-card--features { grid-column: auto; }
      .qf-card { padding: 10px 12px 12px; }
      .qf-card-pills { gap: 5px; }
      .qf-toggle { font-size: 0.8rem; padding: 6px 11px; }
    }

    /**/
    @media (max-width: 600px) {
      /**/
      #mlsFilterQ, #mlsFilterMinPrice, #mlsFilterMaxPrice,
      #mlsFilterCity, #mlsFilterType, #mlsFilterBeds, #mlsFilterBaths,
      #mlsFilterSort, #mlsFilterSqft, #mlsFilterAge, #mlsFilterGarage,
      #mlsFilterNewWithin { font-size: 16px !important; }
      /**/
      .mls-presets-row { flex-wrap: nowrap !important; }
      .mls-preset { flex-shrink: 0; white-space: nowrap; }
      /**/
      #mlsMap { height: 480px !important; }
      /**/
      #mlsActiveChips button { font-size: 0.74rem !important; padding: 5px 10px !important; }
      /**/
      #mlsGrid { grid-template-columns: 1fr !important; }
    }
    @media (min-width: 601px) and (max-width: 900px) {
      #mlsGrid { grid-template-columns: repeat(2, 1fr) !important; }
    }
    /**/
    @media (max-width: 600px) {
      #mlsRecentRow > a { flex: 0 0 160px !important; }
    }

    /**/

/**/
@media (max-width: 480px) {
  .nav-logo .nav-logo-name {
    font-size: 0.82rem !important;
    line-height: 1.24;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  /**/
  .nav-logo .nav-logo-name .wm-sep { display: none; }
  .nav-logo .nav-logo-name .wm-brok { display: block; }
  /**/
  .nav-logo .nav-logo-name { display: none; }
  .nav-logo > img { width: 42px !important; height: 42px !important; }
  /**/
  .nav-logo > img { width: 38px !important; height: 38px !important; }
}

/**/
@media (min-width: 1281px) {
  .site-header .nav-logo-text { display: none; }
  /**/
  .site-header .nav-logo { flex-shrink: 0; }
}
