/* SAFA "Our communities" map section.
   Layout, colours and states from the SAFA Interactive Map UI Kit (07 · Final prototype, 06 · Mobile states).
   Type: the site's own PingAR family. Every rule is scoped to .safa-cmap so the site's Bootstrap
   and theme styles cannot leak in, and logical properties flip the layout for Arabic. */

@font-face { font-family: 'SAFA PingAR'; src: url('../../fonts/new/PingAR-LT-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'SAFA PingAR'; src: url('../../fonts/new/PingAR-LT-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SAFA PingAR'; src: url('../../fonts/new/PingAR-LT-Medium.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'SAFA PingAR'; src: url('../../fonts/new/PingAR-LT-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

.safa-cmap {
  --ink: #16120F; --espresso: #211B16; --ivory: #F7F2EA; --sand: #EDE4D7; --line: #E3D8C8; --hair: #DCCDB8;
  --stone: #6E655B; --text: #1C1714; --copper: #A8714B; --copper-deep: #8A5A38; --champagne: #D6B98C;
  --slate: #4F6F88; --gilt: #C49A5E; --ash: #B8AFA5; --gulf: #101A1D;
  --glass: rgba(22, 18, 15, .8); --glass-line: rgba(214, 185, 140, .3);
  --font: 'SAFA PingAR', 'pingAR', system-ui, sans-serif;
  --ease: cubic-bezier(.3, .6, .2, 1);
  --aside-w: 460px;
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0; /* the site's style.css pads every <section> by 70 px */
  border: 0;
  height: clamp(640px, 100vh, 900px);
  height: clamp(640px, 100svh, 900px);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 1199.98px) { .safa-cmap { --aside-w: 400px; } }

/* ---------- local reset against site styles ---------- */
/* :where() keeps these at element specificity so the component classes below always win;
   this file loads after the site's CSS, so ties with Bootstrap's element rules go our way. */
:where(.safa-cmap) *, :where(.safa-cmap) *::before, :where(.safa-cmap) *::after { box-sizing: border-box; }
:where(.safa-cmap) h2, :where(.safa-cmap) h3 { margin: 0; font-family: var(--font); color: inherit; letter-spacing: normal; text-transform: none; line-height: inherit; }
:where(.safa-cmap) ul { list-style: none; margin: 0; padding: 0; }
:where(.safa-cmap) a { text-decoration: none; }
:where(.safa-cmap) button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: none; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:where(.safa-cmap) img { max-width: none; }
.safa-cmap img.is-broken { visibility: hidden; }
.safa-cmap :focus { outline: none; }
.safa-cmap :focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.safa-cmap [tabindex="-1"]:focus-visible { outline: none; }
.safa-cmap .cmap-flip { transform: none; }
.safa-cmap[dir="rtl"] .cmap-flip { transform: scaleX(-1); }

/* ---------- layers ---------- */
.cmap-stage { position: absolute; inset: 0; }
.cmap-backdrop { position: absolute; inset: 0; background-size: cover; background-position: 38% 50%; transition: opacity 600ms ease; }
.safa-cmap.is-map-ready .cmap-backdrop { opacity: 0; pointer-events: none; }
.safa-cmap.is-compact .cmap-backdrop { background-position: 33% 55%; }
.cmap-map { position: absolute; inset: 0; }
.cmap-geo { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.cmap-geo > * { position: absolute; left: 0; top: 0; }
.cmap-geo.is-kingdom { opacity: var(--cmap-geo-fade, 1); }
.cmap-geo.is-kingdom.is-faded * { pointer-events: none !important; }
.cmap-ui { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.cmap-ui > * { pointer-events: auto; }
.cmap-msg { position: absolute; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.cmap-msg > * { pointer-events: auto; }
.cmap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ArcGIS view ---------- */
.safa-cmap .esri-view { --esri-view-outline: none; }
.safa-cmap .esri-view .esri-view-surface::after { display: none; }
.safa-cmap .esri-view .esri-view-surface--inset-outline:focus::after { outline: none; }
.safa-cmap .esri-ui .esri-attribution {
  background: rgba(22, 18, 15, .6); color: rgba(247, 242, 234, .85); font-family: var(--font); font-size: 10px; line-height: 16px;
}
.safa-cmap .esri-attribution a, .safa-cmap .esri-attribution__powered-by a { color: inherit; }

/* ---------- shared atoms ---------- */
.cmap-glass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--ivory); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cmap-overline { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; color: var(--champagne); }
.safa-cmap[lang="ar"] .cmap-overline, .safa-cmap[lang="ar"] .cmap-status, .safa-cmap[lang="ar"] .cmap-kicker, .safa-cmap[lang="ar"] .cmap-badge, .safa-cmap[lang="ar"] .cmap-dv-k { letter-spacing: 0; }
.cmap-overline.is-copper { color: var(--copper-deep); margin-bottom: 6px; }
.cmap-muted { font-size: 12px; color: var(--stone); }
.cmap-dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex-shrink: 0; }
.cmap-dot.is-sale { background: var(--copper); }
.cmap-dot.is-soon { background: var(--ivory); border: 2px solid var(--gilt); }
.cmap-dot.is-sold { background: var(--ash); }
.cmap-dot.is-ready { background: var(--slate); }
.cmap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cmap-chip { height: 36px; padding-inline: 11px 13px; border-radius: 999px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--hair); background: #fff; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.cmap-chip[aria-pressed="true"] { font-weight: 700; border-color: var(--copper); background: #F4E9DF; color: #5E3D25; }
.cmap-chip.is-dark { border-color: rgba(214, 185, 140, .35); background: transparent; color: var(--ivory); }
.cmap-chip.is-dark[aria-pressed="true"] { border-color: var(--champagne); background: var(--ivory); color: var(--text); }
.cmap-btn { height: 50px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; white-space: nowrap; }
.cmap-btn.is-primary { background: var(--espresso); color: var(--ivory); }
.cmap-btn.is-primary:hover { background: #3A2F27; color: var(--ivory); }
.cmap-btn.is-ghost { border-color: var(--text); color: var(--text); background: transparent; }
.cmap-btn.is-ghost:hover { background: rgba(28, 23, 20, .06); color: var(--text); }
.cmap-back { align-self: flex-start; height: 40px; padding-inline: 12px 16px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: var(--text); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.cmap-back.is-dark { position: absolute; inset-inline-start: 20px; top: 20px; border: 0; background: rgba(22, 18, 15, .78); color: var(--ivory); }
.cmap-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.cmap-status .cmap-dot { width: 8px; height: 8px; }
.cmap-status.is-sale { color: var(--copper-deep); }
.cmap-status.is-soon { color: #7A5A2E; }
.cmap-status.is-sold { color: var(--stone); }
.cmap-pname { font-size: 19px; font-weight: 500; line-height: 1.15; color: var(--text); }
.cmap-iconbtn { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; border: 1px solid var(--hair); background: #fff; color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cmap-iconbtn.is-plain { border-color: transparent; background: transparent; }
.cmap-iconbtn.is-glass { width: 48px; height: 48px; background: rgba(22, 18, 15, .82); border-color: var(--glass-line); color: var(--ivory); }
.cmap-iconbtn.is-ivory { width: 48px; height: 48px; background: var(--ivory); border-color: transparent; }
.cmap-iconbtn.is-dark { background: rgba(22, 18, 15, .75); border: 0; color: var(--ivory); }
.cmap-iconbtn.is-sm { width: 36px; height: 36px; }
.cmap-linkbtn { border: 0; background: none; padding: 6px 0; font-size: 12px; font-weight: 700; color: var(--copper-deep); }
.cmap-sample { display: inline-block; margin-inline-end: 8px; padding: 1px 7px; border-radius: 999px; background: var(--copper); color: #fff; font-weight: 700; letter-spacing: .04em; text-shadow: none; }
.cmap-credit { position: absolute; inset-inline-start: 14px; bottom: 24px; font-size: 10px; color: var(--ivory); opacity: .8; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); pointer-events: none; }
.safa-cmap:not(.is-city) .cmap-credit { left: auto; right: 14px; }
.safa-cmap.is-city .cmap-credit { inset-inline-start: calc(var(--aside-w) + 14px); }

/* ---------- desktop: Kingdom overview ---------- */
/* Hero stays top-right in both languages: the Kingdom sits left of centre, so it never covers the map.
   The hint and overview credit take the opposite corners. */
.cmap-hero { position: absolute; right: 40px; left: auto; top: 40px; z-index: 2; width: 440px; padding: 26px 28px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; }
.cmap-hero:not(.is-compact) .cmap-chips { flex-wrap: nowrap; gap: 6px; }
.cmap-hero:not(.is-compact) .cmap-chip { height: 32px; padding-inline: 9px 11px; gap: 6px; font-size: 11px; }
.cmap-h1 { font-size: 46px !important; font-weight: 300 !important; line-height: 1.02 !important; color: var(--ivory) !important; }
.cmap-h1 em { font-style: normal; color: var(--champagne); }
.cmap-sub { font-size: 14px; color: #CFC4B6; }
.cmap-hint { position: absolute; left: 40px; right: auto; bottom: 40px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; font-size: 13px; color: #E9E1D6; }
.cmap-hint .cmap-ico { color: var(--champagne); }
.cmap-leader { height: 1px; background: rgba(247, 236, 212, .7); transform-origin: 0 0; }
.cmap-cdot { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--ivory); border: 2px solid var(--copper); box-shadow: 0 0 0 6px rgba(247, 236, 212, .25), 0 0 0 14px rgba(247, 236, 212, .1); transition: width 200ms, height 200ms, margin 200ms, background 200ms; }
.cmap-cdot.is-hot { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--copper); }

.cmap-ccard { width: 236px; text-align: start; border: 0; border-radius: 18px; padding: 14px; background: rgba(247, 242, 234, .97); color: var(--text); display: flex; flex-direction: column; gap: 10px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: box-shadow 200ms, translate 200ms ease-out; }
.cmap-ccard.is-geo { pointer-events: auto; transform-origin: 0 0; transform: scale(var(--cmap-card-scale, 1)); }
.cmap-ccard:hover, .cmap-ccard:focus-visible { translate: 0 -4px; box-shadow: 0 0 0 2px var(--copper), 0 24px 48px rgba(0, 0, 0, .5); outline: none; }
.cmap-ccard.is-empty { opacity: .55; }
.cmap-ccard:hover .cmap-go { background: var(--copper); }
.cmap-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cmap-row.is-baseline { align-items: baseline; }
.cmap-thumbs { display: flex; min-height: 36px; }
.cmap-thumbs img { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 2px solid var(--ivory); background: var(--sand); }
.cmap-thumbs img + img { margin-inline-start: -10px; }
.cmap-thumbs img.is-sold { filter: grayscale(1); }
.cmap-go { width: 32px; height: 32px; border-radius: 999px; background: var(--espresso); color: var(--ivory); display: flex; align-items: center; justify-content: center; transition: background 200ms; flex-shrink: 0; }
.cmap-cname { font-size: 24px; font-weight: 500; line-height: 1.05; }
.cmap-alt { font-size: 13px; color: var(--stone); }
.cmap-bar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.cmap-bar i { display: block; }
.cmap-bar .is-sale { background: var(--copper); } .cmap-bar .is-soon { background: var(--gilt); } .cmap-bar .is-sold { background: var(--ash); }
.cmap-legendrow { display: flex; gap: 12px; font-size: 11px; flex-wrap: wrap; }
.cmap-legendrow span { display: inline-flex; align-items: center; gap: 5px; }
.cmap-legendrow .cmap-dot { width: 7px; height: 7px; border: 0; }
.cmap-legendrow .cmap-dot.is-soon { background: var(--gilt); }

/* ---------- desktop: city chrome ---------- */
.cmap-crumb { position: absolute; inset-inline-start: calc(var(--aside-w) + 24px); top: 24px; display: flex; align-items: center; gap: 8px; padding: 0 16px; height: 44px; border-radius: 999px; font-size: 13px; color: #CFC4B6; max-width: calc(100% - var(--aside-w) - 260px); }
.cmap-crumb button { border: 0; background: none; color: #CFC4B6; font-size: 13px; padding: 0; white-space: nowrap; }
.cmap-crumb button:hover { color: var(--ivory); }
.cmap-crumb .is-cur { color: var(--ivory); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmap-seg { position: absolute; inset-inline-end: 24px; top: 24px; display: inline-flex; padding: 4px; border-radius: 999px; }
.cmap-seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ivory); font-size: 13px; }
.cmap-seg button[aria-pressed="true"] { background: var(--ivory); color: var(--text); font-weight: 600; }
.cmap-zoom { position: absolute; inset-inline-end: 24px; bottom: 40px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; }
.cmap-zoom button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--ivory); display: flex; align-items: center; justify-content: center; padding: 0; }
.cmap-zoom button:hover { background: rgba(247, 242, 234, .08); }
.cmap-zoom hr { margin: 0; border: 0; height: 1px; background: var(--glass-line); opacity: 1; }
.cmap-legend { position: absolute; inset-inline-start: calc(var(--aside-w) + 24px); bottom: 40px; display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 16px; border-radius: 14px; font-size: 12px; color: #E9E1D6; max-width: calc(100% - var(--aside-w) - 120px); }
.cmap-legend span { display: flex; align-items: center; gap: 7px; }
.cmap-legend .cmap-dot { width: 10px; height: 10px; border: 1.5px solid var(--ivory); }
.cmap-legend .cmap-dot.is-soon { border: 2px solid var(--gilt); }
.cmap-legend .cmap-dot.is-sold { border: 0; }
.cmap-pill { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ivory); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .45); color: var(--text); }

/* ---------- desktop: sidebar ---------- */
.cmap-aside { position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 30; width: var(--aside-w); background: var(--ivory); box-shadow: 20px 0 60px rgba(0, 0, 0, .35); transform: translateX(-110%); transition: transform 600ms var(--ease); display: flex; flex-direction: column; }
.safa-cmap[dir="rtl"] .cmap-aside { transform: translateX(110%); box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
.safa-cmap .cmap-aside.is-open { transform: none; transition-delay: 350ms; }
.safa-cmap.is-compact .cmap-aside { display: none; }
.cmap-list { display: flex; flex-direction: column; gap: 16px; padding-block: 28px 0; padding-inline: 32px 28px; height: 100%; min-height: 0; }
.cmap-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cmap-title h3 { font-size: 40px; font-weight: 300; line-height: 1.05; }
.cmap-title .cmap-alt { font-size: 18px; color: var(--copper-deep); font-weight: 600; }
.cmap-tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--sand); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.cmap-tabs::-webkit-scrollbar { display: none; }
.cmap-tabs button { flex: 1 0 auto; height: 38px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 13px; white-space: nowrap; color: var(--text); }
.cmap-tabs button[aria-pressed="true"] { background: var(--espresso); color: var(--ivory); font-weight: 600; box-shadow: 0 4px 10px rgba(28, 23, 20, .2); }
.cmap-filters { display: flex; flex-direction: column; gap: 10px; }
.cmap-dv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmap-dv-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); font-weight: 700; margin-inline-end: 4px; min-width: 64px; }
.cmap-dv button { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--hair); background: #fff; font-size: 12px; color: var(--text); }
.cmap-dv button[aria-pressed="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--ivory); font-weight: 600; }
.cmap-lhead { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; font-size: 16px; font-weight: 600; }
.cmap-lhead span { font-size: 13px; color: var(--stone); font-weight: 400; }
.cmap-scroll { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-block: 4px 28px; padding-inline: 2px 6px; }
.cmap-pcard { text-align: start; border: 0; padding: 10px; border-radius: 18px; background: #fff; display: flex; gap: 14px; box-shadow: 0 2px 8px rgba(28, 23, 20, .06); color: var(--text); transition: box-shadow 160ms; flex-shrink: 0; }
.cmap-pcard:hover, .cmap-pcard.is-hot, .cmap-pcard:focus-visible { box-shadow: 0 0 0 2px var(--copper), 0 10px 24px rgba(28, 23, 20, .12); outline: none; }
.cmap-pcard-img { position: relative; width: 100px; height: 100px; flex-shrink: 0; border-radius: 12px; background: var(--sand); overflow: hidden; }
.cmap-pcard-img img { width: 100px; height: 100px; object-fit: cover; display: block; }
.cmap-tag { position: absolute; inset-inline-start: 6px; bottom: 6px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(22, 18, 15, .78); color: var(--ivory); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; }
.cmap-pcard-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 2px; }
.cmap-meta { font-size: 12px; }
.cmap-empty { border: 1px dashed #C9B79E; border-radius: 18px; padding: 28px 20px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.cmap-empty .cmap-back { align-self: center; }
.cmap-detail { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cmap-detail-hero { position: relative; height: 260px; flex-shrink: 0; background: var(--sand); }
.cmap-detail-hero > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmap-badge { position: absolute; inset-inline-start: 20px; bottom: 18px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ivory); font-size: 11px; letter-spacing: .08em; }
.cmap-ring { position: absolute; inset-inline-end: 18px; bottom: 14px; width: 60px; height: 60px; border-radius: 999px; background: rgba(22, 18, 15, .82); display: flex; align-items: center; justify-content: center; color: var(--ivory); font-size: 13px; font-weight: 700; }
.cmap-ring svg { position: absolute; inset: 0; }
.cmap-ring span { position: relative; }
.cmap-dbody { padding-block: 22px 0; padding-inline: 32px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1 1 0; min-height: 0; overflow-y: auto; }
.cmap-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.cmap-dname { margin-top: 6px !important; font-size: 32px; font-weight: 300; line-height: 1.08; }
.cmap-dtype { margin-top: 6px; font-size: 13px; }
.cmap-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmap-stats div { background: #fff; border-radius: 12px; padding: 12px 14px; }
.cmap-stats small { display: block; font-size: 11px; color: var(--stone); }
.cmap-stats b { font-size: 20px; font-weight: 600; }
.cmap-lm { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cmap-lm span:last-child { color: var(--stone); white-space: nowrap; }
.cmap-nolm { padding: 10px 0; font-size: 13px; }
.cmap-cta { display: flex; gap: 10px; padding-block: 18px 24px; padding-inline: 32px 28px; border-top: 1px solid var(--line); }
.cmap-cta .is-primary { flex-grow: 1; }

/* ---------- loading, errors, hints ---------- */
.cmap-loading { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; font-size: 13px; margin-top: 220px; }
.cmap-spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid rgba(214, 185, 140, .35); border-top-color: var(--champagne); animation: cmap-spin 900ms linear infinite; }
@keyframes cmap-spin { to { transform: rotate(360deg); } }
.cmap-error { max-width: 440px; margin: 16px; padding: 28px; border-radius: 20px; background: var(--ivory); text-align: center; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.cmap-error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cmap-hintpill { position: absolute; left: 50%; top: 50%; z-index: 44; transform: translate(-50%, -50%); padding: 12px 18px; border-radius: 999px; background: var(--glass); color: var(--ivory); font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 200ms; }
.cmap-hintpill.is-on { opacity: 1; }

/* ---------- compact: UI Kit 06 · Mobile states ---------- */
.safa-cmap.is-compact { height: clamp(600px, 100vh, 860px); height: clamp(600px, 100svh, 860px); }
.safa-cmap.is-compact .cmap-hero.is-compact { inset-inline: 12px; top: 12px; width: auto; padding: 16px 18px; gap: 8px; border-radius: 20px; }
.safa-cmap.is-compact .cmap-h1 { font-size: 30px !important; }
.safa-cmap.is-compact .cmap-sub { font-size: 13px; }
.cmap-hero.is-compact .cmap-chips, .cmap-chips.is-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; }
.cmap-hero.is-compact .cmap-chips::-webkit-scrollbar, .cmap-chips.is-scroll::-webkit-scrollbar { display: none; }
.cmap-m-strip { position: absolute; inset-inline: 0; bottom: 16px; display: flex; gap: 12px; overflow-x: auto; padding: 8px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cmap-m-strip::-webkit-scrollbar { display: none; }
.cmap-ccard.is-static { flex-shrink: 0; scroll-snap-align: center; width: min(236px, 72vw); }
.safa-cmap.is-compact .cmap-credit { display: none; }

.cmap-m-top { position: absolute; top: 0; inset-inline: 0; z-index: 3; background: var(--ivory); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 10px; border-radius: 0 0 24px 24px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.cmap-m-titlebar { display: flex; align-items: center; gap: 10px; }
.cmap-m-title { flex: 1 1 auto; font-size: 26px !important; font-weight: 300 !important; line-height: 1.05; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmap-m-top .cmap-tabs button { height: 40px; font-size: 12px; }
.cmap-chip.is-more { gap: 6px; color: var(--stone); }
.cmap-chip.is-more[aria-expanded="true"] { background: var(--sand); color: var(--text); }
.cmap-m-more { display: flex; flex-direction: column; gap: 8px; }
.cmap-m-more .cmap-dv-k { min-width: 0; }
.safa-cmap.is-compact .cmap-zoom { inset-inline-end: 12px; top: 50%; bottom: auto; transform: translateY(-50%); }
.safa-cmap.is-compact .cmap-zoom button { width: 44px; height: 44px; }
.cmap-m-sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; background: var(--ivory); border-radius: 28px 28px 0 0; padding: 10px 0 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -12px 30px rgba(0, 0, 0, .35); }
.cmap-m-handle { width: 40px; height: 4px; border-radius: 999px; background: #CFC3B3; align-self: center; }
.cmap-m-sheethead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 18px; font-size: 15px; font-weight: 600; }
.cmap-m-cards { display: flex; gap: 10px; overflow-x: auto; padding: 2px 18px 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cmap-m-cards::-webkit-scrollbar { display: none; }
.cmap-m-cards .cmap-empty { flex: 1 0 100%; padding: 16px; }
.cmap-m-ccard { flex-shrink: 0; width: min(300px, 82vw); scroll-snap-align: start; background: #fff; border: 0; border-radius: 18px; padding: 10px; display: flex; gap: 12px; text-align: start; color: var(--text); box-shadow: 0 2px 8px rgba(28, 23, 20, .06); }
.cmap-m-ccard.is-hot, .cmap-m-ccard:focus-visible { box-shadow: 0 0 0 2px var(--copper); }
.cmap-m-ccard img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--sand); }
.cmap-m-ccard-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; justify-content: center; }
.cmap-m-ccard .cmap-pname { font-size: 17px; }

.cmap-m-bar { position: absolute; top: 12px; inset-inline: 12px; z-index: 3; display: flex; gap: 10px; }
.cmap-m-bartitle { flex: 1 1 auto; min-width: 0; height: 48px; border-radius: 999px; display: flex; align-items: center; gap: 6px; padding: 0 18px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmap-m-bartitle span { color: #CFC4B6; overflow: hidden; text-overflow: ellipsis; }
.cmap-m-card { position: absolute; inset-inline: 12px; bottom: 16px; z-index: 3; background: var(--ivory); border-radius: 24px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, .5); }
.cmap-m-card-img { position: relative; height: 140px; background: var(--sand); }
.cmap-m-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmap-m-card-img .cmap-badge { inset-inline-start: 12px; top: 12px; bottom: auto; height: 26px; font-size: 10px; }
.cmap-m-card-img .cmap-iconbtn { position: absolute; inset-inline-end: 10px; top: 10px; }
.cmap-m-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.cmap-m-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cmap-m-card-head .cmap-pname { font-size: 22px; font-weight: 400; }
.cmap-pct { font-size: 12px; font-weight: 700; color: var(--copper-deep); white-space: nowrap; }
.cmap-m-card-cta { display: flex; gap: 8px; }
.cmap-m-card-cta .cmap-btn { height: 46px; font-size: 13px; }
.cmap-m-card-cta .is-primary { flex-grow: 1; }

.cmap-m-list { position: absolute; inset: 0; z-index: 35; background: var(--ivory); padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.cmap-m-listhead { display: flex; align-items: center; gap: 8px; }
.cmap-search { height: 46px; border-radius: 999px; border: 1px solid var(--hair); background: #fff; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--stone); font-size: 13px; margin: 0; flex-shrink: 0; }
.cmap-search:focus-within { border-color: var(--copper); box-shadow: 0 0 0 1px var(--copper); }
.safa-cmap .cmap-search input:focus-visible { outline: none; }
.cmap-search input { border: 0; outline: none; background: transparent; font: inherit; font-size: 14px; color: var(--text); flex-grow: 1; min-width: 0; height: 100%; padding: 0; }
.cmap-m-lcards { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding-bottom: 96px; }
.cmap-m-lcard { flex-shrink: 0; border: 0; padding: 0; text-align: start; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 18px rgba(28, 23, 20, .08); color: var(--text); display: flex; flex-direction: column; }
.cmap-m-lcard-img { position: relative; height: 170px; background: var(--sand); }
.cmap-m-lcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmap-m-lcard-img .cmap-badge { inset-inline-start: 12px; top: 12px; bottom: auto; height: 26px; font-size: 10px; }
.cmap-m-lcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cmap-m-lcard .cmap-pname { font-size: 21px; }
.cmap-m-showmap { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--espresso); color: var(--ivory); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 14px 30px rgba(28, 23, 20, .35); }

@media (prefers-reduced-motion: reduce) {
  .safa-cmap *, .safa-cmap *::before, .safa-cmap *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation-duration: 0ms !important; }
}
