/* Shared Nocturne map/results enhancement. Native HTML remains the fallback. */
/* Approved province tree: native details/summary preserve keyboard access. */
.has-geography { grid-template-columns: minmax(265px, .33fr) minmax(0, 1fr); }
.has-geography .velas-map-explorer__cities { margin: 0; }
.has-geography .velas-nocturne-property-map__copy { padding: 24px; min-width: 0; }
.has-geography[data-selected-property-id] .velas-map-explorer__cities { display: block; }
.has-geography [hidden], #listing-map[hidden] { display: none !important; }
.velas-geo__label { display: grid; gap: 8px; margin: 20px 0; font-size: 14px; color: #d3c5d2; }
.velas-geo__input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #b897ac; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; background: #241829; color: #f8f2e9; }
.velas-geo__province { border-top: 1px solid #ffffff2b; padding: 8px 0; }
.velas-geo__branches { max-height: min(620px, 65vh); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #b897ac #241829; padding: 0 6px 0 2px; }
.velas-geo__province summary { cursor: pointer; padding: 12px 0; font-size: 18px; line-height: 1.4; color: #f7f3ec; overflow-wrap: anywhere; }
.velas-geo__province summary .velas-geo__count { margin-inline-start: 8px; font-size: 14px; }
.velas-geo__places { display: grid; gap: 4px; padding: 0 0 10px 12px; border-inline-start: 1px solid #ffffff24; }
.velas-geo__places button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; color: #d3c5d2; font: inherit; font-size: 14px; text-align: start; cursor: pointer; overflow-wrap: anywhere; }
.velas-geo__places button:hover { background: #362139; color: #f8f2e9; }
.velas-geo__places button[aria-pressed="true"] { background: #eaa49d; color: #231523; }
.velas-geo__places [data-more] { color: #efb2a6; }
.velas-geo__count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.velas-geo :is(input,button,summary,a):focus-visible { outline: 3px solid #edd4a2; outline-offset: 2px; }
.velas-geo__status { border: 1px solid #b897ac; border-radius: 10px; padding: 12px; margin-top: 16px; font-size: 14px; line-height: 1.5; }
.velas-geo__status button,.velas-geo__status a { display: inline-block; min-height: 44px; padding: 10px; color: #f8f2e9; background: #362139; border: 1px solid #b897ac; border-radius: 8px; margin: 4px; font: inherit; }
.velas-map-explorer__results[inert] { opacity: .5; }
.has-geography .velas-nocturne-property-map__stage { position: sticky; top: 100px; align-self: start; }
@media (max-width: 700px) {
 .has-geography .velas-nocturne-property-map__copy { order: 1; }
 .has-geography .velas-nocturne-property-map__stage { order: 2; position: relative; top: auto; }
 .has-geography .velas-geo h2 { display: block; font-size: 24px; }
 .has-geography .velas-geo__branches { max-height: none; overflow: visible; }
 .has-geography[data-explorer-mode="list"] .velas-nocturne-property-map__copy { display: block; }
}
.velas-nocturne-property-map.has-explorer { --vp-night: #090913; --vp-ivory: #f7f3ec; --vp-line-dark: #ffffff2b; margin-bottom: 28px; }
.velas-nocturne-property-map.has-explorer { border-radius: 24px; overflow: hidden; }
[data-velas-nocturne-home] .velas-nocturne__search { margin-bottom: clamp(32px,5vw,64px); }
.velas-map-explorer__toolbar { grid-column: 1 / -1; display: flex; align-items: end; gap: 16px; flex-wrap: wrap; padding: 24px; background: #100c18; border-bottom: 1px solid #ffffff24; }
.velas-map-explorer__toolbar label { display: grid; gap: 8px; flex: 1 1 250px; color: #f5eee5; font-size: 14px; }
.velas-map-explorer__toolbar select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 34px 10px 12px; background: #241829; color: #fff; border: 1px solid #b897ac; font-size: 16px; }
.velas-map-explorer__toolbar select { appearance: auto; border-radius: 12px; }
.velas-map-explorer__toolbar > strong { padding: 12px 0; font-size: 16px; color: #f5eee5; }
.velas-map-explorer__help { flex-basis: 100%; margin: 0; color: #d3c5d2; font-size: 14px; line-height: 1.6; }
:where(.velas-map-explorer__toolbar,.velas-map-explorer__results) button { min-height: 44px; padding: 10px 16px; background: #362139; color: #f8f2e9; border: 1px solid #b897ac; font: inherit; cursor: pointer; }
:where(.velas-map-explorer__toolbar,.velas-map-explorer__results) button { border-radius: 999px; }
.velas-map-explorer__toolbar button:disabled { opacity: .5; cursor: default; }
.velas-map-explorer__cities { margin-top: 20px; }
.velas-map-explorer__cities-title { font-size: 14px; color: #d3c5d2; margin: 0 0 12px; }
.velas-map-explorer__city-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.velas-map-explorer__city-buttons button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 12px; border: 1px solid #ffffff38; border-radius: 12px; background: #241829; color: #f8f2e9; text-align: start; font: inherit; font-size: 14px; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.velas-map-explorer__city-buttons button:hover,.velas-map-explorer__city-buttons button[aria-pressed="true"] { background: #403045; border-color: #f3b6a8; }
.velas-map-explorer__city-buttons button:focus-visible { outline: 3px solid #edd4a2; outline-offset: 2px; }
.velas-map-explorer__city-count { color: #f3b6a8; font-variant-numeric: tabular-nums; flex-shrink: 0; white-space: nowrap; overflow-wrap: normal; }
.velas-map-explorer__city-buttons button > span:first-child { min-width: 0; }
.has-explorer:not(.has-geography)[data-selected-property-id] .velas-map-explorer__cities { display: none; }
.has-explorer [data-map-reset][hidden] { display: none !important; }
/* Counts for missing/approximate coordinates remain in the payload and card
   disclosures; don't show diagnostic statistics as a second results heading.
   Loading/errors remain visible, including WebGL fallback. */
.has-explorer.is-ready [data-map-status] { display: none; }
:where(.velas-map-explorer__toolbar,.velas-map-explorer__results) :where(button,select,a):focus-visible { outline: 3px solid #edd4a2; outline-offset: 3px; }
.velas-map-explorer__results { width: 100%; min-width: 0; color: #f5eee5; scroll-margin-top: 110px; }
.velas-map-explorer__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.velas-nocturne__featured .velas-map-explorer__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.velas-map-explorer__card { min-width: 0; position: relative; border: 1px solid #ffffff2b; background: #19131f; box-shadow: 0 12px 32px #0003; padding: 0 0 18px; }
.velas-map-explorer__card { border-radius: 18px; overflow: hidden; }
.velas-map-explorer__card > a { display: grid; gap: 10px; color: inherit; text-decoration: none; padding-bottom: 16px; }
.velas-map-explorer__card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.velas-map-explorer__card :where(h3,p,strong) { margin: 0 18px; color: inherit; }
.velas-map-explorer__card h3 { font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.velas-map-explorer__card p { font-size: 14px; color: #c6b7c4; }
.velas-map-explorer__card strong { font-size: 20px; }
.velas-map-explorer__card > button,.velas-map-explorer__unmapped { margin: 0 18px; }
.velas-map-explorer__unmapped { display: block; font-size: 13px; color: #c6b7c4; padding: 12px 0; }
.velas-map-explorer__card.is-map-active { border-color: #edcf99; box-shadow: 0 0 0 2px #edcf99; }
.velas-map-explorer__selected { display: none; }
.is-map-active > .velas-map-explorer__selected { display: block; padding: 8px 12px; background: #21172bef; color: #ffe1a9; font-size: 13px; pointer-events: none; }
.has-image.is-map-active > .velas-map-explorer__selected { position: absolute; top: 12px; left: 12px; right: 12px; }
.velas-map-explorer__group,.velas-map-explorer__pager { display: flex; align-items: center; gap: 16px; justify-content: space-between; margin: 0 0 24px; flex-wrap: wrap; }
.velas-map-explorer__pager { margin: 24px 0; }
.velas-map-explorer__pager button:disabled { opacity: .45; cursor: default; }
.velas-map-explorer__empty { grid-column: 1 / -1; padding: 32px; border: 1px solid #ffffff2b; font-size: 18px; }
.velas-map-explorer__modes { display: none; gap: 8px; }
.velas-map-explorer__modes [aria-pressed="true"] { color: #241829; background: #edcf99; }
.has-explorer .velas-nocturne-property-map__stats,.has-explorer .velas-nocturne-property-map__copy > p { display: none; }
.has-explorer .velas-nocturne-property-map__copy { justify-content: start; padding: 24px; }
.has-explorer .velas-nocturne-property-map__copy h2 { font-size: 28px; max-width: none; }
.has-explorer .velas-nocturne-property-map__copy h2 { line-height: 1.2; margin: 0; }
.has-explorer .velas-nocturne-property-map__selection { margin-top: 16px; }
.has-explorer .velas-nocturne-property-map__stage { min-height: 520px; }
.velas-nocturne-region-archives { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0; }
[data-map-native-results] [hidden],.rh_page__listing[hidden],.rh_pagination[hidden],.velas-map-explorer__results [hidden] { display: none !important; }
@media(max-width: 700px) {
 .velas-nocturne-property-map.has-explorer { grid-template-columns: minmax(0,1fr); min-height: 0; scroll-margin-top: 90px; }
 .velas-map-explorer__toolbar { padding: 16px; gap: 12px; order: 0; }
 .velas-map-explorer__modes { display: flex; width: 100%; }
 .velas-map-explorer__modes button { flex: 1; }
 .has-explorer .velas-nocturne-property-map__stage { height: 340px; min-height: 340px; }
 .has-explorer:not(.has-geography) .velas-nocturne-property-map__stage { order: 1; }
 .has-explorer .velas-nocturne-property-map__copy { padding: 16px; }
 .has-explorer:not(.has-geography) .velas-nocturne-property-map__copy { order: 2; }
 .has-explorer .velas-map-explorer__cities { margin-top: 0; }
 .has-explorer:not(.has-geography) .velas-nocturne-property-map__copy h2 { display: none; }
 .has-explorer .velas-nocturne-property-map__selection-links select { font-size: 16px; }
 .has-explorer .velas-nocturne-property-map__preview:has(img) { grid-template-columns: 100px minmax(0,1fr); column-gap: 12px; }
 .has-explorer .velas-nocturne-property-map__preview img { width: 100px; height: 100%; min-height: 110px; object-fit: cover; grid-row: 1 / 6; }
 .has-explorer[data-explorer-mode="list"] .velas-nocturne-property-map__stage,
 .has-explorer:not(.has-geography)[data-explorer-mode="list"] .velas-nocturne-property-map__copy { display: none; }
 .velas-map-explorer__grid,.velas-nocturne__featured .velas-map-explorer__grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
