html,
body{
  margin:0;
  width:100%;
  height:100%;
  overflow:hidden;
}

body.map-page{
  background:#050608;
  font-family:var(--font-display),-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,sans-serif;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

#map{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  background:#050608;
}

/* TOP UI */
.map-topbar{
  position:fixed;
  left:18px;
  right:18px;
  top:calc(env(safe-area-inset-top) + 24px);
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  pointer-events:none;
}

.map-title-wrap{
  pointer-events:auto;
  padding:12px 16px;
  border-radius:22px;
  background:rgba(255,255,255,.70);
  backdrop-filter:blur(22px) saturate(1.5);
  -webkit-backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:0 18px 50px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.65);
}

.map-eyebrow{
  font-size:11px;
  font-weight:700;
  color:#8e8e93;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.map-title{
  font-size:28px;
  font-weight:850;
  letter-spacing:-.04em;
  color:#050505;
  line-height:.95;
}

.map-glass-btn{
  pointer-events:auto;
  width:52px;
  height:52px;
  border:0;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(22px) saturate(1.5);
  -webkit-backdrop-filter:blur(22px) saturate(1.5);
  box-shadow:0 18px 50px rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.65);
  font-size:26px;
  font-weight:800;
  color:#111;
}

.map-filter-pill{
  position:fixed;
  left:18px;
  right:18px;
  top:calc(env(safe-area-inset-top) + 102px);
  z-index:20;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:8px;
  border-radius:24px;
  background:rgba(255,255,255,.62);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 20px 55px rgba(0,0,0,.18);
}

.map-filter{
  border:0;
  border-radius:18px;
  padding:11px 8px;
  background:transparent;
  color:#8e8e93;
  font-size:15px;
  font-weight:750;
}

.map-filter.active{
  background:#fff;
  color:#111;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}

/* PINS */
.shop-pin{
  width:24px;
  height:24px;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  background:#ff3b30;
  box-shadow:
    0 0 0 4px rgba(255,59,48,.14),
    0 8px 18px rgba(0,0,0,.18);
  border:2px solid rgba(255,255,255,.96);
  cursor:pointer;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.22));
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
}

.shop-pin::after{
  content:"";
  position:absolute;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

.shop-pin.is-active{
  background:#ff1f1f;
  box-shadow:
    0 0 0 7px rgba(255,59,48,.18),
    0 12px 28px rgba(0,0,0,.24);
}

.shop-pin.hide-marker{
  display:none !important;
}

.user-marker{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#007aff;
  border:3px solid #fff;
  box-shadow:0 0 0 8px rgba(0,122,255,.16), 0 10px 22px rgba(0,0,0,.24);
}

/* SHOP CARD */
.map-shop-card{
  position:fixed;
  left:14px;
  right:14px;
  bottom:calc(env(safe-area-inset-bottom) + 18px);
  z-index:30;
  border-radius:34px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(40px) saturate(1.45);
  -webkit-backdrop-filter:blur(40px) saturate(1.45);
  box-shadow:
    0 30px 80px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.55);
  border:1px solid rgba(255,255,255,.52);
  padding:10px 24px 24px;
  cursor:pointer;
  touch-action:pan-y;
  max-height:76vh;
  overflow:hidden;
  transition:height .28s ease, transform .28s ease;
  -webkit-overflow-scrolling:touch;
}

.map-shop-card.expanded{
  height:74vh;
  overflow-y:auto;
  overflow-x:hidden;
}

.map-card-handle{
  width:44px;
  height:5px;
  background:rgba(0,0,0,.16);
  border-radius:999px;
  margin:0 auto 20px;
}

/* CLOSE */
.map-card-close{
  position:absolute;
  top:22px;
  right:24px;
  width:auto;
  height:auto;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#1c1c1e;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,sans-serif;
  font-size:26px;
  font-weight:300;
  line-height:1;
  opacity:.82;
  z-index:5;
  -webkit-font-smoothing:antialiased;
}

.map-shop-card:not(.expanded) .map-card-close{
  display:none;
}

/* HEADER */
.map-card-main{
  display:grid;
  grid-template-columns:128px minmax(0,1fr);
  align-items:start;
  gap:18px;
  position:relative;
  padding-right:0;
}

.map-card-logo-wrap{
  width:128px;
  height:128px;
  border-radius:0;
  background:transparent;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  box-shadow:none;
  overflow:visible;
}

.map-card-logo{
  width:128px;
  height:128px;
  object-fit:contain;
  display:block;
}

.map-card-info{
  min-width:0;
  padding-top:2px;
}

.map-card-title{
  font-size:38px;
  line-height:.92;
  font-weight:900;
  letter-spacing:-.052em;
  color:#050505;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  max-width:100%;
}

.map-card-meta{
  display:flex;
  align-items:center;
  gap:9px;
  margin-top:12px;
  flex-wrap:nowrap;
  min-width:0;
}

.map-card-meta .map-card-subtitle{
  margin-top:0;
  color:#6e6e73;
  font-size:18px;
  font-weight:500;
  letter-spacing:-0.018em;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:0 1 auto;
  max-width:none;
}

/* STATUS */
.map-card-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:fit-content;
  margin-top:0;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
  letter-spacing:-.01em;
  line-height:1;
  text-transform:uppercase;
  flex:0 0 auto;
}

.map-card-status.open{
  color:#fff;
  background:#4b9a52;
}

.map-card-status.closed{
  color:#fff;
  background:#ff453a;
}

/* STAR */
.map-card-fav,
#cardFavBtn{
  position:static !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  min-height:18px !important;
  padding:0 !important;
  margin-left:4px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background-image:url("/img/icons/favoritestardefault.svg") !important;
  background-repeat:no-repeat !important;
  background-position:center !important;
  background-size:contain !important;
  opacity:.78;
  font-size:0 !important;
  color:transparent !important;
  flex:0 0 auto;
}

#cardFavBtn.active{
  background-image:url("/img/icons/favoritestar.svg") !important;
  opacity:1;
}

.map-card-open{
  display:none !important;
}

/* DETAILS */
.map-card-details{
  display:none;
  padding:34px 0 4px;
}

.map-shop-card.expanded .map-card-details{
  display:block;
}

.map-detail-grid{
  display:block;
}

/* DETAIL ROWS */
.map-detail-row{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  align-items:start;
  gap:18px;
  padding:14px 0;
  border-top:1px solid rgba(0,0,0,.055);
  border-bottom:0;
}

.map-detail-row:first-child{
  border-top:0;
}

.map-detail-k{
  font-weight:800;
  color:#050505;
  font-size:16px;
  letter-spacing:-.02em;
  min-width:0;
}

.map-detail-v{
  text-align:right;
  font-weight:480;
  color:#6e6e73;
  font-size:17px;
  letter-spacing:-0.018em;
  line-height:1.2;
  max-width:100%;
  word-break:normal;
}

.map-address-line{
  display:block;
}

/* COPY ADDRESS */
.map-copy-btn,
.copy-address-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:7px;
  height:22px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.65);
  color:#b0b0b5;
  font-size:11px;
  font-weight:400;
  letter-spacing:.02em;
  text-transform:uppercase;
}

/* HOURS EXPAND */
.map-hours-toggle{
  appearance:none;
  border:0;
  background:transparent;
  color:#6e6e73;
  font-size:17px;
  font-weight:480;
  letter-spacing:-0.018em;
  padding:0;
  text-align:right;
  cursor:pointer;
}

.map-hours-more{
  display:block;
  margin-top:4px;
  color:#8e8e93;
  font-size:12px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.03em;
}

.map-hours-all[hidden]{
  display:none !important;
}

.map-hours-all{
  margin-top:14px;
  padding-top:10px;
  display:grid;
  gap:8px;
}

.map-hours-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  color:#6e6e73;
  font-size:15px;
  font-weight:480;
  letter-spacing:-.015em;
}

.map-hours-day{
  color:#111;
  font-weight:750;
}

/* SECTIONS */
.map-detail-section{
  padding:28px 0 40px;
  border-top:1px solid rgba(0,0,0,.06);
}

.map-detail-section-title{
  font-size:24px;
  font-weight:900;
  letter-spacing:-.045em;
  line-height:1;
  margin-bottom:18px;
  color:#050505;
}

/* FEATURE ICONS */
.map-feature-chips{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  align-items:center;
  padding-top:2px;
}

.map-feature-item{
  appearance:none;
  border:0;
  background:transparent !important;
  box-shadow:none !important;
  padding:0;
  margin:0;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.map-feature-chips img,
.map-feature-icon{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  background:transparent !important;
}

/* FULL SCREEN FEATURE LABEL */
.feature-tooltip-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  background:rgba(255,255,255,.18);
  backdrop-filter:blur(36px) saturate(1.3);
  -webkit-backdrop-filter:blur(36px) saturate(1.3);
}

.feature-tooltip-text{
  color:#050505;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,sans-serif;
  font-size:54px;
  font-weight:800;
  letter-spacing:-.05em;
  line-height:.92;
  text-align:center;
}

/* MAPBOX CLEANUP */
.mapboxgl-ctrl-bottom-left,
.mapboxgl-ctrl-bottom-right{
  display:none !important;
}

.mapboxgl-marker{
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
}

@media (max-width:430px){

  .map-shop-card{
    padding:10px 20px 26px;
  }

  .map-card-main{
    grid-template-columns:108px minmax(0,1fr);
    gap:14px;
  }

  .map-card-logo-wrap,
  .map-card-logo{
    width:108px;
    height:108px;
  }

  .map-card-title{
    font-size:34px;
    line-height:.94;
  }

  .map-card-meta{
    gap:8px;
  }

  .map-card-meta .map-card-subtitle{
    font-size:17px;
  }

  .map-card-status{
    font-size:12px;
    padding:4px 10px;
  }

  #cardFavBtn{
    width:18px !important;
    height:18px !important;
    min-width:18px !important;
    min-height:18px !important;
  }

  .map-detail-row{
    grid-template-columns:100px minmax(0,1fr);
  }

  .map-feature-chips{
    gap:18px;
  }

  .map-feature-item,
  .map-feature-icon{
    width:34px;
    height:34px;
  }

  .feature-tooltip-text{
    font-size:46px;
  }
}

/* Refined map chrome: compact readable controls, unobstructed map. */
.map-page { --map-surface: rgba(255,255,255,.92); --map-ink:#1c1c1e; --map-muted:#6e6e73; }
.map-topbar { top:calc(env(safe-area-inset-top) + 12px); left:14px; right:14px; }
.map-title-wrap { padding:10px 14px; border-radius:20px; background:var(--map-surface); border:0; box-shadow:0 3px 16px #0002; }
.map-eyebrow { font-size:10px; font-weight:600; letter-spacing:.045em; color:var(--map-muted); }
.map-title { font-size:25px; font-weight:750; letter-spacing:-.02em; color:var(--map-ink); }
.map-actions { display:flex; align-items:center; gap:8px; pointer-events:auto; }
.map-glass-btn { display:grid; place-items:center; width:46px; height:46px; border:0; border-radius:16px; background:var(--map-surface); color:#007aff; box-shadow:0 3px 16px #0002; }
.map-usa-btn { width:56px; font-size:14px; letter-spacing:.02em; font-weight:700; }
.map-filter-pill { top:calc(env(safe-area-inset-top) + 78px); left:14px; right:14px; padding:4px; gap:3px; border:0; border-radius:18px; background:var(--map-surface); box-shadow:0 3px 16px #0002; max-width:460px; }
.map-filter { padding:10px 6px; border-radius:14px; font-size:15px; font-weight:600; color:var(--map-muted); }
.map-filter.active { background:#e8e8ed; color:var(--map-ink); box-shadow:none; }
.shop-pin { width:22px; height:22px; border-radius:50%; transform:none; box-shadow:0 2px 6px #0003; filter:none; }
.map-shop-card { width:auto; max-width:440px; border:0; border-radius:25px; background:var(--map-surface); padding:10px 16px 17px; box-shadow:0 4px 28px #0003; bottom:calc(env(safe-area-inset-bottom) + 26px); }
.map-shop-card.expanded { height:auto; max-height:72dvh; }
.map-card-handle { width:34px; height:4px; margin:0 auto 12px; }
.map-card-main { grid-template-columns:72px minmax(0,1fr); gap:13px; align-items:center; padding-right:22px; }
.map-card-logo-wrap,.map-card-logo { width:72px; height:72px; }
.map-card-title { font-size:24px; line-height:1.12; font-weight:750; letter-spacing:-.025em; color:var(--map-ink); }
.map-card-meta { margin-top:7px; gap:6px; flex-wrap:wrap; }
.map-card-meta .map-card-subtitle { font-size:14px; color:var(--map-muted); }
.map-card-status { font-size:10px; font-weight:650; padding:5px 8px; }
.map-card-close,.map-shop-card:not(.expanded) .map-card-close { display:grid; place-items:center; top:26px; right:12px; width:28px; height:28px; border-radius:50%; background:#e9e9ed; color:#636366; font-size:22px; }
.map-card-details { padding:16px 0 0; }
.map-detail-row { grid-template-columns:94px minmax(0,1fr); gap:12px; padding:12px 0; }
.map-detail-k { font-size:14px; font-weight:650; color:var(--map-ink); }
.map-detail-v,.map-hours-toggle { font-size:14px; overflow-wrap:anywhere; color:var(--map-muted); }
.map-detail-section { padding:16px 0 4px; }
.map-detail-section-title { font-size:18px; margin-bottom:12px; font-weight:700; letter-spacing:-.02em; color:var(--map-ink); }
.map-feature-chips { gap:12px; }
.map-notice { position:fixed; bottom:40px; left:14px; right:14px; padding:16px; max-width:440px; color:var(--map-ink); background:var(--map-surface); border-radius:18px; z-index:25; font-size:15px; line-height:1.4; }
.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right { display:block !important; }
.map-page button:focus-visible { outline:2px solid #007aff; outline-offset:2px; }


/* Map v35: iOS-style compact map browser */
:root { --surface:rgba(255,255,255,.94); --ink:#1c1c1e; --sub:#6e6e73; --group:#f2f2f7; --line:rgba(60,60,67,.12); --blue:#007aff; --shadow:0 4px 20px rgba(0,0,0,.13); }
html[data-theme="dark"] { --surface:rgba(28,28,30,.95); --ink:#f5f5f7; --sub:#aeaeb2; --group:#38383a; --line:rgba(235,235,245,.15); --blue:#0a84ff; --shadow:0 4px 20px rgba(0,0,0,.36); }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
.map-page button,.map-page input,.map-page a { font:inherit; }
.map-page { --map-surface:var(--surface); --map-ink:var(--ink); --map-muted:var(--sub); }
.map-topbar { top:calc(env(safe-area-inset-top) + 10px); left:12px;right:12px; }
.map-title-wrap { border-radius:17px;padding:12px 15px;box-shadow:var(--shadow); }
.map-title { font-size:25px;font-weight:700;line-height:1;letter-spacing:-.025em; }
.map-actions { gap:7px; }
.map-glass-btn { border-radius:15px;width:44px;height:44px;color:var(--blue);box-shadow:var(--shadow); }
.map-usa-btn { width:52px;font-size:14px;font-weight:600; }
.map-theme { border:0;background:var(--surface);width:58px;height:34px;border-radius:999px;position:relative;padding:3px;box-shadow:var(--shadow);cursor:pointer; }
.map-theme-knob { display:grid;place-items:center;color:#333;background:#fff;border-radius:50%;width:28px;height:28px;transition:transform .2s;box-shadow:0 1px 4px #0003; }
[data-theme="dark"] .map-theme-knob { transform:translateX(24px); }
.map-controls { position:fixed;top:calc(env(safe-area-inset-top) + 64px);left:12px;right:12px;max-width:460px;z-index:25;display:grid;gap:7px; }
.map-search { display:flex;align-items:center;background:var(--surface);border-radius:17px;box-shadow:var(--shadow);color:var(--sub);padding:0 12px;min-height:49px;gap:9px; }
.map-search svg { width:20px;height:20px;flex:0 0 20px; }
.map-search input { min-width:0;flex:1;border:0;background:transparent;outline:none;color:var(--ink);font-size:17px; }
.map-search button { background:transparent;border:0;color:var(--blue);padding:11px 1px;font-size:16px;font-weight:500; }
.map-filter-pill { position:static;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:4px;gap:2px;background:var(--surface);box-shadow:var(--shadow);border-radius:15px; }
.map-filter { font-size:13px!important;font-weight:600!important;padding:10px 2px;border-radius:11px;color:var(--sub); }
.map-filter.active { background:var(--group);color:var(--ink); }
.map-results { border-radius:19px;background:var(--surface);box-shadow:var(--shadow);max-height:min(55dvh,480px);overflow:auto;color:var(--ink);padding:4px 14px 8px; }
.map-results-head { font-size:12px;color:var(--sub);padding:10px 3px 8px;font-weight:500; }
.map-result { display:flex;width:100%;align-items:center;text-align:left;gap:12px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--ink);padding:9px 0;min-height:60px; }
.map-result img { width:42px;height:42px;object-fit:contain;flex-shrink:0; }
.map-result div { flex:1;min-width:0; }
.map-result strong { display:block;font-size:16px;line-height:1.2;font-weight:600; }
.map-result small { display:block;color:var(--sub);font-size:13px;margin-top:3px; }
.map-result>span { color:var(--sub);font-size:24px; }
.map-shop-card { background:var(--surface);border-radius:25px;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 24px);padding:9px 15px 15px;max-width:460px;box-shadow:var(--shadow);color:var(--ink);cursor:default; }
.map-shop-card.expanded { max-height:72dvh;overflow:auto; }
.map-card-handle { display:block;width:38px;height:16px;background:transparent;border:0;margin:0 auto 5px;padding:0;position:relative;cursor:pointer; }
.map-card-handle:before { content:"";position:absolute;top:5px;left:0;width:38px;height:4px;background:var(--sub);opacity:.42;border-radius:10px; }
.map-card-main { grid-template-columns:80px minmax(0,1fr);gap:12px;padding-right:24px; }
.map-card-logo-wrap,.map-card-logo { width:80px;height:80px;object-fit:contain;background:transparent; }
.map-card-title { color:var(--ink);font-size:21px;line-height:1.14;font-weight:700;letter-spacing:-.02em; }
.map-card-meta { gap:6px; margin-top:5px; }
.map-card-meta .map-card-subtitle { white-space:normal;overflow:visible;text-overflow:clip;font-size:14px;color:var(--sub); }
.map-card-status { font-size:11px; padding:4px 7px; }
.map-card-close,.map-shop-card:not(.expanded) .map-card-close { top:28px;right:12px;color:var(--sub);background:var(--group);width:29px;height:29px;font-size:21px;font-weight:400; }
.map-card-actions { display:flex;gap:6px;margin-top:15px; }
.map-action { display:flex;align-items:center;justify-content:center;text-decoration:none;flex:1;min-width:0;min-height:42px;border-radius:12px;background:var(--group);color:var(--blue);font-size:14px!important;font-weight:500!important;text-align:center;padding:8px 3px; }
.map-action-primary { background:var(--blue);color:white; }
.map-card-details { padding-top:13px; }
.map-detail-row,.map-detail-section { border-color:var(--line); }
.map-detail-k,.map-detail-section-title,.map-hours-day { color:var(--ink); }
.map-detail-v,.map-hours-toggle,.map-hours-row { color:var(--sub); }
.map-copy-btn { background:var(--group);border:0;color:var(--blue); }
.feature-tooltip-overlay { background:var(--surface); }
.feature-tooltip-text { color:var(--ink); }
.map-notice { background:var(--surface);color:var(--ink); }
@media(max-width:360px) { .map-card-main{grid-template-columns:68px minmax(0,1fr)} .map-card-logo-wrap,.map-card-logo{width:68px;height:68px}.map-card-title{font-size:19px}.map-action{font-size:12px!important}.map-filter{font-size:12px!important} }
.shop-pin.shop-logo-pin { width:38px;height:38px;border:2px solid #fff;box-shadow:0 2px 8px #0005;background:#fff;overflow:hidden;border-radius:12px; }
.shop-logo-pin:after { display:none; }
.shop-logo-pin img { width:100%;height:100%;object-fit:contain;display:block; }
.shop-logo-pin.is-active { border-color:#007aff;box-shadow:0 0 0 3px #007aff55,0 3px 12px #0005;z-index:2; }
/* Full-size original SVG artwork; no artificial white frame or tile. */
.shop-pin.shop-logo-pin { width:42px;height:42px;border:0;background:transparent;border-radius:0;overflow:visible;box-shadow:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.24)); }
.shop-logo-pin img { width:100%;height:100%;object-fit:contain; }
.shop-logo-pin.is-active { background:transparent;border:0;box-shadow:none;filter:drop-shadow(0 0 3px rgba(0,122,255,.65)) drop-shadow(0 2px 3px rgba(0,0,0,.24)); }
.shop-pin.shop-logo-pin { appearance:none;-webkit-appearance:none;padding:0;line-height:0; }

/* Compact details below the unchanged shop header and actions. */
.map-address-block { padding:15px 0 13px; text-align:left; border-bottom:1px solid var(--line); }
.map-address-full { color:var(--ink); font-size:15px; font-weight:500; line-height:1.35; overflow-wrap:break-word; }
.map-address-block .map-copy-btn { margin:8px 0 0; min-height:32px; padding:0 12px; font-size:14px; font-weight:500; text-transform:none; letter-spacing:0; }
.map-hours-block { padding:14px 0 16px; }
.map-hours-block .map-detail-k { font-size:16px; margin-bottom:7px; }
.map-hours-summary { color:var(--ink); font-size:15px; line-height:1.35; font-weight:400; }
.map-hours-block .map-hours-toggle { color:var(--blue); display:inline-flex; align-items:center; gap:7px; min-height:32px; margin-top:4px; text-align:left; font-weight:500; }
.map-hours-block .map-hours-all { margin-top:6px; padding-top:4px; }
.map-hours-block .map-hours-row { padding:5px 0; }

/* Native, plainly labeled map controls and a clean close affordance. */
.map-topbar .map-usa-btn { display:flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:92px;padding:0 12px;font-size:17px;font-weight:650; }
.map-usa-icon { font-size:24px;line-height:1; }
.map-topbar .map-location-btn { display:flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:116px;padding:0 10px;font-size:14px;font-weight:600;white-space:nowrap; }
.map-location-btn svg { width:19px;height:19px;flex:0 0 19px; }
.map-card-close,.map-shop-card:not(.expanded) .map-card-close { top:5px;right:7px;width:40px;height:40px;border:0;border-radius:0;background:transparent;color:var(--sub);font-size:25px;font-weight:300;box-shadow:none;opacity:1; }
@media(max-width:350px) { .map-topbar .map-usa-btn{min-width:80px;padding:0 9px;font-size:15px}.map-topbar .map-location-btn{min-width:108px;padding:0 7px;font-size:13px}.map-usa-icon{font-size:22px} }

/* Native-style address and saved-list dialogs. */
.map-filter-pill {grid-template-columns:repeat(5,minmax(0,1fr));}
.map-card-meta-actions {display:inline-flex;align-items:center;gap:4px;flex-shrink:0;}
.map-card-list-add {display:grid;place-items:center;flex:none;width:30px;height:32px;padding:0;background:transparent;border:0;color:var(--blue);font-size:28px;font-weight:400;line-height:1;cursor:pointer;}
.map-sheet {box-sizing:border-box;width:min(90vw,310px);max-height:75dvh;overflow:auto;border:0;border-radius:15px;padding:0;color:var(--ink);background:#f2f2f7;text-align:center;font-family:inherit;box-shadow:0 10px 45px #0003;}
[data-theme="dark"] .map-sheet {background:#2c2c2e;}
.map-sheet::backdrop {background:rgba(0,0,0,.42);}
.map-sheet h2 {margin:0;padding:21px 16px;font-size:17px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;}
.map-sheet-action {display:block;width:100%;min-height:47px;padding:10px 12px;background:transparent;border:0;border-top:1px solid var(--line);color:var(--blue);font:inherit;font-size:17px;font-weight:400;cursor:pointer;overflow-wrap:anywhere;}
.map-list-form {padding-top:11px;}
.map-list-form input {box-sizing:border-box;width:calc(100% - 24px);padding:10px 12px;margin:0 12px 11px;border:0;border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:16px;}
.map-sheet-error {margin:0 12px;color:#ff453a;font-size:13px;}
.map-action[hidden]{display:none!important;}

/* iPhone-style frosted address alert and roomier shop results. */
.map-sheet.map-address-sheet[open] { display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:14px;width:min(76vw,320px);border-radius:26px;border:1px solid rgba(255,255,255,.7);background:rgba(246,246,251,.62);-webkit-backdrop-filter:blur(24px) saturate(180%);backdrop-filter:blur(24px) saturate(180%);box-shadow:0 10px 36px rgba(0,0,0,.12); }
[data-theme="dark"] .map-sheet.map-address-sheet[open] {background:rgba(43,43,48,.64);border-color:rgba(255,255,255,.18);}
.map-address-sheet::backdrop {background:rgba(0,0,0,.22);}
.map-address-sheet h2 {grid-column:1/-1;grid-row:1;padding:10px 5px 12px;font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.22;user-select:text;-webkit-user-select:text;}
.map-address-sheet #mapSheetBody {display:contents;}
.map-address-sheet #mapSheetBody .map-sheet-action {grid-column:2;grid-row:2;color:#fff;background:#007aff;}
.map-address-sheet #mapSheetClose {grid-column:1;grid-row:2;color:var(--ink);background:rgba(118,118,128,.22);}
.map-address-sheet .map-sheet-action {border:0;border-radius:999px;min-height:45px;padding:8px 6px;font-size:16px;font-weight:650;letter-spacing:-.025em;line-height:1.15;}
.map-result {min-height:82px;gap:11px;padding:7px 0;}
.map-result img {width:68px;height:68px;flex:0 0 68px;object-fit:contain;}
.map-result div {flex:1;min-width:0;max-width:calc(100% - 107px);}
.map-result strong {font-size:17px;line-height:1.19;letter-spacing:-.015em;white-space:normal;overflow-wrap:break-word;font-weight:650;}
.map-result small {font-size:14px;line-height:1.25;margin-top:4px;}
.map-result>span {margin-left:auto;min-width:20px;text-align:right;}
@media(max-width:350px){.map-result img{width:60px;height:60px;flex-basis:60px}.map-result{min-height:74px}.map-result div{max-width:calc(100% - 99px)}.map-result strong{font-size:16px}.map-address-sheet .map-sheet-action{font-size:15px}}

/* Refine the address alert to match the iPhone system call alert. */
.map-sheet.map-address-sheet[open] {border-radius:29px;padding:15px;gap:8px;transform:translateY(23px);background:rgba(248,248,252,.74);-webkit-backdrop-filter:blur(30px) saturate(165%);backdrop-filter:blur(30px) saturate(165%);border:1px solid rgba(255,255,255,.8);box-shadow:0 12px 36px rgba(0,0,0,.13);}
[data-theme="dark"] .map-sheet.map-address-sheet[open]{background:rgba(44,44,46,.72);border-color:rgba(255,255,255,.20);}
.map-address-sheet h2 {font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,sans-serif;font-size:19px;line-height:1.23;font-weight:400;letter-spacing:0;padding:12px 2px 14px;outline:none;}
.map-address-sheet .map-sheet-action {font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,sans-serif;font-weight:600;font-size:18px;letter-spacing:-.02em;min-height:47px;}
.map-page .map-address-sheet #mapSheetClose:focus:not(:focus-visible),.map-page .map-address-sheet h2:focus {outline:none;box-shadow:none;}
.map-address-sheet #mapSheetClose {background:rgba(120,120,128,.22);}
.map-address-sheet #mapSheetBody .map-sheet-action {background:#008cf5;}
@media(max-width:350px){.map-address-sheet .map-sheet-action{font-size:16px}.map-address-sheet h2{font-size:18px}}
/* Keep all four shop actions visually equal. */
#cardOpenBtn.map-action {background:var(--group);color:var(--blue);}

/* Leave room below the collapsed preview and clearly indicate the swipe gesture. */
.map-shop-card:not(.expanded) {bottom:calc(env(safe-area-inset-bottom) + 65px);overflow:visible;}
.map-card-swipe-hint {position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);min-height:35px;padding:4px 18px;border:0;border-radius:999px;background:var(--surface);color:var(--sub);font-family:inherit;font-size:14px;font-weight:500;white-space:nowrap;box-shadow:0 1px 5px rgba(0,0,0,.07);cursor:pointer;touch-action:none;}
.map-shop-card.expanded .map-card-swipe-hint {display:none;}
.map-card-handle,.map-card-main {touch-action:none;}
.map-shop-card.expanded .map-card-main {touch-action:pan-y;}

/* More room on both sides of the original-size shop icons. */
.map-results {padding-left:22px;padding-right:18px;}
.map-result {gap:19px;}
.map-result div {max-width:none;min-width:0;}
.map-result>span {flex:0 0 20px;}
@media(max-width:350px){.map-results{padding-left:18px;padding-right:14px}.map-result{gap:15px}}

/* Expanded preview extends to the browser edge with a solid safe-area footer. */
.map-shop-card.expanded {bottom:0;max-height:78dvh;box-sizing:border-box;border-radius:25px 25px 0 0;background:#fff;padding-bottom:calc(env(safe-area-inset-bottom) + 80px);}
[data-theme="dark"] .map-shop-card.expanded {background:#1c1c1e;}
.map-shop-card.expanded .map-detail-section:last-child {margin-bottom:0;}

/* Solid continuous collapsed sheet, with the swipe hint inside its footer. */
.map-shop-card:not(.expanded) {bottom:0;box-sizing:border-box;border-radius:25px 25px 0 0;background:#fff;padding-bottom:calc(env(safe-area-inset-bottom) + 80px);}
[data-theme="dark"] .map-shop-card:not(.expanded) {background:#1c1c1e;}
.map-shop-card:not(.expanded) .map-card-swipe-hint {top:auto;bottom:calc(env(safe-area-inset-bottom) + 14px);background:transparent;box-shadow:none;font-size:15px;padding:4px 18px;}
/* Preserve the street and city/state/ZIP as distinct lines. */
.map-address-sheet h2 {white-space:pre-line;}

/* Extend the shop results toward the bottom of the map while retaining a map strip. */
.map-results {max-height:min(70dvh,calc(100dvh - 215px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));}

/* v51: iOS system-alert glass treatment for the map header and filters. */
.map-page {font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,sans-serif;--control-glass:rgba(248,248,252,.74);--control-rim:rgba(255,255,255,.8);--control-shadow:0 4px 18px rgba(0,0,0,.10);--control-quiet:rgba(120,120,128,.17);--control-active:#008cf5;}
[data-theme="dark"] .map-page {--control-glass:rgba(44,44,46,.72);--control-rim:rgba(255,255,255,.20);--control-shadow:0 4px 18px rgba(0,0,0,.22);--control-quiet:rgba(120,120,128,.25);--control-active:#0a84ff;}
.map-page .map-topbar .map-glass-btn,.map-page .map-theme,.map-page .map-search,.map-page .map-filter-pill,.map-page .map-results {background:var(--control-glass);border:1px solid var(--control-rim);box-shadow:var(--control-shadow);-webkit-backdrop-filter:blur(30px) saturate(165%);backdrop-filter:blur(30px) saturate(165%);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",system-ui,sans-serif;}
.map-page .map-topbar .map-glass-btn {height:44px;border-radius:999px;font-size:16px;font-weight:500;letter-spacing:-.015em;color:var(--blue);}
.map-page .map-topbar .map-usa-btn {min-width:72px;padding:0 19px;}
.map-page .map-topbar .map-location-btn {min-width:0;padding:0 13px;gap:5px;}
.map-page .map-theme {border-radius:999px;}
.map-page .map-search {border-radius:999px;min-height:46px;padding:0 15px;}
.map-page .map-search input {font-size:17px;font-weight:400;letter-spacing:0;}
.map-page .map-search input::placeholder {font-weight:400;color:var(--sub);}
.map-page .map-filter-pill {border-radius:999px;padding:4px;gap:2px;grid-template-columns:.76fr 1.27fr .75fr 1.16fr .86fr;}
.map-page .map-filter {border-radius:999px;min-height:35px;padding:7px 2px;font-size:14px!important;font-weight:500!important;letter-spacing:-.01em;color:var(--ink);white-space:nowrap;}
.map-page .map-filter.active {background:var(--control-active);color:#fff;box-shadow:none;font-weight:600!important;}
.map-page .map-filter:active,.map-page .map-glass-btn:active {opacity:.82;}
.map-page .map-results {border-radius:24px;}
.map-page .map-results-head {font-size:13px;font-weight:500;letter-spacing:0;}
@media(max-width:350px){.map-page .map-topbar .map-usa-btn{min-width:62px;padding:0 13px}.map-page .map-topbar .map-location-btn{padding:0 8px;font-size:14px}.map-page .map-filter{font-size:12px!important}}

/* v52: a translucent header-only scrim gives the iOS glass pills contrast. */
.map-header-backdrop {
  position:fixed;
  z-index:19;
  inset:0 0 auto 0;
  height:calc(env(safe-area-inset-top) + 183px);
  pointer-events:none;
  background:rgba(12,17,24,.12);
  -webkit-backdrop-filter:blur(12px) brightness(.74);
  backdrop-filter:blur(12px) brightness(.74);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 14px),transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 calc(100% - 14px),transparent 100%);
}
[data-theme="dark"] .map-header-backdrop {
  background:rgba(0,0,0,.13);
  -webkit-backdrop-filter:blur(12px) brightness(.81);
  backdrop-filter:blur(12px) brightness(.81);
}

/* v53: shop details float above a translucent modal-style dimmed map. */
.map-shop-backdrop {position:fixed;inset:0;z-index:29;pointer-events:none;background:rgba(0,0,0,.24);-webkit-backdrop-filter:blur(3px) brightness(.77);backdrop-filter:blur(3px) brightness(.77);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease;}
#shopCard.expanded:not([hidden]) + .map-shop-backdrop {opacity:1;visibility:visible;}
[data-theme="dark"] .map-shop-backdrop {background:rgba(2,10,25,.24);-webkit-backdrop-filter:blur(3px) brightness(.76);backdrop-filter:blur(3px) brightness(.76);}
@media(prefers-reduced-motion:reduce){.map-shop-backdrop{transition:none;}}

/* Match the original CigarOS deep navy palette, not charcoal. */
html[data-theme="dark"] {--surface:rgba(18,40,76,.96);--ink:#f5f7fb;--sub:#aebdd3;--group:#203e68;--line:rgba(169,192,223,.18);--blue:#419bff;--shadow:0 4px 20px rgba(0,9,26,.36);}
[data-theme="dark"] body.map-page,[data-theme="dark"] #map {background:#11294e;}
[data-theme="dark"] .map-page {--control-glass:rgba(19,43,80,.78);--control-rim:rgba(145,178,223,.24);--control-quiet:rgba(91,124,172,.24);--control-active:#0a84ff;}
[data-theme="dark"] .map-header-backdrop {background:rgba(5,16,39,.19);}
[data-theme="dark"] .map-shop-card.expanded,[data-theme="dark"] .map-shop-card:not(.expanded) {background:#11294e;color:var(--ink);}
[data-theme="dark"] .map-action,[data-theme="dark"] #cardOpenBtn.map-action {background:#203c64;color:var(--blue);}
[data-theme="dark"] .map-sheet {background:#142b50;}
[data-theme="dark"] .map-sheet.map-address-sheet[open] {background:rgba(18,41,76,.82);border-color:rgba(145,178,223,.28);}
[data-theme="dark"] .map-address-sheet #mapSheetClose {background:rgba(103,137,185,.25);}
[data-theme="dark"] .map-theme-knob {background:#07182f;color:#f7f3df;}

/* v55: map controls and filters */
.map-page .map-filter-pill{grid-template-columns:.8fr .8fr .8fr 1.4fr 1fr;}
.map-page .map-filter.map-symbol,.map-page .map-filter-control{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;}
.map-filter svg{width:20px;height:20px;flex:0 0 20px;}
#mapLocateBtn{color:var(--blue);}
.map-filter-control small{font-size:11px;font-weight:650;}
.map-list-logo{width:29px;height:29px;object-fit:contain;vertical-align:middle;margin-right:8px;}
.map-filter-sheet{width:min(92vw,460px);max-height:82dvh;overflow:auto;}
.map-filter-groups{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left;}
.map-filter-groups h3{font-size:16px;font-weight:650;margin:12px 0 6px;padding:0 8px;}
.map-filter-choice{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:10px 8px;min-height:37px;line-height:1.1;font-size:14px;border-bottom:1px solid var(--line);}
.map-filter-choice input{width:17px;height:17px;accent-color:var(--blue);flex:0 0 17px;}
.map-filter-choice.unavailable{opacity:.45;}
.map-filter-note{font-size:12px;color:var(--sub);text-align:left;padding:4px 8px;}
.map-filter-sheet-actions{display:flex;gap:8px;}
.map-filter-sheet-actions .map-sheet-action:last-child{background:#008cf5;color:#fff;border-radius:999px;border:0;}
.map-filter-sheet-actions .map-sheet-action:first-child{border:0;}
@media(max-width:350px){.map-filter-control{gap:2px!important}.map-filter svg{width:17px;height:17px;flex-basis:17px}.map-filter-choice{padding:8px 4px;font-size:13px}}

/* v56: independent filter scroll areas, matching shop and brand icons */
.map-filter-sheet{position:fixed;max-height:min(82dvh,680px);overflow:hidden;}
.map-filter-sheet #mapSheetClose{display:none;}
.map-filter-sheet #mapSheetBody{padding:0 10px 12px;}
.map-filter-sheet h2{padding:12px 36px;margin:0;}
.map-filter-close{position:absolute;right:12px;top:8px;border:0;background:none;color:#ff453a;font:400 32px/1 -apple-system,BlinkMacSystemFont,sans-serif;min-width:38px;min-height:38px;cursor:pointer;}
.map-filter-groups{gap:10px;align-items:start;}
.map-filter-group{min-width:0;display:flex;flex-direction:column;}
.map-filter-groups h3{margin:8px 0;font-size:16px;padding:0 3px;}
.map-filter-scroll{height:min(38dvh,310px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;}
.map-filter-choice{padding:8px 3px;gap:6px;font-size:14px;min-height:41px;}
.map-filter-choice[hidden]{display:none!important;}
.map-filter-name{flex:1;min-width:0;overflow-wrap:normal;}
.map-filter-icon{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;position:relative;}
.map-filter-icon img{width:100%;height:100%;object-fit:contain;}
.map-filter-icon.prohibited:after{content:"";position:absolute;width:27px;height:2px;background:#ff453a;border-radius:3px;transform:rotate(-45deg);}
.map-brand-search{width:100%;height:32px;border:0;background:var(--group);color:var(--ink);border-radius:9px;padding:0 7px;font:400 13px -apple-system,BlinkMacSystemFont,sans-serif;margin-bottom:5px;}
.map-filter-note{margin:7px 0;}
.map-filter-sheet-actions{padding:0 3px;}
@media(max-width:360px){.map-filter-choice{font-size:12px;gap:4px;}.map-filter-icon{width:22px;height:22px;flex-basis:22px}.map-filter-choice input{width:16px;height:16px;flex-basis:16px}}

/* v57: native iOS-style filter bottom sheet */
.map-sheet.map-filter-sheet[open]{
  position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,620px);max-width:none;
  height:88dvh;max-height:88dvh;border-radius:24px 24px 0 0;padding:0;
  background:#f2f2f7;box-shadow:0 -8px 36px #0002;display:flex;flex-direction:column;
  text-align:left;overflow:hidden;animation:mapFilterSlideUp .26s cubic-bezier(.22,.8,.24,1);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text",system-ui,sans-serif;
}
@keyframes mapFilterSlideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.map-sheet.map-filter-sheet[open]{animation:none}}
.map-sheet.map-filter-sheet::backdrop{background:rgba(0,0,0,.34);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);}
.map-filter-sheet h2{font-size:40px;font-weight:750;letter-spacing:-.035em;line-height:1.08;padding:30px 26px 16px;margin:0;text-align:left;}
.map-filter-sheet #mapSheetBody{flex:1;min-height:0;display:flex;flex-direction:column;padding:0 20px calc(12px + env(safe-area-inset-bottom));}
.map-filter-close{font-size:27px;font-weight:400;top:10px;right:12px;color:#ff453a;}
.map-filter-groups{flex:1;min-height:0;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch;}
.map-filter-group{display:flex;flex-direction:column;min-height:0;min-width:0;}
.map-filter-groups h3{font-size:23px;font-weight:700;letter-spacing:-.025em;line-height:1.2;margin:0 0 12px;padding:0 3px;}
.map-filter-scroll{height:auto;flex:1;min-height:0;overflow-y:auto;background:#fff;border-radius:15px;scrollbar-width:none;}
.map-filter-scroll::-webkit-scrollbar{display:none;}
.map-filter-choice{padding:12px 9px;min-height:57px;gap:7px;font-size:16px;font-weight:400;line-height:1.18;letter-spacing:-.015em;border-bottom:1px solid #e5e5ea;}
.map-filter-choice:last-child{border-bottom:0;}
.map-filter-icon{width:33px;height:33px;flex:0 0 33px;}
.map-filter-icon.prohibited:after{width:35px;height:2px;}
.map-filter-choice input{appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:0 0 20px;border:1.5px solid #8e8e93;border-radius:6px;background:transparent;margin:0;display:grid;place-items:center;}
.map-filter-choice input:checked{background:#007aff;border-color:#007aff;}
.map-filter-choice input:checked:after{content:"";width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) translateY(-1px);}
.map-brand-search{height:37px;flex:0 0 37px;font-size:15px;border-radius:10px;background:#e3e3e9;padding:0 10px;margin:0 0 8px;}
.map-filter-group:first-child .map-filter-scroll{margin-top:45px;}
.map-filter-note{flex:0 0 auto;font-size:12px;line-height:1.25;margin:10px 0;padding:0 3px;}
.map-filter-sheet-actions{flex:0 0 auto;gap:10px;padding:0;}
.map-filter-sheet-actions .map-sheet-action{min-height:49px;font-size:17px;font-weight:600;}
[data-theme="dark"] .map-sheet.map-filter-sheet[open]{background:#142b50;}
[data-theme="dark"] .map-filter-scroll{background:#203e68;}
[data-theme="dark"] .map-filter-choice{border-color:rgba(169,192,223,.18);}
[data-theme="dark"] .map-brand-search{background:#203e68;}
@media(max-width:390px){.map-filter-sheet #mapSheetBody{padding-left:14px;padding-right:14px}.map-filter-groups{gap:10px}.map-filter-choice{font-size:15px;padding:10px 6px;gap:5px}.map-filter-icon{width:29px;height:29px;flex-basis:29px}.map-filter-choice input{width:19px;height:19px;flex-basis:19px}.map-filter-groups h3{font-size:21px}}

/* v58: unified filter card with aligned first rows */
.map-filter-groups{background:#fff;border-radius:16px;padding:12px 0 0;gap:0;overflow:hidden;}
.map-filter-group{padding:0 10px;min-width:0;}
.map-filter-group+.map-filter-group{border-left:1px solid #e5e5ea;}
.map-filter-groups h3{padding:0 3px;margin:0 0 8px;}
.map-filter-group:first-child .map-filter-scroll{margin-top:0;}
.map-filter-scroll{border-radius:0;background:transparent;min-height:0;}
.map-brand-search{background:#fff;border:0;border-bottom:1px solid #e5e5ea;flex:0 0 57px;height:57px;border-radius:0;margin:0;padding:0 3px;font-size:16px;}
.map-filter-sheet-actions{padding:12px 0 0;margin-top:0;}
[data-theme="dark"] .map-filter-groups{background:#203e68;}
[data-theme="dark"] .map-filter-scroll,[data-theme="dark"] .map-brand-search{background:transparent;}
[data-theme="dark"] .map-filter-group+.map-filter-group,[data-theme="dark"] .map-brand-search{border-color:rgba(169,192,223,.18);}
@media(max-width:390px){.map-filter-group{padding:0 5px}.map-brand-search{height:57px;flex-basis:57px;font-size:15px}}

/* v59: breathing room between icons and labels */
.map-filter-choice .map-filter-icon{margin-right:5px;}
@media(max-width:390px){.map-filter-choice .map-filter-icon{margin-right:4px;}}

/* Clear the list by tapping the visible map; keep controls interactive. */
.map-controls{pointer-events:none;}
.map-controls > *{pointer-events:auto;}
/* Prohibited amenity: faded source icon with a red X. */
.map-filter-icon.prohibited img{opacity:.34;filter:grayscale(.35);}
.map-filter-icon.prohibited::before,.map-filter-icon.prohibited::after{content:"";position:absolute;left:50%;top:50%;width:82%;height:2.5px;background:#ff453a;border-radius:3px;transform:translate(-50%,-50%) rotate(45deg);z-index:1;}
.map-filter-icon.prohibited::after{transform:translate(-50%,-50%) rotate(-45deg);}

/* Shop card: show amenities and brands on first selection, with a taller iOS sheet. */
#shopCard:not([hidden]){height:60dvh;max-height:78dvh;overflow-y:auto;overflow-x:hidden;padding:9px 15px calc(env(safe-area-inset-bottom) + 24px);border-radius:25px 25px 0 0;bottom:0;scrollbar-width:none;}
#shopCard.expanded:not([hidden]){height:78dvh;}
#shopCard:not([hidden]) + .map-shop-backdrop{opacity:1;visibility:visible;}
#shopCard .map-card-main{grid-template-columns:80px minmax(0,1fr);gap:12px;padding-right:10px;align-items:center;}
#shopCard .map-card-title{font-size:22px;font-weight:750;line-height:1.12;letter-spacing:-.025em;padding-right:12px;}
#shopCard .map-card-meta{gap:5px;flex-wrap:wrap;margin-top:8px;}
#shopCard .map-card-meta .map-card-subtitle{font-size:14px;white-space:nowrap;}
#shopCard .map-card-meta-actions{gap:7px;margin-left:0;}
#shopCard #cardFavBtn{margin-left:0!important;}
#shopCard .map-card-list-add{width:22px;height:24px;font-size:23px;}
.map-card-bucket{display:grid;place-items:center;width:22px;height:24px;padding:0;border:0;background:transparent;color:var(--sub);cursor:pointer;flex:none;}
.map-card-bucket svg{width:19px;height:19px;display:block;}
.map-card-bucket.active{color:var(--blue);}.map-card-bucket.active .bucket-body{fill:var(--blue);fill-opacity:.28;}
#shopCard .map-card-details{display:block;padding:23px 8px 0;}
#shopCard .map-card-icon-section{margin:0 0 23px;}
#shopCard .map-detail-section-title{font-size:19px;font-weight:750;line-height:1.2;margin:0 0 14px;letter-spacing:-.02em;}
#shopCard .map-feature-chips{gap:12px;display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;}
#shopCard .map-feature-item,#shopCard .map-feature-icon{width:37px;height:37px;}
#shopCard .map-feature-item.prohibited{position:relative;}
#shopCard .map-feature-item.prohibited img{opacity:.34;}
#shopCard .map-feature-item.prohibited::before,#shopCard .map-feature-item.prohibited::after{content:"";position:absolute;top:50%;left:50%;width:82%;height:2.5px;background:#ff453a;border-radius:3px;transform:translate(-50%,-50%) rotate(45deg);}
#shopCard .map-feature-item.prohibited::after{transform:translate(-50%,-50%) rotate(-45deg);}
#shopCard .map-card-info-empty{font-size:13px;color:var(--sub);}
#shopCard .map-card-actions{gap:7px;margin-top:17px;}
#shopCard .map-card-close{font-size:22px;right:6px;top:2px;}
@media(max-width:390px){#shopCard .map-card-title{font-size:20px;}#shopCard .map-card-main{grid-template-columns:72px minmax(0,1fr);gap:10px;}#shopCard .map-card-logo-wrap,#shopCard .map-card-logo{width:72px;height:72px;}#shopCard .map-card-meta .map-card-subtitle{font-size:13px;}#shopCard .map-feature-chips{gap:10px;}#shopCard .map-feature-item,#shopCard .map-feature-icon{width:34px;height:34px;}}

/* Native-inspired glass actions and consistent icon alignment. */
#shopCard .map-card-meta-actions{display:inline-flex;align-items:center;justify-content:center;gap:6px;}
#shopCard #cardFavBtn,#shopCard .map-card-bucket,#shopCard .map-card-list-add{position:static!important;display:grid!important;place-items:center;flex:0 0 25px;width:25px!important;height:28px!important;min-width:25px!important;min-height:28px!important;margin:0!important;padding:0!important;line-height:1;background:transparent!important;box-shadow:none!important;border:0!important;opacity:1;}
#shopCard #cardFavBtn{color:#777b82!important;background-image:none!important;}
#shopCard #cardFavBtn svg,#shopCard .map-card-bucket svg,#shopCard .map-card-list-add svg{display:block;width:20px;height:20px;flex:none;}
#shopCard #cardFavBtn.active{color:#f7b718!important;}
#shopCard #cardFavBtn.active svg path{fill:#f7b718;}
[data-theme="dark"] #shopCard #cardFavBtn{color:#b7c5d8!important;}
[data-theme="dark"] #shopCard #cardFavBtn.active{color:#f7b718!important;}
#shopCard .map-card-actions{gap:7px;}
#shopCard .map-action,#shopCard #cardOpenBtn.map-action{min-height:43px;border:0;outline:none;border-radius:21px;background:linear-gradient(180deg,#f7f8fc 0%,#e9eaf1 100%);box-shadow:inset 0 1px 1px #fff,0 2px 5px rgba(32,45,70,.09);color:var(--blue);font-weight:500!important;font-size:14px!important;letter-spacing:0;transition:transform .15s,filter .15s;-webkit-appearance:none;appearance:none;}
#shopCard .map-action:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
#shopCard .map-action:active{transform:scale(.97);filter:brightness(.94);}
[data-theme="dark"] #shopCard .map-action,[data-theme="dark"] #shopCard #cardOpenBtn.map-action{background:linear-gradient(180deg,#35547b,#203c64);box-shadow:inset 0 1px 1px rgba(255,255,255,.13),0 2px 5px rgba(0,10,30,.28);color:var(--blue);}
#shopCard .map-detail-section-title{font-size:16px;font-weight:550;letter-spacing:0;color:var(--sub);margin-bottom:14px;line-height:1.25;}
@media(max-width:390px){#shopCard .map-card-meta-actions{gap:3px;}#shopCard #cardFavBtn,#shopCard .map-card-bucket,#shopCard .map-card-list-add{width:22px!important;min-width:22px!important;flex-basis:22px;}#shopCard .map-card-meta{gap:4px;}#shopCard .map-action{font-size:13px!important;}}

/* v63: iOS-style My Lists */
.map-sheet.map-my-lists-sheet[open]{width:min(88vw,340px);padding:11px;border-radius:28px;background:rgba(248,248,252,.83);border:1px solid rgba(255,255,255,.76);-webkit-backdrop-filter:blur(30px) saturate(165%);backdrop-filter:blur(30px) saturate(165%);box-shadow:0 14px 48px #0002;text-align:left;}
.map-my-lists-sheet::backdrop{background:rgba(0,0,0,.28);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);}
.map-my-lists-sheet h2{font-size:21px;font-weight:650;letter-spacing:-.025em;padding:12px 8px 16px;text-align:center;}
.map-my-lists-sheet #mapSheetBody{border-radius:17px;overflow:hidden;background:rgba(255,255,255,.64);}
.map-my-lists-sheet .map-sheet-action{font-size:17px;font-weight:400;border-top:1px solid rgba(60,60,67,.12);min-height:52px;}
.map-my-lists-sheet .map-sheet-action:first-child{border-top:none;}
.map-my-lists-sheet .map-list-row{display:flex;align-items:center;gap:12px;text-align:left;color:var(--ink);padding:9px 13px;}
.map-list-mark{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:rgba(0,122,255,.09);color:#007aff;}
.map-list-mark svg,.map-list-mark img{width:23px;height:23px;object-fit:contain;}
.map-list-mark.favorite{color:#ff375f;background:rgba(255,55,95,.11);}.map-list-mark.visited{color:#30b66c;background:rgba(48,182,108,.12);}.map-list-mark.taa{background:#fff;}
.map-list-chevron{margin-left:auto;color:#8e8e93;font-size:23px;font-weight:400;line-height:1;}
.map-my-lists-sheet .map-list-create{color:var(--blue);font-weight:500;text-align:left;padding:12px 15px;}
.map-my-lists-sheet #mapSheetClose{border:0;border-radius:999px;background:rgba(255,255,255,.68);margin-top:10px;text-align:center;font-weight:500;min-height:48px;}
.map-my-lists-sheet [hidden]{display:none!important;}
[data-theme="dark"] .map-sheet.map-my-lists-sheet[open]{background:rgba(18,41,76,.86);border-color:rgba(145,178,223,.28);}
[data-theme="dark"] .map-my-lists-sheet #mapSheetBody,[data-theme="dark"] .map-my-lists-sheet #mapSheetClose{background:rgba(52,79,119,.55);}
[data-theme="dark"] .map-my-lists-sheet .map-sheet-action{border-color:rgba(180,200,225,.16);}
