/* world map for "Countries where podcasts were filmed" (see map.js); colors follow the section's cards */
.msmap {
  --ink: rgb(30, 33, 58);
  --ink-2: rgb(61, 64, 82);
  --card: rgb(243, 243, 254);
  --land: rgb(228, 228, 242);
  --on: #1f9d4c;
  --on-hi: #26c35d;
  width: 100%;
  font-family: "Inter", "Inter Placeholder", sans-serif;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.msmap.is-in { opacity: 1; transform: none; }
.msmap-stage { position: relative; width: 100%; }
.msmap-hint {
  margin: 0 0 28px; text-align: center; font-size: 18px; line-height: 1.4; letter-spacing: -.36px; color: var(--ink-2);
}
.msmap-svg { display: block; width: 100%; height: auto; overflow: hidden; }
.msmap-land path { fill: var(--land); stroke: #fff; stroke-width: .6; }
.msmap-country {
  fill: var(--on); stroke: #fff; stroke-width: .6; cursor: pointer;
  transition: fill .2s ease, filter .2s ease;
}
.msmap-country.is-active { fill: var(--on-hi); filter: drop-shadow(0 3px 6px rgba(31, 157, 76, .45)); }
.msmap.has-active .msmap-country:not(.is-active) { fill: #6cc28c; }
.msmap-lead { stroke: var(--ink); stroke-width: .8; stroke-dasharray: 2 2; opacity: .45; }
.msmap-dot { fill: var(--ink); opacity: .7; }

.msmap-pin {
  position: absolute; z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  transition: transform .2s ease;
}
.msmap-flag {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2.5px #fff, 0 4px 10px rgba(26, 0, 108, .22);
}
.msmap-pulse {
  position: absolute; inset: -2px; border-radius: 50%; background: var(--on-hi); opacity: 0;
  animation: msmap-pulse 2.4s ease-out infinite; animation-delay: var(--d, 0s);
}
@keyframes msmap-pulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
.msmap-pin.is-active, .msmap-pin:hover { transform: scale(1.22); z-index: 3; }
.msmap-pin:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.msmap-tip {
  --shift: 0px;
  position: absolute; z-index: 5; width: max-content; min-width: 200px; max-width: 340px; padding: 14px 16px;
  background: var(--card); border-radius: 16px; color: var(--ink); pointer-events: none;
  box-shadow: inset 0 1px 0 #fff, 0 2.8px 2.2px rgba(26, 0, 108, .02), 0 6.7px 5.3px rgba(26, 0, 108, .03),
    0 12.5px 10px rgba(26, 0, 108, .04), 0 22px 18px rgba(26, 0, 108, .05), 0 42px 33px rgba(26, 0, 108, .06);
  opacity: 0; transform: translate(calc(-50% + var(--shift)), calc(-100% - 22px)) scale(.96);
  transform-origin: 50% 100%; transition: opacity .18s ease, transform .18s ease;
}
.msmap-tip.is-below { transform: translate(calc(-50% + var(--shift)), 22px) scale(.96); transform-origin: 50% 0; }
.msmap-tip.is-on { opacity: 1; pointer-events: auto; transform: translate(calc(-50% + var(--shift)), calc(-100% - 22px)); }
.msmap-tip.is-on.is-below { transform: translate(calc(-50% + var(--shift)), 22px); }
.msmap-tip:has(.msmap-eps) { width: 340px; }
.msmap-tip:has(.msmap-eps.is-one) { width: 260px; }
.msmap-tip-head { display: flex; align-items: center; gap: 12px; }
.msmap-tip-head img { width: 48px; height: 36px; border-radius: 5px; object-fit: cover; flex: none; }
.msmap-tip-name {
  font-family: "Inter Tight", "Inter Tight Placeholder", sans-serif; font-size: 18px; font-weight: 600;
  letter-spacing: -.2px; line-height: 1.2;
}
.msmap-tip-count { font-size: 15px; color: var(--ink-2); letter-spacing: -.3px; margin-top: 2px; }
.msmap-tip-label { margin: 12px 0 8px; font-size: 12px; font-weight: 600; line-height: 16px; color: var(--ink); }
.msmap-eps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; }
.msmap-eps.is-one { grid-template-columns: 1fr; }
.msmap-eps.is-many { grid-template-columns: 1fr 1fr 1fr; }
.msmap-tip:has(.msmap-eps.is-many) { width: 470px; max-width: 470px; }
.msmap-ep { display: block; color: var(--ink); text-decoration: none; }
.msmap-ep-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: var(--land);
}
.msmap-ep-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.msmap-ep-thumb::after {  /* play badge */
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 21px; margin: -10.5px 0 0 -15px;
  border-radius: 6px; background: rgba(0, 0, 0, .55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3.5 2.5v5l4-2.5z' fill='%23fff'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: background-color .2s ease;
}
.msmap-ep:hover .msmap-ep-thumb img { transform: scale(1.05); }
.msmap-ep:hover .msmap-ep-thumb::after { background-color: #f00; }
.msmap-ep-title {
  display: -webkit-box; margin-top: 5px; font-size: 12px; line-height: 15px; letter-spacing: -.1px;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.msmap-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.msmap-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer;
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(26, 0, 108, .06); transition: background .2s ease, transform .2s ease;
}
.msmap-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.msmap-chip b { font-family: "Inter Tight", "Inter Tight Placeholder", sans-serif; font-weight: 600; }
.msmap-chip span { color: var(--ink-2); }
.msmap-chip.is-active, .msmap-chip:hover { background: #e3f6ea; transform: translateY(-2px); }
.msmap-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 809.98px) {
  .msmap-pin { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .msmap-flag { box-shadow: 0 0 0 1.5px #fff, 0 2px 6px rgba(26, 0, 108, .22); }
  .msmap-tip { min-width: 170px; max-width: 280px; padding: 10px 12px; }
  .msmap-tip:has(.msmap-eps) { width: 280px; }
  .msmap-tip:has(.msmap-eps.is-one) { width: 220px; }
  .msmap-tip:has(.msmap-eps.is-many) { width: 280px; max-width: 280px; }
  .msmap-eps.is-many { grid-template-columns: 1fr 1fr; }
  .msmap-tip:has(.msmap-eps) { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; }
  .msmap-tip-head img { width: 36px; height: 27px; }
  .msmap-tip-name { font-size: 16px; }
  .msmap-tip-count { font-size: 14px; }
  .msmap-hint { font-size: 15px; margin-bottom: 16px; padding: 0 8px; }
  .msmap-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .msmap-chip {
    display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; text-align: left;
    padding: 8px 10px; border-radius: 14px; font-size: 13px; line-height: 1.25;
  }
  .msmap-chip img { grid-row: span 2; width: 26px; height: 26px; }
  .msmap-chip span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .msmap, .msmap-tip, .msmap-pin, .msmap-chip { transition: none; }
  .msmap-pulse { animation: none; }
}
