/* we53 station map widget — light theme (24 Sep 2026), brand tokens */
.we53-map {
  --bg: #DFDFE1; --bg2: #F4F4F5; --blue: #164384; --blue-deep: #0F2F5E;
  --ink: rgba(17,17,19,.92); --muted: rgba(17,17,19,.62); --hair: rgba(17,17,19,.1);
  --ease-out: cubic-bezier(.22,1,.36,1);
  position: relative; background: var(--bg); color: var(--ink);
  border: 1px solid var(--hair); border-radius: 20px; overflow: hidden;
  font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
.we53-map__bar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; border-bottom: 1px solid var(--hair); background: var(--bg);
}
.we53-map__tabs { display: flex; gap: 4px; background: var(--bg2); padding: 3px; border-radius: 999px; }
.we53-map__tab {
  border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: color .25s var(--ease-out), background .25s var(--ease-out);
}
.we53-map__tab:hover { color: var(--ink); }
.we53-map__tab[aria-pressed="true"] { background: var(--blue); color: #fff; }
.we53-map__searchwrap { position: relative; flex: 1 1 180px; min-width: 0; }
.we53-map__search {
  width: 100%; background: var(--bg2); border: 1px solid transparent; border-radius: 999px;
  color: var(--ink); font: inherit; font-size: 14px; padding: 8px 14px; outline: 0;
  transition: border-color .25s var(--ease-out);
}
.we53-map__search::placeholder { color: var(--muted); }
.we53-map__search:focus { border-color: var(--blue); }
.we53-map__near {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--hair); background: var(--bg2); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.we53-map__near svg { color: var(--blue); }
.we53-map__near:hover { border-color: var(--blue); background: #fff; }
.we53-map__near:disabled { opacity: .6; cursor: progress; }

/* Invitation card over the map: "Which station is closest to you?" + one button. Hidden once located. */
.we53-map__invite {
  position: absolute; left: 12px; right: 12px; bottom: 26px; z-index: 450; max-width: 460px;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  padding: 14px; border-radius: 16px; background: rgba(255,255,255,.9); border: 1px solid var(--hair);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.we53-map__invite[hidden] { display: none; }
.we53-map__invite-icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; }
.we53-map__invite-copy p { margin: 0; }
.we53-map__invite-title { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.we53-map__invite-text { font-size: 13px; color: var(--muted); line-height: 1.4; }
.we53-map__invite-btn {
  grid-column: 2; justify-self: start; margin-top: 8px; border: 0; background: var(--blue); color: #fff; font: inherit;
  font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: background .2s var(--ease-out);
}
.we53-map__invite-btn:hover { background: var(--blue-deep); }
.we53-map__invite.is-busy .we53-map__invite-btn { opacity: .6; cursor: progress; }
.we53-map__invite.is-busy .we53-map__invite-icon { animation: we53-pulse 1.2s ease-in-out infinite; }
@keyframes we53-pulse { 50% { transform: scale(.88); opacity: .75; } }
@media (min-width: 560px) {
  .we53-map__invite { grid-template-columns: auto 1fr auto; }
  .we53-map__invite-icon { grid-row: auto; }
  .we53-map__invite-btn { grid-column: auto; margin-top: 0; }
}

/* "You are here" */
.we53-me { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(22,67,132,.2), 0 2px 6px rgba(0,0,0,.25); }
.we53-map__canvas { height: 520px; background: #E8E8EA; }
@media (max-width: 767px) { .we53-map__canvas { height: 420px; } }
.we53-map__canvas.is-locked::after {
  content: "Tap to move the map"; position: absolute; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(223,223,225,.35); color: var(--ink); font-size: 14px; pointer-events: none;
  opacity: 0; transition: opacity .3s var(--ease-out);
}
.we53-map__canvas.is-locked.show-hint::after { opacity: 1; }

/* Suggestions dropdown */
.we53-map__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 500;
  margin: 0; padding: 6px; list-style: none; max-height: 320px; overflow: auto;
  background: var(--bg2); border: 1px solid var(--hair); border-radius: 16px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
}
.we53-map__suggest li { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.we53-map__suggest li:hover, .we53-map__suggest li.is-active { background: rgba(17,17,19,.06); }
.we53-map__sg-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.we53-map__sg-where { font-size: 12px; color: var(--muted); }

/* Leaflet overrides */
.we53-map .leaflet-container { font: inherit; background: #E8E8EA; }
.we53-map .leaflet-tile { filter: grayscale(1) contrast(.9) brightness(1.02); } /* light theme: plain grey OSM, pins carry the colour */
.we53-map .leaflet-control-zoom a { font-family: inherit; font-weight: 500; }
.we53-map .leaflet-control-zoom { border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; box-shadow: none; }
.we53-map .leaflet-control-zoom a {
  background: var(--bg2); color: var(--ink); border-bottom: 1px solid var(--hair); width: 34px; height: 34px; line-height: 34px;
}
.we53-map .leaflet-control-zoom a:hover { background: var(--blue-deep); }
.we53-map .leaflet-control-attribution { background: rgba(255,255,255,.8); color: var(--muted); font-size: 10px; }
.we53-map .leaflet-control-attribution a { color: var(--muted); }

/* Pins */
.we53-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(43,124,31,.35); transition: transform .2s var(--ease-out); }
.we53-pin--approx { background: var(--blue); box-shadow: 0 0 0 2px rgba(22,67,132,.35); }
.leaflet-marker-icon:hover .we53-pin { transform: scale(1.35); }

/* Clusters */
/* no count inside (Alsu, 24 Sep 2026): a ring whose size grows with the group */
.we53-cluster { border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 5px rgba(22,67,132,.22); }
.we53-cluster--l { background: var(--blue-deep); }

/* Popup */
.we53-map .leaflet-popup-content-wrapper { background: var(--bg2); color: var(--ink); border: 1px solid var(--hair);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.we53-map .leaflet-popup-tip { background: var(--bg2); }
.we53-map .leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.45; min-width: 200px; }
.we53-map .leaflet-popup-close-button { color: var(--muted); }
.we53-map .leaflet-popup-content p { margin: 0; } /* Leaflet's default 17px paragraph gaps */
.we53-popup__name { font-weight: 500; margin: 0 0 4px; font-size: 15px; }
.we53-popup__addr, .we53-popup__where { margin: 0; color: var(--muted); font-size: 13px; }
.we53-popup__where::before { content: "· "; }
.we53-popup__approx { display: inline-block; margin-top: 6px; font-size: 11px; color: var(--muted); border: 1px solid var(--hair); border-radius: 999px; padding: 1px 8px; }
.we53-map .we53-popup__dist { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.we53-popup__actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.we53-popup__actions .we53-popup__btn { margin-top: 0; }
.we53-map .we53-popup__link { font-size: 13px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair); }
.we53-popup__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: var(--blue); color: #fff;
  border-radius: 999px; padding: 7px 14px; font-size: 13px; text-decoration: none; transition: background .2s var(--ease-out); }
.we53-popup__btn:hover { background: var(--blue-deep); }
.we53-map .we53-popup__btn, .we53-map .we53-popup__btn:hover { color: #fff; } /* beat .leaflet-container a { color } */
