/* Walletii map element: web styles. Scoped under .pm-root so it can be dropped into a Webflow page. */
.pm-root {
  --pm-bg: #ffffff;
  --pm-fg: #1b1b1f;
  --pm-muted: #5f6368;
  --pm-line: #e3e3e8;
  --pm-accent: #e30613;
  --pm-accent-fg: #ffffff;
  --pm-chip: #f1f3f4;
  --pm-chip-on: #1b1b1f;
  --pm-open: #188038;
  --pm-closed: #d93025;
  --pm-radius: 12px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--pm-fg);
  background: var(--pm-bg);
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-radius);
  display: grid;
  grid-template-rows: auto auto 1fr;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}
.pm-root[dir="rtl"] { direction: rtl; }
.pm-root *, .pm-root *::before, .pm-root *::after { box-sizing: border-box; }
.pm-root button { font: inherit; cursor: pointer; }

/* header */
.pm-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--pm-line); }
.pm-title { font-size: 18px; font-weight: bold; margin: 0; }
.pm-count { color: var(--pm-muted); font-size: 13px; }
.pm-toggle { display: inline-flex; border: 1px solid var(--pm-line); border-radius: 999px; overflow: hidden; }
.pm-toggle button { border: 0; background: transparent; padding: 6px 14px; color: var(--pm-muted); }
.pm-toggle button[aria-pressed="true"] { background: var(--pm-chip-on); color: #fff; }

/* filters */
.pm-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--pm-line); }
.pm-search { flex: 1 1 200px; min-width: 160px; padding: 8px 12px; border: 1px solid var(--pm-line); border-radius: 999px; font: inherit; }
.pm-chip { border: 1px solid var(--pm-line); background: var(--pm-chip); border-radius: 999px; padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pm-chip[aria-pressed="true"] { background: var(--pm-chip-on); color: #fff; border-color: var(--pm-chip-on); }
.pm-chiprows { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.pm-chiprow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pm-ds-colon { color: var(--pm-muted); margin-inline-start: -4px; }
.pm-chip:disabled { opacity: .45; cursor: default; }
.pm-chip .pm-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pm-clear { border: 0; background: transparent; color: var(--pm-accent); font-size: 13px; }

/* body */
.pm-body { position: relative; min-height: 0; display: grid; grid-template-columns: 1fr; }
.pm-body.pm-has-details { grid-template-columns: 1fr 360px; }
.pm-view { position: relative; min-height: 0; }
.pm-map { position: absolute; inset: 0; direction: ltr; } /* Google Maps renders tiles wrongly inside RTL containers */
.pm-list { position: absolute; inset: 0; overflow: auto; padding: 8px 0; }
.pm-hidden { display: none !important; }

/* list */
.pm-group { padding: 10px 16px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pm-muted); position: sticky; top: 0; background: var(--pm-bg); }
.pm-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; width: 100%; text-align: start; border: 0; border-bottom: 1px solid var(--pm-line); background: transparent; padding: 12px 16px; color: inherit; }
.pm-item:hover, .pm-item[aria-current="true"] { background: #f7f7f9; }
.pm-item-name { font-weight: bold; }
.pm-item-sub { color: var(--pm-muted); font-size: 13px; grid-column: 1; }
.pm-item-dist { color: var(--pm-muted); font-size: 13px; white-space: nowrap; }
.pm-badge { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; color: #fff; }
.pm-badge.pm-open { background: var(--pm-open); }
.pm-badge.pm-closed { background: var(--pm-closed); }
.pm-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.pm-tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; color: #fff; }
.pm-tag-ds { background: transparent; border: 1px solid currentColor; padding: 0 7px; }

/* details panel */
.pm-details { border-inline-start: 1px solid var(--pm-line); overflow: auto; padding: 16px; position: relative; }
.pm-close { position: absolute; top: 8px; inset-inline-end: 8px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: var(--pm-muted); }
.pm-details h3 { margin: 0 28px 4px 0; font-size: 18px; }
.pm-root[dir="rtl"] .pm-details h3 { margin: 0 0 4px 28px; }
.pm-details .pm-addr { margin: 8px 0; }
.pm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pm-btn { border: 1px solid var(--pm-line); background: var(--pm-bg); border-radius: 999px; padding: 8px 14px; color: inherit; text-decoration: none; font-size: 14px; }
.pm-btn.pm-primary { background: var(--pm-accent); color: var(--pm-accent-fg); border-color: var(--pm-accent); }
.pm-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.pm-section { margin-top: 14px; }
.pm-section h4 { margin: 0 0 6px; font-size: 13px; color: var(--pm-muted); text-transform: uppercase; letter-spacing: .04em; }
.pm-hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.pm-hours td { padding: 2px 0; }
.pm-hours td:last-child { text-align: end; }
.pm-hours tr.pm-today td { font-weight: bold; }
.pm-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.pm-kv dt { color: var(--pm-muted); }
.pm-kv dd { margin: 0; }

/* clusters (Advanced Marker content) */
.pm-cluster { --pm-cluster: #d93025; width: 36px; height: 36px; border-radius: 50%; background: var(--pm-cluster); color: #fff; font-weight: bold; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--pm-cluster) 30%, transparent); transform: translateY(18px); }
.pm-cluster-md { width: 42px; height: 42px; font-size: 14px; transform: translateY(21px); }
.pm-cluster-lg { width: 50px; height: 50px; font-size: 15px; transform: translateY(25px); }

/* map overlays */
.pm-locate { position: absolute; bottom: 24px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); font-size: 18px; }
.pm-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: rgba(255,255,255,.92); color: var(--pm-muted); }
.pm-state strong { color: var(--pm-fg); }
.pm-toast { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); background: #1b1b1f; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.pm-toast.pm-show { opacity: 1; }

/* responsive: details becomes a bottom sheet */
@media (max-width: 760px) {
  .pm-body.pm-has-details { grid-template-columns: 1fr; }
  .pm-details { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70%; background: var(--pm-bg); border-top: 1px solid var(--pm-line); border-radius: var(--pm-radius) var(--pm-radius) 0 0; box-shadow: 0 -4px 16px rgba(0,0,0,.15); z-index: 2; }
}

/* map icons: several icons fan out side by side at one spot (the icon replaces the pin, centred on the location) */
.pm-fan { display: flex; align-items: center; justify-content: center; transform: translateY(50%); direction: ltr; }
.pm-fan-item { position: relative; width: 34px; height: 34px; margin-inline: -4px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.pm-fan-item img { width: 30px; height: 30px; object-fit: contain; pointer-events: none; user-select: none; }
.pm-fan-item.pm-fan-pin { background: transparent; box-shadow: none; width: 28px; height: 38px; }
.pm-fan-item.pm-fan-pin svg { pointer-events: none; }
.pm-fan-item:hover { z-index: 2; transform: scale(1.12); }
.pm-fan-more { position: absolute; top: -10px; inset-inline-end: -14px; font: bold 11px/1 system-ui, sans-serif; color: #fff; background: #3c4043; border-radius: 999px; padding: 3px 6px; box-shadow: 0 0 0 2px #fff; }
.pm-fan { position: relative; }
