/* =========================================================
   Mini Card Shop — Locate / Find a Machine page styles
   ========================================================= */

.locate-hero {
  position: relative; overflow: hidden; padding: 64px 0 90px;
  background:
    radial-gradient(900px 520px at 50% 45%, rgba(122,195,61,.16), transparent 65%),
    #000;
}
.locate-hero .streaks i:nth-child(1) { right: 5%; top: -40%; }
.locate-hero .streaks i:nth-child(2) { left: 3%; top: -30%; width: 12px; opacity: .2; }
.locate-hero .sparkle.s1 { top: 14%; left: 10%; }
.locate-hero .sparkle.s2 { bottom: 16%; right: 8%; width: 24px; height: 24px; animation-delay: 1.2s; }

.locate-head { position: relative; text-align: center; max-width: 1000px; margin: 0 auto; }
.locate-head .lead { margin: 18px auto 0; }

/* Search bar */
.loc-search {
  position: relative; display: flex; gap: 10px; max-width: 720px; margin: 32px auto 0;
  background: rgba(0,0,0,.6); border: 1px solid rgba(176,239,99,.4); border-radius: 999px; padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 6px rgba(122,195,61,.06);
}
.loc-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; color: var(--green-lt); }
.loc-field svg { width: 20px; height: 20px; flex: none; }
.loc-field input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white);
  font: 600 1rem var(--body); padding: 12px 0;
}
.loc-field input::placeholder { color: var(--muted); }
.loc-search:focus-within { border-color: var(--green-lt); }
.loc-search .btn { padding: 12px 22px; white-space: nowrap; font-family: var(--body); }
.loc-search .btn-ghost { background: transparent; }
.loc-search .btn-ghost:hover { background: rgba(176,239,99,.08); }
.loc-status { text-align: center; color: var(--muted); font-size: .92rem; min-height: 1.4em; margin: 16px auto 0; max-width: 720px; position: relative; }
.loc-status strong { color: var(--white); }
.loc-status a { color: var(--green-lt); font-weight: 700; }

/* Map + list layout */
.locator { position: relative; display: grid; grid-template-columns: 1.55fr 1fr; gap: 28px; align-items: start; margin-top: 28px; }

.map-stage {
  position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  background: radial-gradient(600px 360px at 40% 55%, rgba(122,195,61,.12), transparent 70%), rgba(10,13,8,.8);
}
.map-stage .map { display: block; width: 100%; height: auto; opacity: .6; filter: drop-shadow(0 0 18px rgba(122,195,61,.3)); }
.map-pins { position: absolute; inset: 18px; }
.map-stage.is-regional .map { opacity: .9; border-radius: 12px; }
.map-state {
  position: absolute; transform: translate(-50%, -50%); pointer-events: none; white-space: nowrap;
  font-family: var(--display); font-size: clamp(1.1rem, 3.2vw, 2.4rem); letter-spacing: .18em; text-transform: uppercase;
  color: rgba(176,239,99,.16);
}
.map-city {
  position: absolute; transform: translate(-6px, -50%); pointer-events: none; white-space: nowrap;
  display: flex; align-items: center; gap: 6px; font: 600 clamp(.55rem, 1.3vw, .74rem) var(--body); color: var(--muted); letter-spacing: .02em;
}
.map-city i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: none; }
.map-city.label-right { transform: translate(18px, -50%); color: var(--white); font-weight: 800; }
.map-city.label-right i { display: none; }
.map-count {
  position: absolute; right: 18px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.map-count > span {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.3rem; letter-spacing: .04em;
  color: var(--white); background: rgba(0,0,0,.75); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 4px;
}
.map-count > span[hidden] { display: none; }
.map-count b { font-weight: 400; color: var(--green-lt); }
.map-count i { width: 10px; height: 10px; border-radius: 50%; margin-top: -2px; background: var(--green-lt); box-shadow: 0 0 8px rgba(176,239,99,.8); }
.map-count .mc-soon b { color: var(--white); }
.map-count .mc-soon i { background: transparent; border: 2px dashed var(--green-lt); box-shadow: none; }

.map-pin {
  position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border: 3px solid #000; border-radius: 50%;
  background: var(--green-lt); cursor: pointer; box-shadow: 0 0 0 2px var(--green-lt), 0 0 18px rgba(176,239,99,.8);
  transition: transform .2s ease;
}
.map-pin::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--green-lt);
  animation: ping 2.4s ease-out infinite; pointer-events: none;
}
.map-pin:hover, .map-pin.active { transform: scale(1.3); }
.map-pin.is-soon { background: radial-gradient(circle, var(--green-lt) 0 2px, #000 3px); border: 2px dashed var(--green-lt); box-shadow: 0 0 10px rgba(176,239,99,.35); width: 18px; height: 18px; margin: -9px 0 0 -9px; z-index: 1; }
.map-pin.is-soon::after { display: none; }
.map-pin-count {
  position: absolute; top: -14px; right: -14px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: #000; color: var(--green-lt); border: 1px solid var(--green-lt);
  font: 800 .62rem/16px var(--body); text-align: center;
}
.map-pin-label {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; background: var(--green-lt); color: #000; font: 800 .72rem var(--body);
  letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.map-pin-label::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--green-lt); }
.map-pin:hover .map-pin-label, .map-pin.active .map-pin-label, .map-pin:focus-visible .map-pin-label { opacity: 1; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* Location cards */
.loc-list { display: grid; gap: 16px; }
.locator .map-stage { position: sticky; top: 100px; }
.loc-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; outline: 0;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.loc-card.active { border-color: rgba(176,239,99,.7); box-shadow: 0 0 0 4px rgba(122,195,61,.12); }
.loc-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.loc-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(122,195,61,.14); color: var(--green-lt); border: 1px solid rgba(122,195,61,.35);
}
.loc-icon svg { width: 22px; height: 22px; }
.loc-tags { display: flex; gap: 6px; }
.loc-new, .loc-dist, .loc-soon {
  font-weight: 800; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.loc-new { background: linear-gradient(135deg, var(--green-lt), var(--green)); color: #000; }
.loc-soon { border: 1px dashed var(--green-lt); color: var(--white); }
.loc-card.is-soon { background: linear-gradient(180deg, rgba(23,32,18,.6), rgba(17,22,14,.6)); border-style: dashed; }
.loc-card.is-soon .loc-icon { background: transparent; border-style: dashed; }
.loc-card.is-soon .loc-go { color: var(--white); }
.loc-card.is-soon .loc-go:hover { color: var(--green-lt); }
.loc-dist { border: 1px solid rgba(176,239,99,.5); color: var(--green-lt); }
.loc-card h3 { font-size: 2rem; }
.loc-spot { margin: 0; color: var(--green-lt); font-weight: 700; font-size: .95rem; }
.loc-addr { margin: 0; color: var(--white); font-size: .95rem; line-height: 1.5; }
.loc-hours { margin: 0; color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.loc-hours svg { width: 16px; height: 16px; color: var(--green-lt); flex: none; }
.loc-go { align-self: flex-start; margin-top: 8px; padding: 12px 20px; font-size: .82rem; }
.loc-go.btn-primary, .loc-go.btn-primary:hover { color: #000; }
.loc-empty { color: var(--muted); text-align: center; padding: 30px 10px; }

@media (max-width: 900px) {
  .locator { grid-template-columns: 1fr; }
  .locator .map-stage { position: relative; top: auto; }
}
@media (max-width: 700px) {
  .locate-hero { padding: 40px 0 60px; }
  .loc-search { flex-wrap: wrap; border-radius: 24px; padding: 10px; }
  .loc-field { flex: 1 1 100%; padding: 0 8px; }
  .loc-search .btn { flex: 1 1 0; justify-content: center; padding: 13px 14px; font-size: .8rem; }
  .map-stage { padding: 10px; border-radius: 18px; }
  .map-pins { inset: 10px; }
  .map-count { right: 8px; bottom: 6px; gap: 5px; }
  .map-count > span { font-size: .95rem; padding: 4px 10px 3px; gap: 6px; }
  .map-count i { width: 8px; height: 8px; }
}

/* Meantime cards */
.meantime { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mt-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s ease, border-color .25s ease;
}
.mt-card:hover { transform: translateY(-6px); border-color: rgba(176,239,99,.5); }
.mt-card .why-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(122,195,61,.14); color: var(--green-lt); border: 1px solid rgba(122,195,61,.35);
}
.mt-card .why-icon svg { width: 26px; height: 26px; }
.mt-card h3 { font-size: 1.8rem; margin-top: 6px; }
.mt-card p { color: var(--muted); margin: 0; font-size: .95rem; flex: 1; }
.mt-card .link { color: var(--green-lt); font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.mt-card .link svg { width: 16px; height: 16px; }
.mt-card .social-row { margin-top: 4px; }
@media (max-width: 900px) { .meantime { grid-template-columns: 1fr; } }

/* Location photo on a card */
.loc-photo { position: relative; display: block; width: 100%; padding: 0; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: none; cursor: zoom-in; }
.loc-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.loc-photo:hover img { transform: scale(1.03); }
.loc-photo span { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.78); color: #fff; font: 700 .72rem var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
