/* ============================================================
   OnlyPedia — "OnlyFans Near Me" v2 (templates/near-me.php)
   Desktop: list left + sticky live map right. Phone: full-screen map + bottom sheet.
   Blue OnlyFans accent, theme tokens (light + dark).
   ============================================================ */
.op-nm-page { background: var(--op-bg); color: var(--op-text-primary); }
/* Side padding = the header's (logo, title, bar, list and map line up). Text in the site font (Plus Jakarta Sans):
   the body of this page was falling back to Roboto. Creator names keep Special Gothic (their own rule). */
.op-nm-page { --nm-pad: clamp(16px, 2.6vw, 44px); font-family: var(--op-font-body, sans-serif); }
.op-nm-page h1, .op-nm-page h2, .op-nm-page h3, .op-nm-page p, .op-nm-page li, .op-nm-page summary, .op-nm-page small,
.op-nm-grid3 li span, .op-nm-grid3 li a, .op-nm-grid3 li button { font-family: var(--op-font-body, sans-serif); }
.op-nm2-top h1 { font-weight: 800; }

/* ── Title row (above the toolbar: H1 + lead + "on this page" links) ── */
.op-nm2-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 18px var(--nm-pad) 12px; box-sizing: border-box; }
.op-nm2-titles { min-width: 0; flex: 1 1 520px; }
.op-nm2-top h1 { margin: 0 0 6px; font-size: 1.7rem; line-height: 1.15; letter-spacing: -.015em; }
.op-nm2-lead { margin: 0; max-width: 820px; color: var(--op-text-secondary); font-size: .95rem; line-height: 1.5; }
.op-nm2-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.op-nm2-jump a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--op-border);
  background: var(--op-bg-secondary); color: var(--op-text-primary); font: 600 .84rem/1 var(--op-font-body, sans-serif); text-decoration: none; white-space: nowrap; }
.op-nm2-jump a::after { content: "↓"; color: #03aff0; font-weight: 700; }
.op-nm2-jump a:hover { border-color: #03aff0; }

/* ── Toolbar: place search + filter chips ──
   Explicit resets on every control: the parent theme styles bare <button>/<input>. */
.op-nm2 { --nm-bar-h: 72px; --nm-accent: #03aff0; --nm-accent-2: #0362f0; position: relative; }
.op-nm2-bar { position: sticky; top: var(--op-header-h, 64px); z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px var(--nm-pad); background: color-mix(in srgb, var(--op-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--op-border); box-sizing: border-box; }
.op-nm2-search { position: relative; flex: 1 1 360px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 46px;
  padding: 0 0 0 16px; border-radius: 999px; border: 1px solid var(--op-border); background: var(--op-bg-secondary); color: var(--op-text-secondary);
  box-sizing: border-box; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s, box-shadow .15s; }
.op-nm2-search:focus-within { border-color: var(--nm-accent); box-shadow: 0 0 0 4px rgba(3, 175, 240, .14); }
.op-nm2-sicon { display: grid; place-items: center; color: var(--nm-accent); flex: none; }
.op-nm2 .op-nm2-search input { flex: 1; min-width: 0; height: 100%; margin: 0; border: 0 !important; outline: 0; background: transparent !important; color: var(--op-text-primary);
  font: 500 .95rem/1 var(--op-font-body, sans-serif); padding: 0 !important; box-shadow: none !important; border-radius: 0; }
.op-nm2 .op-nm2-search input::placeholder { color: var(--op-text-secondary); opacity: .8; }
.op-nm2 .op-nm2-search input { -webkit-appearance: none; appearance: none; }
.op-nm2-search input::-webkit-search-cancel-button, .op-nm2-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.op-nm2 button.op-nm2-qclear { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: none !important; box-shadow: none !important; color: var(--op-text-secondary) !important; cursor: pointer; }
.op-nm2 button.op-nm2-qclear:hover { color: var(--op-text-primary) !important; }
.op-nm2 button.op-nm2-qclear[hidden] { display: none; }
.op-nm2 button.op-nm2-locate { flex: none; align-self: stretch; display: inline-flex; align-items: center; gap: 6px; height: auto; width: auto; min-width: 44px; margin: -1px -1px -1px 0;
  padding: 0 16px 0 13px !important; border: 0 !important; border-radius: 999px !important; cursor: pointer; color: #fff !important;
  background: #03aff0 !important; box-shadow: none;
  font: 700 .8rem/1 var(--op-font-body, sans-serif); letter-spacing: .01em; line-height: 1; text-transform: none; }
.op-nm2 button.op-nm2-locate svg { display: block; flex: none; }
.op-nm2 button.op-nm2-locate:hover { background: #0a95d6 !important; }
.op-nm2-locate.is-busy { animation: op-nm-pulse 1s ease-in-out infinite; }
@keyframes op-nm-pulse { 50% { opacity: .55; } }
.op-nm2-sugg { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 50; margin: 0; padding: 6px; list-style: none;
  max-height: min(380px, 60vh); overflow: auto; border-radius: 16px; border: 1px solid var(--op-border); background: var(--op-bg-secondary);
  box-shadow: 0 18px 40px rgba(16, 24, 40, .18); }
.op-nm2-sugg li { margin: 0; }
.op-nm2 .op-nm2-sugg button { width: 100%; display: flex; align-items: center; justify-content: flex-start !important; gap: 12px; margin: 0; padding: 9px 10px !important; border: 0 !important; border-radius: 10px !important;
  background: none !important; color: var(--op-text-primary) !important; font: 600 .92rem/1.25 var(--op-font-body, sans-serif); text-align: left !important; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.op-nm2-sugg .op-nm2-stxt { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-nm2-sugg button small { display: block; font-weight: 500; font-size: .78rem; color: var(--op-text-secondary); }
.op-nm2 .op-nm2-sugg button:hover, .op-nm2 .op-nm2-sugg button.is-active { background: rgba(3, 175, 240, .12) !important; }
.op-nm2-sugg .op-nm2-sico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(3, 175, 240, .12); color: var(--nm-accent); }
.op-nm2-sugg .op-nm2-snone { padding: 10px; color: var(--op-text-secondary); font-size: .88rem; }

/* Chips (gender / price / category). The menus are one fixed popover (#op-nm-pop), moved to <body> by the script: never clipped
   by the scrolling row, and not offset by the toolbar's backdrop-filter (which would become the containing block of a fixed box). */
.op-nm2-chips { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.op-nm2-chips::-webkit-scrollbar { display: none; }
.op-nm2 button.op-nm2-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; width: auto; margin: 0; padding: 0 12px 0 14px !important;
  border-radius: 999px !important; border: 1px solid var(--op-border) !important; background: var(--op-bg-secondary) !important; color: var(--op-text-primary) !important;
  font: 600 .86rem/1 var(--op-font-body, sans-serif); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .15s, background-color .15s, color .15s; white-space: nowrap; }
.op-nm2 button.op-nm2-chip:hover { border-color: rgba(3, 175, 240, .55) !important; }
.op-nm2-chip .op-nm2-cico { color: var(--op-text-secondary); flex: none; }
.op-nm2-chip .op-nm2-chev { color: var(--op-text-secondary); flex: none; transition: transform .2s; }
.op-nm2-chip[aria-expanded="true"] .op-nm2-chev { transform: rotate(180deg); }
.op-nm2-chip-l { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.op-nm2 button.op-nm2-chip.is-on { border-color: var(--nm-accent) !important; background: rgba(3, 175, 240, .12) !important; color: var(--nm-accent) !important; }
.op-nm2-chip.is-on .op-nm2-cico, .op-nm2-chip.is-on .op-nm2-chev { color: var(--nm-accent); }
.op-nm2 button.op-nm2-clear { flex: none; height: 40px; margin: 0; padding: 0 6px !important; border: 0 !important; background: none !important; color: var(--op-text-secondary) !important;
  font: 600 .84rem/1 var(--op-font-body, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-transform: none; white-space: nowrap; }
.op-nm2 button.op-nm2-clear:hover { color: var(--nm-accent) !important; }
.op-nm2 button.op-nm2-clear[hidden] { display: none; }

.op-nm2-pop { --nm-accent: #03aff0; position: fixed; z-index: 1000; width: 260px; max-height: min(420px, 70vh); display: flex; flex-direction: column; padding: 6px;
  border-radius: 16px; border: 1px solid var(--op-border); background: var(--op-bg-secondary); box-shadow: 0 18px 48px rgba(16, 24, 40, .22);
  box-sizing: border-box; animation: op-nm-pop .14s ease-out; }
.op-nm2-pop[hidden] { display: none; }
.op-nm2-pop--cat { width: 300px; }
@keyframes op-nm-pop { from { opacity: 0; transform: translateY(-4px); } }
.op-nm2-pop-list { overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; }
.op-nm2-pop-h { padding: 10px 10px 4px; color: var(--op-text-secondary); font: 700 .7rem/1 var(--op-font-body, sans-serif); text-transform: uppercase; letter-spacing: .06em; }
body .op-nm2-pop button.op-nm2-opt { width: 100%; display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 10px !important; border: 0 !important;
  border-radius: 10px !important; background: none !important; color: var(--op-text-primary) !important; font: 600 .88rem/1.25 var(--op-font-body, sans-serif);
  text-align: left; text-transform: none; cursor: pointer; }
body .op-nm2-pop button.op-nm2-opt:hover, body .op-nm2-pop button.op-nm2-opt:focus-visible { background: rgba(3, 175, 240, .1) !important; outline: 0; }
body .op-nm2-pop button.op-nm2-opt[aria-selected="true"] { color: var(--nm-accent) !important; }
.op-nm2-opt span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-nm2-opt small { flex: none; color: var(--op-text-secondary); font-weight: 500; font-size: .74rem; font-variant-numeric: tabular-nums; }
.op-nm2-opt .op-nm2-tick { flex: none; width: 16px; height: 16px; color: var(--nm-accent); visibility: hidden; }
.op-nm2-opt[aria-selected="true"] .op-nm2-tick { visibility: visible; }
body .op-nm2-pop input.op-nm2-pop-q { flex: none; width: 100%; height: 38px; margin: 0 0 6px; padding: 0 12px !important; box-sizing: border-box;
  border-radius: 10px !important; border: 1px solid var(--op-border) !important; background: var(--op-bg) !important; color: var(--op-text-primary);
  font: 500 .88rem/1 var(--op-font-body, sans-serif); outline: 0; box-shadow: none !important; }
body .op-nm2-pop input.op-nm2-pop-q:focus { border-color: var(--nm-accent) !important; }
.op-nm2-pop-none { padding: 12px 10px; color: var(--op-text-secondary); font-size: .86rem; }

/* "N creators in this area" + note: right end of the toolbar on desktop, top of the bottom sheet on phones (moved by the script). */
/* Desktop: a pill over the top-left of the map (in the toolbar or above the list it pushed the cards below the map). */
.op-nm2-mapcol > .op-nm2-status { position: absolute; top: 26px; left: 12px; z-index: 5; max-width: calc(100% - 100px - var(--nm-pad)); padding: 9px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: #1a1a1f; box-shadow: 0 4px 14px rgba(0, 0, 0, .16); text-align: left; }
[data-op-theme="dark"] .op-nm2-mapcol > .op-nm2-status { background: rgba(22, 22, 28, .94); color: #f2f2f7; box-shadow: 0 4px 16px rgba(0, 0, 0, .45); }
.op-nm2-mapcol > .op-nm2-status .op-nm2-count { font-size: .92rem; white-space: nowrap; color: inherit; }
.op-nm2-mapcol > .op-nm2-status .op-nm2-note { margin: 3px 0 0; min-height: 0; font-size: .76rem; color: inherit; opacity: .78; }
.op-nm2-mapcol > .op-nm2-status .op-nm2-note:empty { display: none; }

/* ── Body: list + map ── */
.op-nm2-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 52%); }
.op-nm2-list { min-width: 0; padding: 14px 22px 30px var(--nm-pad); box-sizing: border-box; } /* top = the map's: cards and map start level */
/* Cards 3:4: never narrower than 190px and never more than 4 per row (wide screens / zoomed-out browsers
   get bigger cards, not more columns): 3 columns at 1440px, 4 from ~1900px. */
.op-nm2 .op-nm-grid.creators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 42px) / 4)), 1fr)); gap: 14px; margin: 0; }
.op-nm2 .op-nm-grid .category-creator-card { aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; isolation: isolate; }
/* The overlay had a 20px radius on a 16px card: the photo showed in the corners. */
.op-nm2 .op-nm-grid .category-creator-card .creator-card-overlay, .op-nm2 .op-nm-grid .category-creator-card .creator-card-image { border-radius: inherit; }
.op-nm2 .op-nm-grid .creator-card-info { padding: 12px; }
.op-nm2 .op-nm-grid .creator-card-name { font-size: .95rem; line-height: 1.2; }
@media (min-width: 1024px) { .op-nm2 .op-nm2-handle, .op-nm2 button.op-nm2-handle { display: none !important; } }
.op-nm2-handle { display: none; }
.op-nm2-head:empty { display: none; }
.op-nm2-count { margin: 0; font-weight: 700; color: var(--op-text-primary); }
.op-nm2-note { min-height: 1.2em; margin: 4px 0 12px; color: var(--op-text-secondary); font-size: .86rem; }
.op-nm2 .op-nm2-note button { display: inline; width: auto; height: auto; margin: 0; background: none !important; border: 0 !important; padding: 0 !important; color: #03aff0 !important;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-transform: none; box-shadow: none; }
.op-nm2 .op-nm-grid { transition: opacity .2s; }
.op-nm2 .op-nm-grid.is-loading { opacity: .5; }
.op-nm-grid *, .op-nm-grid *::before, .op-nm-grid *::after { box-sizing: border-box; }
/* The list is re-drawn on every map move: no entrance animation on re-used cards (it would flash), only on the
   cards added by "Show more". */
.op-nm2 .op-nm-grid .category-creator-card { opacity: 1; transform: none; animation: none; }
.op-nm2 .op-nm-grid .category-creator-card.is-new { animation: op-nm-in .35s ease-out both; }
@keyframes op-nm-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .op-nm2 .op-nm-grid .category-creator-card.is-new { animation: none; } }
.op-nm2-count.is-busy::before { content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid var(--op-border); border-top-color: #03aff0; animation: op-nm-spin .8s linear infinite; }
@keyframes op-nm-spin { to { transform: rotate(360deg); } }

/* Empty area: message + ways out, then up to 2 trending cards. */
.op-nm-empty { grid-column: 1 / -1; padding: 26px 16px; text-align: center; color: var(--op-text-secondary); border: 1px dashed var(--op-border); border-radius: 16px; }
.op-nm-empty p { margin: 0 0 14px; font-weight: 600; color: var(--op-text-primary); }
.op-nm-empty-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.op-nm2 .op-nm-empty .op-nm2-btn { height: 40px; padding: 0 16px !important; border-radius: 999px !important; border: 1px solid var(--op-border) !important;
  background: var(--op-bg-secondary) !important; color: var(--op-text-primary) !important; font: 600 .86rem/1 var(--op-font-body, sans-serif); text-transform: none; }
.op-nm2 .op-nm-empty .op-nm2-btn:hover { border-color: #03aff0 !important; }
.op-nm-trendh { grid-column: 1 / -1; margin: 10px 0 -4px; font: 700 .78rem/1 var(--op-font-body, sans-serif); text-transform: uppercase; letter-spacing: .06em; color: var(--op-text-secondary); }

/* ── Sponsored cards ──
   Our promotions: the category grid's sponsored card ("TRENDING" + OnlyFans button to the tracked link).
   OnlyTraffic CPC: native category card with the "HOT" badge, in a .op-cpc-wrap (OP Stats: cpc_nearme)
   that does not create a box of its own. */
.op-nm-card--cta { container-type: inline-size; }
/* Same light sweep as the category's sponsored cards, but moved with transform: the category version animates
   `left`, which the browser counts as layout shift (CLS) for as long as the card is on screen. */
.op-nm2 .op-nm-grid .category-creator-card.premium::after { left: 0; transform: translateX(-200%); animation: op-nm-sweep 5s ease-in-out infinite; }
@keyframes op-nm-sweep { 0% { transform: translateX(-200%); opacity: 0; } 8% { opacity: 1; } 48% { transform: translateX(300%); opacity: 1; } 50%, 100% { transform: translateX(300%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .op-nm2 .op-nm-grid .category-creator-card.premium::after { animation: none; display: none; } }
.op-nm-card--cta .op-nm-of { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4; width: auto; margin: 0; padding: 10px 8px; font-size: .78rem; gap: 6px; }
/* Narrow cards: the text matters more than the logo. */
@container (max-width: 230px) { .op-nm2 .op-nm-card--cta .op-nm-of .cat-of-btn-icon { display: none; } .op-nm2 .op-nm-card--cta .op-nm-of { font-size: .74rem; padding: 10px 4px; } }
.op-nm2 .op-nm-grid .op-nm-card--cta .creator-card-info { bottom: 56px; }
.op-nm-cpc, .op-nm-cpcslot { display: contents; }
.op-nm2 .op-nm-grid .cat-hot-card .creator-card-info { left: 12px; right: 12px; bottom: 12px; }
.op-nm2 .op-nm-grid .cat-hot-card .creator-card-name { font-size: 1.05rem; }
.op-nm2 .op-nm-grid .cat-hot-card .cat-of-btn { margin-top: 8px; padding: 9px 10px; font-size: .82rem; }
.op-nm-skel { display: block; border-radius: 16px; background: linear-gradient(100deg, rgba(130,130,150,.14) 30%, rgba(130,130,150,.26) 50%, rgba(130,130,150,.14) 70%) 0 0 / 300% 100%;
  animation: op-nm-shim 1.3s linear infinite; }
@keyframes op-nm-shim { from { background-position: 100% 0; } to { background-position: 0 0; } }
.op-nm2-morewrap { text-align: center; margin: 18px 0 0; }
.op-nm2 button.op-nm2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 44px; margin: 0; padding: 0 22px !important;
  border-radius: 999px !important; border: 1px solid var(--op-border) !important; background: var(--op-bg-secondary) !important; color: var(--op-text-primary) !important;
  font: 600 .92rem/1 var(--op-font-body, sans-serif); text-transform: none !important; letter-spacing: 0; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.op-nm2 button.op-nm2-btn:hover { border-color: #03aff0 !important; }
.op-nm2 button.op-nm2-btn[hidden] { display: none; }

.op-nm2-mapcol { position: sticky; top: calc(var(--op-header-h, 64px) + var(--nm-bar-h)); align-self: start;
  height: var(--nm-map-h, calc(100vh - var(--op-header-h, 64px) - var(--nm-bar-h))); padding: 14px var(--nm-pad) 18px 0; box-sizing: border-box; }
.op-nm2-map { position: relative; width: 100%; height: 100%; border-radius: 20px; overflow: hidden; background: #e3eef5;
  border: 1px solid var(--op-border); box-shadow: 0 12px 34px rgba(16, 24, 40, .1); box-sizing: border-box; }
[data-op-theme="dark"] .op-nm2-map { background: #14171d; box-shadow: 0 12px 34px rgba(0, 0, 0, .4); }
.op-nm2-skel { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent) -200% 0 / 200% 100% no-repeat;
  animation: op-nm-skel 1.4s linear infinite; }
@keyframes op-nm-skel { to { background-position: 200% 0; } }
.op-nm2-map.is-ready .op-nm2-skel, .op-nm2-map.is-off .op-nm2-skel { display: none; }
.op-nm2 button.op-nm2-unknown { position: absolute; left: 50%; bottom: 50px; transform: translateX(-50%); z-index: 5; width: auto; height: auto; margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 14px !important; border: 0 !important; border-radius: 999px !important; background: rgba(255, 255, 255, .96) !important; color: #222 !important;
  font: 600 .78rem/1 var(--op-font-body, sans-serif); text-transform: none; letter-spacing: 0; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); white-space: nowrap; cursor: pointer; }
.op-nm2 button.op-nm2-unknown:hover .op-nm2-q { background: #03aff0; }
.op-nm2-q { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #9aa3ad; color: #fff; font-size: .72rem; font-weight: 800; }

/* Card highlight (list ↔ map) */
.op-nm-card { transition: transform .15s, box-shadow .15s; }
.op-nm-card.is-hot { box-shadow: 0 0 0 3px #03aff0; transform: translateY(-2px); }

/* Cards (native category card + place pill) */
.op-nm-card { display: block; text-decoration: none; color: #fff; }
.op-nm-card .op-card-link { position: absolute; inset: 0; z-index: 1; display: block; color: inherit; text-decoration: none; border-radius: inherit; }
.op-nm-card .op-card-link:focus-visible { outline: 3px solid #03aff0; outline-offset: -3px; }
.op-nm-card .creator-card-name { color: #fff; font-weight: 700; font-size: 1.02rem; }
.op-nm-card .creator-card-username span { color: rgba(255, 255, 255, .92); }
.op-nm-place { position: absolute; left: 10px; top: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; max-width: calc(100% - 90px);
  padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(6px); }
.op-nm-likes { color: rgba(255, 255, 255, .9); font-size: .78rem; font-weight: 600; margin-top: 2px; }

/* ── Map markers ── */
.op-nm-mk { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 60px; margin: 0; padding: 4px 4px 3px !important; border: 0 !important; border-radius: 12px !important; text-transform: none !important; letter-spacing: 0;
  background: #fff !important; box-shadow: 0 4px 14px rgba(0, 0, 0, .28); cursor: pointer; transition: transform .15s, background .15s; }
.op-nm-mk img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; display: block; background: #ddd; }
.op-nm-mk span { max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111; font: 700 10px/1.2 var(--op-font-body, sans-serif); }
.op-nm-mk { position: relative; }
.op-nm-mk b { position: absolute; top: -10px; right: -10px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #fff; background: #0b0b0f; color: #fff; font: 800 11px/1 var(--op-font-body, sans-serif); letter-spacing: -.02em; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.op-nm-mk b.op-nm-n3 { width: 30px; height: 30px; top: -13px; right: -13px; font-size: 11px; } /* always a circle, sized by the digits */
.op-nm-mk b.op-nm-n4 { width: 34px; height: 34px; top: -15px; right: -15px; font-size: 10.5px; }
.op-nm2 .maplibregl-ctrl button { padding: 0 !important; border-radius: 0; text-transform: none; box-shadow: none; }
.op-nm2 .maplibregl-ctrl-group button + button { border-top: 1px solid #ddd !important; }
.op-nm-mk:hover, .op-nm-mk.is-hot { background: #03aff0 !important; transform: scale(1.12); }
.op-nm-mk:hover span, .op-nm-mk.is-hot span { color: #fff; }
.maplibregl-marker:has(.op-nm-mk b) { z-index: 2; }
.maplibregl-marker:has(.op-nm-mk.is-hot) { z-index: 3; }
.op-nm-cl { display: grid; place-items: center; box-sizing: border-box; margin: 0; padding: 0 !important; min-width: 0 !important; min-height: 0 !important; aspect-ratio: 1 / 1; line-height: 1 !important; border-radius: 999px !important; border: 2px solid #fff !important; background: #0b0b0f !important;
  color: #fff !important; font: 800 14px/1 var(--op-font-body, sans-serif); letter-spacing: -.01em; text-transform: none !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); cursor: pointer;
  transition: transform .12s, background-color .12s; }
.op-nm-cl:hover { background: #03aff0 !important; transform: scale(1.08); }
.op-nm-cl:focus-visible, .op-nm-mk:focus-visible { outline: 3px solid #03aff0; outline-offset: 2px; }

/* Popup */
.op-nm2 .maplibregl-popup-content { padding: 12px; border-radius: 16px; background: var(--op-bg-secondary); color: var(--op-text-primary); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.op-nm2 .maplibregl-popup-tip { border-top-color: var(--op-bg-secondary) !important; border-bottom-color: var(--op-bg-secondary) !important; }
.op-nm2 .maplibregl-popup-close-button { width: 26px; height: 26px; font-size: 18px; color: var(--op-text-secondary); border-radius: 50%; }
.op-nm-pop { display: flex; gap: 14px; width: 330px; max-width: calc(100vw - 60px); }
.op-nm-pop img { width: 128px; height: 170px; border-radius: 12px; object-fit: cover; flex: none; background: #ddd; }
.op-nm-pop div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 2px 16px 0 0; }
.op-nm-pop strong { font-size: 1.12rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.op-nm-pop small { color: var(--op-text-secondary); font-size: .82rem; }
.op-nm-pop .op-nm-pop-meta { font-size: .9rem; font-weight: 700; }
.op-nm-pop .op-nm-pop-place { display: flex; align-items: center; gap: 4px; }
.op-nm-pop .op-nm-pop-place svg { flex: none; width: 13px; height: 13px; color: #03aff0; }
.op-nm-pop a.op-nm-pop-btn { margin-top: auto; display: block; padding: 11px 12px; border-radius: 12px; background: #03aff0;
  color: #fff !important; font-weight: 700; font-size: .88rem; text-align: center; text-decoration: none; }
.op-nm-pop a.op-nm-pop-btn:hover { background: #0a95d6; }

/* ── Below the app: cities / states / countries / FAQ ── */
.op-nm-about { background: var(--op-bg); border-top: 1px solid var(--op-border); }
.op-nm-inner { max-width: var(--op-content-max, 1640px); margin: 0 auto; padding: 18px var(--nm-pad) 60px; box-sizing: border-box; }
.op-nm-lead { max-width: 760px; margin: 6px 0 4px; color: var(--op-text-secondary); font-size: .98rem; line-height: 1.55; }
.op-nm-block { margin: 34px 0 0; }
.op-nm-block h2 { font-size: 1.3rem; margin: 0 0 12px; }
.op-nm-grid3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); column-gap: 28px; }
.op-nm-grid3 li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--op-border); margin: 0; }
.op-nm-grid3 li a, .op-nm-grid3 li button { color: var(--op-text-primary); font: 600 .92rem/1.3 var(--op-font-body, sans-serif); text-decoration: none; background: none; border: 0;
  padding: 0; cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-nm-grid3 li a:hover, .op-nm-grid3 li button:hover { color: #0a95d6; text-decoration: underline; text-underline-offset: 3px; }
[data-op-theme="dark"] .op-nm-grid3 li a:hover, [data-op-theme="dark"] .op-nm-grid3 li button:hover { color: #7fd3f7; }
.op-nm-grid3 li span { flex: none; color: #0a7fb8; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; }
[data-op-theme="dark"] .op-nm-grid3 li span { color: #7fd3f7; } /* numbers in the hover blue, names in the text colour (13/11) */
.op-nm-block, .op-nm-how { scroll-margin-top: calc(var(--op-header-h, 64px) + 16px); }
.op-nm-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: nmstep; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.op-nm-steps li { counter-increment: nmstep; position: relative; margin: 0; padding: 14px 14px 14px 52px; border-radius: 14px; border: 1px solid var(--op-border); background: var(--op-bg-secondary);
  line-height: 1.45; font-size: .92rem; }
.op-nm-steps li::before { content: counter(nmstep); position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #03aff0; color: #fff; font-weight: 800; font-size: .85rem; }

/* "Locations on OnlyPedia" dialog */
.op-nm-info { width: min(440px, calc(100vw - 32px)); max-height: calc(100svh - 40px); margin: auto; padding: 0; border: 0; border-radius: 20px; background: var(--op-bg-secondary, #fff);
  color: var(--op-text-primary); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.op-nm-info::backdrop { background: rgba(10, 12, 16, .5); backdrop-filter: blur(2px); }
.op-nm-info form { position: relative; padding: 26px 24px 22px; text-align: center; }
.op-nm-info h2 { margin: 10px 0 12px; font-size: 1.2rem; }
.op-nm-info p { margin: 0 0 12px; color: var(--op-text-secondary); font-size: .9rem; line-height: 1.55; }
.op-nm-info-ico { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: rgba(3, 175, 240, .12); color: #03aff0; }
.op-nm-info button.op-nm-info-ok { display: block; width: 100%; margin: 16px 0 0; padding: 13px !important; border: 0 !important; border-radius: 999px !important; background: #03aff0 !important;
  color: #fff !important; font: 700 .95rem/1 var(--op-font-body, sans-serif); text-transform: none; cursor: pointer; }
.op-nm-info button.op-nm-info-ok:hover { background: #0a95d6 !important; }
.op-nm-info button.op-nm-info-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; margin: 0; padding: 0 !important; border: 0 !important;
  border-radius: 50% !important; background: none !important; color: var(--op-text-secondary) !important; cursor: pointer; }
.op-nm-info button.op-nm-info-x:hover { background: rgba(120, 130, 145, .14) !important; }

.op-nm-faq details { border: 1px solid var(--op-border); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; background: var(--op-bg-secondary); }
.op-nm-faq summary { cursor: pointer; font-weight: 700; }
.op-nm-faq p { margin: 10px 0 0; color: var(--op-text-secondary); line-height: 1.55; }
.op-nm-more-links { margin: 16px 0 0; }
.op-nm-more-links a { color: var(--op-text-primary); text-decoration: underline; text-underline-offset: 3px; }
.op-nm-more-links a:hover { color: #0a95d6; }

/* ── Narrow desktops: the locate button keeps only its icon ── */
@media (max-width: 1280px) {
  .op-nm2 button.op-nm2-locate { padding: 0 !important; width: 46px; justify-content: center; }
  .op-nm2 button.op-nm2-locate span { display: none; }
}

/* ── Phones / tablets: full-screen map + bottom sheet ── */
@media (max-width: 1023px) {
  /* Title row: one line, like an app title (the lead and the jump links are below the app, in the page). */
  .op-nm2-top { padding: 10px 16px 0; gap: 0; }
  .op-nm2-top h1 { font-size: 1.05rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .op-nm2-lead, .op-nm2-jump { display: none; }
  .op-nm2-bar { padding: 8px 16px; gap: 8px; }
  .op-nm2-search { flex: 1 1 100%; max-width: none; height: 44px; }
  .op-nm2-chips { flex: 1 1 100%; margin: 0 -16px; padding: 2px 16px; }
  .op-nm2 button.op-nm2-chip { height: 36px; font-size: .8rem; padding: 0 10px 0 12px !important; gap: 6px; }
  .op-nm2 button.op-nm2-clear { height: 36px; font-size: .8rem; }
  .op-nm2 button.op-nm2-locate { padding: 0 !important; width: 44px; justify-content: center; }
  .op-nm2 button.op-nm2-locate span { display: none; }
  .op-nm2-pop { width: min(300px, calc(100vw - 24px)); }
  .op-nm2-body { display: block; position: relative; height: calc(100svh - var(--op-header-h, 56px) - var(--nm-top-h, 0px) - var(--nm-bar-h) - var(--op-tabbar-h, 68px)); min-height: 420px; overflow: hidden; }
  .op-nm2-mapcol { position: absolute; inset: 0; height: auto; padding: 0; align-self: stretch; }
  .op-nm2-map { border-radius: 0; }
  .op-nm2 button.op-nm2-unknown { top: 8px; bottom: auto; padding: 6px 8px 6px 11px !important; font-size: .7rem; gap: 6px; }
  /* The list starts HALF open (the first creators are visible at once); peek = map, full = list. */
  .op-nm2-list { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; height: 96px; padding: 0 12px 20px; overflow: hidden;
    background: var(--op-bg); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 26px rgba(0, 0, 0, .2); transition: height .28s ease; overscroll-behavior: contain; }
  .op-nm2[data-sheet="half"] .op-nm2-list { height: 54%; overflow-y: auto; }
  .op-nm2[data-sheet="full"] .op-nm2-list { height: calc(100% - 8px); overflow-y: auto; }
  .op-nm2[data-sheet="peek"] .op-nm2-note { display: none; }
  .op-nm2-list.is-dragging { transition: none; }
  .op-nm2 button.op-nm2-handle { display: block; position: sticky; top: 0; z-index: 4; width: calc(100% + 24px); margin: 0 -12px; height: 30px; border: 0 !important; padding: 0 !important;
    background: var(--op-bg) !important; border-radius: 20px 20px 0 0 !important; cursor: grab; touch-action: none; }
  .op-nm2-handle span { display: block; width: 44px; height: 5px; margin: 12px auto 0; border-radius: 3px; background: #b9c0c8; }
  .op-nm2-handle:focus-visible { outline: 2px solid #03aff0; outline-offset: -4px; }
  .op-nm2-head { text-align: center; touch-action: none; padding: 0 0 8px; }
  .op-nm2-head .op-nm2-status { margin: 0; text-align: center; }
  .op-nm2-count { font-size: 1.02rem; }
  .op-nm2-note { font-size: .8rem; margin: 2px 0 2px; }
  .op-nm2-note:empty { display: none; }
  .op-nm-pop { width: 280px; gap: 12px; }
  .op-nm-pop img { width: 104px; height: 140px; }
  .op-nm-card--cta .op-nm-of { left: 8px; right: 8px; bottom: 8px; padding: 9px 8px; font-size: .76rem; }
  .op-nm2 .op-nm-grid .op-nm-card--cta .creator-card-info { bottom: 48px; }
  .op-nm2 .op-nm-grid.creators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .op-nm-mk { width: 52px; }
  .op-nm-mk img { width: 44px; height: 44px; }
  .op-nm-mk span { max-width: 46px; }
  .op-nm2 .maplibregl-ctrl-top-right { top: 44px; }
}
