/* Shared catalog map presentation/layout; individual themes provide brand styling. */
.public-catalog-map { --catalog-map-accent:var(--primary,#3e97ff); --catalog-map-height:min(70vh,48rem); --catalog-map-radius:1rem; min-width:0; border-radius:var(--catalog-map-radius); }
.public-catalog-map[hidden] { display:none!important; }
html[data-catalog-view] body>main { background:#fff; }
.catalog-map-app { color:#172b3a; font:inherit; height:100%; min-height:0; position:relative; }
.catalog-map-app button { cursor:pointer; font:inherit; }
.catalog-map-app button:disabled { cursor:default; opacity:.55; }
/* The existing main uses the theme width (max-w-7xl/mx-auto) in both views.
   The page owns header/filters; only map results own vertical scrolling. */
html[data-catalog-view="map"], html[data-catalog-view="map"] body { height:100%; overflow:hidden; }
html[data-catalog-view="map"] body { height:100dvh; min-height:0; }
html[data-catalog-view="map"] body>header { flex-shrink:0; }
html[data-catalog-view="map"] body>main { display:flex; flex-direction:column; flex:1; min-height:0; overflow:hidden; }
html[data-catalog-view="map"] body>footer { display:none; }
html[data-catalog-view="map"] [data-portfolio-section="catalog_intro"] { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
html[data-catalog-view] [data-portfolio-section="catalog_search"],html[data-catalog-view] .catalog-map-filters { flex-shrink:0; padding:.5rem 1rem; background:#fff; border-bottom:1px solid #e2e8f0; position:relative; z-index:10; }
html[data-catalog-view] [data-portfolio-section="catalog_search"]>div { padding:0; }
/* Territory filters share the same centered, content-width toolbar contract as
   Default regardless of each theme's full-bleed main or own page-width token. */
html[data-catalog-view] .catalog-map-filters {
  box-sizing:border-box; width:100%; max-width:var(--page-width,1400px); margin-inline:auto;
}
@media(min-width:768px) {
  /* Normalize the shared capsules inside Territory: theme-specific hero search
     sizes and 48px controls must not decide RE catalog geometry. */
  html[data-catalog-view] .catalog-map-filters .vh-catalog-search--desktop {
    width:100%; max-width:none; height:auto; min-height:36px; margin:0;
    display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px;
  }
  html[data-catalog-view] .catalog-map-filters .vh-catalog-search__location--desktop {
    flex:0 1 280px; width:280px; min-width:170px; max-width:280px; height:36px; margin:0;
  }
  html[data-catalog-view] .catalog-map-filters .vh-catalog-filter-menu {
    flex:0 0 auto; width:auto; max-width:none; min-width:0; height:36px; margin:0;
  }
  html[data-catalog-view] .catalog-map-filters .vh-catalog-market {
    flex:0 0 auto; width:auto; max-width:190px; height:36px; margin:0;
  }
  html[data-catalog-view] .catalog-map-filters .vh-catalog-filter-trigger {
    box-sizing:border-box; width:auto; height:36px; min-height:36px;
    padding:0 14px; border-radius:999px; align-items:center;
  }
}
/* Larger touch screens keep the same capsule layout with accessible targets. */
@media(min-width:768px) and (pointer:coarse) {
  html[data-catalog-view] .catalog-map-filters .vh-catalog-search__location--desktop,
  html[data-catalog-view] .catalog-map-filters .vh-catalog-filter-menu,
  html[data-catalog-view] .catalog-map-filters .vh-catalog-market,
  html[data-catalog-view] .catalog-map-filters .vh-catalog-filter-trigger {
    height:44px; min-height:44px; max-height:none;
  }
}
html[data-catalog-view] .vh-catalog-search-shell { padding:0; border:0; border-radius:0; box-shadow:none; }
html[data-catalog-view] .vh-catalog-tabs { margin-bottom:.5rem; justify-content:flex-start; }
html[data-catalog-view] .vh-catalog-tabs__item { padding:.35rem .8rem; }
/* Compact location is a shared visual contract, independent of theme and list/map mode. */
[data-location-presentation="compact"] .vh-catalog-location-suggestions { font-size:1rem; }
[data-location-presentation="compact"] :is(.vh-catalog-location-suggestion,.vh-catalog-location-suggestion__type,.vh-catalog-location-recent-title) { font-size:inherit; }
/* Compact controls reuse the same forms and panels in any integrated theme. */
@media(min-width:768px) {

 html[data-catalog-view] .vh-catalog-search--desktop { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
 html[data-catalog-view] .vh-catalog-search__location--desktop { flex:0 1 280px; min-width:200px; }
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-location-input,
 html[data-catalog-view] .vh-catalog-search__select--desktop,
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-filter-trigger,
 html[data-catalog-view] .vh-catalog-search__submit { height:36px; border-radius:999px; font-size:.875rem; }
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-filter-trigger { width:auto; min-height:36px; max-height:36px; gap:10px; padding-inline:14px; color:#0f172a; white-space:nowrap; cursor:pointer; }
 html[data-catalog-view] .vh-catalog-search__select--desktop select { width:auto; field-sizing:content; max-width:240px; border-radius:999px; color:#0f172a; padding:0 30px 0 14px; }
 html[data-catalog-view] .vh-catalog-search__submit { padding:0 18px; }
 html[data-catalog-view] .vh-catalog-types-panel--desktop,
 html[data-catalog-view] .vh-catalog-search__price-panel--desktop,
 html[data-catalog-view] .vh-catalog-search__beds-panel--desktop { top:calc(100% + 8px); max-width:calc(100vw - 16px); transform:translateX(var(--catalog-panel-shift,0px)); }
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-filter-trigger[aria-expanded="true"] { border-color:#0f172a; }
 html[data-catalog-view] .vh-catalog-search--desktop :is(button,summary,select,input):focus-visible { outline:2px solid var(--primary,#4f46e5); outline-offset:2px; }

}
@media(min-width:768px) {
  /* Both Default and Luxury use the same inner border and attached panel.
     The old map-view-only selectors are intentionally not duplicated. */
  [data-location-presentation="compact"] .vh-catalog-location-suggestions { font-size:.875rem; }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop {
    position:relative; height:36px; border:0; border-radius:0; margin:0;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop .vh-catalog-location-input--desktop {
    position:relative; box-sizing:border-box; height:100%;
    border:1px solid #cbd5e1; border-radius:999px; background:#fff;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop .vh-catalog-location-input--desktop input[type=text]:focus {
    outline:none; box-shadow:none;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop:focus-within .vh-catalog-location-input--desktop {
    border-color:var(--primary,#4f46e5);
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop:not(.is-open):focus-within .vh-catalog-location-input--desktop {
    outline:2px solid var(--primary,#4f46e5); outline-offset:2px;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop.is-open .vh-catalog-location-input--desktop {
    border-radius:6px 6px 0 0; border-bottom-color:transparent;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop.is-open .vh-catalog-location-input--desktop::after {
    content:""; position:absolute; left:14px; right:14px; bottom:0;
    border-bottom:1px solid #cbd5e1; pointer-events:none;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop .vh-catalog-location-suggestions--desktop {
    position:absolute; top:100%; left:0; right:0; width:100%;
    box-sizing:border-box; border:1px solid #cbd5e1; border-top:0;
    border-radius:0 0 6px 6px; padding:8px 0; background:#fff;
    box-shadow:0 18px 45px #0f172a24;
  }
  [data-location-presentation="compact"].vh-catalog-search__location--desktop:focus-within .vh-catalog-location-suggestions--desktop {
    border-color:var(--primary,#4f46e5);
  }
}
@media(min-width:768px) and (pointer:coarse) {
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-location-input,
 html[data-catalog-view] .vh-catalog-search__select--desktop,
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-filter-trigger,
 html[data-catalog-view] .vh-catalog-search__submit { min-height:44px; }
}
html[data-catalog-view] .vh-catalog-search__beds-panel--desktop { left:auto; right:0; }
html[data-catalog-view] .vh-catalog-filter-trigger svg { width:12px; height:12px; flex:0 0 12px; }
.vh-catalog-type-menu summary { list-style:none; }
.vh-catalog-type-menu summary::-webkit-details-marker { display:none; }
.vh-catalog-type-menu.has-selection summary { border-color:#172b3a; background:#f8fafc; }
.vh-catalog-types-panel--desktop { position:absolute; z-index:75; left:0; width:320px; max-height:min(380px,60dvh); overflow-y:auto; overscroll-behavior:contain; padding:8px; border:1px solid #e2e8f0; border-radius:.75rem; background:#fff; box-shadow:0 12px 32px #0f172a1a; }
.vh-catalog-types-options { border:0; padding:0; margin:0; min-width:0; }
.vh-catalog-type-option { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; border-radius:6px; color:#172b3a; cursor:pointer; font-size:.875rem; }
.vh-catalog-type-option:hover { background:#f8fafc; }
.vh-catalog-type-option input { appearance:none; width:20px; height:20px; flex:0 0 20px; margin:0; border:1px solid #94a3b8; border-radius:4px; background:#fff; display:grid; place-content:center; cursor:pointer; }
.vh-catalog-type-option input:checked { border-color:var(--primary,#4f46e5); background:var(--primary,#4f46e5); }
.vh-catalog-type-option input:checked::after { content:""; width:6px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:translateY(-1px) rotate(45deg); }
.vh-catalog-type-option input:focus-visible { outline:2px solid var(--primary,#4f46e5); outline-offset:3px; }
.vh-catalog-types-clear { display:block; width:100%; margin-top:8px; padding:10px 12px; border-top:1px solid #e2e8f0; color:#475569; text-align:left; font:inherit; font-size:.875rem; cursor:pointer; }
.vh-catalog-types-clear[hidden] { display:none; }
@media(forced-colors:active) { .vh-catalog-type-option input { appearance:auto; } .vh-catalog-type-option input::after { display:none; } }


html[data-catalog-view="map"] [data-surface="territory.real_estate"]>main>div:not(.catalog-map-filters):not([data-catalog-portfolio-native]) { width:100%; flex:1; display:flex; flex-direction:column; min-height:0; }
/* Both Portfolio and Territory must give the MapLibre host a real height.
   Territory's native themes add one presentation wrapper around it. */
html[data-catalog-view="map"] [data-catalog-portfolio-map] { display:flex; flex:1; flex-direction:column; min-height:0; width:100%; }
html[data-catalog-view="map"] [data-catalog-portfolio-map] > .w-full { display:flex; flex:1; flex-direction:column; min-height:0; }
[data-catalog-portfolio-native][hidden],[data-catalog-portfolio-map][hidden] { display:none!important; }
html[data-catalog-view] [data-catalog-map-host] { flex:1; min-height:0; width:100%; margin:0; }
[data-catalog-results-fallback][hidden] { display:none!important; }
.catalog-map-toolbar { position:absolute; top:12px; left:12px; right:56px; z-index:5; display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; pointer-events:none; }
.catalog-map-zone-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.catalog-map-locations select { min-height:44px; max-width:100%; padding:.5rem; border:1px solid #d1dce4; border-radius:6px; background:#fff; color:inherit; font:inherit; }
.catalog-map-locations select:focus-visible { outline:3px solid #007cbf; outline-offset:2px; }
.catalog-map-toolbar>* { pointer-events:auto; }
.catalog-map-toolbar button,.catalog-map-actions button,.catalog-map-results button,.catalog-map-more,.catalog-map-locations__heading button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border:1px solid #d1dce4; border-radius:24px; padding:.5rem .8rem; background:#fff; font-size:.8rem; font-weight:600; box-shadow:0 2px 8px #17364b1a; }
.catalog-map-app button svg { width:20px; height:20px; flex-shrink:0; }
.catalog-map-app button:focus-visible,.catalog-map-app a:focus-visible,.catalog-map-app input:focus-visible,.catalog-map-results:focus-visible,.catalog-map-stage:focus-visible { outline:3px solid #007cbf; outline-offset:-3px; }
.catalog-map-toolbar button:hover:not(:disabled),.catalog-map-actions button:hover:not(:disabled) { background:#eef6fa; }
.catalog-map-mobile-status { display:none; }
.catalog-map-layout { display:grid; grid-template-columns:minmax(320px, min(46%,600px)) minmax(0,1fr); height:100%; min-height:0; overflow:hidden; }
.catalog-map-list-pane { position:relative; display:flex; flex-direction:column; min-height:0; min-width:0; background:#fff; }
.catalog-map-results { min-width:0; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; display:flex; flex-direction:column; gap:1rem; padding:1rem; flex:1; }
.catalog-map-results>* { flex-shrink:0; }
.catalog-map-result-count { flex:none; align-self:flex-start; margin:1rem 1rem 0; padding:.5rem .8rem; border:1px solid #d1dce4; border-radius:24px; background:#fff; color:#172b3a; font-size:.8rem; font-weight:600; cursor:default; }
html[data-catalog-view="list"] .catalog-map-result-count { margin:0 0 1rem; }
.catalog-map-project-access:focus-visible { width:auto; height:auto; clip-path:none; top:64px; left:12px; z-index:6; padding:.5rem .8rem; background:#fff; border-radius:24px; }
/* Skeletons mask the existing content without changing any card or list dimensions. */
.catalog-map-card[data-skeleton] .territory-card-inner { visibility:hidden; }
.catalog-map-card[data-skeleton] :is(h2,.catalog-map-card__price,.catalog-map-card__location,.catalog-map-card__excerpt,.dossier-metric-pill,.catalog-map-card__link) { position:relative; }
.catalog-map-card[data-skeleton] :is(.catalog-map-card__image,h2,.catalog-map-card__price,.catalog-map-card__location,.catalog-map-card__excerpt,.dossier-metric-pill,.catalog-map-card__link)::after { content:""; visibility:visible; position:absolute; inset:0; border-radius:4px; background:#e9edf0; animation:catalog-skeleton-pulse 1.5s ease-in-out infinite; pointer-events:none; }
.catalog-map-card[data-skeleton] :is(h2,.catalog-map-card__price,.catalog-map-card__location)::after { top:.2em; bottom:auto; height:.85em; width:75%; }
.catalog-map-card[data-skeleton] .catalog-map-card__price::after { width:40%; }
.catalog-map-card[data-skeleton] .catalog-map-card__location::after { width:60%; }
.catalog-map-card[data-skeleton] .catalog-map-card__excerpt::after { background:repeating-linear-gradient(to bottom,#e9edf0 0,#e9edf0 .7em,transparent .7em,transparent 1.6em); }
.catalog-map-card[data-skeleton] .catalog-map-card__image::after { border-radius:0; }
.catalog-map-empty[data-skeleton] { position:relative; color:transparent; }
.catalog-map-empty[data-skeleton]::after { content:""; position:absolute; top:calc(50% - 6px); left:25%; width:50%; height:12px; border-radius:4px; background:#e9edf0; animation:catalog-skeleton-pulse 1.5s ease-in-out infinite; }
.catalog-map-more[data-loading] { position:relative; color:transparent; }
.catalog-map-more[data-loading]::after { content:""; position:absolute; width:16px; height:16px; left:calc(50% - 8px); top:calc(50% - 8px); border:2px solid #c4dbe8; border-top-color:#007cbf; border-radius:50%; animation:catalog-map-spin .7s linear infinite; }
.catalog-map-list-error { position:absolute; z-index:6; top:12px; left:16px; right:16px; padding:1rem; border:1px solid #d1dce4; border-radius:12px; background:#fff; color:#172b3a; }
.catalog-map-list-error button { text-decoration:underline; }
/* Result errors live in document flow, below the filter toolbar and sticky header. */
[data-catalog-request-error].catalog-map-list-error { position:relative; top:auto; left:auto; right:auto; z-index:8; margin:12px 16px; scroll-margin-top:100px; }
[data-catalog-request-error] button { scroll-margin-top:100px; }
@keyframes catalog-skeleton-pulse { 50% { opacity:.5; } }
@media(prefers-reduced-motion:reduce) {
 .catalog-map-card[data-skeleton] :is(.catalog-map-card__image,h2,.catalog-map-card__price,.catalog-map-card__location,.catalog-map-card__excerpt,.dossier-metric-pill,.catalog-map-card__link)::after,
 .catalog-map-empty[data-skeleton]::after,.catalog-map-more[data-loading]::after { animation:none; }
}
.catalog-map-panel { position:relative; min-height:0; min-width:0; overflow:hidden; isolation:isolate; }
.catalog-map-panel>.catalog-map-stage { position:absolute; inset:0; background:#e8eef0; }
.catalog-map-actions { position:absolute; bottom:38px; right:12px; z-index:5; display:flex; gap:8px; }
.catalog-map-actions .catalog-map-icon-button { width:44px; padding:0; }
.catalog-map-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.catalog-map-card { border:1px solid #f3f4f6; border-radius:1rem; background:#fff; overflow:hidden; box-shadow:none; }
.catalog-map-card .territory-card-inner { height:100%; }
.catalog-map-card__image { display:block; position:relative; flex-shrink:0; width:100%; height:220px; overflow:hidden; background:#f3f4f6; }
.catalog-map-card__image img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.catalog-map-card__type { position:absolute; top:12px; left:12px; max-width:calc(100% - 24px); padding:4px 8px; border-radius:4px; background:var(--primary,#4f46e5); color:#fff; font-size:.75rem; font-weight:700; }
.catalog-map-card__body { padding:1.25rem; flex:1; min-width:0; }
.catalog-map-card h2 { margin:0 0 .25rem; line-height:1.4; font-size:1.125rem; font-weight:700; color:#0f172a; overflow-wrap:anywhere; }
.catalog-map-card__location { color:#6b7280; font-size:.875rem; margin:.5rem 0 .75rem; }
.catalog-map-card__price { font-size:1.25rem; font-weight:700; color:#0f172a; }
.catalog-map-card__excerpt { font-size:.875rem; line-height:1.6; color:#64748b; margin-top:1.5rem; }
.catalog-map-card__footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.75rem; margin-top:auto; padding:.75rem 1.25rem; border-top:1px solid #f3f4f6; background:#f9fafb; }
.catalog-map-card .dossier-header-metrics { display:flex; flex-wrap:wrap; gap:.5rem; }
.catalog-map-card .dossier-metric-pill { display:inline-flex; align-items:center; gap:.25rem; padding:.25rem; border:2px solid #9ca3af; border-radius:3px; background:#fff; color:#6b7280; white-space:nowrap; }
.catalog-map-card .dossier-metric-pill svg { width:16px; height:16px; flex-shrink:0; }
.catalog-map-card__link { color:var(--primary,#4f46e5); font-size:.875rem; font-weight:500; }
.catalog-map-card .territory-tile__content-link:hover .catalog-map-card__link { text-decoration:underline; }
.catalog-list-sidebar { display:none; min-width:0; }
.catalog-list-sidebar__inner { padding:1.5rem; border:1px solid #f3f4f6; border-radius:1rem; background:#f9fafb; }
.catalog-list-sidebar h2 { margin:0 0 1rem; font-size:1.125rem; font-weight:700; color:#0f172a; }
.catalog-list-sidebar__all { display:block; padding:.65rem .75rem; border-radius:.75rem; text-align:center; font-weight:700; color:#fff; background:var(--primary,#4f46e5); }
.catalog-list-sidebar__description { margin-top:1rem; font-size:.875rem; line-height:1.5; color:#6b7280; }
html[data-catalog-view="map"] .catalog-map-card__excerpt { display:none; }
@media(min-width:768px) {
 .catalog-map-card__image { width:32%; height:auto; min-height:240px; }
 .catalog-map-card__body { padding:1.5rem; }
 .catalog-map-card__footer { padding:1rem 1.5rem; }
 html[data-catalog-view="map"] .catalog-map-card__image { width:35%; min-height:200px; }
 html[data-catalog-view="map"] .catalog-map-card__body { padding:.75rem; }
 html[data-catalog-view="map"] .catalog-map-card__footer { padding:.75rem; gap:.5rem; }
 html[data-catalog-view="map"] .catalog-map-card h2 { font-size:1rem; }
 html[data-catalog-view="map"] .catalog-map-card .dossier-metric-pill { font-size:.75rem; }
}
/* Project points and prices use native layers; DOM owns the accessible selector and card. */
.catalog-map-spinner { display:inline-block; width:16px; height:16px; min-width:16px; padding:0; border:2px solid #c4dbe8; border-top-color:#007cbf; border-radius:50%; animation:catalog-map-spin .7s linear infinite; vertical-align:middle; }
.catalog-map-rectangle { position:absolute; inset:0; width:100%; height:100%; z-index:2; pointer-events:none; }
.catalog-map-rectangle.is-editing { pointer-events:auto; touch-action:none; cursor:crosshair; }
.catalog-map-rectangle__area { fill:#007cbf; fill-opacity:.2; stroke:#007cbf; stroke-width:3; stroke-dasharray:7 5; }
.catalog-map-rectangle.is-editing .catalog-map-rectangle__area { cursor:move; }
.catalog-map-rectangle__corner,.catalog-map-rectangle__move { position:absolute; z-index:3; transform:translate(-50%,-50%); width:28px; height:28px; padding:0; border:0; background:transparent; cursor:move!important; touch-action:none; }
.catalog-map-rectangle__corner::before { content:""; display:block; width:12px; height:12px; margin:auto; background:#fff; border:2px solid #007cbf; }
.catalog-map-rectangle__corner:hover::before { width:14px; height:14px; }
.catalog-map-rectangle__move { display:grid; place-items:center; border-radius:6px; background:#fff; color:#007cbf; box-shadow:0 1px 4px #17364b40; }
.catalog-map-rectangle__move svg { fill:none; stroke:currentColor; stroke-width:1.5; }
.catalog-map-rectangle__corner[hidden],.catalog-map-rectangle__move[hidden] { display:none; }
.catalog-map-rectangle-search { position:absolute; z-index:3; transform:translate(-50%,-50%); display:grid; place-items:center; width:48px; height:48px; padding:0; border:0; border-radius:50%; background:var(--catalog-map-accent); color:#fff; box-shadow:0 2px 8px #17364b40; touch-action:manipulation; }
.catalog-map-rectangle-search[hidden] { display:none; }
.catalog-map-rectangle-search svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.catalog-map-rectangle-search:hover { filter:brightness(.9); }
.catalog-map-editor { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:6px 8px 6px 12px; border-radius:20px; background:#173e54; color:#fff; box-shadow:0 2px 8px #17364b40; }
.catalog-map-editor p { font-size:.8rem; line-height:1.4; flex:1; min-width:130px; }
.catalog-map-editor button { font-size:.75rem; min-height:36px; color:#173e54; }
.catalog-map-warning { position:absolute; top:72px; left:12px; right:12px; z-index:4; background:#fff4dd; padding:.75rem; border-radius:.5rem; font-size:.85rem; margin-bottom:.75rem; }
.catalog-map-empty { padding:2rem; text-align:center; }
.catalog-map-locations { width:min(30rem,calc(100% - 2rem)); max-height:80dvh; border:0; border-radius:.75rem; padding:1rem; color:#17364b; }
.catalog-map-locations::backdrop { background:#0f243880; }
.catalog-map-locations__heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.75rem; }
.catalog-map-locations__heading h2 { font-size:1.2rem; font-weight:700; }
.catalog-map-locations li button { width:100%; display:flex; justify-content:space-between; padding:.75rem .5rem; border-bottom:1px solid #e4ebef; background:#fff; gap:1rem; }
@keyframes catalog-map-spin { to { transform:rotate(360deg); } }
@media(max-width:767px) {
 html[data-catalog-view] [data-portfolio-section="catalog_search"],html[data-catalog-view] .catalog-map-filters { padding:.5rem; }
 html[data-catalog-view] .vh-catalog-tabs { display:none; }
 html[data-catalog-view] .vh-catalog-mobile-trigger { width:auto; min-height:44px; margin:0; }
 .catalog-view-switch { float:right; margin:0; }
 .catalog-map-layout { grid-template-columns:minmax(0,1fr); }
 .catalog-map-app[data-view="map"] .catalog-map-list-pane { display:none; }
 .catalog-map-app[data-view="list"] .catalog-map-panel { display:none; }
 .catalog-map-results { padding-bottom:1rem; }
 .catalog-map-mobile-status { display:block; position:absolute; left:12px; bottom:96px; z-index:4; max-width:calc(100% - 64px); background:#fffffff2; border-radius:12px; padding:6px 10px; font-size:.75rem; }
 .catalog-map-panel:has(.catalog-map-editor) .catalog-map-mobile-status { display:none; }
 .catalog-map-actions { bottom:38px; }
 .catalog-map-toolbar { top:8px; left:8px; gap:6px; right:52px; }
 .catalog-map-toolbar button { font-size:.72rem; padding:.4rem .6rem; }
 .catalog-map-editor { border-radius:14px; }
}
@media(prefers-reduced-motion:reduce) {
 .catalog-map-spinner { animation:none; transition:none; }
}

/* Project classification: one progressive-enhancement details/radio menu across themes. */
.vh-catalog-market {
  box-sizing:border-box;position:relative;display:block;flex:0 0 auto;
  min-width:128px;max-width:190px;height:36px;
  border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#172b3a;
  font:14px/1.25 Inter,Arial,sans-serif;
}
.vh-catalog-market__trigger {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  box-sizing:border-box;width:100%;height:100%;padding:0 13px;
  list-style:none;cursor:pointer;white-space:nowrap;outline:none;border-radius:inherit;
}
.vh-catalog-market__trigger::-webkit-details-marker {display:none;}
/* One capsule height for the same shared project-type control in every RE theme. */
@media (min-width:768px) and (pointer:fine) {
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-market,
 html[data-catalog-view] .vh-catalog-search--desktop .vh-catalog-market__trigger { height:36px!important; min-height:36px!important; max-height:36px!important; border-radius:999px; }
}
.vh-catalog-market__trigger span {flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;}
.vh-catalog-market__trigger svg {flex:0 0 12px;width:12px;height:8px;pointer-events:none;}
.vh-catalog-market:focus-within {border-color:var(--primary,#007982);}
.vh-catalog-market__trigger:focus-visible {outline:2px solid var(--primary,#007982);outline-offset:2px;}
.vh-catalog-market[open] {border-color:var(--primary,#007982);}
.vh-catalog-market__panel {
  position:absolute;top:calc(100% + 8px);left:0;z-index:85;
  width:max(100%,190px);max-width:calc(100vw - 16px);
  box-sizing:border-box;padding:6px;border:1px solid #d7e0e7;border-radius:12px;
  background:#fff;box-shadow:0 12px 32px #0f172a20;
  transform:translateX(var(--catalog-panel-shift,0px));
}
.vh-catalog-market__options {min-width:0;border:0;margin:0;padding:0;}
.vh-catalog-market__option {display:block;position:relative;cursor:pointer;}
.vh-catalog-market__option input {
  position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;
}
.vh-catalog-market__option span {
  display:block;min-height:42px;box-sizing:border-box;padding:11px 12px;
  border-radius:7px;color:#172b3a;white-space:nowrap;
}
.vh-catalog-market__option:hover span {background:#f1f6f8;}
.vh-catalog-market__option input:checked + span {background:#eaf4f3;color:var(--primary,#007982);font-weight:600;}
.vh-catalog-market__option input:focus-visible + span {outline:2px solid var(--primary,#007982);outline-offset:-2px;}
.vh-catalog-market--mobile {flex:none;width:100%;max-width:none;height:46px;border-radius:8px;font-size:16px;}
.vh-catalog-market--mobile .vh-catalog-market__panel {width:100%;max-width:none;}
@media(forced-colors:active) {
 .vh-catalog-market__option input {position:static;opacity:1;width:auto;height:auto;margin-right:8px;}
 .vh-catalog-market__option span {display:inline-block;}
 .vh-catalog-market__option input:checked + span {background:Highlight;color:HighlightText;}
}

/* One server-rendered layout per view; hydration never changes its geometry. */
.catalog-view-switch { display:flex; justify-content:flex-end; gap:8px; float:right; position:relative; z-index:1; }
.catalog-view-switch a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:0 14px; border:1px solid #cbd5e1; border-radius:999px; background:#fff; color:#0f172a; font-size:.875rem; white-space:nowrap; }
.catalog-view-switch a[aria-pressed="true"] { background:#f8fafc; border-color:#172b3a; }
.catalog-view-switch a:hover { background:#f8fafc; }
@media(pointer:coarse), (max-width:767px) { .catalog-view-switch a { min-height:44px; } }
.catalog-view-switch svg { width:18px; height:18px; }
.catalog-view-switch a:focus-visible { outline:2px solid var(--primary,#4f46e5); outline-offset:2px; }
/* Grid fixes the SSR row placement without moving controls after hydration. */
@media(min-width:768px) {
 html[data-catalog-view] [data-portfolio-section="catalog_search"]>div,
 html[data-catalog-view] .catalog-map-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:16px; row-gap:8px; align-items:center; }
 html[data-catalog-view] .vh-catalog-search-shell { display:contents; }
 html[data-catalog-view] .vh-catalog-search--desktop { grid-column:1; grid-row:1; min-width:0; min-height:44px; clear:none; }
 html[data-catalog-view] .catalog-view-switch { grid-column:2; grid-row:1; justify-self:end; float:none; }
}
html[data-catalog-view] .vh-catalog-search__price-panel--desktop { width:400px; }
html[data-catalog-view] .vh-catalog-price-input-wrap { min-width:0; }
html[data-catalog-view] .vh-catalog-price-input-wrap input[type=text] { font-size:.875rem; padding-right:38px; }
html[data-catalog-view] .vh-catalog-price-input-wrap button { right:4px; top:6px; width:32px; height:32px; border-radius:50%; background:transparent; display:flex; align-items:center; justify-content:center; cursor:pointer; }
html[data-catalog-view] .vh-catalog-price-input-wrap button:hover { background:#f1f5f9; color:#334155; }
html[data-catalog-view] .vh-catalog-price-input-wrap button:focus-visible { outline:2px solid var(--primary,#4f46e5); outline-offset:-2px; }
/* One continuous track; both native inputs share the same block geometry.
   The 24px thumb matches the existing range coordinator's clipping geometry. */
html[data-catalog-view] .vh-catalog-price-range { position:relative; height:44px; align-items:center; }
html[data-catalog-view] .vh-catalog-price-range::before { content:""; position:absolute; left:12px; right:12px; top:calc(50% - 2px); height:4px; border-radius:999px; background:#334155; pointer-events:none; }
html[data-catalog-view] .vh-catalog-price-range>div { display:flex; align-items:center; height:44px; padding:0; position:relative; }
html[data-catalog-view] .vh-catalog-price-range input[type=range] { display:block; flex-shrink:0; height:44px; margin:0; padding:0; border:0; outline:none; background:transparent; appearance:none; cursor:pointer; }
html[data-catalog-view] .vh-catalog-price-range>div:last-child { justify-content:flex-end; }
html[data-catalog-view] .vh-catalog-price-range>div:last-child input[type=range] { float:none; margin:0; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]::-webkit-slider-runnable-track { height:4px; background:transparent; border:0; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]::-webkit-slider-thumb { box-sizing:border-box; width:24px; height:24px; margin-top:-10px; border:2px solid var(--primary,#4f46e5); border-radius:50%; background:#fff; appearance:none; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]::-moz-range-track { height:4px; background:transparent; border:0; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]::-moz-range-progress { height:4px; background:transparent; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]::-moz-range-thumb { box-sizing:border-box; width:24px; height:24px; border:2px solid var(--primary,#4f46e5); border-radius:50%; background:#fff; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow:0 0 0 3px #94a3b8; }
html[data-catalog-view] .vh-catalog-price-range input[type=range]:focus-visible::-moz-range-thumb { box-shadow:0 0 0 3px #94a3b8; }
@media(forced-colors:active) {
 html[data-catalog-view] .vh-catalog-price-range::before { background:CanvasText; }
 html[data-catalog-view] .vh-catalog-price-range input[type=range]::-webkit-slider-thumb { border-color:ButtonText; background:Canvas; }
 html[data-catalog-view] .vh-catalog-price-range input[type=range]::-moz-range-thumb { border-color:ButtonText; background:Canvas; }
}
html[data-catalog-view="list"] .catalog-map-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:2rem; height:auto; overflow:visible; padding:1.5rem 1rem; }
html[data-catalog-view="list"] .catalog-map-panel { display:none; }
html[data-catalog-view="list"] .catalog-map-results { overflow:visible; padding:0; gap:1.5rem; scrollbar-gutter:auto; }
html[data-catalog-view="list"] .catalog-map-list-pane { background:transparent; }
@media(min-width:1024px) {
 html[data-catalog-view="list"] .catalog-map-layout { grid-template-columns:minmax(0,1fr) 288px; }
 html[data-catalog-view="list"] .catalog-list-sidebar { display:block; }
}
html[data-catalog-view="list"] .catalog-map-more,html[data-catalog-view="list"] .catalog-map-empty { grid-column:1/-1; }
.catalog-map-more { display:block; text-align:center; padding:.75rem; border:1px solid #d1dce4; border-radius:8px; background:#fff; }
.catalog-map-more[aria-disabled="true"] { opacity:.6; pointer-events:none; }

.catalog-territory-intro { padding:1rem; }
html[data-catalog-view="map"] .catalog-territory-intro { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }

/* Project selection is presentation state; links retain native navigation. */
.catalog-map-card.is-map-selected { outline: 3px solid var(--primary, #007cbf); outline-offset: -3px; }
.catalog-map-card.is-map-hovered { box-shadow: inset 0 0 0 2px var(--primary, #007cbf); }
/* Popup placement follows Mapbox demo-realestate (BSD notice in project-popup.js). */
.catalog-project-popup { z-index: 10; }
.catalog-project-popup .maplibregl-popup-content { padding: 0; background: none; border-radius: 0; box-shadow: none; }
.catalog-project-popup .maplibregl-popup-tip { display: none; }
.catalog-project-popup__card { position: relative; width: 320px; max-width: var(--catalog-popup-max-width, calc(100vw - 24px)); max-height: var(--catalog-popup-max-height, calc(100dvh - 24px)); display: flex; flex-direction: column; }
.catalog-project-popup__content { --portfolio-card-action-inset: 44px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.catalog-project-popup__card.is-roomy { width: 400px; }
.catalog-project-popup__close { position: absolute; z-index: 3; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 6px solid transparent; background: #fff; background-clip: padding-box; border-radius: 50%; color: #566171; cursor: pointer; }
.catalog-project-popup__close svg { width: 16px; height: 16px; }
.catalog-project-popup__members { flex: none; display: grid; gap: 4px; margin: 8px 0 0; padding: 12px; background: #fff; border-radius: 8px; font-size: 12px; }
.catalog-project-popup__members select { width: 100%; max-width: 100%; min-height: 44px; }
.catalog-project-popup__status { min-height: 52px; padding: 12px 52px 12px 12px; background: #fff; }
.catalog-project-popup__retry { position: relative; z-index: 2; min-height: 44px; padding: 8px 12px; }
.catalog-project-popup :focus-visible { outline: 2px solid #007afc; outline-offset: -2px; }


/* Shared disclosure: the short credit stays visible; source attribution is native. */
.maplibregl-ctrl-bottom-right:has(.catalog-map-credits > details[open]) { z-index: 6; }
.catalog-map-credits {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px 4px 0;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .94);
    color: #444;
    font: 11px/20px var(--rh-font, sans-serif);
}
.catalog-map-credits > details > summary {
    cursor: pointer;
    list-style: none;
}
.catalog-map-credits > details > summary::-webkit-details-marker { display: none; }
.catalog-map-credits .maplibregl-ctrl-attrib {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    box-sizing: border-box;
    width: min(360px, calc(100vw - 24px));
    max-height: 40dvh;
    overflow: auto;
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 20px #0002;
    font: 12px/1.6 var(--rh-font, sans-serif);
    text-align: left;
}
.catalog-map-credits .maplibregl-ctrl-attrib-button { display: none; }
.catalog-map-credits .maplibregl-ctrl-attrib a { text-decoration: underline; }

/* Marketplace presentation only. Corporate catalogs keep the shared defaults. */
#marketplace-map-layout[hidden], #marketplace-map-panel[hidden] { display:none; }
/* One full-window map behind the floating results; camera insets preserve the usable viewport. */
body.vh-marketplace-page[data-mp-view="map"] {
    --vh-mp-map-inset:8px;
    --vh-mp-map-results-width:clamp(340px,30vw,420px);
    --vh-mp-map-results-offset:calc(var(--vh-mp-map-results-width) + 2 * var(--vh-mp-map-inset));
    --vh-mp-map-results-height:0px;
    --vh-mp-map-controls-top:160px;
    --vh-mp-map-control-size:36px;
    --vh-mp-map-card-width:min(420px, calc((100vw - var(--vh-mp-map-results-offset) - 48px) * .55));
    height:100dvh; overflow:hidden; display:flex; flex-direction:column;
}
.vh-marketplace-page[data-mp-view="map"] .rh-header[data-shell-mode="interior"] { flex-shrink:0; }
.vh-marketplace-page[data-mp-view="map"] .rh-header .rh-nav { max-width:none; }
.vh-marketplace-page[data-mp-view="map"] .rh-footer { display:none; }
.vh-marketplace-page[data-mp-view="map"] #marketplace-main-container.vh-mp-shell {
    flex:1; min-height:0; width:calc(100% - 2 * var(--vh-mp-map-inset)); max-width:none;
    padding:var(--vh-mp-map-inset) 0; display:grid;
    grid-template-columns:var(--vh-mp-map-results-width) minmax(0,1fr); grid-template-rows:minmax(0,1fr);
    gap:var(--vh-mp-map-inset);
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-hero-discovery {
    position:relative; z-index:3; background:transparent; pointer-events:none;
    grid-column:2; grid-row:1; align-self:start; justify-self:center;
    width:calc(100% - 32px); max-width:var(--vh-mp-page-max); margin:0; padding:0;
}
.vh-marketplace-page[data-mp-view="map"] [data-marketplace-slot="masonry"] {
    grid-column:1; grid-row:1; position:relative; z-index:2; min-width:0; min-height:0;
    display:flex; flex-direction:column; overflow:hidden;
    background:#fff; border:1px solid #e4e4e7; border-radius:20px;
    padding:0 12px 12px;
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-body {
    flex:1; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-width:none;
    padding-top:12px;
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-body::-webkit-scrollbar { display:none; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header {
    position:relative; flex-shrink:0; z-index:2; display:flex; flex-direction:column; gap:12px;
    padding:16px 4px 12px; border-bottom:1px solid #e2e8f0;
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .vh-mp-search__type-wrap { width:100%; min-width:0; flex:none; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .vh-mp-search__type-btn.marketplace-filter-trigger {
    width:100%; min-width:0; min-height:44px; height:auto; padding:10px 12px;
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .vh-mp-search__type-inner { justify-content:flex-start; min-width:0; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .vh-mp-search__type-text-wrap { display:block; flex:1; min-width:0; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .vh-mp-search__type-chevron { display:block; margin-left:8px; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .marketplace-dropdown-menu--search-type { min-width:100%; max-width:none; }
@media(max-width:1023px) {
    .vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-header .marketplace-dropdown-menu--search-type { position:fixed; top:auto; bottom:calc(var(--vh-mp-mobile-results-height) + 32px); left:20px; right:20px; width:auto; min-width:0; max-height:min(360px, 50dvh); overflow-y:auto; }
}
.vh-marketplace-page[data-mp-view="map"] #marketplace-map-results-count {
    margin:0; color:#000; font:700 16px/1.4 var(--rh-font);
}
.vh-marketplace-page[data-mp-view="map"] .vh-mp-masonry {
    grid-template-columns:minmax(0,1fr); gap:12px;
}
/* Exclusive compact SSR card in the Marketplace map results. */
#marketplace-grid .vh-mp-sidebar-card {
    display:grid; grid-template-columns:minmax(0,38%) minmax(0,1fr);
    gap:12px; min-height:158px; min-width:0; padding:8px;
    background:#f8fafc; border-radius:14px; color:#111;
    font-family:var(--rh-font); border:1px solid #e2e8f0;
}
.vh-mp-sidebar-card__media { position:relative; min-width:0; min-height:142px; border-radius:9px; overflow:hidden; background:#f4f4f4; }
.vh-mp-sidebar-card__image-link { position:absolute; inset:0; display:block; }
.vh-mp-sidebar-card__image-link picture,.vh-mp-sidebar-card__image-link img { display:block; width:100%; height:100%; object-fit:cover; }
.vh-mp-sidebar-card__commission { position:absolute; inset:auto 5px 8px; display:flex; justify-content:center; pointer-events:none; }
.vh-mp-sidebar-card__commission .mp-commission-pill { pointer-events:auto; background:#fff; min-height:26px; padding:4px 7px; font-size:11px; line-height:1.3; font-weight:600; border-width:1.5px; overflow-wrap:anywhere; text-align:center; }
.vh-mp-sidebar-card__commission .mp-commission-pill svg { display:none; }
.vh-mp-sidebar-card__body { display:flex; flex-direction:column; align-items:stretch; gap:4px; min-width:0; padding:3px 4px 3px 0; }
.vh-mp-sidebar-card__type,.vh-mp-sidebar-card__location { color:#666; font-size:11px; line-height:1.35; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vh-mp-sidebar-card__title { font-size:13px; font-weight:700; line-height:1.3; margin:0; min-width:0; }
.vh-mp-sidebar-card__title a { display:block; color:inherit; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.vh-mp-sidebar-card__price { display:block; font-size:23px; font-weight:800; letter-spacing:-.7px; line-height:1.15; overflow-wrap:anywhere; margin-top:5px; }
.vh-mp-sidebar-card .vh-mp-tile__actions { margin-top:auto; padding-top:5px; }
.vh-mp-sidebar-card .vh-mp-tile__actions :is(.vh-mp-btn,.vh-mp-tile__link) { display:flex; justify-content:center; align-items:center; width:100%; min-width:0; min-height:30px; border:0; border-radius:99px; padding:6px 9px; background:#000; color:#fff; font:600 11.5px/1.3 var(--rh-font); text-align:center; text-decoration:none; white-space:normal; }
.vh-mp-sidebar-card .vh-mp-tile__actions .vh-mp-tile__link svg { display:none; }
.vh-mp-sidebar-card .vh-mp-tile__actions :is(.vh-mp-btn,.vh-mp-tile__link):hover:not(:disabled) { background:#393939; color:#fff; }
.vh-mp-sidebar-card .vh-mp-tile__actions .vh-mp-btn--global-active:disabled,
.vh-mp-sidebar-card .vh-mp-tile__actions .vh-mp-btn--individual-active,
.vh-mp-sidebar-card .vh-mp-tile__actions .vh-mp-btn--individual-active:hover:not(:disabled) { background:#0bb949; color:#fff; opacity:1; }
.vh-mp-sidebar-card .vh-mp-tile__actions .vh-mp-btn--state-sent:disabled { background:#f7cd00; color:#24292e; opacity:1; }
.vh-marketplace-page[data-mp-view="map"] [data-results-state="loading"] .vh-mp-masonry,
.vh-marketplace-page[data-mp-view="map"] [data-results-state="error"] .vh-mp-masonry { opacity:.55; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-feed-pagination { padding:16px 0 4px; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-masonry > .vh-mp-empty { padding:32px 12px; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-map-results-body:focus-visible { outline:2px solid #286dd1; outline-offset:-2px; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-search { pointer-events:auto; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-search__shell--hero-filters:not(:has(> .vh-mp-search__type-wrap:not(:has(> #marketplace-search-province)))) { display:none; }
.vh-marketplace-page[data-mp-view="map"] .vh-mp-view-switch { margin-left:auto; }
.vh-marketplace-page[data-mp-view="map"] :is(.vh-mp-hero-discovery__title,.vh-mp-hero-discovery__subtitle,.vh-mp-search__type-wrap:has(> #marketplace-search-province)) { display:none; }
#marketplace-map-layout { display:block; position:fixed; inset:0; z-index:1; margin:0; pointer-events:none; }
#marketplace-map-panel { position:absolute; inset:0; width:auto; height:auto; min-height:0; overflow:hidden; border-radius:0; pointer-events:auto; }
#marketplace-map-panel .catalog-map-stage { width:100%; height:100%; background:#fff; }
#marketplace-map-panel .catalog-map-credits .maplibregl-ctrl-attrib { bottom: calc(100% + 80px); }
#marketplace-map-feedback { position:fixed; z-index:4; left:16px; bottom:80px; max-width:calc(100% - 32px); padding:.75rem; border-radius:12px; background:#fff; }
.vh-marketplace-page[data-mp-view="map"] #marketplace-map-feedback { position:static; max-width:none; margin-top:8px; padding:8px 0; }
#marketplace-map-panel .maplibregl-canvas { filter:grayscale(1); }
.vh-marketplace-page .vh-mp-feed-pagination[hidden] { display:none!important; }
#marketplace-map-panel .catalog-map-mobile-status { display:none; }
#marketplace-map-panel .maplibregl-ctrl-top-right {
    top:var(--vh-mp-map-controls-top); right:16px; left:auto; bottom:auto;
}
#marketplace-map-panel .maplibregl-ctrl-top-right .maplibregl-ctrl { margin:0; }
#marketplace-map-panel .maplibregl-ctrl-group { box-shadow:0 3px 14px #0000000d; border-radius:12px; overflow:hidden; }
#marketplace-map-panel .maplibregl-ctrl-group button { width:var(--vh-mp-map-control-size); height:var(--vh-mp-map-control-size); }
#marketplace-map-panel .catalog-map-toolbar {
    top:calc(var(--vh-mp-map-controls-top) + 2 * var(--vh-mp-map-control-size) + 8px);
    right:16px; left:auto; bottom:auto;
    max-width:min(360px,calc(100% - var(--vh-mp-map-results-offset) - 32px));
    flex-direction:column; align-items:flex-end;
}
#marketplace-map-panel .catalog-map-toolbar > .catalog-map-zone-actions { flex-direction:column; align-items:flex-end; }
#marketplace-map-panel .catalog-map-zone-actions { gap:6px; }
#marketplace-map-panel .catalog-map-zone-actions button { padding:7px 10px; font-size:11px; min-height:32px; border-radius:20px; background:#fff; box-shadow:0 2px 8px #0000000a; color:#383838; }
#marketplace-map-panel .catalog-map-zone-actions .catalog-map-draw-trigger {
    order:-1; width:var(--vh-mp-map-control-size); height:var(--vh-mp-map-control-size);
    min-height:0; padding:0; border:0; border-radius:12px;
    box-shadow:0 3px 14px #0000000d;
}
#marketplace-map-panel .catalog-map-actions { bottom:calc(var(--vh-mp-map-results-height) + 100px); }
#marketplace-map-panel .maplibregl-ctrl-bottom-right { bottom:var(--vh-mp-map-results-height); }
#marketplace-map-panel .catalog-map-warning { top:var(--vh-mp-map-controls-top); left:calc(var(--vh-mp-map-results-offset) + 16px); right:72px; }
#marketplace-map-card { position:absolute; right:24px; bottom:112px; width:var(--vh-mp-map-card-width); max-height:calc(100dvh - 200px); overflow:auto; overscroll-behavior:contain; min-width:0; color:#111; pointer-events:auto; }
#marketplace-map-card:has(.vh-mp-map-card__empty) { display:none; }
/* Card content uses the list's vh-mp-tile styles; only map controls live here. */
.vh-mp-map-card__close { position:sticky; z-index:2; top:0; display:block; margin:0 0 8px auto; width:36px; height:36px; border:0; border-radius:50%; background:#fff; color:#111; font-size:25px; box-shadow:0 3px 12px #00000014; cursor:pointer; }
.vh-mp-map-card__empty { min-height:390px; border:1px solid #efeff0; border-radius:28px; padding:48px 32px; display:flex; flex-direction:column; justify-content:center; text-align:center; background:linear-gradient(150deg,#fafafa,#fff); }
.vh-mp-map-card__empty h2 { font-size:25px; letter-spacing:-.035em; line-height:1.2; }
.vh-mp-map-card__empty p { color:#737379; font-size:14px; line-height:1.5; }
.vh-mp-map-card__matches { display:grid; gap:6px; padding:12px; font-size:12px; }
.vh-mp-map-card__matches select { padding:10px; border:1px solid #e5e5e5; border-radius:12px; background:white; }
@media(max-width:1023px) {
    body.vh-marketplace-page[data-mp-view="map"] {
        --vh-mp-map-results-offset:0px;
        --vh-mp-mobile-results-height:min(30dvh,300px);
        --vh-mp-map-results-height:calc(var(--vh-mp-mobile-results-height) + 2 * var(--vh-mp-map-inset));
    }
    .vh-marketplace-page[data-mp-view="map"] #marketplace-main-container.vh-mp-shell {
        grid-template-columns:minmax(0,1fr);
        grid-template-rows:minmax(0,1fr) var(--vh-mp-mobile-results-height);
    }
    .vh-marketplace-page[data-mp-view="map"] .vh-mp-hero-discovery { grid-column:1; grid-row:1; width:calc(100% - 16px); }
    .vh-marketplace-page[data-mp-view="map"] [data-marketplace-slot="masonry"] { grid-row:2; }
    .vh-marketplace-page[data-mp-view="map"]:has(#marketplace-map-card .vh-mp-map-card__close) [data-marketplace-slot="masonry"] { visibility:hidden; }
    #marketplace-map-card { right:8px; bottom:8px; width:calc(100% - 16px); max-height:var(--vh-mp-mobile-results-height); }
    .vh-mp-map-card__empty { min-height:180px; padding:24px; }
}
