/* Local'd delivery map — styles. Enqueue or paste into Appearance ▸ Customize ▸ Additional CSS. */

.locald-map {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  background: #F8EE72;
  border: 4px solid #16281C;
  border-radius: 20px;
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.locald-map--align-left { margin-left: 0; margin-right: auto; }
.locald-map--align-right { margin-left: auto; margin-right: 0; }

.locald-map svg { display: block; width: 100%; height: auto; }

.locald-map .cell { cursor: pointer; outline: none; }

.locald-map .cell .hit {
  transition: fill .18s ease, stroke-width .18s ease,
              transform .26s cubic-bezier(.2, .9, .25, 1), filter .2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.locald-map .cell.is-active .hit {
  fill: #F8EE72;
  stroke: #16281C;
  stroke-width: 34;
  transform: scale(1.06);
  filter: url(#sk);
}

/* invisible touch target for the smallest pieces */
.locald-map .hitzone { pointer-events: none; transform-box: fill-box; transform-origin: center; }
@media (hover: none) { .locald-map .hitzone { pointer-events: all; transform: scale(1.6); } }

.locald-map .lb {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  letter-spacing: .02em;
  transition: fill .18s ease;
}
.locald-map .lb.is-active { fill: #16281C; }

.locald-map .geo {
  font-family: 'EB Garamond', Georgia, serif;
  font-style: italic;
  fill: #16281C;
  opacity: .55;
  letter-spacing: .08em;
}

.locald-map .locald-tip {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -140%) scale(.92);
  transition: opacity .15s ease, transform .2s cubic-bezier(.2, .9, .25, 1);
  background: #16281C;
  color: #F8EE72;
  border: 3px solid #16281C;
  border-radius: 999px;
  padding: 9px 18px 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(22, 40, 28, .28);
  z-index: 3;
}
.locald-map .locald-tip.is-visible { opacity: 1; transform: translate(-50%, -155%) scale(1); }
.locald-map .locald-tip b {
  display: block;
  font-size: 10px;
  font-weight: 600;
  opacity: .7;
  letter-spacing: .14em;
  margin-top: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .locald-map * { transition: none !important; }
}
