/* Studio locator: MapLibre GL + OpenFreeMap tiles, styled to the site tokens */
.locator { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 680px; margin-top: 48px; border: 1px solid var(--line); background: var(--surface); }
.locations-hero { padding-top: 40px; padding-bottom: 24px; }
.locations-hero .locator-heading { margin-top: 12px; }
.locations-locator-section { padding-top: 0; }
.locations-locator-section .locator { margin-top: 0; }
html.locator-deep-link-scroll { overflow-anchor: none; }
.locator-search { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 14px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.locator-search .loc-status { grid-row: 5; }
.locator-search input { width: 100%; height: 48px; padding: 0 16px; background: var(--black); color: var(--bone); border: 1px solid var(--line-2); font: 400 16px var(--font-body); }
.locator-search input::placeholder { color: var(--text-faint); }
.locator-search input:focus { outline: none; border-color: var(--red); }
.locator-count { display: block; margin: 0; font: 400 15px/1.45 var(--font-body); color: var(--text-dim); }
.locator-list { grid-column: 1; grid-row: 2; list-style: none; min-height: 0; margin: 0; padding: 0; overflow-y: auto; scrollbar-color: var(--line-2) transparent; }
.loc-card { position: relative; display: grid; gap: 8px; width: 100%; padding: 14px 20px 6px 20px; text-align: left; background: none; color: inherit; border: 0; cursor: pointer; font: inherit; transition: background .2s; }
.loc-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform .2s; }
.loc-card:hover, .loc-card.is-active { background: var(--surface-2); }
.loc-card:hover::before, .loc-card.is-active::before { transform: scaleY(1); }
.loc-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 18px; }
.loc-card img { height: 16px; width: auto; opacity: .85; }
.loc-card h3 { margin: 0; font: 600 16px/1.2 var(--font-body); text-transform: none; letter-spacing: normal; color: var(--bone); }
.loc-tag { display: inline-block; width: fit-content; padding: 3px 7px; border: 1px solid var(--line-2); color: var(--text-muted); font: 500 11px/1.2 var(--font-body); letter-spacing: .04em; }
.loc-status-tag { border-color: var(--red-text); color: var(--red-text); }
.loc-card p { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--text-muted); }
.locator-list > li { border-bottom: 1px solid var(--line); }
.locator-empty { padding: 24px; color: var(--text-muted); font-size: 15px; }
.locator-map { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 16px; height: 680px; min-height: 0; background: #0C0C0D; border-left: 1px solid var(--line); }
.loc-hawaii { position: absolute; z-index: 2; top: 16px; left: 16px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--black); color: var(--bone); font: 500 14px var(--font-body); cursor: pointer; }
.loc-hawaii:hover { border-color: var(--red); color: var(--bone); }
.loc-map-legend { position: absolute; z-index: 3; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; padding: 8px 10px; border: 1px solid var(--line-2); background: rgba(12,12,13,.92); color: var(--bone); font: 500 12px/1.2 var(--font-body); }
.loc-map-legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.loc-map-legend-badge { display: grid; width: 40px; height: 25px; place-items: center; border: 1px solid #0C0C0D; border-radius: 4px; }
.loc-map-legend-badge.is-f45 { background: #DF2229; }
.loc-map-legend-badge.is-fs8 { background: #EEF394; }
.loc-map-legend-logo { display: block; width: 33px; height: 16px; background: #fff; -webkit-mask: url('/logos/f45-wordmark.svg') center / contain no-repeat; mask: url('/logos/f45-wordmark.svg') center / contain no-repeat; }
.loc-map-legend-badge.is-fs8 .loc-map-legend-logo { height: 9px; background: #0C0C0D; -webkit-mask-image: url('/logos/fs8-wordmark.svg'); mask-image: url('/logos/fs8-wordmark.svg'); }
.locator-map.is-unavailable { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; overflow: auto; }
.loc-map-message { margin: 0; max-width: 420px; text-align: center; font-size: 16px; }
.loc-map-details { width: min(100%, 320px); box-sizing: border-box; padding: 22px; border: 1px solid var(--line-2); background: var(--black); }
.loc-map-details img { height: 18px; width: auto; margin-bottom: 14px; }
.loc-map-details h3 { margin: 0 0 6px; font: 600 16px/1.2 var(--font-body); text-transform: none; }
.loc-map-details p { margin: 0 0 16px; font-size: 15px; }
.loc-map-details .btn { min-height: 42px; padding: 0 10px; font-size: 14px; }
.loc-map-details img.awg-popup-photo { width: calc(100% + 44px); max-width: none; height: 150px; margin: -22px -22px 18px; object-fit: cover; }
.locator-map .maplibregl-canvas:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
/* Pins */
.adm-popup-stage .awg-pin { width: 28px; height: 38px; padding: 0; border: 0; background: none; cursor: pointer; }
.adm-popup-stage .awg-pin svg { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .18s ease; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); }
.adm-popup-stage .awg-pin:hover svg { transform: scale(1.35); }
.locator-map .awg-pin { display: block; position: absolute; box-sizing: border-box; width: 44px; height: 36px; margin: 0; padding: 0; border: 0; background: none; line-height: 0; cursor: pointer; }
.awg-pin-bubble { position: absolute; inset: 0; transform: scale(var(--awg-pin-scale, 1)); transform-origin: 50% 100%; transition: transform .18s ease; filter: drop-shadow(0 3px 6px rgba(0,0,0,.55)); }
.awg-pin-shape { display: block; width: 100%; height: 100%; }
.awg-pin-shape path { stroke-width: 1.5; }
.awg-pin-bubble.is-f45 .awg-pin-shape path { fill: #DF2229; stroke: #0C0C0D; }
.awg-pin-bubble.is-fs8 .awg-pin-shape path { fill: #EEF394; stroke: #0C0C0D; }
.awg-pin-bubble.is-coming-soon .awg-pin-shape path { fill: #0C0C0D; }
.awg-pin-bubble.is-coming-soon.is-f45 .awg-pin-shape path { stroke: #DF2229; }
.awg-pin-bubble.is-coming-soon.is-fs8 .awg-pin-shape path { stroke: #EEF394; }
.awg-pin-wordmark { position: absolute; top: 5px; left: 5px; display: block; width: 34px; height: 16px; background: #fff; -webkit-mask: url('/logos/f45-wordmark.svg') center / contain no-repeat; mask: url('/logos/f45-wordmark.svg') center / contain no-repeat; }
.awg-pin-bubble.is-fs8 .awg-pin-wordmark { top: 9px; height: 9px; background: #0C0C0D; -webkit-mask-image: url('/logos/fs8-wordmark.svg'); mask-image: url('/logos/fs8-wordmark.svg'); }
.awg-pin-bubble.is-coming-soon.is-f45 .awg-pin-wordmark { background: #DF2229; }
.awg-pin-bubble.is-coming-soon.is-fs8 .awg-pin-wordmark { background: #EEF394; }
.locator-map .awg-pin:hover .awg-pin-bubble, .locator-map .awg-pin.is-active .awg-pin-bubble { transform: scale(1.18); }
.locator-map .awg-pin.is-active { z-index: 2; }
.awg-pin[hidden] { display: none; }
/* Popup */
.awg-popup .maplibregl-popup-content { padding: 22px 22px 20px; background: var(--black); color: var(--bone); border: 1px solid var(--line-2); border-radius: 0; box-shadow: 0 18px 40px rgba(0,0,0,.6); font-family: var(--font-body); min-width: 260px; }
.locator-map .maplibregl-popup { z-index: 4; }
.awg-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--line-2); }
.awg-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--line-2); }
.awg-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--line-2); }
.awg-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--line-2); }
.awg-popup .maplibregl-popup-close-button { width: 32px; height: 32px; font-size: 20px; color: var(--text-muted); }
.awg-popup .maplibregl-popup-close-button:hover { background: none; color: var(--bone); }
.awg-popup img { height: 18px; width: auto; margin-bottom: 14px; }
.awg-popup .loc-card-top { margin-bottom: 4px; }
.awg-popup .loc-card-top img { margin: 0; }
.awg-popup h3 { margin: 0 0 6px; font: 600 16px/1.2 var(--font-body); text-transform: none; letter-spacing: normal; }
.awg-popup p { margin: 0 0 16px; font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--text-dim); }
.awg-popup .awg-actions { flex-wrap: nowrap; gap: 8px; }
.awg-popup .btn { min-height: 42px; min-width: 0; flex: 1 1 0; padding: 0 8px; font-size: 14px; white-space: nowrap; }
/* Attribution + controls */
.locator-map .maplibregl-ctrl-attrib,
.locator-map .maplibregl-ctrl-attrib.maplibregl-compact,
.locator-map .maplibregl-ctrl-attrib.maplibregl-compact-show {
  background: rgba(10,10,10,0.6);
  border-radius: 4px;
  color: #8E8C88;
  font-family: 'Saira', sans-serif;
  font-size: 12px;
}
.locator-map .maplibregl-ctrl-attrib a { color: inherit; }
.locator-map .maplibregl-ctrl-attrib a:hover,
.locator-map .maplibregl-ctrl-attrib a:focus-visible { text-decoration: underline; }
.locator-map .maplibregl-ctrl-attrib-button,
.locator-map .maplibregl-ctrl-attrib-button:hover,
.locator-map .maplibregl-ctrl-attrib-button:focus-visible {
  background-color: transparent;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 20 20' fill='%238E8C88'%3E%3Cpath fill-rule='evenodd' d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 0 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");
  border-radius: 4px;
  filter: none;
}
.locator-map .maplibregl-ctrl-group { background: var(--black); border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
.locator-map .maplibregl-ctrl-group button + button { border-top-color: var(--line-2); }
.locator-map .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) opacity(.75); }
@media (max-width: 900px) {
  .locations-hero { padding-top: 28px; padding-bottom: 20px; }
  .locations-hero .locator-heading { margin-top: 8px; }
  .locator { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 360px auto; height: auto; }
  .locator.is-deep-link { min-height: 1100px; align-content: start; }
  .locator-search { grid-column: 1; grid-row: 1; border-right: 0; }
  .locator-map { position: relative; grid-column: 1; grid-row: 2; top: auto; height: 280px; border-left: 0; border-bottom: 1px solid var(--line); }
  .locator-list { grid-column: 1; grid-row: 3; max-height: none; height: auto; overflow: visible; }
}
/* Popup photo (optional, set per studio or brand in /admin) */
.awg-popup img.awg-popup-photo { display: block; width: calc(100% + 44px); max-width: none; height: 150px; margin: -22px -22px 18px; object-fit: cover; background: var(--surface-2); }
.awg-popup.has-photo .maplibregl-popup-close-button { z-index: 1; top: 8px; right: 8px; background: rgba(12,12,13,.72); color: var(--bone); }
/* Search, location and brand filter (sentence-case labels in Saira) */
.locator-search { display: grid; gap: 14px; }
.loc-label { display: block; margin-bottom: 10px; font: 600 15px/1.2 var(--font-body); font-style: normal; letter-spacing: normal; color: var(--bone); }
.loc-find-row { display: flex; gap: 8px; }
.locator-search .loc-find-row input { flex: 1; width: auto; min-width: 0; font-family: var(--font-logo); }
.locator-search .loc-go { min-height: 48px; padding: 0 20px; font-size: 15px; flex: none; cursor: pointer; font-family: var(--font-body); color: var(--bone); }
.loc-geo { display: inline-flex; align-items: center; gap: 8px; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--bone); font: 500 15px var(--font-logo); cursor: pointer; }
.loc-geo svg { width: 18px; height: 18px; color: var(--red-text); flex: none; }
.loc-geo:hover { color: var(--red-text); }
.loc-geo[disabled] { opacity: .6; cursor: progress; }
.loc-geo.is-busy svg { animation: loc-spin 1s linear infinite; }
@keyframes loc-spin { to { transform: rotate(360deg); } }
.loc-brands { display: flex; border: 1px solid var(--line-2); }
.loc-brands button { display: flex; align-items: center; justify-content: center; flex: 1; min-height: 38px; padding: 0 10px; background: transparent; color: var(--text-dim); border: 0; border-right: 1px solid var(--line-2); font: 500 15px var(--font-logo); cursor: pointer; transition: background .15s, color .15s; }
.loc-brands button:last-child { border-right: 0; }
.loc-brands button[aria-pressed="true"] { background: var(--bone); color: var(--black); }
.loc-brands button:hover:not([aria-pressed="true"]) { color: var(--bone); background: var(--surface-2); }
.loc-brands button[data-brand][aria-pressed="false"],
.loc-brands button[data-brand][aria-pressed="false"]:hover,
.loc-brands button[data-brand][aria-pressed="false"]:focus-visible { color: #fff; }
.loc-brands button[data-brand][aria-pressed="true"] { color: var(--black); }
.loc-brand-logo { display: block; flex: none; height: 18px; background-color: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.loc-brand-logo.is-f45 { width: 38px; -webkit-mask-image: url('/logos/f45-wordmark.svg'); mask-image: url('/logos/f45-wordmark.svg'); }
.loc-brand-logo.is-fs8 { width: 70px; -webkit-mask-image: url('/logos/fs8-wordmark.svg'); mask-image: url('/logos/fs8-wordmark.svg'); }
@media (max-width: 599px) {
  .loc-brand-logo { height: 14px; max-width: calc(60% + 12px); }
  .loc-brand-logo.is-f45 { width: 28.86px; }
  .loc-brand-logo.is-fs8 { width: 54.48px; }
}
.loc-status { margin: 0; min-height: 20px; font: 400 15px/1.45 var(--font-logo); color: var(--text-dim); }
.loc-status.is-error { color: var(--red-text); }
.loc-clear { background: none; border: 0; padding: 0; color: var(--bone); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.loc-dist { font: 600 15px var(--font-logo); color: var(--red-text); }
.awg-origin { width: 18px; height: 18px; border-radius: 50%; background: var(--bone); border: 4px solid var(--red); box-shadow: 0 0 0 6px rgba(223,34,41,.25); }
/* Studio action buttons (list cards and map popups) */
.locator-list li.has-actions{transition:background .2s}
.locator-list li.has-actions .loc-card{border-bottom:0;padding-bottom:8px}
.locator-list li.has-actions:hover,.locator-list li.has-actions:has(.loc-card.is-active){background:var(--surface-2)}
.locator-list li.has-actions .loc-card:hover,.locator-list li.has-actions .loc-card.is-active{background:none}
.locator-list .awg-actions{margin:0 16px 14px 20px}
.awg-actions{display:flex;flex-wrap:wrap;gap:8px}
.awg-actions .btn{min-height:42px;padding:0 10px;font-size:15px;flex:1 1 0;min-width:0;white-space:nowrap}
.awg-actions .awg-act{flex:1 1 0}
.awg-actions .btn:only-child{flex:0 1 auto;width:auto;max-width:100%}
.awg-actions .awg-act-extra{flex:1 1 100%;min-height:38px;padding:0 14px;font-size:14px}
.loc-find-row{min-width:0}
.locator-search .loc-find-row input{min-width:0}
.locator-search .loc-go{flex:0 0 auto;min-width:76px;padding:0 14px}
.loc-contacts { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 20px 10px; font: 400 12px/1.4 var(--font-body); }
.loc-contacts a { color: var(--text-muted); text-underline-offset: 3px; }
.loc-contacts a:hover, .loc-contacts a:focus-visible { color: var(--bone); }
.loc-contacts .loc-email-link { display: inline-flex; align-items: flex-start; gap: 4px; min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.loc-contacts .loc-email-link span { min-width: 0; overflow-wrap: anywhere; }
.loc-contacts .loc-email-icon { width: 14px; height: 14px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.loc-contacts .loc-map-link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-size: inherit; }
.loc-contacts .loc-map-link svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.awg-popup .loc-contacts, .loc-map-details .loc-contacts { padding-left: 0; padding-right: 0; }
/* Phones and small tablets: hide the +/- zoom buttons (pinch-to-zoom still works) so they never cover the popup */
@media (max-width: 899px){.locator-map .maplibregl-ctrl-top-right{display:none}}
