.world-map {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}
.world-map__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.world-map__search {
  position: relative;
  flex: 1 1 220px;
  min-width: 0;
}
.world-map__search input,
.world-map__chip-group select {
  width: 100%;
  margin: 0;
  min-height: 44px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 26, 0.72);
  padding: 10px 12px;
}
.world-map__results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #102433;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.world-map__result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
}
.world-map__result span,
.world-map__count,
.world-map__note,
.world-map__meta,
.world-map__chip-label {
  color: var(--muted);
  font-size: 0.82rem;
}
.world-map__chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 100%;
  min-width: 0;
}
.world-map__chip-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.world-map__chip-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.world-map__chip-group select { width: auto; min-width: 140px; }
.world-map__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 26, 0.72);
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
}
.world-map__chip::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--chip, transparent);
  flex: 0 0 auto;
}
.world-map__chip--all {
  position: sticky;
  left: 0;
  z-index: 1;
}
.world-map__chip--all::before { display: none; }
.world-map__chip.is-on {
  border-color: var(--chip, var(--accent));
  color: var(--chip, var(--accent));
  background: color-mix(in srgb, var(--chip, var(--accent)) 22%, rgba(8, 18, 26, 0.92));
}
.world-map__count,
.world-map__note { margin: 0; }
.world-map__status { margin: 0; color: var(--muted); }
.world-map__body {
  position: relative;
  flex: 1;
  min-height: 280px;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.world-map__hits {
  width: min(300px, 34%);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 20, 28, 0.88);
  padding: 10px;
}
.world-map__chip-row input {
  width: 88px;
  min-height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 26, 0.72);
  padding: 6px 10px;
}
.world-map__stage {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(900px 420px at 50% 40%, rgba(62, 160, 170, 0.16), transparent 60%),
    #071820;
  border: 1px solid var(--line);
}
.world-map__svg { width: 100%; height: 100%; display: block; touch-action: none; }
.world-map__ocean { fill: #0c2430; }
.world-map__grat { fill: none; stroke: rgba(214, 236, 232, 0.08); stroke-width: 0.6; }
.world-map__country {
  fill: #1c4556;
  stroke: #9fd8cf;
  stroke-width: 0.6;
  cursor: pointer;
}
.world-map__country:hover,
.world-map__country.is-hot { fill: #266278; }
.world-map__country.is-selected { fill: #2f6f62; }
.world-map__country-label,
.world-map__city-label {
  font-family: var(--font);
  fill: #e7f4f1;
  stroke: rgba(7, 18, 24, 0.8);
  stroke-width: 3px;
  paint-order: stroke;
  pointer-events: none;
  font-size: 11px;
}
.world-map__country-label { text-anchor: middle; }
.world-map__city { fill: #f2d48a; stroke: rgba(7, 18, 24, 0.45); stroke-width: 0.4; cursor: pointer; }
.world-map__city-label { font-size: 10px; fill: #f7e7c3; }
.world-map__hit { fill: transparent; pointer-events: all; cursor: pointer; }
.world-map__marker { cursor: pointer; }
.world-map__faces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.world-map__face {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.world-map__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.world-map__face-letters {
  fill: #f4fffb;
  font-size: 8px;
  font-family: var(--font);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.world-map__cluster { fill: #12343a; stroke: #d8fff2; stroke-width: 1.5; cursor: pointer; }
.world-map__cluster-label {
  fill: #f4fffb;
  font-size: 11px;
  font-family: var(--font);
  text-anchor: middle;
  pointer-events: none;
}
.world-map__labels { pointer-events: none; }
.world-map__tip {
  position: absolute;
  z-index: 4;
  max-width: 220px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(8, 20, 28, 0.94);
  border: 1px solid var(--line);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.world-map__tip span { color: var(--muted); font-size: 0.78rem; }
.world-map__legend-toggle {
  display: none;
}
.world-map__legend {
  position: absolute;
  z-index: 3;
  left: 10px;
  bottom: 10px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 20, 28, 0.88);
  border: 1px solid var(--line);
  max-height: min(46%, 280px);
  overflow: auto;
}
.world-map__hits-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}
.world-map__legend-title { margin: 0 0 2px; font-size: 0.75rem; color: var(--muted); }
.world-map__legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; }
.world-map__legend-item.is-sub { padding-left: 14px; }
.world-map__swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
}
.world-map__swatch--cluster { background: #12343a; box-shadow: inset 0 0 0 1.5px #d8fff2; }
.world-map__zoom {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.world-map__zoom-btn,
.world-map__text-btn,
.world-map__primary,
.world-map__site {
  min-height: 44px;
  min-width: 44px;
  border-radius: 12px;
  cursor: pointer;
}
.world-map__zoom-btn,
.world-map__text-btn {
  border: 1px solid var(--line);
  background: rgba(8, 20, 28, 0.88);
  color: var(--text);
}
.world-map__sheet {
  position: absolute;
  z-index: 4;
  top: 10px;
  right: 10px;
  width: min(320px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 14px 14px 16px;
  border-radius: 16px;
  background: rgba(10, 24, 34, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}
.world-map__sheet h2 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 1.7rem; }
.world-map__sheet h3 { margin: 14px 0 8px; font-size: 0.95rem; }
.world-map__kicker { margin: 0; color: var(--accent); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.world-map__meta, .world-map__summary { margin: 4px 0; }
.world-map__sheet-head { display: flex; justify-content: flex-end; }
.world-map__deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.world-map__deal-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(94, 200, 255, 0.12);
  border: 1px solid rgba(94, 200, 255, 0.4);
}
.world-map__deal {
  color: #d7f3ff;
  font-size: 1.05rem;
  font-weight: 650;
  text-decoration: none;
}
.world-map__deal-card .world-map__meta { color: #d5e6ee; }
.world-map__primary {
  margin-top: 12px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), #2aa86f);
  color: #04140c;
  font-weight: 600;
  padding: 10px 14px;
}
.world-map__site-list { display: grid; gap: 8px; }
.world-map__site {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  padding: 8px 10px;
}
.world-map__site-copy { display: flex; flex-direction: column; min-width: 0; }
.world-map__site-copy span { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 720px) {
  .world-map__body { flex-direction: column; }
  .world-map__hits { width: auto; max-height: 28dvh; }
  .world-map__sheet {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: auto;
    max-height: min(52dvh, 460px);
    border-radius: 18px 18px 0 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .world-map__legend {
    top: 10px;
    left: 10px;
    bottom: auto;
    max-width: calc(100% - 168px);
  }
  .world-map__zoom {
    top: 10px;
    right: 10px;
    bottom: auto;
    flex-direction: row;
  }
}
@media (max-width: 640px) {
  .world-map {
    height: auto;
    gap: 6px;
  }
  .world-map__bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    align-items: center;
  }
  .world-map__search { min-width: 0; }
  .world-map__search input {
    min-height: 40px;
    padding: 8px 10px;
  }
  .world-map__chips,
  .world-map__count,
  .world-map__note { grid-column: 1 / -1; }
  .world-map__count,
  .world-map__note { display: none; }
  .world-map__note:not(:empty) { display: block; }
  .world-map__chips {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .world-map__chip-row {
    width: max-content;
    flex: 0 0 auto;
    overflow: visible;
  }
  .world-map__body { min-height: 0; }
  .world-map__stage {
    height: 68vh;
    min-height: 68vh;
    flex: none;
  }
  .world-map__hits {
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 12px;
    background: #102433;
    border-color: rgba(180, 210, 220, 0.28);
  }
  .world-map__hits-title {
    font-size: 1.2rem;
    color: #f4fafc;
  }
  .world-map__site-list { gap: 10px; }
  .world-map__site {
    min-height: 52px;
    padding: 12px;
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f4fafc;
  }
  .world-map__site-copy strong { font-size: 1.05rem; line-height: 1.3; }
  .world-map__site-copy span,
  .world-map__hits .world-map__meta {
    color: #d5e6ee;
    font-size: 0.95rem;
    line-height: 1.35;
  }
  .world-map__legend-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 3;
    left: 8px;
    bottom: 8px;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(8, 20, 28, 0.92);
    color: #f4fafc;
    font-size: 0.8rem;
    cursor: pointer;
  }
  .world-map__legend { display: none; }
  .world-map__legend.is-open {
    display: grid;
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 46px;
    max-width: none;
    max-height: 42%;
    background: rgba(8, 20, 28, 0.96);
  }
  .world-map__zoom-btn {
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .world-map__zoom { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-map__country { transition: none; }
}
