/* Home: "Where Dubai is buying" sales map. Shares markup and styles with the transactions page (assets/css/tx.css). */
.hm-sales { --r-l: 28px; --r-m: 20px; --r-s: 14px; --night: #0b0b0e; --night-2: #15151a; --glow: #f43b2f; --mut: #67676f; --spr: cubic-bezier(.32,.72,0,1); --num: "tnum" 1, "lnum" 1; }
.hm-sales .sld-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(22px, 3vw, 36px); }
.hm-sales .sld-head p { margin: 0; color: var(--mut); max-width: 46ch; font-size: 15px; }
.hm-sales .sld-head .link-arrow { display: inline-flex; margin-top: 10px; }
.sld-map { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 600px; border-radius: var(--r-l); overflow: hidden; background: var(--night); color: #fff; }
.sld-map__canvas { position: relative; min-height: 600px; background: #101014; }
.sld-map__poster { position: absolute; inset: 0; background: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1.2px) 0 0 / 18px 18px, radial-gradient(50% 60% at 50% 50%, rgba(244,59,47,.12), transparent 70%); }
.sld-map .leaflet-container { background: #101014; font: inherit; }
.sld-map__canvas.leaflet-container { position: relative; z-index: 1; }
.sld-map .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(1.15); opacity: .85; }
.sld-map .leaflet-control-attribution { background: rgba(11,11,14,.7) !important; color: rgba(255,255,255,.6) !important; font-size: 10px; }
.sld-map .leaflet-control-attribution a { color: #fff !important; }
.sld-map .leaflet-bar a { background: var(--night-2); color: #fff; border-color: rgba(255,255,255,.12); }
.sld-map .leaflet-bar a:hover { background: #26262d; }
.sld-dot { position: relative; display: block; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(255,120,105,.95) 0 18%, rgba(244,59,47,.55) 30%, rgba(244,59,47,.12) 62%, transparent 72%); }
.sld-dot::after { content: ""; position: absolute; inset: 25%; border-radius: 50%; border: 1.5px solid rgba(255,120,105,.85); animation: sld-ring 3.2s ease-out infinite; animation-delay: var(--dl, 0s); }
.sld-dot.is-on { background: radial-gradient(circle, #fff 0 18%, rgba(244,59,47,.85) 30%, rgba(244,59,47,.2) 62%, transparent 72%); }
@keyframes sld-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.sld-map .leaflet-marker-icon.sld-mk { background: none; border: 0; }
.sld-map .leaflet-marker-icon.sld-mk { animation: sld-pop .7s var(--spr) both; animation-delay: var(--dl2, 0s); }
@keyframes sld-pop { from { opacity: 0; transform: scale(.2); } }
.sld-map .leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; box-shadow: 0 24px 50px -16px rgba(0,0,0,.6); }
.sld-map .leaflet-popup-content { margin: 0; min-width: 220px; font: inherit; color: var(--ink); }
.sld-pop-c { padding: 16px 18px; }
.sld-pop-c b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sld-pop-c p { margin: 6px 0 12px; font-size: 13px; color: var(--mut); line-height: 1.5; }
.sld-pop-c p strong { color: var(--ink); font-size: 15px; }
.sld-pop-c a { display: inline-flex; height: 38px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--red-t); color: #fff !important; font-weight: 800; font-size: 13px; }
.sld-board { list-style: none; margin: 0; padding: 16px; display: grid; align-content: start; gap: 4px; max-height: 600px; overflow: auto; background: linear-gradient(180deg, var(--night-2), var(--night)); counter-reset: none; box-shadow: inset 1px 0 0 rgba(255,255,255,.06); }
.sld-board li { position: relative; }
.sld-board a { position: relative; isolation: isolate; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; transition: background .2s; }
.sld-board a::before { content: ""; position: absolute; inset-inline-start: 0; bottom: 6px; z-index: -1; height: 2px; width: var(--w); max-width: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--glow), rgba(244,59,47,.2)); opacity: .9; }
.sld-board li { --w: 0%; }
.sld-board a:hover, .sld-board a.is-on { background: rgba(255,255,255,.07); }
.sld-board__r { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.45); font-feature-settings: var(--num); }
.sld-board__n { min-width: 0; display: grid; }
.sld-board__n b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sld-board__n small { font-size: 12px; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sld-board__v { font-weight: 800; font-size: 14px; white-space: nowrap; font-feature-settings: var(--num); }
[dir="rtl"] .sld-board a::before { background: linear-gradient(270deg, var(--glow), rgba(244,59,47,.2)); }
@media (max-width: 1180px) {
  .sld-map { grid-template-columns: minmax(0, 1fr); }
  .sld-map__canvas { min-height: 520px; }
  .sld-board { max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
}
@media (max-width: 960px) {
  .sld-map { margin-inline: calc(var(--gut) * -1); border-radius: 0; min-height: 0; }
  .sld-map__canvas { min-height: 440px; }
  .sld-board { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px var(--gut); scroll-padding-inline: var(--gut); }
  .sld-board::-webkit-scrollbar { display: none; }
  .sld-board li { flex: 0 0 76%; scroll-snap-align: start; }
  .sld-board a { background: rgba(255,255,255,.06); }
}
