/* dn-listings-map.css - the listing page's map (js/dn-listings-map.js), owner 2026-10-28 "premium property map".
   Loaded after dn-props-2026.css / dn-theme-2026.css; everything is drawn with the site's tokens (--color-*, --radius-*,
   --font-sans) so light / dark follow the theme switch. Dandelion gold #C7A74D marks the selected pill and card. */

/* ---------- panel ---------- */
.dn-lmap { position: relative; margin: 18px 0 6px; border: 1px solid var(--color-border); border-radius: var(--radius-card, 16px); background: var(--color-surface-secondary); overflow: hidden; }
.dn-lmap-map { position: relative; height: min(520px, 62vh); min-height: 320px; background: var(--color-surface-secondary); border-radius: inherit; }
.dn-lmap-map:not(.is-ready)::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, var(--color-skeleton-shine) 50%, transparent 70%) 0 0 / 220% 100% no-repeat; animation: dnLmapShimmer 1.4s ease-in-out infinite; }
@keyframes dnLmapShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .dn-lmap-map:not(.is-ready)::before { animation: none; } }
.dn-lmap .maplibregl-map, .dn-lmap .leaflet-container { font-family: var(--font-sans); background: var(--color-surface-secondary); }
.dn-lmap .maplibregl-canvas { outline: none; }
.dn-lmap .maplibregl-ctrl-attrib, .dn-lmap .leaflet-control-attribution { margin: 0 8px 8px; padding: 3px 9px; border-radius: 8px; background: var(--color-surface); color: var(--color-text-secondary);
  font: 500 12px/1.4 var(--font-sans); opacity: .92; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); border: 0; }
.dn-lmap .maplibregl-ctrl-attrib a, .dn-lmap .leaflet-control-attribution a { color: inherit; text-decoration: none; }
.dn-lmap .maplibregl-ctrl-attrib a:hover, .dn-lmap .leaflet-control-attribution a:hover { text-decoration: underline; }
.dn-lmap .maplibregl-ctrl-bottom-right, .dn-lmap .maplibregl-ctrl-bottom-left { z-index: 3; }
.dn-lmap .maplibregl-cooperative-gesture-screen { background: var(--color-overlay); color: #fff; font-family: var(--font-sans); font-size: 14px; border-radius: inherit; }
.dn-lmap .leaflet-bottom.leaflet-right { right: auto; left: 0; }
html[dir="rtl"] .dn-lmap .leaflet-bottom.leaflet-right { left: auto; right: 0; }
/* OSM raster fallback: the light grey look in both themes, no inversion in dark */
html[data-theme] .dn-lmap-tiles-fb, html[data-theme="dark"] .dn-lmap-tiles-fb { filter: grayscale(1) brightness(1.16) contrast(.74); }
html[data-theme="dark"] .dn-lmap-basic .leaflet-container { background: #E9E9E9; }

/* ---------- floating controls ---------- */
.dn-lmap-ui { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.dn-lmap-ui > * { pointer-events: auto; }
.dn-lmap-ctl { position: absolute; display: flex; gap: 6px; }
.dn-lmap-ctl-top { top: 12px; inset-inline-end: 12px; }
.dn-lmap-ctl-zoom { top: 60px; inset-inline-end: 12px; flex-direction: column; }
.dn-lmap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; min-width: 38px; padding: 0 11px; margin: 0; box-sizing: border-box;
  border-radius: var(--radius-pill, 999px); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12); font: 700 12px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.dn-lmap-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dn-lmap-btn:not(.has-text) { padding: 0; width: 38px; }
.dn-lmap-btn:not(.has-text) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dn-lmap-btn:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); }
.dn-lmap-btn:active { transform: scale(.96); }
.dn-lmap-btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.dn-lmap-btn[hidden] { display: none; }
.dn-lmap-status { position: absolute; bottom: 44px; inset-inline-start: 12px; margin: 0; padding: 5px 10px; border-radius: 8px; background: var(--color-surface); color: var(--color-text-secondary);
  font: 500 12px/1.4 var(--font-sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); max-width: calc(100% - 24px); }
.dn-lmap-status:empty, .dn-lmap-ui:has(.dn-lmap-preview:not([hidden])) .dn-lmap-status { display: none; }

/* ---------- price pills ---------- */
.dn-lmap-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; margin: 0; border-radius: var(--radius-pill, 999px);
  background: var(--color-surface); color: var(--color-text-primary); border: 1px solid var(--color-border-strong); box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  font: 700 12px/1 var(--font-sans); letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.dn-lmap-pill b { font-weight: 800; }
.dn-lmap-pill i { font-style: normal; font-weight: 600; color: var(--color-text-secondary); }
.dn-lmap-pill em { font-style: normal; color: var(--color-text-muted); padding: 0 1px; }
.dn-lmap-pill u { text-decoration: none; font-weight: 600; color: var(--color-text-secondary); }
.dn-lmap-pill-ic svg { width: 14px; height: 14px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dn-lmap-pill.is-neutral { padding: 0 9px; }
.dn-lmap-pill:hover, .dn-lmap-pill.is-hover { border-color: #C7A74D; box-shadow: 0 6px 18px rgba(0, 0, 0, .2), 0 0 0 3px rgba(199, 167, 77, .28); transform: translateY(-1px) scale(1.04); z-index: 2; }
.dn-lmap-pill.is-on { background: #C7A74D; border-color: #C7A74D; color: #0D0D0D; z-index: 3; }
.dn-lmap-pill.is-on i, .dn-lmap-pill.is-on u, .dn-lmap-pill.is-on em { color: rgba(13, 13, 13, .72); }
.dn-lmap-pill:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.dn-lmap .maplibregl-marker { cursor: pointer; }
.dn-lmap .dn-lmap-lf { background: none; border: 0; width: 0 !important; height: 0 !important; display: flex; align-items: center; justify-content: center; overflow: visible; }
.dn-lmap .dn-lmap-lf .dn-lmap-pill { flex: none; }

/* ---------- the preview of one area's listings ---------- */
.dn-lmap-preview { position: absolute; top: 12px; inset-inline-start: 12px; width: min(340px, calc(100% - 24px)); max-height: calc(100% - 64px); display: flex; flex-direction: column;
  border: 1px solid var(--color-border); border-radius: var(--radius-card, 16px); background: var(--color-surface); color: var(--color-text-primary); box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .35); overflow: hidden; z-index: 5; }
.dn-lmap-preview[hidden] { display: none; }
.dn-lmap-pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 14px; border-bottom: 1px solid var(--color-border-subtle); }
.dn-lmap-pv-head > div { flex: 1; min-width: 0; }
.dn-lmap-pv-head b { display: block; font: 800 14px/1.3 var(--font-sans); }
.dn-lmap-pv-head span { display: block; font: 500 12px/1.4 var(--font-sans); color: var(--color-text-secondary); }
.dn-lmap-pv-head .dn-lmap-btn { box-shadow: none; height: 32px; min-width: 32px; width: 32px; }
.dn-lmap-pv-list { overflow: auto; padding: 6px; overscroll-behavior: contain; }
.dn-lmap-item { display: flex; gap: 10px; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; }
.dn-lmap-item:hover { background: var(--color-surface-hover); }
.dn-lmap-item-img { flex: none; width: 76px; height: 58px; border-radius: 12px; background: var(--color-surface-tertiary); overflow: hidden; }
.dn-lmap-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-lmap-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dn-lmap-item-body b { font: 800 14px/1.3 var(--font-sans); }
.dn-lmap-item-title { font: 600 12px/1.35 var(--font-sans); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; unicode-bidi: plaintext; }
.dn-lmap-item-body small { font: 500 12px/1.4 var(--font-sans); color: var(--color-text-secondary); }
.dn-lmap-item-body em { font: 700 12px/1.4 var(--font-sans); font-style: normal; color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 2px; }
.dn-lmap-pv-foot { padding: 8px 12px 12px; border-top: 1px solid var(--color-border-subtle); }
.dn-lmap-pv-foot .dn-lmap-btn { width: 100%; box-shadow: none; background: var(--color-button-primary); color: var(--color-button-primary-text); border-color: var(--color-button-primary); }
.dn-lmap-pv-foot .dn-lmap-btn:hover { background: var(--color-button-primary-hover); }

/* ---------- the cards the map points at ---------- */
html body #dnHybridListings#dnHybridListings .dn-card.dn-lmap-card-hover { border-color: #C7A74D !important; }
html body #dnHybridListings#dnHybridListings .dn-card.dn-lmap-card-on { border-color: #C7A74D !important; box-shadow: 0 0 0 3px rgba(199, 167, 77, .3) !important; }

/* ---------- phone: results first, a floating "View map" button, the map full screen ---------- */
/* bottom inline-start: the contact pill (.dn-ct-trigger) floats at the other corner in every language */
.dn-lmap-fab { position: fixed; z-index: 9000; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 14px; height: 44px; padding: 0 18px;
  background: var(--color-button-primary); color: var(--color-button-primary-text); border-color: var(--color-button-primary); box-shadow: 0 10px 28px rgba(0, 0, 0, .28); font-size: 14px; font-weight: 800; }
.dn-lmap-fab:hover { background: var(--color-button-primary-hover); border-color: var(--color-button-primary-hover); }
.dn-lmap-fab:active { transform: scale(.96); }
@media (min-width: 760px) { .dn-lmap-fab { display: none !important; } }
/* ---------- the map as the page (owner 2026-11-04, two states only): from under the search block (--dn-lmap-top, measured by
   js/dn-listings-map.js) to the bottom of the screen, edge to edge, in every width; the script takes the list, its status row and
   the footer out (on phones the title and the breadcrumb too). The search bar's dropdowns (.dn-combo-panel) and the Filters drawer open over it. ---------- */
html.dn-lmap-page, html.dn-lmap-page body { overflow: hidden !important; overscroll-behavior: none; }
html body .dn-lmap-page-root .dn-lmap:not([hidden]) { position: fixed !important; top: var(--dn-lmap-top, 0px); left: 0; right: 0; bottom: 0; z-index: 30;
  width: auto !important; height: auto !important; max-width: none !important; margin: 0 !important; border: 0 !important; border-top: 1px solid var(--color-border) !important; border-radius: 0 !important; }
html body .dn-lmap-page-root .dn-lmap .dn-lmap-map { height: 100% !important; min-height: 0; border-radius: 0; }
.dn-lmap-ctl-top { inset-inline-start: 16px; inset-inline-end: auto; top: 16px; }
.dn-lmap-ctl-zoom { top: 16px; inset-inline-end: 16px; }
.dn-lmap-back { height: 40px; padding: 0 16px 0 12px; font-size: 14px; }
/* the pin card: under "List" at the start corner; on phones a sheet at the bottom */
.dn-lmap-preview { top: 68px; inset-inline-start: 16px; width: min(360px, calc(100% - 32px)); max-height: calc(100% - 84px); }
.dn-lmap-item-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 10px calc(8px + 76px + 10px); margin-top: -4px; }
.dn-lmap-item-acts a { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill, 999px); box-sizing: border-box;
  font: 700 12px/1 var(--font-sans); text-decoration: none; white-space: nowrap; border: 1px solid var(--line-gold, var(--color-border)); background: var(--paper, var(--color-surface)); color: var(--ink, var(--color-text-primary)); }
.dn-lmap-item-acts a.dn-lmap-wa { background: #25D366; border-color: #25D366; color: var(--ink, #0D0D0D); }
.dn-lmap-item-acts a:hover { filter: brightness(.96); }
.dn-lmap-item-acts a:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
.dn-lmap-item-acts svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 759px) {
  .dn-lmap-ctl-top { inset-inline-start: 12px; top: 12px; }
  .dn-lmap-ctl-zoom { top: 12px; inset-inline-end: 12px; }
  .dn-lmap .dn-lmap-btn { height: 42px; min-width: 42px; }
  .dn-lmap .dn-lmap-btn:not(.has-text) { width: 42px; }
  .dn-lmap .dn-lmap-pill { height: 32px; padding: 0 12px; font-size: 12px; }
  .dn-lmap-preview { inset-inline: 0; top: auto; bottom: 0; width: auto; max-height: 56%; border-radius: var(--radius-modal, 16px) var(--radius-modal, 16px) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dn-lmap-status { bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  .dn-lmap .maplibregl-ctrl-bottom-right, .dn-lmap .maplibregl-ctrl-bottom-left { bottom: env(safe-area-inset-bottom, 0px); }
  /* the contact pill would sit on the pin card; the card carries Call and WhatsApp */
  html.dn-lmap-page:has(.dn-lmap-preview:not([hidden])) .dn-ct-trigger { display: none !important; }
}
/* owner 2026-11-04 «meu oftad zir naghe»: with the map open, the search box's section (z-index 20) sits above the fixed map (z-index 30),
   so its suggestion menu (search history, popular searches, areas) opens over the map instead of under it */
html body #dnHybridListings.dn-lmap-page-root .dn-filter-v5, html body .dn-lmap-page-root .dn-filter-section { z-index: 40; }   /* beats propertiesstatic's #dnHybridListings .dn-filter-v5 {z-index:20} */
