.source-freshness { font-size:11px; line-height:1.65; color:#79876e; }
#clear-local-dialog > p { padding:0 24px; font-size:13px; line-height:1.8; color:#6f7f60; }
.play-tour small { max-width:260px; font-size:10px; line-height:1.6; }

/* ===== Immersive «Подбор»: photo/video fills the screen, controls float on it ===== */
/* No bottom menu: «Избранное» and the filters are in the row over the picture. */
:root { --nav-height:0px; --safe-top:env(safe-area-inset-top); --safe-bottom:env(safe-area-inset-bottom); --controls-bottom:calc(32px + var(--safe-bottom)); }
body:not(.view-match) .app-screen { padding-top:calc(24px + var(--safe-top)); }
body.view-match { overflow:hidden; background:#101a14; overscroll-behavior:none; }
body.view-match .app-main { padding-bottom:0; }
.match-view { position:relative; max-width:560px; margin:0 auto; padding:0; height:100dvh; }
.match-view .deck { height:100dvh; min-height:0; max-height:none; }
.match-view .swipe-card { border:0; border-radius:0; box-shadow:none; background:#1a2a20; }
.match-view .hero-media { background:#1a2a20; }
.match-view .hero-media::after { background:linear-gradient(#0f1a1499,transparent 22%,transparent 55%,#0f1a14cc 88%); }

/* Top: story bars on the card; location, «Избранное» and filters in a row that stays put while cards are swiped */
.match-top { position:absolute; top:calc(23px + var(--safe-top)); left:12px; right:12px; z-index:15; pointer-events:none; }
.match-top .top-row { pointer-events:auto; }
.top-actions { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.top-row .location-chip { min-width:0; max-width:none; flex:0 1 auto; }
.fav-button.has-favorites svg { fill:currentColor; }
.fav-button.bump { animation:yeva-fav-bump .45s ease-out; }
@keyframes yeva-fav-bump { 0%,100% { transform:none; } 35% { transform:scale(1.3); } 70% { transform:scale(.94); } }
.fly-heart { position:fixed; z-index:60; width:26px; height:26px; pointer-events:none; color:var(--accent); filter:drop-shadow(0 4px 10px #0006); }
.fly-heart svg { width:100%; height:100%; fill:currentColor; stroke:#fff; stroke-width:1.4; }
@media (prefers-reduced-motion:reduce) { .fav-button.bump { animation:none; } }
.match-view .hero-top { position:absolute; top:calc(10px + var(--safe-top)); left:12px; right:12px; z-index:6; display:flex; flex-direction:column; align-items:stretch; gap:10px; pointer-events:none; }
.match-view .hero-top > * { pointer-events:auto; }
.match-view .hero-top .media-dots { display:flex; gap:4px; max-width:none; padding:0; overflow:visible; }
.match-view .hero-top .media-dot { flex:1; width:auto; min-width:0; height:3px; border-radius:3px; background:#ffffff59; }
.match-view .hero-top .media-dot.active { width:auto; min-width:0; background:#fff; }
.top-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.glass-chip,.glass-icon { display:inline-flex; align-items:center; justify-content:center; gap:6px; color:#fff; background:#13201aa6; border:1px solid #ffffff30; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:0 4px 18px #0000002e; }
.glass-chip { height:36px; max-width:72%; padding:0 14px 0 11px; border-radius:18px; font-size:13px; font-weight:600; white-space:nowrap; }
.glass-chip > span { overflow:hidden; text-overflow:ellipsis; }
.glass-chip svg { width:16px; height:16px; flex-shrink:0; }
.glass-chip.static { cursor:default; }
.glass-icon { position:relative; width:40px; height:40px; border-radius:50%; flex-shrink:0; }
.glass-icon svg { width:19px; height:19px; }
.glass-icon .badge { position:absolute; top:-3px; right:-3px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--accent); color:#fff; font-size:10px; font-weight:700; line-height:18px; text-align:center; }

/* Bottom of the card: slide label, all photos, actions above the menu */
.match-view .hero-bottom { position:absolute; left:12px; right:12px; bottom:calc(106px + var(--safe-bottom)); z-index:5; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.match-view .hero-bottom .media-type { font-size:11px; padding:7px 12px; gap:7px; max-width:60%; }
.match-view .media-number { opacity:.8; margin-left:2px; }
.match-view .hero-bottom .glass-chip { height:32px; font-size:11px; padding:0 12px 0 10px; }
.match-view .card-controls { bottom:var(--controls-bottom); }
.match-view .media-arrow { top:50%; }
.match-view .choice-stamp { top:calc(118px + var(--safe-top)); }
.match-view .hero-media.clip-playing .hero-top { display:flex; }
.match-view .hero-media.clip-playing .hero-bottom { display:none; }
.match-view .tour-stop { top:calc(108px + var(--safe-top)); right:12px; }
.hero-media>video.tour-video.portrait { object-fit:cover; }
.match-view .play-tour { padding-bottom:40px; }
.match-view .tour-missing { padding:calc(120px + var(--safe-top)) 30px calc(var(--nav-height) + 150px + var(--safe-bottom)); background:#eef2e9; }
.match-view .tour-missing .primary-button { font-size:13px; padding:12px 18px; }
.match-view .tour-missing small { font-size:11px; }

body.view-match #toast { bottom:calc(106px + var(--safe-bottom)); }

/* Details slide */
.match-view .property-details-slide { padding:calc(112px + var(--safe-top)) 20px calc(120px + var(--safe-bottom)); }
.match-view .details-mode .hero-bottom,
.match-view .hero-media:has(.property-details-slide) .hero-bottom { display:none; }
.match-view .details-mode .media-dot { background:#d5dfce; }
.match-view .details-mode .media-dot.active { background:var(--green); }
.match-view .details-mode .media-arrow.prev { top:calc(72px + var(--safe-top)); left:12px; right:auto; z-index:7; }
.match-view .hero-media.details-mode::before { content:""; position:absolute; top:0; left:0; right:0; height:calc(104px + var(--safe-top)); background:linear-gradient(#fff 64%, #ffffff00); z-index:5; pointer-events:none; }
.match-view .swipe-card:has(.property-details-slide) .card-controls { bottom:0; left:0; right:0; padding:16px 16px var(--controls-bottom); background:linear-gradient(#ffffff00,#fff 32%); border-top:0; }
.details-kicker { color:var(--accent); font-size:12px; font-weight:600; margin:0 0 4px; }
.match-view .details-price { font-size:30px; margin:2px 0 6px; }
.details-address { color:#5f6f63; font-size:13px; line-height:1.55; margin:0; }
.details-near { color:var(--green); font-size:13px; font-weight:600; margin:6px 0 0; }
.key-facts { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:16px 0 0; }
.key-facts > div { background:#f2f5ef; border-radius:12px; padding:9px 11px; min-width:0; }
.key-facts dt { font-size:11px; color:#6d7b70; margin:0 0 3px; }
.key-facts dd { margin:0; font-size:14px; font-weight:650; color:var(--ink); line-height:1.35; overflow-wrap:anywhere; }
.details-section .key-facts { margin-top:0; }
.details-more { margin:14px 0 0; border:0!important; padding:0!important; }
.details-more > summary { list-style:none; display:flex; align-items:center; justify-content:center; min-height:46px; border:1px solid #cfdcca; border-radius:14px; background:#fff; color:var(--green); font-size:14px; font-weight:650; cursor:pointer; }
.details-more > summary::-webkit-details-marker { display:none; }
.details-more > summary > span:last-child,.details-more[open] > summary > span:first-child { display:none; }
.details-more[open] > summary > span:last-child { display:inline; }
.agent-more { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.agent-more .secondary-button { font-size:13px; padding:11px 14px; min-height:44px; }
.fact { background:var(--green-light); color:#36523f; border-radius:12px; padding:7px 11px; font-size:13px; font-weight:500; line-height:1.3; }
.feature { background:#fff; border:1px solid var(--line); color:#4b5d50; border-radius:12px; padding:7px 11px; font-size:12px; line-height:1.3; }
.recommendation-reason { background:#f6f1e8; color:#7a5f45; border-radius:12px; padding:10px 12px; font-size:12px; line-height:1.6; margin:14px 0 0; }
.details-section { margin-top:20px; }
.property-details-slide .details-section h3 { font-size:16px; font-weight:650; margin:0 0 10px; }
.nice-list { list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.nice-list li { display:flex; gap:10px; font-size:14px; line-height:1.55; color:#3f5144; }
.nice-list li > span { flex:0 0 auto; width:22px; text-align:center; }
.more-bullets { border:0!important; padding:0!important; margin:12px 0 0!important; }
.more-bullets > summary { color:var(--green); font-size:13px; font-weight:600; margin-bottom:10px; list-style:none; }
.more-bullets > summary::-webkit-details-marker { display:none; }
.more-bullets > summary::after { content:" ▾"; }
.more-bullets[open] > summary::after { content:" ▴"; }
.property-details-slide .source-freshness { margin:18px 0 0; }
.agent-box { margin-top:18px; border:1px solid var(--line); border-radius:18px; padding:16px; background:#fbfcf9; }
.agent-head { display:flex; align-items:center; gap:12px; }
.agent-head strong { display:block; font-size:15px; }
.agent-head small { display:block; color:var(--muted); font-size:12px; line-height:1.5; margin-top:2px; }
.agent-avatar { width:44px; height:44px; flex-shrink:0; display:grid; place-items:center; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; font-size:15px; }
img.agent-avatar { display:block; object-fit:cover; background:#e7ebe4; }
.agent-phone { display:block; margin:12px 0 10px; font-size:22px; font-weight:700; letter-spacing:.3px; color:var(--ink); text-decoration:none; }
.agent-actions { display:flex; flex-wrap:wrap; gap:8px; }
.agent-actions > a { flex:1 1 30%; min-width:92px; font-size:14px; padding:12px 10px; }
.max-button { font-weight:700; color:#5a3ec8; }
.report-button { padding-left:0; min-height:44px; font-size:12px; }

/* Empty deck */
.match-view .empty-deck { position:relative; height:100%; border:0; border-radius:0; padding:calc(80px + var(--safe-top)) 26px calc(var(--nav-height) + 30px + var(--safe-bottom)); background:#f4f5f2; }
.match-view:has(.empty-deck) .match-top .glass-chip,.match-view:has(.empty-deck) .match-top .glass-icon { color:var(--ink); background:#fff; border-color:var(--line); box-shadow:none; }

/* Why it did not fit */
.match-view .pass-feedback { position:absolute; top:calc(84px + var(--safe-top)); left:12px; right:12px; z-index:12; background:#fffffff2; color:var(--ink); border-radius:16px; padding:10px 14px; box-shadow:0 10px 30px #0003; font-size:13px; }
.pass-feedback summary { cursor:pointer; font-weight:600; }
.pass-reasons { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.pass-reasons button { border:1px solid var(--line); border-radius:16px; padding:7px 11px; font-size:12px; background:#fff; }

/* First-visit tutorial: the visitor does the swipes; the card shows the direction every few seconds */
.coach { position:absolute; left:14px; right:14px; top:calc(76px + var(--safe-top)); z-index:30; display:flex; justify-content:center; pointer-events:none; }
.coach-bubble { pointer-events:auto; width:100%; max-width:420px; background:#fffffff7; color:var(--ink); border-radius:22px; padding:16px 18px 8px; box-shadow:0 20px 60px #0007; }
.coach-bubble.shake { animation:yeva-coach-shake .45s ease-in-out; }
#coach-text { font-size:17px; font-weight:650; line-height:1.4; margin:0 0 4px; letter-spacing:-.2px; }
.coach-hint { font-size:12px; color:var(--muted); margin:0 0 6px; }
.coach-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.coach-dots { display:flex; gap:6px; }
.coach-dots span { width:7px; height:7px; border-radius:50%; background:#d5dfce; }
.coach-dots span.active { width:20px; border-radius:4px; background:var(--green); }
.coach-foot .text-button { font-size:13px; min-height:44px; padding:0 0 0 12px; }
@keyframes yeva-coach-like { 0%,40%,100% { transform:none; } 14%,26% { transform:translateX(22%) rotate(6deg); } }
@keyframes yeva-coach-pass { 0%,40%,100% { transform:none; } 14%,26% { transform:translateX(-22%) rotate(-6deg); } }
@keyframes yeva-coach-stamp { 0%,40%,100% { opacity:0; } 14%,26% { opacity:1; } }
@keyframes yeva-coach-shake { 0%,100% { transform:none; } 20%,60% { transform:translateX(-8px); } 40%,80% { transform:translateX(8px); } }
.swipe-card.coach-like { animation:yeva-coach-like 3.2s ease-in-out .3s infinite; }
.swipe-card.coach-pass { animation:yeva-coach-pass 3.2s ease-in-out .3s infinite; }
.swipe-card.coach-like .choice-stamp.like,.swipe-card.coach-pass .choice-stamp.pass { animation:yeva-coach-stamp 3.2s ease-in-out .3s infinite; }
@media (prefers-reduced-motion:reduce) { .swipe-card.coach-like,.swipe-card.coach-pass,.swipe-card .choice-stamp,.coach-bubble.shake { animation:none!important; } }

/* ===== Sheets: filters, contact, about ===== */
.sheet-dialog { width:min(560px,100vw); max-width:100vw; max-height:90dvh; margin:auto auto 0; border-radius:24px 24px 0 0; border-bottom:0; }
.sheet-dialog[open] { display:flex; flex-direction:column; }
.sheet-dialog .dialog-head { flex-shrink:0; }
.sheet-body { padding:14px 20px 18px; overflow-y:auto; overscroll-behavior:contain; }
.sheet-body > h3 { font-size:14px; font-weight:650; margin:4px 0 10px; }
.sheet-body .field-label { margin-top:12px; }
.sheet-foot { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px calc(12px + var(--safe-bottom)); border-top:1px solid var(--line); background:#fff; }
.sheet-foot .primary-button { flex:1; max-width:300px; font-size:14px; padding:13px 16px; }
@media (min-width:601px) { .sheet-dialog { margin:auto; border-radius:24px; border-bottom:1px solid var(--line); } }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { min-height:38px; padding:0 14px; border:1px solid #d7dfd2; border-radius:19px; background:#fff; color:var(--ink); font-size:13px; font-weight:500; transition:background .15s,border-color .15s,color .15s; }
.chip:hover { border-color:#aac0a2; }
.chip.active { background:var(--green); border-color:var(--green); color:#fff; }
.chip-group { margin:16px 0 0; }
.chip-label { display:block; color:#5f6f63; font-size:13px; font-weight:650; margin-bottom:8px; }
.radius-chips { margin-top:10px; }
.where-chips .field-note { margin-top:8px; }
.contact-context { color:var(--muted); font-size:12px; line-height:1.6; margin:12px 0 0; overflow-wrap:anywhere; }
.contact-dialog .agent-phone { margin-top:14px; font-size:26px; }
.contact-message { color:#59695d; background:#f4f7f1; border-radius:12px; padding:10px 12px; font-size:12px; line-height:1.6; margin:14px 0 0; overflow-wrap:anywhere; }
.contact-note { color:var(--muted); font-size:11px; margin:8px 0 0; }
.about-lead { font-size:14px; line-height:1.65; margin:4px 0 8px; }
.about-links { display:grid; gap:6px; margin:14px 0; }
.about-links a { display:block; padding:12px 14px; border:1px solid var(--line); border-radius:14px; text-decoration:none; font-size:14px; background:#fff; }
.about-links a:hover { background:var(--green-light); }
.about-actions { display:flex; flex-wrap:wrap; gap:8px; }
.about-actions .text-button { padding-left:0; font-size:13px; }
.about-device { margin-top:18px; border-top:1px solid var(--line); padding-top:14px; }
.about-device h3 { font-size:14px; margin:0 0 6px; }

/* ===== End of the filter sheet: sellers and «О YEVA» (formerly «Настройки») ===== */
.sheet-more { display:grid; gap:12px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line); }
.seller-card { background:linear-gradient(135deg,#fbf3ee,#fff); border:1px solid #ecd9cf; border-radius:18px; padding:16px; }
.seller-card h3 { font-size:15px; font-weight:650; margin:0 0 6px; }
.seller-card p { font-size:13px; line-height:1.6; color:#6c5c52; margin:0 0 14px; }
.seller-card .primary-button { background:var(--accent); border-color:var(--accent); font-size:14px; padding:12px 18px; }
.about-button { width:100%; display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; padding:16px 18px; border:1px solid var(--line); border-radius:18px; background:#fbfcf9; }
.about-button span { font-size:15px; font-weight:650; }
.about-button small { color:var(--muted); font-size:12px; }

/* ===== Favourites ===== */
body:not(.view-match) .favorites-screen { padding-top:0; }
.screen-nav { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 -24px 6px; padding:calc(8px + var(--safe-top)) 24px 8px; background:#f4f5f2f0; backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.back-button { display:inline-flex; align-items:center; gap:2px; min-height:44px; margin-left:-8px; padding:0 16px 0 6px; border-radius:22px; color:var(--green); font-size:15px; font-weight:650; }
.back-button svg { width:22px; height:22px; stroke-width:2.2; }
.back-button:hover { background:var(--green-light); }
.screen-nav .text-button { min-height:44px; font-size:12px; }
@media (max-width:600px) { .screen-nav { margin:0 -17px 4px; padding-left:17px; padding-right:17px; } }
.favorites-intro { display:flex; flex-direction:column; gap:12px; margin:0 0 18px; padding:16px; border-radius:18px; background:linear-gradient(135deg,#eef4ec,#fff); border:1px solid #d7e4d2; }
.favorites-intro p { margin:0; font-size:13px; line-height:1.65; color:#4e6455; }
.favorites-intro strong { display:block; font-size:16px; color:var(--ink); margin-bottom:4px; }
.favorites-intro > div { display:flex; align-items:center; gap:12px; }
.compare-section { margin-top:4px; }
.compare-scroll { overflow:auto; border:1px solid var(--line); border-radius:16px; background:#fff; -webkit-overflow-scrolling:touch; }
.compare-table { border-collapse:collapse; width:100%; font-size:12px; text-align:left; }
.compare-table th,.compare-table td { min-width:150px; max-width:220px; padding:11px 12px; vertical-align:top; overflow-wrap:anywhere; border-bottom:1px solid var(--line); border-right:1px solid var(--line); }
.compare-table tr > :first-child { position:sticky; left:0; z-index:1; min-width:118px; width:118px; background:#fbfcf9; color:#5f6f63; font-weight:600; }
.compare-table tr > :last-child { border-right:0; }
.compare-table tbody tr:last-child > * { border-bottom:0; }
.compare-table thead th { background:#f4f7ef; }
.compare-table .best-note { display:block; font-size:10px; font-weight:500; color:#6d7b70; line-height:1.4; }
.compare-photo { position:relative; display:block; width:100%; padding:0; border:0; background:#e9eee6; border-radius:10px; overflow:hidden; aspect-ratio:4/3; margin-bottom:8px; }
.compare-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.compare-photo .media-type { position:absolute; left:6px; bottom:6px; font-size:10px; padding:4px 8px; }
.compare-table thead strong { display:block; font-size:12px; line-height:1.45; }
.compare-address { display:block; font-size:11px; font-weight:400; color:#6d7b70; line-height:1.4; margin-top:2px; }
.compare-actions { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:6px; }
.compare-actions button { min-height:36px; padding:0; color:var(--green); font-size:12px; font-weight:650; background:none; border:0; }
.compare-actions .compare-remove { color:#9a6d5a; font-weight:500; }
.compare-table td.best { background:#eef6ea; color:#2f5a3b; font-weight:650; }
.compare-table tr.extra-row th,.compare-table tr.extra-row td { background:#fcfdfb; }
.compare-more { display:block; width:100%; min-height:46px; margin-top:10px; border:1px solid #cfdcca; border-radius:14px; background:#fff; color:var(--green); font-size:13px; font-weight:650; }
.compare-table th[scope="row"] { overflow-wrap:normal; word-break:normal; -webkit-hyphens:auto; hyphens:auto; }
@media (max-width:600px) {
  .compare-table th,.compare-table td { min-width:110px; padding:9px 8px; }
  .compare-table tr > :first-child { min-width:88px; width:88px; }
}
.extra-toolbar { padding:12px 16px; margin-bottom:16px; }
.extra-privacy { margin:0; font-size:12px; line-height:1.5; color:#6d7b70; }
.extra-toolbar:not(:has(.extra-alerts)) { border:0; background:none; padding:0 4px; }
.extra-alerts { margin-top:10px; }
.agent-actions a { text-decoration:none; }
@media (min-width:601px) {
  /* On a computer the «Подбор» column keeps a phone-like shape, so vertical videos are not cropped much. */
  .match-view { max-width:min(560px, calc(100dvh * .6)); }
}
/* Touch: wider tap areas */
.match-view .media-dot { position:relative; }
.match-view .media-dot::after { content:""; position:absolute; left:-2px; right:-2px; top:-14px; bottom:-14px; }
.match-view .action-circle.undo,.match-view .action-circle.info { width:46px; height:46px; }
.chip { min-height:42px; }
.sheet-dialog .icon-button { min-width:44px; min-height:44px; }
.match-view .hero-media:not(.details-mode) { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
/* «Поделиться» and the notice about recommendations */
.match-view .hero-bottom .share-chip { flex-shrink:0; margin-left:auto; }
.match-view .hero-bottom .share-chip svg { width:15px; height:15px; }
.details-share { margin-top:8px; padding-left:0; min-height:40px; font-size:13px; font-weight:600; color:var(--green); }
.details-share svg { width:16px; height:16px; }
.recommendation-reason a { color:inherit; font-weight:600; }
.coach-note { font-size:11px; line-height:1.5; color:var(--muted); margin:0 0 4px; }
.coach-note a,.rec-note a,.favorites-intro a { color:var(--green); font-weight:600; }
.rec-note { margin:20px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
