/* ==========================================================================
   Component: location map + city grid (.cm-location-map / .cm-city-*)
   The locations page: a stylised world map and a set of city cards grouped by
   region. Cards link to a per-city page. Map markers are navy (decorative);
   red is reserved for actions, showing only on card hover (interaction).
   ========================================================================== */

.cm-location-map {
  width: 100%;
}

/* SVG <text> can't read var() from a presentation attribute — set it in CSS. */
.cm-location-map text {
  font-family: var(--cm-font);
}

/* On small screens the map labels shrink to unreadable — drop them and keep the
   dot pattern as decoration. The city grid below lists every city legibly, and
   the SVG's role="img" + aria-label still name them for assistive tech. */
@media (max-width: 720px) {
  .cm-location-map text {
    display: none;
  }
}

.cm-city-groups {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cm-city-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cm-city-group__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cm-muted);
}

.cm-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.cm-city-card {
  border: 1px solid var(--cm-hairline);
  border-radius: var(--cm-radius-insert);
  padding: 24px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--cm-dur) var(--cm-ease), transform var(--cm-dur)
    var(--cm-ease);
}

.cm-city-card:hover {
  border-color: var(--cm-red);
  transform: translateY(-2px);
}

/* Static "you-are-here" indicator — navy, not red (red stays for actions). */
.cm-city-card--current {
  border: 2px solid var(--cm-navy);
}

.cm-city-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cm-city-card__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--cm-ink);
}

.cm-city-card__services {
  font-size: 14px;
  color: var(--cm-muted);
}

/* "Example page" tag on the demo city card. */
.cm-city-card__badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--cm-paper-2);
  color: var(--cm-navy);
  border-radius: 6px;
  padding: 4px 8px;
  flex: none;
}

.cm-city-note {
  font-size: 14px;
  color: var(--cm-muted);
  text-align: center;
}

/* Hide the USA region in the "Areas We Cover" city groups (event-services pages). */
.cm-city-group--usa {
  display: none;
}
