/* DonProche — local Sites revision. Existing routes and API behavior are retained. */
:root {
  --bg: #fff;
  --surface: #fff;
  --text: #14213a;
  --text-soft: #66738a;
  --accent: #2454ff;
  --accent-ink: #fff;
  --accent-muted: #edf2ff;
  --surface-border: #e3e8f0;
  --input-bg: #f6f8fb;
  --secondary-bg: #f3f6fc;
  --image-bg: #edf0f5;
  --status-info-bg: #edf2ff;
  --status-info-text: #2454ff;
  --status-success-bg: #edf2ff;
  --status-success-text: #2454ff;
  --chat-other-bg: #f0f3fa;
  --map-bg: #edf2ff;
  --font-title: 'Source Sans 3', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 16px;
}
:root[data-theme="dark"] {
  --bg: #000;
  --surface: #000;
  --text: #f1f3f8;
  --text-soft: #a2a9b8;
  --accent: #91acff;
  --accent-ink: #07112d;
  --accent-muted: #171717;
  --surface-border: #292929;
  --input-bg: #101010;
  --secondary-bg: #151515;
  --image-bg: #171717;
  --status-info-bg: #171717;
  --status-info-text: #b2c5ff;
  --status-success-bg: #171717;
  --status-success-text: #b2c5ff;
  --chat-other-bg: #151515;
  --map-bg: #171717;
}
body { font-size: 16px; }
body::before { display: none; }
h1, h2, h3 { font-weight: 600; }
.btn { border-radius: 10px; font-weight: 600; min-height: 44px; }
.btn.secondary { border: 0; }
.topbar { min-height: 84px; padding: 16px max(28px, calc((100vw - 1280px) / 2)); background: var(--surface); gap: 20px; border-bottom: 0; }
.brand { gap: 10px; }
.brand__mark { width: 42px; height: 42px; border-radius: 12px; }
.brand__name { font-size: 27px; font-weight: 700; letter-spacing: -.7px; }
.brand__tag { font-size: 11px; }
.nav { flex: 1; justify-content: center; gap: 3px; }
.nav a { padding: 10px 13px; font-size: 15px; border-radius: 9px; font-weight: 500; }
.nav a.nav-publish { order: 5; margin-left: 12px; font-weight: 600; }
.topbar__actions { gap: 8px; }
.topbar__actions .btn { font-size: 14px; padding: 8px 14px; }
.theme-toggle { min-width: 40px; border: 0; }
.main { max-width: 1340px; padding: 0 30px 56px; gap: 0; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.7px; color: var(--accent); margin-bottom: 20px; }
.discovery-head { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 370px; gap: 0; padding: 0; margin: 28px 0 0; border-radius: 20px; background: var(--input-bg); overflow: hidden; }
.hero-copy { padding: 40px 38px 65px; align-self: center; }
.discovery-head h1 { font-size: clamp(40px, 4.1vw, 56px); font-weight: 600; letter-spacing: -1.4px; line-height: 1.08; margin: 0 0 22px; }
.discovery-head h1 em { color: var(--accent); font-style: normal; }
.discovery-head p { font-size: 17px; line-height: 1.65; color: var(--text-soft); margin: 0; max-width: 490px; }
.hero-visual { position: relative; min-width: 0; min-height: 370px; }
.hero-visual img { display: block; width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 68% center; }
:root[data-theme="dark"] .discovery-head { background: #000; outline: 0; }
.discovery { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: -38px; position: relative; }
.search-bar { margin: 0 24px; padding: 12px; min-height: 84px; display: flex; align-items: center; border: 0; border-radius: 14px; background: var(--surface); box-shadow: 0 8px 24px #14213a08; position: relative; z-index: 2; }
.search-bar label { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 1px; padding: 0 20px; min-width: 0; }
.search-bar label > .icon { grid-column: 1; grid-row: 1/3; align-self: center; width: 20px; height: 20px; color: var(--accent); }
.field-caption { grid-column: 2; font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.4; }
.search-bar .search-field { flex: 1; }
.search-bar .area-field { width: 215px; border-left: 0; }
.search-bar .radius-field { width: 110px; display: block; border-left: 0; }
.search-bar .radius-field .field-caption { display: block; }
.search-bar input, .search-bar select { grid-column: 2; font-size: 16px; padding: 3px 0; min-height: 30px; color: var(--text-soft); border: 0; background: transparent; }
.search-bar input::placeholder { color: var(--text-soft); opacity: 1; }
.search-bar > .btn { min-height: 52px; padding: 12px 26px; border-radius: 10px; }
.category-strip { order: 1; margin: 0; padding: 4px 0 16px; gap: 10px; border-bottom: 0; overflow-x: auto; }
.category-chip { min-height: 42px; padding: 9px 18px; border-radius: 9px; border: 1px solid transparent; background: transparent; font-size: 15px; color: var(--text-soft); font-weight: 500; }
.category-chip.active { background: var(--accent-muted); color: var(--accent); border-color: transparent; }
.category-chip:hover { background: var(--secondary-bg); color: var(--accent); }
.discovery-tools { order: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: -6px; }
.discovery-tools .text-button { font-size: 14px; gap: 7px; }
.discovery-tools .icon { width: 17px; height: 17px; }
.view-switch { display: flex; padding: 4px; border: 0; border-radius: 10px; gap: 3px; background: var(--surface); }
.view-switch a { display: flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 7px; font-size: 14px; color: var(--text-soft); }
.view-switch a[aria-current="page"] { background: var(--secondary-bg); color: var(--accent); font-weight: 600; }
.results-heading { order: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0; }
.results-heading h2 { font-size: 27px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 5px; }
.results-heading p { font-size: 14px; margin: 0; }
.demo-label { display: inline-block; color: var(--text-soft); font-size: 12px; margin-bottom: 5px; }
.result-filters { display: flex; gap: 8px; }
.result-filters select { background: var(--secondary-bg); font-size: 14px; padding: 10px 12px; border-radius: 9px; min-height: 42px; border: 0; }
.discovery-map { order: 5; }
#searchStatus { order: 4; }
#discoveryResults { order: 6; }
#loadMore { order: 7; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.item-card { border: 0; border-radius: 0; background: transparent; overflow: visible; box-shadow: none; }
.item-card:hover { box-shadow: none; transform: translateY(-2px); }
.item-card__visual { aspect-ratio: 1.45; border-radius: 13px; }
.item-card__availability { display: none; }
.favorite-button { width: 40px; height: 40px; top: 12px; right: 12px; color: #35435b; }
.item-card__body { padding: 14px 0 0; }
.item-card__meta { display: flex; font-size: 12px; margin-bottom: 7px; }
.item-card h3 { font-size: 21px; line-height: 1.25; font-weight: 600; margin: 0 0 8px; }
.item-card__body > p { font-size: 14px; margin: 0 0 12px; }
.item-card__body > p .icon { width: 15px; height: 15px; }
.item-card__bottom { font-size: 13px; border-top: 0; padding-top: 6px; align-items: center; }
.item-card__bottom strong { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-muted); padding: 5px 12px; border-radius: 6px; }
.sharing-note { margin-top: 48px; border: 0; border-radius: 16px; padding: 28px; background: var(--input-bg); }
.sharing-note h2 { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.sharing-note p { font-size: 15px; }
.footer { background: var(--bg); border-top: 0; }
.footer__inner { max-width: 1340px; padding-inline: 30px; }
.footer__links { font-size: 14px; }
.preview-note { margin: 0; padding: 10px 20px; color: var(--text-soft); background: var(--input-bg); font-size: 12px; text-align: center; }
.member-heading, .map-page-heading { padding: 36px 0 28px; }
.member-heading .eyebrow, .map-page-heading .eyebrow { margin-bottom: 12px; }
.member-heading h1, .map-page-heading h1 { font-size: 38px; font-weight: 600; letter-spacing: -.8px; line-height: 1.15; margin: 0 0 10px; }
.member-heading p, .map-page-heading p { color: var(--text-soft); margin: 0; font-size: 17px; }
.map-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.discovery--member, .discovery--map { margin-top: 0; }
.discovery--member .search-bar, .discovery--map .search-bar { margin: 0; }
.discovery--map { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 20px 24px; }
.discovery--map .search-bar, .discovery--map .category-strip, .discovery--map .discovery-tools, .discovery--map .results-heading, .discovery--map #searchStatus { grid-column: 1/-1; }
.discovery--map .discovery-map { grid-column: 1; grid-row: 6; height: 620px; min-height: 400px; border-radius: 14px; position: sticky; top: 110px; border: 0; }
.discovery--map #discoveryResults { grid-column: 2; grid-row: 6; max-height: 620px; overflow-y: auto; padding-right: 5px; }
.discovery--map .catalog-grid { grid-template-columns: 1fr; }
.discovery--map .item-card__visual { aspect-ratio: 1.9; }
.discovery--map #loadMore { grid-column: 2; }
.map-popup { font-family: var(--font-body); color: #14213a; font-size: 15px; min-width: 170px; }
.map-popup p { color: #66738a; margin: 7px 0; }
.map-popup a { color: #2454ff; font-weight: 600; }
.card { border: 0; border-radius: 16px; box-shadow: none; }
.auth-shell { margin: 40px auto; padding: 32px; }
.auth-shell h1 { font-size: 34px; font-weight: 600; letter-spacing: -.5px; }
.form input, .form textarea, .form select { border-radius: 9px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (min-width: 761px) and (max-width: 1100px) {
 .topbar { flex-wrap: wrap; padding: 14px 28px; gap: 12px; }
 .topbar__actions { margin-left: auto; }
 .nav { order: 3; flex-basis: 100%; justify-content: space-between; }
 .nav a.nav-publish { margin-left: 0; }
 .hero-copy { padding: 32px 26px 58px; }
 .discovery-head h1 { font-size: 42px; }
 .discovery-head p { font-size: 16px; }
 .desktop-break { display: none; }
 .search-bar label { padding-inline: 12px; }
 .search-bar .area-field { width: 180px; }
 .search-bar .radius-field { width: 95px; }
}
@media (max-width: 760px) {
 .topbar { padding: 14px 20px; min-height: 76px; gap: 10px; }
 .brand__mark { width: 35px; height: 35px; }
 .brand__name { font-size: 24px; }
 .brand__tag { font-size: 10px; }
 .topbar__actions { gap: 5px; }
 .topbar__actions .btn { padding: 7px 10px; font-size: 13px; min-height: 38px; }
 .main { padding: 0 20px 36px; }
 .discovery-head { display: flex; flex-direction: column; min-height: 0; margin-top: 20px; border-radius: 15px; }
 .hero-copy { padding: 28px 24px; }
 .eyebrow { font-size: 9px; letter-spacing: 1.3px; margin-bottom: 16px; }
 .discovery-head h1 { font-size: clamp(32px, 8.5vw, 46px); letter-spacing: -.8px; margin-bottom: 16px; }
 .discovery-head p { font-size: 16px; }
 .desktop-break { display: none; }
 .hero-visual { min-height: 200px; width: 100%; }
 .hero-visual img { object-position: 70% 52%; }
 .discovery { margin-top: -20px; gap: 20px; }
 .search-bar { margin: 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) 90px; padding: 10px; gap: 8px; border-radius: 12px; }
 .search-bar .search-field { grid-column: 1/-1; padding: 4px 8px 12px; border-bottom: 0; }
 .search-bar .area-field { width: auto; border: 0; padding: 3px 8px; }
 .search-bar .radius-field { width: auto; padding: 3px 7px; border: 0; }
 .search-bar input, .search-bar select { font-size: 15px; }
 .search-bar > .btn { grid-column: 1/-1; min-height: 44px; padding: 10px; }
 .category-strip { padding: 0 0 13px; margin: 0; gap: 6px; }
 .category-chip { font-size: 14px; padding: 9px 13px; min-height: 42px; }
 .discovery-tools { gap: 8px; }
 .discovery-tools .text-button { font-size: 13px; }
 .view-switch a { padding: 6px 11px; font-size: 13px; }
 .results-heading { flex-direction: column; align-items: stretch; gap: 14px; }
 .results-heading h2 { font-size: 25px; }
 .result-filters { width: 100%; }
 .result-filters label { flex: 1; min-width: 0; }
 .result-filters select { font-size: 13px; padding: 9px; }
 .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
 .item-card__visual { aspect-ratio: 1.12; border-radius: 10px; }
 .favorite-button { width: 33px; height: 33px; padding: 7px; top: 8px; right: 8px; }
 .item-card__body { padding-top: 12px; }
 .item-card__meta { font-size: 11px; }
 .item-card h3 { font-size: 17px; margin: 0 0 8px; }
 .item-card__body > p { font-size: 12px; }
 .item-card__bottom { flex-wrap: wrap; font-size: 11px; gap: 7px; }
 .item-card__bottom strong { font-size: 12px; padding: 4px 8px; }
 .nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 0; }
 .nav a { padding: 6px 2px; font-size: 10px; border-radius: 8px; }
 .nav a.nav-publish { order: 0; margin: 0 2px; }
 .nav a.nav-publish span { font-size: 0; }
 .nav a.nav-publish span::after { content: 'Donner'; font-size: 10px; }
 .sharing-note { margin-top: 34px; padding: 24px; }
 .sharing-note h2 { font-size: 22px; }
 .sharing-note p { font-size: 14px; }
 .footer__inner { padding-inline: 20px; }
 .member-heading, .map-page-heading { padding: 28px 0 24px; }
 .member-heading h1, .map-page-heading h1 { font-size: 31px; }
 .member-heading p, .map-page-heading p { font-size: 16px; }
 .map-page-heading { display: block; }
 .map-page-heading > .btn { margin-top: 18px; }
 .discovery--member, .discovery--map { margin-top: 0; }
 .discovery--map { grid-template-columns: 1fr; }
 .discovery--map .discovery-map { grid-column: 1; grid-row: 6; height: 370px; min-height: 300px; top: auto; position: relative; }
 .discovery--map #discoveryResults { grid-column: 1; grid-row: 7; max-height: none; overflow: visible; padding: 0; }
 .discovery--map .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .discovery--map .item-card__visual { aspect-ratio: 1.12; }
 .discovery--map #loadMore { grid-column: 1; }
 .auth-shell { margin: 24px 0; padding: 24px; }
 .auth-shell h1 { font-size: 30px; }
}

/* The search is one surface, with no nested focus frame or divider lines. */
.search-bar label:focus-within { outline: 0; }
.search-bar input:focus-visible, .search-bar select:focus-visible { outline: 0; box-shadow: none; }
.search-bar label:has(:focus-visible) .field-caption { color: var(--accent); }
.search-bar input { caret-color: var(--accent); }
.empty-state { border: 0; background: var(--input-bg); }

/* Public welcome photos: soft crossfade, independent of listing data. */
#heroSlideshow img { opacity: 0; transition: opacity 900ms ease; }
#heroSlideshow img.is-active { opacity: 1; }
.hero-slide-controls { position: absolute; z-index: 1; top: 16px; right: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; color: #14213a; border-radius: 8px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { #heroSlideshow img { transition: none; } }
