/* LOOPX · Compact exploration. Loaded after the shared violet theme. */

.explore-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin:0 0 20px;
}
.explore-heading h1 { color:#171521; font-size:34px; line-height:1.2; letter-spacing:-1.2px; }
.explore-heading p { margin-top:7px; color:#696676; font-size:12px; line-height:1.6; }
.explore-heading .eyebrow { display:block; margin-bottom:8px; font-size:9px; }
.explore-heading-actions { display:flex; align-items:center; flex-shrink:0; gap:9px; }
.explore-heading-actions .button { min-height:44px; }

/* Search and filters remain above both mobile views. */
.explore-toolbar {
  min-width:0;
  margin-bottom:18px;
  padding:16px 18px 14px;
  border:1px solid #e8e6f0;
  border-radius:20px;
  background:#fff;
  box-shadow:0 4px 20px #24203403;
}
.explore-topline { display:grid; grid-template-columns:minmax(190px,230px) minmax(0,1fr); align-items:end; gap:14px; }
.explore-city { display:flex; flex-direction:column; gap:6px; min-width:0; }
.explore-city label { color:#696676; font-size:10px; font-weight:650; line-height:1.2; }
.explore-city select {
  width:100%;
  min-width:0;
  min-height:46px;
  padding:10px 32px 10px 12px;
  border:1px solid #e6e0f2;
  border-radius:12px;
  background:#f6f3fd;
  color:#3a3448;
  font-size:12px;
  font-weight:650;
  cursor:pointer;
}
.explore-search {
  display:flex;
  align-items:center;
  min-width:0;
  min-height:46px;
  gap:10px;
  padding:0 13px;
  border:1px solid #e9e6f0;
  border-radius:12px;
  background:#f9f8fc;
  color:#696676;
  transition:border-color .16s,background .16s;
}
.explore-search>svg { width:18px; height:18px; flex:none; color:#827593; }
.explore-search input { min-width:0; width:100%; min-height:44px; padding:10px 0; border:0; border-radius:0; background:transparent; color:#171521; font-size:13px; outline:none; }
.explore-search input::placeholder { color:#696676; opacity:1; }
.explore-search:focus-within { border-color:#b69cf7; background:#fff; outline:3px solid #ded2ff; outline-offset:2px; }
.explore-view-switch { display:none; }
.explore-bottomline { display:flex; align-items:center; gap:14px; min-width:0; margin-top:12px; }
.category-chips { display:flex; flex:1; gap:6px; min-width:0; padding:4px 2px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#ddd3eb transparent; }
.category-chips .chip { min-height:44px; min-width:44px; padding:10px 13px; font-size:11px; border-radius:11px; flex:none; }
.category-chips .chip svg { width:14px; height:14px; }
.category-chips .chip[aria-pressed="true"] { color:#fff; background:#272132; border-color:#272132; }
.explore-count { flex:none; color:#696676; font-size:11px; line-height:1.5; font-variant-numeric:tabular-nums; white-space:nowrap; }
.explore-count strong { color:#3a3448; font-weight:650; }

/* A persistent map, a separate selected-place card, and a bounded list. */
.explore-workspace {
  --explore-map-height:clamp(440px,52dvh,510px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 325px;
  align-items:stretch;
  gap:20px;
  min-width:0;
}
.explore-map-column { display:flex; flex-direction:column; gap:14px; min-width:0; }
.explore-map-column>.map-shell { order:initial; flex:none; width:100%; height:var(--explore-map-height); min-height:0; border:1px solid #e1ddea; border-radius:23px; box-shadow:0 6px 30px #24203406; }
.explore-results { display:flex; flex-direction:column; min-width:0; min-height:0; max-height:calc(var(--explore-map-height) + 200px); overflow:hidden; border:1px solid #e8e6f0; border-radius:23px; background:#fff; box-shadow:0 6px 30px #24203404; }
.explore-results-heading { display:flex; align-items:center; justify-content:space-between; flex:none; gap:12px; padding:21px 20px 17px; border-bottom:1px solid #f0edf5; }
.explore-results-heading h2 { color:#171521; font-size:19px; line-height:1.3; letter-spacing:-.6px; }
.explore-results-heading p,.explore-results-heading>span { color:#696676; font-size:10px; line-height:1.5; }
.explore-results-heading svg { width:18px; height:18px; flex:none; color:#8969c2; }
.explore-list { display:flex; flex-direction:column; flex:1; gap:3px; min-height:0; padding:11px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#ddd3eb transparent; }
.business-result { flex:none; min-width:0; }
.business-card-actions { display:none; }
.explore-list .business-card { flex:none; min-width:0; min-height:104px; margin:0; padding:13px 10px; grid-template-columns:56px minmax(0,1fr); gap:12px; border-radius:15px; }
.explore-list .business-card:hover { transform:none; }
.explore-list .business-card[aria-pressed="true"] { border-color:#d9caf8; background:#f3eeff; box-shadow:inset 3px 0 0 #6c42ed; }
.explore-list .business-card:focus-visible { outline:3px solid #9b7df6; outline-offset:2px; }
.explore-list .business-art { width:56px; height:70px; border-radius:11px; }
.explore-list .business-info h3 { font-size:12px; line-height:1.45; white-space:normal; overflow-wrap:anywhere; margin-bottom:5px; }
.explore-list .business-title-line { align-items:flex-start; }
.explore-list .business-open { margin-top:3px; }
.explore-list .business-meta { flex-wrap:wrap; font-size:10px; line-height:1.4; }
.explore-list .business-bottom { gap:9px; margin-top:9px; }
.explore-list .discount-caption { font-size:10px; line-height:1.4; }
.explore-list .discount-label { font-size:13px; }
.explore-list .mini-model { font-size:9px; }

.explore-selection { min-width:0; }
.selected-place { position:relative; display:grid; grid-template-columns:66px minmax(0,1fr) auto; align-items:center; gap:15px; padding:18px; border:1px solid #e4ddf1; border-radius:21px; background:#fff; box-shadow:0 6px 25px #35244b05; }
.selected-place-art { display:block; width:66px; height:82px; flex:none; overflow:hidden; border-radius:13px; background:#eee7f7; }
.selected-place-art>svg { display:block; width:100%; height:100%; }
.selected-place-art>.business-art { width:100%; height:100%; }
.selected-place-copy { min-width:0; }
.selected-place-copy .eyebrow { display:block; color:#6c42ed; font-size:9px; font-weight:700; line-height:1.55; letter-spacing:.7px; margin-bottom:5px; overflow-wrap:anywhere; }
.selected-place-copy h2 { color:#171521; font-size:17px; line-height:1.4; letter-spacing:-.45px; overflow-wrap:anywhere; }
.selected-place-copy>p { margin-top:5px; color:#696676; font-size:11px; line-height:1.55; overflow-wrap:anywhere; }
.selected-place-meta { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:10px; color:#696676; font-size:10px; }
.selected-place-meta .pill { font-size:10px; font-weight:600; line-height:1.35; padding:5px 7px; }
.selected-place-actions { display:flex; flex-direction:column; gap:8px; min-width:102px; }
.selected-place-actions .button { min-width:0; min-height:44px; padding:11px 13px; font-size:11px; border-radius:11px; white-space:nowrap; }
.selected-place-actions .button svg { width:15px; height:15px; }
.selected-place-close { position:absolute; z-index:1; top:7px; right:7px; display:grid; place-items:center; width:44px; height:44px; min-width:44px; min-height:44px; padding:11px; border:0; border-radius:11px; background:transparent; color:#696676; font-size:21px; line-height:1; }
.selected-place-close svg { width:18px; height:18px; }
.selected-place-close:hover { color:#6c42ed; background:#f4effc; }
.selected-place:has(.selected-place-close) .selected-place-copy { padding-right:31px; }
.selection-empty { display:flex; align-items:center; gap:14px; min-height:118px; padding:23px; border:1px dashed #dcd4ea; border-radius:21px; background:#ffffff80; color:#696676; font-size:12px; line-height:1.7; }
.selection-empty>svg { flex:none; width:25px; height:25px; color:#9a82ba; }
.selection-empty h2,.selection-empty h3,.selection-empty strong { color:#3a3448; font-size:14px; line-height:1.5; letter-spacing:-.2px; }
.selection-empty p { font-size:11px; line-height:1.6; margin-top:4px; }
.explore-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:290px; padding:32px 19px; text-align:center; color:#696676; }
.explore-empty>svg { width:34px; height:34px; color:#a088bf; stroke-width:1.3; margin-bottom:18px; }
.explore-empty h3 { color:#3a3448; font-size:16px; line-height:1.4; margin-bottom:9px; }
.explore-empty p { max-width:260px; font-size:12px; line-height:1.65; }
.explore-empty .button { min-height:44px; margin-top:19px; font-size:11px; }

/* Keep provider controls and attribution visible; markers remain real buttons. */
.explore-map-column .map-label-top { top:14px; left:14px; max-width:calc(100% - 130px); min-height:44px; padding:10px 12px; font-size:10px; }
.explore-map-column .map-label-top>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.explore-map-column .map-tools { top:14px; right:14px; gap:6px; }
.explore-map-column .map-tool { width:44px; height:44px; min-width:44px; min-height:44px; border-radius:12px; }
.explore-map-column .map-tool svg { width:18px; height:18px; }
.explore-map-column .map-locate { right:14px; bottom:38px; gap:6px; }
.explore-map-column .map-attribution { left:12px; bottom:8px; max-width:calc(100% - 72px); font-size:8px; line-height:1.4; }
.explore-map-column .map-fallback-note { top:70px; left:14px; right:auto; max-width:calc(100% - 82px); font-size:10px; line-height:1.55; padding:8px 10px; }
.map-bottom-hint { position:absolute; z-index:3; left:14px; bottom:97px; display:flex; align-items:center; gap:7px; max-width:calc(100% - 86px); padding:8px 10px; border:1px solid #eee7f4; border-radius:9px; background:#ffffffed; color:#696676; font-size:10px; line-height:1.5; pointer-events:none; }
.map-bottom-hint svg { flex:none; width:14px; height:14px; color:#9376b9; }
.map-fit-button { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; gap:7px; padding:10px 12px; border:1px solid #e8e0ef; border-radius:12px; background:#fffffff0; color:#3a3448; font-size:11px; font-weight:600; box-shadow:0 4px 15px #33213c08; }
.map-fit-button svg { flex:none; width:18px; height:18px; }
.map-fit-button:hover { background:#f6f0ff; color:#6c42ed; }
.map-shell>.map-fit-button { position:absolute; z-index:4; bottom:42px; left:14px; }
.map-place-marker,.map-cluster { position:absolute; z-index:2; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:44px; min-height:44px; padding:9px 12px; border:2px solid #fff; background:#fff; color:#3a3448; box-shadow:0 5px 17px #45315c24; font-size:12px; font-weight:700; line-height:1.2; white-space:nowrap; cursor:pointer; }
.map-place-marker { border-radius:14px 14px 14px 4px; }
.map-place-marker:not(.mapboxgl-marker),.map-cluster:not(.mapboxgl-marker) { transform:translate(-50%,-100%); }
.map-place-marker svg,.map-cluster svg { flex:none; width:17px; height:17px; }
.map-place-marker:hover,.map-place-marker.selected,.map-place-marker[aria-pressed="true"] { z-index:4; background:#6c42ed; color:#fff; box-shadow:0 5px 20px #6c42ed40; }
.map-place-marker:focus-visible,.map-cluster:focus-visible { z-index:5; outline:3px solid #6c42ed; outline-offset:4px; }
.map-cluster { min-width:50px; min-height:50px; border:4px solid #ded2fb; border-radius:50%; background:#292135; color:#fff; font-size:13px; box-shadow:0 0 0 4px #ffffffc9,0 6px 20px #39264d22; }
.map-cluster:hover,.map-cluster[aria-pressed="true"] { background:#6c42ed; border-color:#cbb8ff; }
.explore-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 3px 0; color:#696676; font-size:11px; line-height:1.6; }
.explore-footer>span,.explore-footer>p { display:flex; align-items:flex-start; gap:7px; min-width:0; }
.explore-footer svg { width:15px; height:15px; flex:none; margin-top:1px; }
.explore-footer>a { display:inline-flex; align-items:center; min-height:44px; gap:8px; color:#6c42ed; font-weight:650; white-space:nowrap; }
.scanner-context { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 16px; padding:12px 14px; border:1px solid #e6dff1; border-radius:13px; background:#f5f0ff; color:#3a3448; font-size:11px; line-height:1.6; }
.scanner-context svg { width:17px; height:17px; flex:none; color:#7b55c4; }
.scanner-context strong { color:#171521; font-weight:650; }
.scan-locked-note { display:flex; align-items:flex-start; gap:8px; margin:10px 0 16px; padding:12px 14px; border:1px solid #e8e6ef; border-radius:12px; background:#faf9fc; color:#696676; font-size:11px; line-height:1.6; }
.scan-locked-note svg { width:16px; height:16px; flex:none; margin-top:1px; color:#8c7d9c; }

@media(min-width:1600px) {
  .explore-heading h1 { font-size:38px; }
  .explore-workspace { gap:24px; }
  .selected-place { padding:21px; }
  .selected-place-copy h2 { font-size:19px; }
}
@media(min-width:1191px) {
  .selected-place:has(.selected-place-close) .selected-place-actions { padding-top:31px; }
}
@media(max-width:1190px) and (min-width:761px) {
  .explore-workspace { grid-template-columns:minmax(0,1fr) 290px; gap:17px; }
  .explore-heading h1 { font-size:31px; }
  .explore-topline { grid-template-columns:minmax(170px,215px) minmax(0,1fr); }
  .category-chips .chip { padding:10px; font-size:10px; }
  .selected-place { grid-template-columns:57px minmax(0,1fr); padding:16px; gap:12px; }
  .selected-place-art { width:57px; height:73px; }
  .selected-place-copy h2 { font-size:16px; }
  .selected-place-actions { grid-column:1/-1; flex-direction:row; }
  .selected-place-actions .button { flex:1; }
  .explore-list .business-card { grid-template-columns:48px minmax(0,1fr); gap:10px; padding:12px 9px; }
  .explore-list .business-art { width:48px; height:65px; }
  .explore-results-heading { padding:20px 17px 16px; }
  .explore-results-heading h2 { font-size:18px; }
  .explore-map-column .map-label-top { font-size:9px; padding:10px 9px; }
}
@media(max-width:760px) {
  .explore-heading { gap:13px; align-items:flex-start; margin-bottom:17px; }
  .explore-heading h1 { font-size:28px; letter-spacing:-.9px; line-height:1.2; }
  .explore-heading p { font-size:11px; max-width:320px; margin-top:7px; }
  .explore-heading .eyebrow { font-size:8px; margin-bottom:7px; }
  .explore-heading-actions .button { min-height:44px; min-width:44px; padding:10px 12px; font-size:11px; }
  .explore-heading-actions .optional { display:none; }
  .explore-toolbar { padding:13px 14px 9px; margin-bottom:15px; border-radius:18px; }
  .explore-topline { grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:stretch; }
  .explore-city { grid-column:1/-1; flex-direction:row; align-items:center; gap:11px; }
  .explore-city label { flex:none; font-size:11px; }
  .explore-city select { flex:1; min-height:44px; padding:10px 30px 10px 11px; font-size:16px; border-radius:11px; }
  .explore-search { grid-column:1; min-height:44px; gap:8px; padding:0 10px; border-radius:11px; }
  .explore-search input { font-size:16px; min-height:44px; }
  .explore-search>svg { width:16px; height:16px; }
  .explore-view-switch { display:flex; align-items:center; grid-column:2; gap:2px; padding:2px; border:1px solid #e6e0ee; border-radius:12px; background:#eeebf4; }
  .explore-view-switch button { display:inline-flex; justify-content:center; align-items:center; gap:5px; min-width:59px; min-height:44px; padding:9px; border:0; border-radius:9px; background:transparent; color:#696676; font-size:11px; font-weight:600; white-space:nowrap; }
  .explore-view-switch button svg { width:15px; height:15px; }
  .explore-view-switch button[aria-pressed="true"] { color:#6c42ed; background:#fff; box-shadow:0 2px 7px #3522440c; }
  .explore-bottomline { gap:9px; margin-top:8px; }
  .category-chips { gap:5px; padding:4px 2px 5px; }
  .category-chips .chip { min-height:44px; padding:10px 11px; font-size:11px; border-radius:10px; }
  .explore-count { max-width:72px; font-size:10px; white-space:normal; text-align:right; }
  .explore-workspace { --explore-map-height:370px; display:block; min-width:0; }
  .explore-workspace[data-mobile-view="map"]>.explore-results { display:none; }
  .explore-workspace[data-mobile-view="list"]>.explore-map-column { display:none; }
  .explore-map-column { gap:12px; }
  .explore-map-column>.map-shell { height:var(--explore-map-height); border-radius:21px; }
  .explore-results { max-height:none; min-height:300px; border-radius:21px; }
  .explore-results-heading { padding:19px 18px 16px; }
  .explore-results-heading h2 { font-size:19px; }
  .explore-list { display:flex; flex-direction:column; gap:5px; padding:11px; overflow:visible; }
  .explore-list .business-card { grid-template-columns:63px minmax(0,1fr); min-height:108px; padding:13px 12px; gap:14px; }
  .explore-list .business-art { width:63px; height:76px; }
  .explore-list .business-info h3 { font-size:14px; line-height:1.4; }
  .explore-list .business-meta { font-size:11px; }
  .explore-list .business-open svg { width:15px; height:15px; }
  .explore-list .discount-label { font-size:14px; }
  .explore-list .discount-caption { font-size:10px; }
  .explore-list .mini-model { font-size:10px; }
  .business-card-actions:not([hidden]) { display:flex; align-items:center; gap:8px; padding:0 12px 12px; }
  .business-card-actions[hidden] { display:none; }
  .business-card-actions .button { flex:1; min-width:0; min-height:44px; padding:10px 12px; font-size:11px; border-radius:10px; }
  .business-card-actions .button svg { width:15px; height:15px; }
  .selected-place { grid-template-columns:60px minmax(0,1fr); gap:13px; padding:16px; border-radius:19px; }
  .selected-place-art { width:60px; height:76px; }
  .selected-place-copy h2 { font-size:17px; }
  .selected-place-copy .eyebrow { font-size:9px; letter-spacing:.5px; }
  .selected-place-copy>p { font-size:11px; }
  .selected-place-meta { gap:5px; margin-top:8px; }
  .selected-place-meta .pill { font-size:9px; }
  .selected-place-actions { grid-column:1/-1; flex-direction:row; gap:9px; min-width:0; }
  .selected-place-actions .button { flex:1; min-height:44px; font-size:12px; }
  .selection-empty { padding:20px; min-height:105px; border-radius:19px; gap:12px; font-size:11px; }
  .explore-map-column .map-label-top { top:12px; left:12px; max-width:calc(100% - 124px); font-size:9px; min-height:44px; padding:10px; }
  .explore-map-column .map-tools { top:12px; right:12px; }
  .explore-map-column .map-locate { right:12px; bottom:34px; }
  .explore-map-column .map-fallback-note { left:12px; top:68px; max-width:calc(100% - 80px); font-size:9px; }
  .explore-map-column .map-attribution { left:10px; font-size:8px; max-width:calc(100% - 66px); }
  .map-bottom-hint { left:12px; bottom:95px; max-width:calc(100% - 82px); font-size:9px; padding:7px 9px; }
  .map-shell>.map-fit-button { left:12px; bottom:40px; }
  .map-place-marker { min-height:44px; min-width:44px; padding:9px 10px; font-size:11px; }
  .map-cluster { min-height:48px; min-width:48px; font-size:12px; }
  .explore-empty { min-height:290px; padding:35px 23px; }
  .explore-footer { align-items:flex-start; flex-direction:column; gap:5px; padding:15px 2px 0; font-size:10px; }
  .explore-footer>a { font-size:11px; }
}
@media(max-width:400px) {
  .explore-heading { flex-wrap:wrap; gap:12px; }
  .explore-heading h1 { font-size:26px; }
  .explore-heading-actions { width:100%; }
  .explore-heading-actions .button { min-height:44px; padding:10px 12px; }
  .explore-toolbar { padding:12px 11px 8px; }
  .explore-topline { gap:8px; }
  .explore-city { gap:9px; }
  .explore-search { padding:0 9px; gap:6px; }
  .explore-search input { font-size:16px; }
  .explore-view-switch button { min-width:54px; padding:9px 7px; font-size:10px; gap:4px; }
  .explore-view-switch button svg { width:14px; height:14px; }
  .explore-count { max-width:56px; font-size:9px; }
  .selected-place { padding:14px; gap:12px; grid-template-columns:52px minmax(0,1fr); }
  .selected-place-art { width:52px; height:70px; border-radius:11px; }
  .selected-place-copy h2 { font-size:16px; }
  .selected-place-copy>p { font-size:10px; }
  .selected-place-actions .button { font-size:11px; padding:10px 11px; }
}
@media(prefers-reduced-motion:reduce) {
  .explore-search,.explore-list .business-card { transition:none; }
}

/* Marker buttons are positioned by the provider wrapper on live maps. */
.explore-heading h1 em { color:var(--violet); font-style:normal; }
.map-marker-anchor>.map-marker { position:relative; left:auto!important; top:auto!important; transform:none!important; }
.map-cluster { flex-direction:column; gap:1px; padding:7px 10px; }
.map-cluster>span { font-size:8px; font-weight:500; }

@media(max-width:400px) {
  .explore-heading { flex-wrap:nowrap; }
  .explore-heading h1 { font-size:25px; }
  .explore-heading-actions { width:auto; }
}

.scan-offer-summary { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:14px 16px; margin:0 0 16px; border:1px solid #e4d8ff; border-radius:13px; background:#fff; }
.scan-offer-summary>span { display:flex; align-items:center; gap:12px; min-width:0; }
.scan-offer-summary svg { flex:none; width:24px; height:24px; color:#6c42ed; }
.scan-offer-summary small { display:block; color:#696676; font-size:9px; letter-spacing:1px; margin-bottom:4px; }
.scan-offer-summary strong { display:block; font-size:12px; line-height:1.5; }
.scan-offer-summary>b { flex:none; font-size:21px; color:#6c42ed; }
