/* Circle Retail (circle-on-cavill.html) — scoped styles for circle-retail.js.
   Map interaction states come from the handoff's styles/guest/photo/wow CSS; the deck and the
   details dialog from its mobile.css (welcome deck). Adapted to the site: Archivo headings,
   Hanken Grotesk body, and the handoff's teal accent swapped for Wowstay rose (as its own
   wow-style.css does for the map). Map colours, cream ground and white logo tiles are unchanged. */
.cr,.cr-dialog{--cr-ink:#2b2336;--cr-muted:#736978;--cr-line:#e8ded9;--cr-rose:#a44077;--cr-accent:#c25b96;--cr-cream:#f9f4f1}
.cr{margin-top:30px;font-family:'Hanken Grotesk',Arial,sans-serif;color:var(--cr-ink)}
.cr-lead{max-width:640px}
.cr button,.cr-dialog button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cr button:disabled{opacity:.3;cursor:default}
.cr button:focus-visible,.cr a:focus-visible,.cr-rail:focus-visible,.cr-dialog button:focus-visible,.cr-dialog a:focus-visible{outline:3px solid var(--cr-accent);outline-offset:3px}
.cr img,.cr-dialog img{max-width:100%}

/* One layout at a time: the map from 800px, the deck below it. */
.cr-mob{display:none}
@media (max-width:799px){.cr-desk{display:none}.cr-mob{display:block}}
.cr-fallback{display:none;margin:0;font-size:15px;color:var(--cr-muted)}
.cr.is-failed .cr-desk,.cr.is-failed .cr-mob,.cr.is-failed .cr-foot{display:none}
.cr.is-failed .cr-fallback{display:block}
.cr-fallback a,.cr-foot a{color:var(--cr-ink);font-weight:700}
.cr-foot{margin:14px 0 0;font-size:13px;color:var(--cr-muted);text-align:center}
@media (max-width:799px){.cr-foot{margin-top:18px;text-align:left}.cr-foot-tip{display:none}}

/* ---------- Desktop map ---------- */
.cr-map{aspect-ratio:1160/950;background:var(--cr-cream)}
.cr-map svg{display:block;width:100%;height:100%;font-family:'Hanken Grotesk',Arial,sans-serif}
.cr-map .unit,.cr-map .photo-bubble{cursor:pointer;transition:opacity .2s,filter .18s}
.cr-map .unit:focus,.cr-map .photo-bubble:focus{outline:none}
.cr-map .unit:not(.cr-empty):hover{filter:brightness(1.04)}
.cr-map .unit:not(.cr-empty):hover .unit-surface{stroke:#fff;stroke-width:3.5}
.cr-map .unit:focus-visible .unit-surface{stroke:#f49029;stroke-width:4}
.cr-map .unit.selected .unit-surface{stroke:var(--cr-accent);stroke-width:3}
.cr-map .unit.cr-empty{cursor:default}
.cr-map .unit-sign,.cr-map .map-art,.cr-map .themed-unit .round-logo,.cr-map .themed-unit svg,.cr-map .media-unit .media-brand,.cr-map .media-unit image,.cr-map .media-unit text{pointer-events:none}
.cr-map .photo-bubble text,.cr-map .photo-bubble image,.cr-map .photo-bubble .media-brand{pointer-events:none}
.cr-map .photo-bubble:hover .bubble-surface,.cr-map .photo-bubble:focus-visible .bubble-surface,.cr-map .photo-bubble.focused-bubble .bubble-surface{stroke:var(--cr-accent);stroke-width:3}
.cr-map .bubble-line,.cr-map .bubble-anchor{pointer-events:none;transition:opacity .2s,stroke-width .2s}
.cr-map .bubble-line.link-highlight{opacity:1;stroke:var(--cr-accent);stroke-width:2.6}
.cr-map .bubble-line.link-dim,.cr-map .bubble-anchor.link-dim{opacity:.06}
.cr-map .bubble-anchor.link-highlight{r:4;fill:var(--cr-accent)}
.cr-map .photo-unavailable .bubble-photo-fallback{font-weight:700}

/* ---------- Mobile: the welcome deck ---------- */
.cr-mob:empty{min-height:640px}
.cr-ribbon{display:flex;gap:12px;overflow-x:auto;scrollbar-width:none;margin:0 -24px 20px;padding:0 24px}
.cr-ribbon::-webkit-scrollbar,.cr-rail::-webkit-scrollbar{display:none}
.cr .cr-ribbon button{flex:1 0 51px;display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--cr-muted)}
.cr-ribbon img{width:45px;height:45px;object-fit:contain}
.cr-line{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.cr-line h3{margin:0;font-family:'Archivo',Arial,sans-serif;font-size:17px;font-weight:800;text-transform:none;letter-spacing:0}
.cr-line span{font-size:12px;color:var(--cr-muted)}
.cr-rail{display:flex;align-items:stretch;gap:18px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-padding-left:24px;margin:0 -24px;padding:4px 24px 8px;overscroll-behavior-x:contain}
/* Same card size as the "Apartments in this tower" rail (.rzr-card in theme.css): 268px wide, 4:3 photo. */
.cr-rail>.cr-card{flex:0 0 268px;scroll-snap-align:start}
.cr .cr-card{display:flex;flex-direction:column;position:relative;min-width:0;overflow:hidden;text-align:left;background:#fff;border:1.5px solid var(--line,var(--cr-line));border-radius:18px;color:var(--cr-ink)}
.cr .cr-card:hover{border-color:#bfaaa0}
.cr-photo{position:relative;display:block;overflow:hidden;background:#e8e0da;aspect-ratio:1.4}
.cr-rail .cr-photo{aspect-ratio:4/3}
.cr-photo>img{display:block;width:100%;height:100%;object-fit:cover}
.cr-badge{position:absolute;right:9px;top:9px;max-width:calc(100% - 18px);padding:4px 7px;border-radius:9px;background:#fff;color:#564c59;font-size:11px;line-height:1.2}
.cr-body{display:block;flex:1;padding:14px 16px 16px}
.cr-logos{display:flex;gap:8px;align-items:center;min-height:32px;margin-bottom:12px;background:#fff}
.cr-logos img{display:block;width:auto;max-width:90px;max-height:33px;object-fit:contain}
.cr-logos img.cr-partner{max-width:87px;max-height:24px}
.cr-photo .cr-logos{position:absolute;left:10px;bottom:10px;min-height:0;margin:0;padding:5px 8px;gap:6px;border-radius:8px;box-shadow:0 2px 10px rgba(20,14,26,.18)}
.cr-photo .cr-logos img{max-width:76px;max-height:24px}
.cr-photo .cr-logos img.cr-partner{max-width:62px;max-height:18px}
.cr-ink{filter:brightness(0)}
.cr-cat{display:block;margin-bottom:5px;font-size:12px;font-weight:700;letter-spacing:.025em;color:var(--cr-accent)}
.cr-name{display:block;font-family:'Archivo',Arial,sans-serif;font-size:16px;font-weight:800;line-height:1.2}
.cr-desc{display:-webkit-box;margin-top:6px;overflow:hidden;font-size:13px;line-height:1.35;color:var(--cr-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical}
.cr-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 3px}
.cr-controls>span{font-size:13px;color:var(--cr-muted)}
.cr-controls>div{display:flex;gap:8px}
.cr .cr-nav{width:42px;height:42px;border:1px solid var(--cr-line);border-radius:50%;background:#fff;font-size:19px}
.cr .cr-key{display:flex;align-items:center;gap:12px;width:100%;min-height:66px;margin-top:18px;padding:13px 18px;text-align:left;background:#fff;border:1px solid var(--cr-line);border-radius:16px}
.cr-key img{width:38px;height:28px;object-fit:contain;object-position:left}
.cr-key-copy{display:block;flex:1}
.cr-key strong{display:block;font-size:14px;font-weight:700}
.cr-key small{display:block;margin-top:4px;font-size:12px;color:var(--cr-muted)}
.cr-key-arrow{font-size:20px;color:var(--cr-accent)}

/* ---------- Place details dialog (appended to body) ---------- */
.cr-dialog{width:min(460px,94vw);max-height:92dvh;padding:0;overflow:auto;border:1px solid var(--cr-line);border-radius:25px;background:var(--cr-cream);color:var(--cr-ink);font-family:'Hanken Grotesk',Arial,sans-serif}
.cr-dialog::backdrop{background:#241e2cab}
.cr-dialog .cr-close{position:absolute;z-index:2;top:12px;right:12px;width:40px;height:40px;border-radius:50%;background:#fff;font-size:25px;line-height:1;box-shadow:0 2px 10px #0000001a}
.cr-dialog .cr-photo{aspect-ratio:1.3}
.cr-dialog .cr-badge{left:12px;right:auto;top:auto;bottom:12px}
.cr-detail-body{padding:22px}
.cr-detail-body .cr-logos{background:transparent}
.cr-detail-body .cr-logos img{max-width:123px;max-height:45px;padding:4px;border-radius:4px;background:#fff}
.cr-detail-body .cr-cat{margin-bottom:8px}
.cr-detail-body h2{margin:0 0 11px;font-family:'Archivo',Arial,sans-serif;font-size:28px;font-weight:800;line-height:1.12;letter-spacing:-.02em;text-transform:none;color:var(--cr-ink)}
.cr-detail-body>p{margin:0 0 14px;font-size:15px;line-height:1.55;color:var(--cr-muted)}
.cr-detail-body>.cr-source{margin-top:17px;font-size:12px;line-height:1.5}
.cr-source a{color:var(--cr-ink)}
.cr-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.cr-links a{padding:11px 16px;border:1px solid var(--cr-line);border-radius:24px;background:#fff;color:var(--cr-ink);font-size:14px;font-weight:600;text-decoration:none}
.cr-pager{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 20px;background:var(--cr-cream);border-top:1px solid var(--cr-line)}
.cr-dialog .cr-pager button{width:46px;height:40px;border:1px solid var(--cr-line);border-radius:22px;background:#fff;font-size:20px}
.cr-pager span{font-size:13px;color:var(--cr-muted)}
html.cr-lock{overflow:hidden}
@media (prefers-reduced-motion:reduce){.cr *,.cr-dialog *{transition:none!important}}
