/* Desktop marketplace refinement. Mobile keyboard and upload styles stay intact. */
.desktop-only,.desktop-search-tools,.desktop-filter-chips,.desktop-dashboard-tools,.desktop-plan-overview,.desktop-promotion-expiry { display:none; }
.results-layout,.results-list { min-width:0; }
.listing-error { padding:28px; border:1px solid var(--line); border-radius:18px; background:var(--surface-soft); color:var(--ink); }
.listing-error p { color:var(--muted); overflow-wrap:anywhere; }
.results-map-panel { border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--surface); }
.map-panel-heading { padding:16px 18px; border-bottom:1px solid var(--line); }
.map-panel-heading strong { font-size:13px; }
.map-panel-heading p { margin:7px 0 0; font-size:10px; line-height:1.7; color:var(--muted); }
.map-panel-heading button { margin-top:12px; }
.results-map-panel #listing-map { border:0; border-radius:0; margin:0; }
.ghome-price-pin { background:transparent; border:0; }
.ghome-price-pin > span { display:block; width:max-content; max-width:130px; padding:8px 12px; border:1px solid var(--line-strong); border-radius:22px; color:var(--ink); background:var(--surface); box-shadow:0 3px 12px rgba(0,0,0,.2); font:700 12px system-ui,sans-serif; white-space:nowrap; }
.ghome-price-pin.is-highlighted > span { background:var(--brand); color:var(--on-primary); border-color:var(--brand); transform:scale(1.08); }
.card.map-highlighted { outline:3px solid var(--brand-bright); outline-offset:2px; }
.desktop-property-heading,.desktop-property-main,.desktop-property-summary { min-width:0; }
.desktop-specifications { margin:0; }
.dashboard-feedback { grid-column:1/-1; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--ink); }
.dashboard-feedback button { margin:10px; }
@media(min-width:821px) {
  :root { --desktop-header-height:86px; }
  .desktop-only { display:inline-flex; }
  .home-page > main { width:min(1640px,calc(100% - 64px)); margin-top:24px; }
  .home-page .hero { min-height:350px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); border-radius:24px; box-shadow:var(--shadow-md); }
  .home-page .hero-copy { min-height:0; padding:34px 40px; }
  .home-page .hero-copy::before { opacity:.45; }
  .home-page .hero-kicker { font-size:10px; margin:0 0 6px; }
  .home-page .hero h1 { margin:12px 0; font-size:clamp(29px,2.8vw,43px); line-height:1.35; letter-spacing:-.035em; }
  .home-page .hero-copy > p { max-width:530px; font-size:12px; line-height:1.85; }
  .home-page .hero-actions { margin-top:22px; gap:10px; }
  .home-page .hero-actions > * { min-height:44px; padding:12px 17px; font-size:10px; }
  .home-page .hero-features { display:none; }
  .home-page .hero-picture { min-height:350px; }
  .home-page .hero-info-card { right:20px; bottom:20px; width:min(300px,80%); padding:18px 20px; }
  .home-page .hero-info-card strong { font-size:18px; line-height:1.6; }
  .home-page .hero-info-card small { font-size:10px; }
  .home-page .hero-image-label { top:22px; right:22px; left:auto; font-size:10px; }
  .home-page .search-panel { margin-top:22px; border:1px solid var(--line); border-radius:20px; padding:20px 24px; box-shadow:var(--shadow-sm); }
  .home-page .search-tabs { margin-bottom:18px; }
  .home-page .search-tabs button { min-height:40px; padding:9px 18px; font-size:11px; }
  .home-page #search { grid-template-columns:1.2fr 1.1fr 1fr .8fr .85fr .85fr 115px 115px; gap:12px; align-items:end; }
  .home-page #search label,.home-page #extra-fields label { min-width:0; gap:7px; }
  .home-page #search label > span,.home-page #extra-fields label > span { font-size:10px; white-space:nowrap; }
  .home-page #search input,.home-page #search select,.home-page #extra-fields input,.home-page #extra-fields select { height:48px; min-height:48px; padding:10px 12px; border-radius:10px; font-size:12px; }
  .home-page #search .filter-button,.home-page #search .search-button { grid-column:auto; min-height:48px; padding:10px 12px; font-size:10px; line-height:1.6; }
  .home-page #extra-fields { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; padding-top:18px; margin-top:18px; border-top:1px solid var(--line); }
  .home-page .quick-types { gap:8px; margin-top:16px; }
  .home-page .quick-types button { min-height:34px; padding:7px 12px; font-size:10px; border-radius:8px; }
  .desktop-search-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:16px 0 0; }
  .desktop-search-tools > p { margin:0; color:var(--muted); font-size:11px; }
  .desktop-search-tools > div { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .desktop-search-tools button,.desktop-filter-chips button { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:8px 12px; border:1px solid var(--line); border-radius:10px; color:var(--ink); background:var(--surface); font-size:10px; }
  .desktop-search-tools svg,.desktop-filter-chips svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; }
  .desktop-search-tools [data-search-alert-count]:not([hidden]) { display:inline-block; border-radius:20px; padding:2px 5px; background:var(--danger-soft); color:var(--danger); }
  .desktop-filter-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
  .desktop-filter-chips button { min-height:32px; padding:6px 10px; border-color:var(--line-strong); background:var(--brand-soft); color:var(--ink); }
  .desktop-filter-chips svg { width:13px; height:13px; }
  .desktop-filter-chips:empty { display:none; }
  .home-page .ad-slot { min-height:88px; margin:24px 0; border-radius:16px; }
  .home-page .ad-slot strong { font-size:19px; }
  .home-page .listings { margin-top:38px; }
  .home-page .section-heading { margin-bottom:18px; }
  .home-page .section-heading h2 { font-size:27px; letter-spacing:-.03em; }
  .home-page .section-heading p { margin-top:7px; font-size:11px; }
  .home-page .section-label { font-size:9px; }
  .home-page .promotion-section { padding:22px 20px 20px; border-radius:20px; }
  .home-page .promotion-section > .cards { grid-auto-columns:calc((100% - 64px) / 5); gap:16px; scroll-snap-type:x proximity; }
  .home-page .standard-section #cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
  .home-page .card { border:1px solid var(--line); border-radius:15px; box-shadow:var(--shadow-sm); overflow:hidden; }
  .home-page .card:hover { border-color:var(--line-strong); box-shadow:var(--shadow-md); transform:translateY(-3px); }
  .home-page .card-photo { aspect-ratio:16/11; background:var(--surface-soft); }
  .home-page .card-photo > a,.home-page .card-photo img { width:100%; height:100%; display:block; }
  .home-page .card-photo img { object-fit:cover; }
  .home-page .card-body { min-height:0; padding:17px; }
  .home-page .card .price { font-size:25px; letter-spacing:-.03em; }
  .home-page .card .unit-price { font-size:10px; color:var(--muted); min-height:17px; }
  .home-page .card-title { margin-top:9px; font-size:14px; line-height:1.65; min-height:46px; max-height:46px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .home-page .card .location { min-height:34px; max-height:34px; line-height:1.7; font-size:10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
  .home-page .card .specs { flex-wrap:wrap; gap:8px; font-size:10px; padding-top:12px; margin-top:10px; }
  .home-page .card-topline { font-size:9px; gap:8px; }
  .home-page .card-footer { padding-top:12px; margin-top:12px; font-size:10px; }
  .home-page .card .badge { top:10px; left:10px; max-width:calc(100% - 60px); padding:6px 8px; font-size:8px; }
  .home-page .card .heart { top:9px; right:9px; width:34px; height:34px; }
  .home-page .card .photo-count { right:10px; bottom:10px; font-size:9px; padding:5px 7px; }
  .mobile-compare-toggle { display:flex; position:absolute; left:10px; bottom:10px; align-items:center; gap:5px; padding:6px 9px; min-height:29px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:var(--surface); font-size:9px; }
  .mobile-compare-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; }
  .mobile-compare-toggle[aria-pressed="true"] { background:var(--brand); color:var(--on-primary); border-color:var(--brand); }
  .promotion-section .card-body { padding:13px; }
  .promotion-section .card .price { font-size:22px; }
  .promotion-section .card-title { font-size:12px; min-height:40px; max-height:40px; }
  .promotion-section .card .specs { font-size:9px; gap:6px; }
  .promotion-section .card-footer { font-size:9px; }
  .promotion-section .card .location { font-size:9px; min-height:31px; max-height:31px; }
  .results-layout.has-map { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(310px,1fr); gap:24px; align-items:start; }
  .results-layout.has-map #cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .results-layout.has-map .results-map-panel { position:sticky; top:calc(var(--desktop-header-height) + 16px); }
  .results-map-panel #listing-map { height:calc(100dvh - var(--desktop-header-height) - 175px); min-height:350px; max-height:720px; }
  .results-map-panel .leaflet-container { background:var(--surface-soft); }
  .listing-controls .view-switch { border:1px solid var(--line); border-radius:10px; padding:4px; }
  .listing-controls .view-switch button { min-height:36px; min-width:60px; padding:7px 12px; border-radius:7px; }
  .listing-controls #sort { min-height:46px; font-size:11px; }
  #mobile-compare-bar:not([hidden]) { display:flex; position:fixed; z-index:140; left:auto; right:28px; bottom:24px; align-items:center; gap:10px; padding:12px; border:1px solid var(--line-strong); border-radius:16px; background:var(--surface); box-shadow:var(--shadow-lg); }
  #mobile-compare-bar button { display:flex; align-items:center; gap:8px; min-height:42px; padding:10px 14px; border:0; border-radius:10px; background:var(--brand); color:var(--on-primary); font-size:12px; }
  #mobile-compare-bar button:last-child { background:var(--surface-soft); color:var(--ink); }
  #mobile-compare-bar svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; }
  .mobile-dialog { width:min(900px,calc(100% - 60px)); padding:30px; }
  .mobile-table-scroll table { font-size:13px; }
  .mobile-table-scroll th,.mobile-table-scroll td { padding:16px; }
  .mobile-table-scroll thead th { min-width:185px; }
  .mobile-table-scroll th img { height:130px; }
  .desktop-property-layout { grid-template-columns:minmax(0,1.6fr) minmax(310px,.8fr); gap:28px; }
  .desktop-property-heading { margin:22px 0 24px; }
  .desktop-property-heading h1 { max-width:1050px; margin:10px 0; font-size:clamp(28px,3vw,42px); line-height:1.45; letter-spacing:-.035em; }
  .desktop-property-heading .location { color:var(--muted); font-size:13px; }
  .desktop-property-main .property-main { aspect-ratio:16/11; max-height:650px; }
  .desktop-property-main .property-thumbs { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px; margin-top:12px; }
  .desktop-property-main .property-thumbs img { width:100%; height:100%; object-fit:cover; }
  .desktop-property-main .property-info { position:static; padding:28px; margin-top:24px; border-radius:18px; }
  .desktop-property-main .property-info .property-specs { display:none; }
  .desktop-specifications { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; margin:0 0 26px; }
  .desktop-specifications > div { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid var(--line); padding:16px 0; font-size:13px; }
  .desktop-specifications dt { color:var(--muted); }
  .desktop-specifications dd { margin:0; color:var(--ink); font-weight:700; text-align:right; }
  .desktop-property-main .description { font-size:14px; line-height:2; }
  .desktop-property-summary { position:sticky; top:100px; padding:26px; border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow-md); }
  .desktop-property-summary > .price { color:var(--brand); font-size:36px; font-weight:800; line-height:1.25; letter-spacing:-.035em; }
  :root[data-theme="dark"] .desktop-property-summary > .price,:root[data-theme="dark"] .desktop-plan-overview b { color:var(--brand-bright); }
  .desktop-property-summary .unit-price { color:var(--muted); font-size:12px; margin-top:7px; }
  .desktop-property-summary .seller-panel { padding:18px 0; margin:22px 0 10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); border-radius:0; background:none; flex-wrap:wrap; }
  .desktop-property-summary .seller-copy { flex:1; min-width:100px; }
  .desktop-property-summary .property-actions { grid-template-columns:1fr 1fr; gap:9px; }
  .desktop-property-summary .property-actions > * { min-height:44px; font-size:11px; text-align:center; }
  .desktop-property-summary .property-actions .call-action { grid-column:1/-1; padding:15px; font-size:13px; }
  .desktop-property-summary .desktop-contact-note { padding-top:18px; margin:18px 0 0; border-top:1px solid var(--line); color:var(--muted); font-size:10px; line-height:1.8; }
  .listing-page[data-listing-active="false"] .desktop-property-summary .call-action { display:none; }
  .property-actions .mobile-only { display:inline-flex; align-items:center; justify-content:center; }
  .dashboard-shell { width:min(1480px,calc(100% - 64px)); display:grid; grid-template-columns:210px minmax(0,1fr); gap:26px; margin-top:28px; }
  .dashboard-welcome { grid-column:1/-1; border-radius:22px; padding:30px; margin:0; }
  .dashboard-welcome .profile-summary h1 { font-size:30px; }
  .dashboard-welcome .dashboard-metrics { margin-top:24px; gap:12px; }
  .dashboard-metrics > div { border-radius:12px; }
  .dashboard-shell > .dashboard-nav { grid-column:1; grid-row:2; align-self:start; position:sticky; top:100px; display:flex; flex-direction:column; gap:5px; margin:0; padding:10px; border-radius:16px; overflow:visible; }
  .dashboard-shell > .dashboard-nav button { width:100%; text-align:left; min-height:46px; border-radius:10px; padding:12px 14px; font-size:11px; white-space:normal; }
  .dashboard-shell > .dashboard-panel { grid-column:2; grid-row:2; min-width:0; margin:0; }
  .dashboard-panel .section-heading h2 { font-size:26px; }
  .dashboard-panel .section-heading p { font-size:12px; }
  .desktop-dashboard-tools { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 20px; padding:14px 16px; border:1px solid var(--line); border-radius:13px; background:var(--surface); }
  .desktop-dashboard-tools input { min-width:160px; flex:1; min-height:43px; padding:10px 13px; font-size:12px; }
  .desktop-dashboard-tools span { font-size:11px; color:var(--muted); }
  .desktop-plan-overview { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:20px; }
  .desktop-plan-overview > div { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; border:1px solid var(--line); border-radius:12px; padding:14px 18px; background:var(--surface); color:var(--ink); font-size:11px; }
  .desktop-plan-overview b { color:var(--brand); font-size:13px; }
  .desktop-plan-overview small { display:block; width:100%; color:var(--muted); font-size:10px; }
  .desktop-promotion-expiry { display:block; color:var(--brand); font-size:11px; margin-top:7px; }
  .dashboard-listing-row { grid-template-columns:145px minmax(0,1fr) auto; gap:18px; padding:20px; border-radius:16px; align-items:start; }
  .dashboard-listing-photo { width:145px; height:125px; grid-row:1/3; border-radius:11px; }
  .dashboard-listing-photo img { width:100%; height:100%; object-fit:cover; }
  .dashboard-listing-info { min-width:0; }
  .dashboard-listing-info h3 { font-size:16px; line-height:1.6; margin:10px 0 7px; overflow-wrap:anywhere; }
  .dashboard-listing-info p { font-size:11px; }
  .dashboard-listing-info small { font-size:10px; line-height:1.8; }
  .dashboard-listing-price { grid-column:3; text-align:right; }
  .dashboard-listing-price strong { font-size:22px; white-space:nowrap; }
  .dashboard-listing-actions { grid-column:2/-1; display:flex; flex-wrap:wrap; justify-content:flex-start; gap:8px; margin-top:3px; }
  .dashboard-listing-actions > * { min-height:39px; padding:9px 12px; font-size:10px; }
  .dashboard-order-row { gap:16px; padding:20px; }
  .profile-form { max-width:900px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
  .home-page input:focus,.home-page select:focus,.dashboard-page input:focus,.dashboard-page textarea:focus { border-color:var(--brand-bright); box-shadow:0 0 0 3px var(--brand-soft); }
  .home-page button:focus-visible,.home-page a:focus-visible,.dashboard-page button:focus-visible,.listing-page button:focus-visible { outline:3px solid var(--brand-bright); outline-offset:3px; }
  .home-page .listing-pagination { padding-top:24px; }
  .home-page .site-footer { margin-top:64px; }
}
@media(min-width:981px) {
  .home-page .header-shell { gap:20px; }
  .home-page .header-actions { gap:8px; min-width:0; }
  .home-page .account-actions .auth-login[data-no-translate] { display:block; max-width:145px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .home-page .auth-register { display:inline-flex; }
}
@media(min-width:981px) and (max-width:1279px) {
  .home-page .main-nav { display:none; }
  .home-page #my-listings { display:none; }
}
@media(min-width:821px) and (max-width:1279px) {
  .home-page > main,.dashboard-shell { width:calc(100% - 40px); }
  .home-page #search { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-page .hero-copy { padding:30px; }
  .home-page .hero h1 { font-size:31px; }
  .home-page .hero-info-card { display:none; }
  .home-page .promotion-section > .cards { grid-auto-columns:calc((100% - 48px) / 4); }
  .home-page .standard-section #cards { gap:14px; }
  .home-page .standard-section .card-body { padding:13px; }
  .home-page .card .price { font-size:22px; }
  .results-layout.has-map { grid-template-columns:minmax(0,1fr) minmax(300px,.85fr); gap:16px; }
  .results-layout.has-map #cards { grid-template-columns:1fr; }
  .dashboard-shell { grid-template-columns:175px minmax(0,1fr); gap:18px; }
  .dashboard-listing-row { grid-template-columns:110px minmax(0,1fr); gap:14px; }
  .dashboard-listing-photo { width:110px; height:105px; }
  .dashboard-listing-price { grid-column:2; grid-row:2; text-align:left; }
  .dashboard-listing-actions { grid-column:1/-1; }
  .desktop-property-layout { grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr); gap:20px; }
  .desktop-property-summary { padding:20px; }
}
@media(min-width:1700px) {
  .home-page .promotion-section > .cards { grid-auto-columns:calc((100% - 80px) / 6); }
}
@media(prefers-reduced-motion:reduce) {
  .home-page .card:hover { transform:none; }
  .ghome-price-pin > span { transition:none; }
}
