/* SJ: dark theme. Map the SIF colour names used below onto SJ's own variables. */
.dir, .fd { --pink: var(--accent); --pink-ink: var(--accent); }
.chip[aria-pressed="true"], .dir-view .on, .fd-cta a, .st-go { color: #111 !important; }
.chip[aria-pressed="true"] small { color: #333 !important; }
.biz, .fd-item, .dir-q, .fd-q, .dir-near, .dir-view button, .fd-more { background: var(--panel); color: var(--text); }
.chip, .biz-links a, .biz-chips span, .pills a { color: var(--text); }
.biz-links a, .biz-type { color: var(--accent); }

/* Directory pages (boutiques / jewellery stores): list + map. Uses the site's own colour variables. */
.dir { padding: 8px 0 32px; }
.dir-head h1 { margin: 6px 0 6px; }
.dir-intro { color: var(--text); max-width: 760px; margin: 0 0 14px; line-height: 1.6; }
.dir-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.dir-q { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.dir-q:focus { outline: 2px solid var(--pink); border-color: transparent; }
.dir-near, .dir-view button { padding: 9px 12px; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; font: inherit; cursor: pointer; }
.dir-near:hover, .dir-view button:hover { border-color: var(--pink); }
.dir-check { font-size: 14px; color: var(--text); display: flex; gap: 6px; align-items: center; }
.dir-view { display: none; }
.dir-view .on { background: var(--pink-ink); color: #fff; border-color: var(--pink-ink); }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dir-label { font-size: 13px; color: var(--muted); align-self: center; margin-right: 2px; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font: 13px var(--sans); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
.dir-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.dir-map { position: sticky; top: 12px; }
.dir-map-inner { height: calc(100vh - 40px); max-height: 760px; min-height: 420px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.dir-count { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.dir-count .n { color: var(--ink); font-weight: 700; }
.biz { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; background: var(--bg); transition: box-shadow .2s; }
.biz[hidden] { display: none; }
.biz.flash, .biz:target { box-shadow: 0 0 0 3px var(--pink); }
.biz h3 { margin: 0 0 4px; font: 600 17px var(--serif); color: var(--ink); }
.biz h3 a { color: inherit; text-decoration: none; }
.biz-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.biz-type { text-transform: capitalize; color: var(--pink-ink); font-weight: 600; }
.biz-about { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.biz-chips { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.biz-chips span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.biz-addr { font-size: 13px; color: var(--text); margin: 0 0 8px; }
.biz-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.biz-links a { font-size: 13px; padding: 5px 10px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); color: var(--pink-ink); text-decoration: none; font-weight: 600; }
.biz-links a:hover { border-color: var(--pink-ink); }
.dir-places h2 { font: 600 18px var(--serif); margin: 18px 0 8px; color: var(--ink); }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 14px; }
.pills a:hover { border-color: var(--pink-ink); color: var(--pink-ink); }
.pills small { color: var(--muted); margin-left: 3px; }
.dir-more { color: var(--muted); font-size: 14px; }
.dir-note { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 820px; line-height: 1.6; }
.maplibregl-popup-content { font: 13px var(--sans); }
@media (max-width: 899px) {
  .dir-view { display: flex; gap: 0; }
  .dir-view button { border-radius: 0; }
  .dir-view button:first-child { border-radius: 8px 0 0 8px; }
  .dir-view button:last-child { border-radius: 0 8px 8px 0; }
  .dir-body { grid-template-columns: 1fr; }
  .dir-map { display: none; position: static; }
  .dir.show-map .dir-map { display: block; }
  .dir.show-map .dir-list { display: none; }
  .dir-map-inner { height: 70vh; min-height: 360px; }
}
/* interactive map extras */
.dir-map { position: sticky; }
.dir-mapbar { position: absolute; left: 10px; bottom: 30px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 12px var(--sans); color: #333; max-width: 260px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.dir-legend { display: flex; align-items: center; gap: 3px; }
.dir-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.dir-legend span { margin: 0 4px; color: #666; }
.dir-hint { margin: 5px 0 6px; color: #555; line-height: 1.35; }
.dir-heat { padding: 4px 9px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font: 600 12px var(--sans); }
.dir-heat[aria-pressed="true"] { background: #a3173a; color: #fff; border-color: #a3173a; }
.dir-place { margin: 0 0 10px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.dir-place-x { margin-left: 8px; border: 0; background: none; color: var(--pink-ink); cursor: pointer; font: 600 13px var(--sans); }
/* v2: sub-page structure */
.dir-stats { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.dir-stats li { padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.dir-stats b { font-size: 17px; color: var(--pink-ink); margin-right: 3px; }
.dir-sub { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.dir-sub a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 13.5px; background: var(--bg); }
.dir-sub a:hover { border-color: var(--pink-ink); color: var(--pink-ink); }
.dir-sub small, .dir-country small { color: var(--muted); }
.dir-reset { padding: 9px 12px; border: 0; background: none; color: var(--pink-ink); font: 600 14px var(--sans); cursor: pointer; }
.dir-world { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 18px; }
.dir-country h3 { margin: 6px 0 6px; font: 600 15px var(--serif); }
.dir-country h3 a { color: var(--ink); text-decoration: none; }
.dir-country h3 a:hover { color: var(--pink-ink); }
.pills.small a { font-size: 12.5px; padding: 3px 9px; }
.biz-ok { color: #2e7d32; font-weight: 600; }
.dir-more-links h2, .dir-faq h2 { font: 600 19px var(--serif); margin: 26px 0 10px; color: var(--ink); }
.dir-posts { margin: 0; padding-left: 18px; line-height: 1.8; }
.dir-faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.dir-faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.dir-faq p { margin: 8px 0 0; color: var(--text); line-height: 1.6; }
/* SJ: dark theme. Map the SIF colour names used below onto SJ's own variables. */
.dir, .fd { --pink: var(--accent); --pink-ink: var(--accent); }
.chip[aria-pressed="true"], .dir-view .on, .fd-cta a, .st-go { color: #111 !important; }
.chip[aria-pressed="true"] small { color: #333 !important; }
.biz, .fd-item, .dir-q, .fd-q, .dir-near, .dir-view button, .fd-more { background: var(--panel); color: var(--text); }
.chip, .biz-links a, .biz-chips span, .pills a { color: var(--text); }
.biz-links a, .biz-type { color: var(--accent); }

/* Map on top at full width (Div, 6 Nov 2026), the list below it. Phones keep the List / Map toggle. */
@media (min-width: 900px) {
  .dir-body { display: flex; flex-direction: column; gap: 18px; }
  .dir-map, .dir .dir-map { order: -1; position: static; width: 100%; }
  .dir-map-inner { height: 62vh; min-height: 460px; max-height: 640px; }
  .dir-list { width: 100%; }
}
/* Listing cards v3 (Div, 6 Nov 2026): big coloured name, two cards a row on desktop, less grey text. */
.dir-results { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .dir-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dir-results .dir-empty, .dir-results > p { grid-column: 1 / -1; }
.biz { margin: 0; display: flex; flex-direction: column; border-left: 4px solid var(--pink-ink); padding: 16px 18px 14px; }
.biz h3 { font: 700 21px/1.25 var(--serif); color: var(--pink-ink); margin: 0 0 8px; }
.biz h3 a { color: var(--pink-ink); }
.biz h3 a:hover { text-decoration: underline; }
.biz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.biz-type { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--pink-ink) 12%, transparent); font-size: 12px; letter-spacing: .02em; }
.biz-ok { display: inline-block; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, #2e7d32 13%, transparent); color: #2e7d32; font-size: 12px; }
.biz-about { font-size: 14px; }
.biz-chips span { font-size: 11.5px; padding: 1px 8px; color: var(--muted); }
.biz-addr { font-size: 13px; color: var(--muted); }
.biz-addr::before { content: "📍 "; }
.biz-links { margin-top: auto; padding-top: 4px; }
.biz-links a:first-child { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff; }
/* Place cards on the hub (Div, 6 Nov 2026): one card per state or country, cities as a neat list with counts. */
.pc-sec { display: flex; align-items: baseline; gap: 8px; margin: 26px 0 12px; font: 600 22px var(--serif); color: var(--ink); }
.pc-sec small { font: 600 13px var(--sans); color: var(--muted); }
.pc-grid { columns: 4 230px; column-gap: 14px; }
.pc { break-inside: avoid; display: inline-block; width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 12px 14px 10px;
  border: 1px solid var(--line); border-top: 3px solid var(--pink-ink); border-radius: 12px; background: var(--bg); }
.pc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 6px; font: 700 16px var(--serif); }
.pc-h a { color: var(--pink-ink); text-decoration: none; }
.pc-h a:hover { text-decoration: underline; }
.pc-n { flex: none; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pink-ink) 11%, transparent); color: var(--pink-ink); font: 700 12px var(--sans); }
.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li + li { border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
.pc-list a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 2px; color: var(--ink); text-decoration: none; font-size: 14px; }
.pc-list a:hover span { color: var(--pink-ink); text-decoration: underline; }
.pc-list small { color: var(--muted); font-size: 12.5px; }
.pc-one { margin: 2px 0 4px; font-size: 14px; }
.pc-one a { color: var(--pink-ink); text-decoration: none; font-weight: 600; }
/* dark theme: the green "checked" badge needs a lighter green to read */
.biz-ok { color: #7bd389; background: rgba(123, 211, 137, .14); }
/* Hub places v2 (Div, 6 Nov 2026): region tabs, filter chips, a bento grid of city tiles tinted by how many listings. */
.px { margin-top: 18px; }
.px-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 14px; max-width: 100%; overflow-x: auto; }
.px:not(.px-js) .px-tabs { display: none; }
.px-tab { flex: none; padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.px-tab span { margin-left: 4px; font-weight: 500; opacity: .6; font-size: 13px; }
.px-tab[aria-selected="true"] { background: var(--pink-ink); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--pink-ink) 35%, transparent); }
.px-tab[aria-selected="true"] span { opacity: .85; }
.px-js .px-panel[data-off] { display: none; }
.px-js .px-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.px-h { font: 600 20px var(--serif); margin: 18px 0 8px; }
.px-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: thin; }
.px-chip { flex: none; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 13.5px var(--sans); cursor: pointer; white-space: nowrap; }
.px-chip span { color: var(--muted); font-size: 12px; margin-left: 2px; }
.px-chip:hover { border-color: var(--pink-ink); }
.px-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.px-chip[aria-pressed="true"] span { color: inherit; opacity: .7; }
.px-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 92px; grid-auto-flow: dense; gap: 10px; }
.px-tile[hidden] { display: none; }
.px-tile a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--pink-ink) calc(var(--h) * 30%), var(--bg)); border: 1px solid color-mix(in srgb, var(--pink-ink) calc(var(--h) * 35%), var(--line));
  transition: transform .15s, box-shadow .15s; }
.px-tile a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.px-n { position: absolute; top: 10px; right: 12px; font: 800 22px/1 var(--sans); color: var(--pink-ink); letter-spacing: -.02em; }
.px-name { font: 700 15.5px/1.2 var(--sans); }
.px-sub { margin-top: 2px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the two biggest cities in each region get large hero tiles */
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) { grid-column: span 2; grid-row: span 2; }
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) a { color: #fff; border: 0; padding: 18px 20px;
  background: linear-gradient(135deg, var(--pink-ink), color-mix(in srgb, var(--pink-ink) 55%, #1b1030)); }
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-n { top: 16px; right: 18px; font-size: 40px; color: #fff; opacity: .95; }
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-name { font-size: 24px; }
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-sub { color: rgba(255,255,255,.8); font-size: 13px; }
.px-all a { background: none; border: 1.5px dashed var(--pink-ink); color: var(--pink-ink); }
@media (max-width: 600px) {
  .px-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 84px; }
  .px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) { grid-row: span 1; }
  .px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-n { font-size: 28px; }
  .px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-name { font-size: 18px; }
}
.px-name { overflow-wrap: anywhere; }
/* SJ's accent is gold: dark text reads better on the big tiles */
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) a, .px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-n { color: #1b1608; }
.px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-sub { color: rgba(27,22,8,.7); }
.px-tab[aria-selected="true"] { color: #1b1608; }
/* the number sits on its own row, so long names never run into it */
.px-tile a { justify-content: space-between; }
.px-n, .px-panel:not(.px-filtered) .px-tile:nth-child(-n+2) .px-n { position: static; align-self: flex-end; }
.px-tile a > .px-name { margin-top: auto; }
/* P1 (Div's pick, 6 Nov 2026): the hub's places as a ranked list with bars */
.px-rank { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); grid-auto-rows: auto; gap: 2px 28px; }
.px-rank .px-tile, .px-panel:not(.px-filtered) .px-rank .px-tile:nth-child(-n+2) { grid-column: auto; grid-row: auto; }
.px-rank .px-tile a, .px-panel:not(.px-filtered) .px-rank .px-tile:nth-child(-n+2) a {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; column-gap: 10px; height: auto; padding: 10px 12px;
  border: 0; border-radius: 12px; background: none; color: var(--ink); box-shadow: none; transform: none; }
.px-rank .px-tile a:hover { background: color-mix(in srgb, var(--pink-ink) 7%, transparent); transform: none; box-shadow: none; }
.px-r { font: 800 13px var(--sans); color: var(--pink); }
.px-rank .px-name, .px-panel:not(.px-filtered) .px-rank .px-tile:nth-child(-n+2) .px-name { margin: 0; font: 700 15px/1.3 var(--sans); color: var(--ink); }
.px-rank .px-name small { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--muted); }
.px-rank .px-n, .px-panel:not(.px-filtered) .px-rank .px-tile:nth-child(-n+2) .px-n { position: static; align-self: center; font: 800 16px var(--sans); color: var(--pink-ink); opacity: 1; }
.px-bar { grid-column: 2 / 4; height: 6px; margin-top: 6px; border-radius: 9px; overflow: hidden; background: color-mix(in srgb, var(--pink-ink) 12%, transparent); }
.px-bar i { display: block; width: var(--w); height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--pink), var(--pink-ink)); }
.px-filtered .px-r { visibility: hidden; }
.px-rank .px-all a { grid-template-columns: 1fr; border: 1.5px dashed var(--pink-ink); color: var(--pink-ink); }
.px-rank .px-all .px-name { color: var(--pink-ink); }
/* L3 (Div's pick): minimal listing cards with round icon buttons */
.biz { border: 0; border-top: 4px solid var(--pink-ink); border-radius: 16px; padding: 18px 18px 14px; background: var(--bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.05); }
.biz-type { display: block; padding: 0; background: none; border-radius: 0; font: 800 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.biz h3 { margin: 6px 0 4px; font: 700 19px/1.25 var(--serif); color: var(--ink); }
.biz h3 a { color: var(--ink); }
.biz-meta { display: block; margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.biz-about { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.biz-chips span { border: 0; background: color-mix(in srgb, var(--pink-ink) 9%, transparent); color: var(--ink); font-size: 12px; padding: 3px 9px; }
.biz-addr { font-size: 12.5px; }
.biz-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.biz-links a.ic, .biz-links a.ic:first-child { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--pink-ink) 10%, transparent); color: var(--pink-ink); }
.biz-links a.ic svg { width: 18px; height: 18px; fill: currentColor; }
.biz-links a.ic:hover { background: var(--pink-ink); color: #fff; }
.biz-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 0; background: none; color: var(--pink-ink); font: 700 12px var(--sans); }
.biz-ok::before { content: "✓"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--pink-ink); color: #fff; font-size: 10px; }
.biz-links a.ic:hover, .biz-ok::before { color: #1b1608; }
.dir-reset:disabled { color: var(--muted); opacity: .45; cursor: default; }
