.concept-3 .scent-atlas { height: calc(100svh - 44px); margin-top:44px; display:grid; grid-template-columns:minmax(0,1fr) 320px; color:var(--foreground); font:12px/1.5 var(--font-consumer); overflow:hidden; }
.scent-atlas * { box-sizing:border-box; }
.scent-atlas :focus-visible { outline:none; box-shadow:none; }
.scent-atlas button,.scent-atlas input { font:inherit; color:inherit; }
.scent-atlas button { cursor:pointer; }
.scent-atlas a { color:inherit; }
.scent-atlas button:focus-visible,.scent-atlas a:focus-visible { text-decoration:underline; }
.atlas-canvas { position:relative; min-height:0; overflow:hidden; }
#scent-map { width:100%; height:100%; display:block; touch-action:none; cursor:grab; }
#scent-map.dragging { cursor:grabbing; }
.atlas-heading { position:absolute; top:20px; left:24px; z-index:2; pointer-events:none; }
.atlas-heading h1 { font-size:24px; margin:0; }
.atlas-heading p { color:var(--ww-text-muted-color); margin:4px 0 16px; }
.atlas-heading input { pointer-events:auto; width:260px; max-width:calc(100vw - 48px); background:var(--background); border:1px solid var(--detail-divider); border-radius:4px; padding:8px; }
.atlas-search-label { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#atlas-search-results { pointer-events:auto; max-height:240px; overflow:auto; width:260px; background:var(--background); border:1px solid var(--detail-divider); }
#atlas-search-results button { display:block; width:100%; border:0; text-align:left; padding:9px; background:none; }
#atlas-search-results button:hover { background:var(--ww-surface-color); }
.atlas-region { cursor:pointer; }
.atlas-region circle, .atlas-detail-circles circle { fill:transparent; stroke:#8c8c87; stroke-opacity:.2; stroke-width:1; vector-effect:non-scaling-stroke; }
.atlas-region[aria-pressed=true] > circle:not(.atlas-region-hit) { stroke-opacity:1; }
.atlas-region:hover > circle:not(.atlas-region-hit),.atlas-region:focus-visible > circle:not(.atlas-region-hit) { stroke-opacity:1; }
.atlas-region text { text-anchor:middle; fill:var(--foreground); font-family:var(--font-consumer); paint-order:stroke; stroke:var(--background); stroke-width:5px; stroke-linejoin:round; }
.atlas-region .region-name,.atlas-detail-label { font-size:14px; font-weight:700; text-transform:uppercase; stroke:#fff; stroke-linejoin:round; }
.atlas-region .region-count { font-size:10px; fill:var(--ww-text-muted-color); }
.atlas-edge { stroke:#aaa; stroke-width:1; stroke-dasharray:3 5; vector-effect:non-scaling-stroke; }
.atlas-brand { cursor:pointer; }
.atlas-brand circle { fill:var(--foreground); opacity:1; stroke:#fff; stroke-width:2px; vector-effect:non-scaling-stroke; }
.atlas-brand text { fill:var(--foreground); font-size:8px; text-anchor:middle; paint-order:stroke; stroke:var(--background); stroke-width:3px; }
.atlas-brand:hover text,.atlas-brand:focus-visible text { text-decoration:underline; }
.atlas-zoom { position:absolute; bottom:48px; left:20px; display:flex; align-items:center; gap:4px; }
.atlas-zoom button { background:var(--background); border:1px solid var(--detail-divider); min-width:32px; height:32px; border-radius:3px; }
.atlas-zoom output { margin-left:8px; font:10px var(--font-micro); }
.atlas-hint { position:absolute; bottom:10px; left:20px; right:12px; margin:0; font-size:10px; color:var(--ww-text-muted-color); pointer-events:none; }
.atlas-details { border-left:1px solid var(--detail-divider); padding:24px; overflow:auto; }
.atlas-details h2 { font-size:22px; line-height:1.2; margin:8px 0 16px; }
.atlas-details h3 { font-size:13px; margin:24px 0 8px; }
.atlas-eyebrow { font:10px var(--font-micro); color:var(--ww-text-muted-color); }
.atlas-details p { color:var(--ww-text-muted-color); }
.atlas-terms { display:flex; gap:6px; flex-wrap:wrap; }
.atlas-terms a { display:inline-block; padding:4px 7px; background:var(--ww-surface-color); text-decoration:none; }
.atlas-related button { display:block; background:none; border:0; border-bottom:1px solid var(--detail-divider); padding:10px 0; width:100%; text-align:left; }
.atlas-related small { display:block; color:var(--ww-text-muted-color); margin-top:4px; }
.atlas-house-row { border-top:1px solid var(--detail-divider); padding:12px 0; }
.atlas-house-row a { font-weight:bold; text-decoration:none; }
.atlas-house-row small { display:block; color:var(--ww-text-muted-color); margin-top:4px; }
.atlas-house-row p { font-size:11px; }
.atlas-show-more { border:1px solid var(--detail-divider); background:none; padding:6px 10px; }
.atlas-method { border-top:1px solid var(--detail-divider); margin-top:24px; padding-top:16px; font-size:11px; }
.atlas-method summary { cursor:pointer; }
@media(max-width:800px) { .concept-3 .scent-atlas { grid-template-columns:1fr; grid-template-rows:60% 40%; } .atlas-details { border-left:0; border-top:1px solid var(--detail-divider); padding:18px 24px; } .atlas-heading { top:12px; } .atlas-heading h1 { font-size:20px; } .atlas-heading p { margin-bottom:8px; font-size:10px; } .atlas-hint { font-size:9px; } }
/* Keep map geometry out of the fixed search and zoom-control areas. */
#scent-map { clip-path: inset(135px 0 50px); }
/* The map remains edge-to-edge; controls and the collapsible panel overlay it. */
.concept-3 .scent-atlas { position:relative; display:block; height:100svh; margin:0; }
.atlas-canvas { position:absolute; inset:0; }
#scent-map { clip-path:none; }
.atlas-heading { top:62px; }
.atlas-heading h1,.atlas-heading p { width:fit-content; background:var(--background); }
.atlas-details { position:absolute; z-index:3; right:0; top:44px; bottom:0; width:320px; background:var(--background); padding-top:48px; }
.atlas-panel-toggle { position:absolute; z-index:4; top:52px; right:16px; border:1px solid var(--detail-divider); border-radius:3px; padding:5px 9px; background:var(--background); }
.atlas-details[hidden] { display:none; }
.atlas-bottle-tile { display:flex; flex-direction:column; align-items:center; color:var(--foreground); text-decoration:none; font:4.7px/1.25 var(--font-consumer); text-align:center; width:34px; height:50px; overflow:hidden; }
.concept-3 .scent-atlas .atlas-bottle-tile img { width:26px; height:35px; object-fit:contain; flex:none; }
.atlas-bottle-tile span { max-width:34px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.atlas-bottle-tile:focus-visible span,.atlas-bottle-tile:hover span { text-decoration:underline; }
.atlas-fragrance-controls { border-block:1px solid var(--detail-divider); padding:12px 0; margin-top:16px; }
.atlas-fragrance-controls button { background:var(--ww-surface-color); border:1px solid var(--detail-divider); padding:5px 8px; margin-right:5px; }
.atlas-fragrance-controls button:disabled { opacity:.4; cursor:default; }
.atlas-fragrance-controls small { display:block; margin:8px 0; color:var(--ww-text-muted-color); }
@media(max-width:800px) { .atlas-details { top:auto; bottom:0; width:100%; height:38%; padding:16px 24px; } .atlas-panel-toggle { top:auto; bottom:calc(38% + 10px); right:12px; } .scent-atlas.panel-collapsed .atlas-panel-toggle { bottom:16px; } .scent-atlas:not(.panel-collapsed) .atlas-zoom { bottom:calc(38% + 48px); } .scent-atlas:not(.panel-collapsed) .atlas-hint { bottom:calc(38% + 16px); } }
.atlas-bottle-tile { height:44px; font-size:4px; line-height:1.2; }
.concept-3 .scent-atlas .atlas-bottle-tile img { height:28px; }
.atlas-bottle-tile span:last-child { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }


/* Match the fragrance header: home controls, centered title, account controls. */
.global-top-bar.atlas-top-bar {
  top: 0; left: 0; right: 0;
  box-sizing: border-box;
  min-height: 42px;
  padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left));
  background: var(--background);
  border-bottom: 1px solid var(--detail-divider);
  pointer-events: auto;
}
.atlas-top-bar .canvas-home { display: flex; align-items: center; gap: var(--ww-icon-button-group-gap); }
.atlas-bar-title { font: bold 17px/26px var(--font-consumer); text-transform: uppercase; text-align: center; }
.atlas-top-bar::after { content: none; }
.global-top-bar.map-top-bar { position: relative; }
.brand-bar-title { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* The global header owns the divider above the brand sorting controls. */
body:has(> .brand-top-bar) .concept-house--atlas > .house-toolbar { border-top: 0; }
.global-top-bar.brand-top-bar { position: relative; grid-template-columns: minmax(140px, 1fr) minmax(0, auto) minmax(140px, 1fr); }
body:has(> .brand-top-bar) main.concept-house--atlas { padding-top: 0; }
@media (max-width: 800px) {
  .global-top-bar.brand-top-bar { grid-template-columns: 1fr 1fr; row-gap: 75px; padding-bottom: 75px; }
  .brand-top-bar .canvas-actions { grid-column: 2; grid-row: 1; }
  .brand-bar-title { grid-column: 1 / -1; grid-row: 2; }
}
/* Screen-sized typography: map geometry zooms, labels stay at the shared UI size. */
.concept-3 .scent-atlas { --atlas-text-size: var(--extra-small-label-size, 12px); font-size:var(--atlas-text-size); }
.scent-atlas :is(h1,h2,h3,p,small,input,button,summary,output,.atlas-eyebrow,.atlas-hint,.atlas-method,.atlas-house-row p,.atlas-fragrance-controls small):where(:not(.atlas-notes *)) { font-size:var(--atlas-text-size); }
.scent-atlas h2,.atlas-region .region-name { font-weight:700; text-transform:uppercase; }
.scent-atlas .atlas-bottle-tile { font-size:var(--atlas-label-world-size, 12px); }
.concept-3 .scent-atlas .atlas-bottle-tile img { width:13px; height:calc(var(--atlas-bottle-height,28px) / 2); }
.atlas-bottle-tile span { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:unset; }

.atlas-house-select { border:0; padding:0; background:none; font-weight:700!important; text-align:left; }

.atlas-selection { display:flex; flex:1; flex-wrap:wrap; align-items:center; gap:8px; min-width:0; max-width:100%; }
.atlas-selection[hidden] { display:none; }
.atlas-selection p { margin:0; }
.atlas-selection .atlas-selection-clear { gap:6px; min-width:0; max-width:calc(100% - 110px); }
.atlas-brand-link { margin-left:auto; flex:none; text-decoration:none; }
.atlas-selection-clear > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.atlas-selection-clear > span:last-child { flex:none; }

.atlas-view-controls { display:flex; align-items:center; gap:var(--ww-icon-button-group-gap); position:absolute; z-index:3; top:8px; left:max(8px, env(safe-area-inset-left)); right:max(8px, env(safe-area-inset-right)); pointer-events:none; }
.atlas-view-controls button,.atlas-view-controls a { pointer-events:auto; }
.atlas-view-toggle { display:flex; gap:var(--ww-icon-button-group-gap); width:fit-content; }
.scent-atlas .ww-button:where(:not(.atlas-view-toggle [aria-pressed=false], .atlas-brand-link)) {
  --ww-button-background:#ededed;
  --ww-button-text-color:#000;
  --ww-button-hover-background:#000;
  --ww-button-active-background:#000;
  background:var(--ww-button-background);
  border-color:var(--ww-button-background);
  color:var(--ww-button-text-color);
}
.scent-atlas .atlas-selection-clear {
  --ww-button-background:#333;
  --ww-button-text-color:#fff;
}
.scent-atlas .ww-button:where(:not(.atlas-view-toggle [aria-pressed=false], .atlas-brand-link)):is(:hover, :active) {
  background:#000;
  border-color:#000;
  color:#fff;
}
.atlas-view-toggle button[aria-pressed=true] { --ww-button-background:#000; --ww-button-text-color:#fff; --ww-button-hover-background:#222; --ww-button-active-background:#333; }
.atlas-fragrance-stepper { display:flex; gap:var(--ww-icon-button-group-gap); }
.scent-atlas .atlas-count-button { display:inline-flex; align-items:center; justify-content:center; width:28px; min-width:28px; height:28px; padding:0; outline:none; box-shadow:none; }
.atlas-count-button svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; }
.scent-atlas .atlas-count-button:disabled { opacity:.35; cursor:default; background:#ededed; border-color:#ededed; color:#000; }
.atlas-detail-label { fill:var(--foreground); font-family:var(--font-consumer); text-anchor:middle; paint-order:stroke; }
.atlas-view-toggle[hidden], .atlas-fragrance-stepper[hidden] { display:none; }

.atlas-loading-toast {
  position:fixed; z-index:4;
  left:max(16px, env(safe-area-inset-left)); bottom:max(16px, env(safe-area-inset-bottom));
  display:inline-flex; align-items:center; gap:8px; pointer-events:none;
}
.atlas-loading-toast[hidden] { display:none; }
.atlas-loading-spinner {
  width:12px; height:12px; flex:none; border:1.5px solid currentColor;
  border-right-color:transparent; border-radius:50%;
  animation:atlas-loading-spin .75s linear infinite;
}
@keyframes atlas-loading-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .atlas-loading-spinner { animation:none; } }

/* Paint all fragrance names above the bottle images, with a screen-sized halo. */
.atlas-bottle-label { fill:var(--foreground); font-family:var(--font-consumer); text-anchor:middle; paint-order:stroke; stroke:#fff; stroke-linejoin:round; }

/* Use the single-bottle notes drawer and backdrop over the atlas. */
.atlas-notes {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  --notes-motion: 360ms ease-in-out;
}
.atlas-notes::backdrop { background: transparent; }
.atlas-notes-status { margin: 0; padding: 24px; border-radius: 10px; background: #f7f7f7; }

/* Only the painted bottle and visible name should intercept fragrance clicks. */
.scent-atlas .atlas-bottle-tile { width:13px; height:100%; }
.atlas-bottles foreignObject { pointer-events:none; }
.atlas-bottle-tile img { pointer-events:auto; }
.atlas-bottle-label { pointer-events:visibleFill; cursor:pointer; }

/* Overlapping neighborhoods never claim each other's interiors. */
.atlas-region circle { pointer-events:stroke; }
.atlas-region > .atlas-region-hit { fill:none; stroke:transparent; stroke-opacity:0; stroke-width:10; }

/* The house overview hosts the same atlas within its first-screen layout. */
.concept-3 main.concept-house--atlas { max-width:none; padding:44px 0 80px; }
.concept-house--atlas .house-overview { min-height:calc(100svh - 44px); height:calc(100svh - 44px); padding:0; gap:0; grid-template-columns:minmax(240px, 28%) minmax(0,1fr); }
.concept-house--atlas .house-intro { padding:32px; align-self:center; }
.concept-house--atlas .house-intro > a { margin-bottom:32px; }
.concept-house--atlas .house-overview .scent-atlas { min-width:0; height:100%; }
.concept-house--atlas > .house-toolbar,.concept-house--atlas > .house-section { margin-inline:0; }
@media(max-width:650px) {
  .concept-house--atlas .house-overview { grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); }
  .concept-house--atlas .house-intro { padding:20px 24px; }
  .concept-house--atlas .house-intro > a { margin-bottom:12px; }
  .concept-house--atlas .house-center { display:none; }
}

.atlas-snapshot .atlas-view-controls { display:none; }
.atlas-snapshot #scent-map { cursor:default; touch-action:auto; }
.atlas-snapshot #scent-map, .atlas-snapshot #scent-map * { pointer-events:none !important; }

/* Keep loading controls out of the way until the map is ready. */
.atlas-bootstrap-status { position:absolute; z-index:5; top:calc(50% + 22px); left:50%; transform:translate(-50%, -50%); display:flex; align-items:center; justify-content:center; gap:10px; max-width:calc(100% - 32px); }
.atlas-bootstrap-status .atlas-loading-spinner { border:1px solid var(--detail-divider); border-right-color:transparent; }
.atlas-bootstrap-progress { font-variant-numeric:tabular-nums; min-width:4ch; text-align:right; }
.atlas-bootstrap-progress[hidden] { display:none; }
.atlas-bootstrap-status[hidden], .atlas-bootstrap-status button[hidden],
.atlas-view-controls[hidden], .atlas-loading-retry[hidden] { display:none; }
.atlas-loading-retry { pointer-events:auto; }
.atlas-loading-spinner[hidden] { display:none; }
