:root {
  --ahm-border: #d9dde3;
  --ahm-bg-soft: #f6f8fb;
  --ahm-text: #22303c;
  --ahm-primary: #0d5aa7;
  --ahm-primary-dark: #09447d;
  --ahm-accent: #f2f7fd;
}

.ahm-wrapper {
  color: var(--ahm-text);
  margin: 24px 0;
  font-size: 16px;
}

.ahm-toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ahm-intro h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.ahm-intro p {
  margin: 0;
  max-width: 860px;
}

.ahm-search-box input {
  width: 320px;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ahm-border);
  border-radius: 12px;
  background: white;
}

.ahm-layout {
  display: grid;
  gap: 18px;
}

.ahm-layout--with-sidebar {
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 420px);
  align-items: start;
}

.ahm-panel,
.ahm-details {
  background: white;
  border: 1px solid var(--ahm-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(15, 31, 53, 0.06);
}

.ahm-panel--compact {
  padding-bottom: 10px;
}

.ahm-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ahm-panel h3,
.ahm-details h3 {
  margin: 0;
}

.ahm-result-count,
.ahm-map-status,
.ahm-placeholder,
.ahm-error,
.ahm-city-header p,
.ahm-agency-note {
  color: #5f6f7c;
}

.ahm-map-status {
  font-size: 14px;
  margin-bottom: 12px;
}

.ahm-sidebar {
  display: grid;
  gap: 18px;
}

.ahm-map-column {
  min-width: 0;
}

.ahm-map {
  width: 100%;
  height: var(--ahm-map-height, 760px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ahm-border);
  box-shadow: 0 4px 16px rgba(15, 31, 53, 0.06);
  background: #eef2f5;
  position: relative;
}

.ahm-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  color: #5f6f7c;
}

.ahm-tile-map {
  position: relative;
  height: 100%;
  background: #eef2f5;
}

.ahm-map-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ahm-map-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.ahm-map-tiles,
.ahm-map-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ahm-map-tiles img {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.ahm-map-overlay {
  pointer-events: none;
}

.ahm-zone-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.ahm-zone-shape {
  cursor: pointer;
  pointer-events: auto;
}

.ahm-zone-shape polygon,
.ahm-zone-shape circle {
  fill: var(--zone-fill, rgba(13, 90, 167, 0.13));
  stroke: var(--zone-color, #0d5aa7);
  stroke-width: 2;
  stroke-dasharray: 8 7;
  transition: fill .18s ease, stroke-width .18s ease, opacity .18s ease;
}

.ahm-zone-shape:hover polygon,
.ahm-zone-shape:hover circle,
.ahm-zone-shape.is-active polygon,
.ahm-zone-shape.is-active circle {
  fill: var(--zone-fill, rgba(13, 90, 167, 0.24));
  stroke-width: 3;
}

.ahm-zone-shape text {
  fill: #18334a;
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255,255,255,.92);
  stroke-width: 4px;
  pointer-events: none;
  opacity: .92;
}



.ahm-map-point {
  position: absolute;
  z-index: 3;
  width: var(--point-size, 12px);
  height: var(--point-size, 12px);
  margin-left: calc(var(--point-size, 12px) / -2);
  margin-top: calc(var(--point-size, 12px) / -2);
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--point-color, #0d5aa7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ahm-map-point:hover,
.ahm-map-point.is-active {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.ahm-map-controls {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: grid;
  gap: 8px;
}

.ahm-map-controls button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--ahm-border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ahm-primary-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 31, 53, 0.08);
}

.ahm-map-attribution {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--ahm-border);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  color: #50616f;
}

.ahm-city-list {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.ahm-city-list--long {
  max-height: 340px;
}

.ahm-city-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--ahm-border);
  background: var(--ahm-bg-soft);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: 0.2s ease;
}

.ahm-city-item:hover,
.ahm-city-item.is-active {
  background: var(--ahm-accent);
  border-color: var(--ahm-primary);
}

.ahm-city-item strong,
.ahm-city-item span,
.ahm-city-item small {
  display: block;
}

.ahm-city-item strong {
  margin-bottom: 4px;
}

.ahm-city-item span,
.ahm-city-item small {
  font-size: 14px;
  opacity: 0.85;
}

.ahm-city-item small {
  margin-top: 4px;
}

.ahm-details {
  min-height: 320px;
}

.ahm-city-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ahm-zone-badge {
  background: var(--ahm-accent);
  color: var(--ahm-primary-dark);
  border: 1px solid #cfe0f5;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
}

.ahm-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ahm-stat {
  background: var(--ahm-bg-soft);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid var(--ahm-border);
}

.ahm-stat-label {
  display: block;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 6px;
}

.ahm-stat strong {
  font-size: 22px;
}

.ahm-agency-card {
  border-top: 1px solid var(--ahm-border);
  padding-top: 14px;
}

.ahm-agency-card h4 {
  margin: 0 0 10px;
}

.ahm-agency-card p {
  margin: 8px 0;
}

.ahm-agency-card a {
  color: var(--ahm-primary);
  text-decoration: none;
}

.ahm-agency-card a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .ahm-layout--with-sidebar {
    grid-template-columns: 1fr;
  }

  .ahm-map {
    height: 560px;
  }
}


.ahm-active-zone-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ahm-primary);
  margin-bottom: 2px;
}

.ahm-active-zone-card strong,
.ahm-active-zone-card span {
  display: block;
}

.ahm-active-zone-card span {
  color: #5f6f7c;
  font-size: 14px;
}

.ahm-active-zone-card button {
  margin-top: 8px;
  border: 0;
  background: var(--ahm-primary);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}

.ahm-zone-help {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ahm-accent);
  color: #415569;
  font-size: 14px;
}

.ahm-back-button {
    appearance: none;
    border: 1px solid #bfd6ef;
    background: #0d5aa7;
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 0 0 16px;
    box-shadow: 0 8px 20px rgba(13, 90, 167, 0.18);
}
.ahm-back-button:hover,
.ahm-back-button:focus {
    background: #08477f;
}


/* v1.22 - Habillage graphique inspiré Alsace Habitat */
.ahm-wrapper {
  --ahm-border: #d7e2ea;
  --ahm-bg-soft: #f4f8fb;
  --ahm-text: #17324a;
  --ahm-primary: #005aa8;
  --ahm-primary-dark: #003d73;
  --ahm-green: #8dc63f;
  --ahm-orange: #f39200;
  --ahm-pink: #d94c72;
  --ahm-accent: #eaf4fb;
  font-family: inherit;
}

.ahm-wrapper {
  background: linear-gradient(180deg, #f7fbfd 0%, #eef6f9 100%);
  padding: 22px;
  border-radius: 26px;
}

.ahm-intro h2 {
  color: var(--ahm-primary-dark);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ahm-intro p {
  color: #426172;
  line-height: 1.45;
}

.ahm-search-box input {
  border-radius: 999px;
  border: 1px solid #cbdbe7;
  box-shadow: 0 8px 24px rgba(0, 61, 115, 0.08);
  padding: 13px 18px;
  color: #17324a;
}

.ahm-search-box input:focus {
  outline: none;
  border-color: var(--ahm-primary);
  box-shadow: 0 0 0 4px rgba(0, 90, 168, 0.13), 0 10px 28px rgba(0, 61, 115, 0.10);
}

.ahm-map,
.ahm-panel,
.ahm-details {
  border-radius: 24px;
  border: 1px solid #d5e3eb;
  box-shadow: 0 18px 42px rgba(20, 58, 82, 0.10);
}

.ahm-panel,
.ahm-details {
  background: rgba(255,255,255,.96);
}

.ahm-panel h3,
.ahm-details h3 {
  color: var(--ahm-primary-dark);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ahm-result-count {
  color: var(--ahm-primary);
  font-weight: 700;
}

.ahm-map-status,
.ahm-placeholder,
.ahm-error,
.ahm-city-header p,
.ahm-agency-note {
  color: #5b7282;
}

.ahm-city-item {
  position: relative;
  border-radius: 18px;
  border: 1px solid #d8e4ec;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
  box-shadow: 0 6px 18px rgba(23, 50, 74, 0.05);
  padding: 14px 16px 14px 18px;
}

.ahm-city-item:before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.ahm-city-item:hover,
.ahm-city-item.is-active {
  background: #fff;
  border-color: #9bc4e5;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 90, 168, 0.13);
}

.ahm-city-item:hover:before,
.ahm-city-item.is-active:before {
  background: var(--ahm-green);
}

.ahm-city-item strong {
  color: #17324a;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.ahm-zone-badge {
  background: #edf7ff;
  color: var(--ahm-primary-dark);
  border: 1px solid #c8e1f5;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}

.ahm-stats-grid {
  gap: 12px;
  margin: 18px 0 20px;
}

.ahm-stat {
  position: relative;
  min-height: 78px;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f7fb 100%);
  border: 1px solid #d5e2eb;
  box-shadow: 0 8px 22px rgba(23, 50, 74, 0.06);
  padding: 14px 14px 12px 58px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ahm-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 50, 74, 0.10);
  border-color: #bcd4e5;
}

.ahm-stat-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 19px;
  font-weight: 900;
  color: #fff;
  background: var(--ahm-primary);
  box-shadow: 0 8px 18px rgba(0, 90, 168, 0.20);
}

.ahm-stat--housing .ahm-stat-icon { background: var(--ahm-primary); }
.ahm-stat--garage .ahm-stat-icon { background: var(--ahm-orange); }
.ahm-stat--senior .ahm-stat-icon { background: var(--ahm-green); }
.ahm-stat--gendarmerie .ahm-stat-icon { background: var(--ahm-pink); }

.ahm-stat-label {
  color: #657c8d;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 2px;
}

.ahm-stat strong {
  display: block;
  color: #17324a;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.ahm-agency-card {
  border-top: 1px solid #dce7ef;
  margin-top: 4px;
  padding-top: 18px;
}

.ahm-agency-card h4 {
  color: var(--ahm-primary-dark);
  font-size: 22px;
  font-weight: 850;
}

.ahm-agency-card p {
  color: #355368;
}

.ahm-agency-card a {
  color: var(--ahm-primary);
  font-weight: 750;
}

.ahm-back-button,
.ahm-active-zone-card button {
  background: linear-gradient(135deg, var(--ahm-primary) 0%, var(--ahm-primary-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 90, 168, 0.22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ahm-back-button:hover,
.ahm-active-zone-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 90, 168, 0.28);
}

.ahm-zone-help {
  background: #edf7ff;
  border: 1px solid #d1e5f5;
  color: #385a72;
}

.ahm-map-controls button {
  border-radius: 16px;
  color: var(--ahm-primary-dark);
  border-color: #d6e4ed;
  box-shadow: 0 10px 24px rgba(23, 50, 74, 0.10);
}

.ahm-map-controls button:hover {
  background: #edf7ff;
}

@media (max-width: 700px) {
  .ahm-wrapper { padding: 14px; border-radius: 18px; }
  .ahm-stats-grid { grid-template-columns: 1fr; }
  .ahm-stat { min-height: 70px; }
}

.ahm-zone-intro-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ahm-zone-agency-summary {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #edf7ff;
  border: 1px solid #d1e5f5;
  color: #24475e;
}

.ahm-zone-agency-summary small {
  display: block;
  margin-bottom: 2px;
  color: #6f8190;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.ahm-zone-agency-summary b {
  display: block;
  color: var(--ahm-primary-dark);
  font-size: 14px;
  line-height: 1.2;
}

.ahm-zone-agency-summary p {
  margin: 4px 0 6px;
  font-size: 13px;
  line-height: 1.36;
}

.ahm-zone-agency-links {
  display: grid;
  gap: 3px;
  font-size: 13px;
}

.ahm-zone-agency-links a {
  color: var(--ahm-primary);
  font-weight: 800;
  text-decoration: none;
}

.ahm-zone-agency-links a:hover {
  text-decoration: underline;
}

/* v1.30 - déplacement manuel de la carte */
.ahm-map-viewport {
  cursor: grab;
  touch-action: none;
}
.ahm-map-viewport.is-dragging {
  cursor: grabbing;
}

.ahm-tile-map, .ahm-map-viewport {
  user-select: none;
}


/* Autocomplétion recherche commune */
.ahm-search-box {
  position: relative;
  z-index: 30;
  width: fit-content;
  max-width: 100%;
}
.ahm-autocomplete {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 360px;
  max-width: min(90vw, 420px);
  background: #fff;
  border: 1px solid #cbdbe7;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(20, 58, 82, 0.18);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.ahm-autocomplete-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 13px;
  border-radius: 12px;
  cursor: pointer;
  color: #17324a;
}
.ahm-autocomplete-item:hover,
.ahm-autocomplete-item:focus {
  background: #eef6fb;
  outline: none;
}
.ahm-autocomplete-item strong {
  font-weight: 800;
  color: #003b70;
}
.ahm-autocomplete-item span {
  color: #5d7789;
  font-size: 13px;
}
.ahm-autocomplete-empty {
  padding: 12px 13px;
  color: #5d7789;
}


/* v1.34 - Mise en page latérale : liste à gauche, fiche détail à droite */
.ahm-layout--with-sidebar {
  grid-template-columns: minmax(0, 1.25fr) minmax(560px, 1fr);
  align-items: start;
}

.ahm-sidebar--split {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.ahm-list-column,
.ahm-detail-column {
  min-width: 0;
}

.ahm-detail-column {
  position: sticky;
  top: 24px;
}

.ahm-sidebar--split .ahm-panel,
.ahm-sidebar--split .ahm-details {
  height: auto;
}

.ahm-sidebar--split .ahm-city-list--long {
  max-height: calc(var(--ahm-map-height, 760px) - 140px);
}

.ahm-sidebar--split .ahm-details {
  min-height: 420px;
}

@media (max-width: 1280px) {
  .ahm-layout--with-sidebar {
    grid-template-columns: 1fr;
  }

  .ahm-sidebar--split {
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  }
}

@media (max-width: 760px) {
  .ahm-sidebar--split {
    grid-template-columns: 1fr;
  }

  .ahm-detail-column {
    position: static;
  }

  .ahm-sidebar--split .ahm-city-list--long {
    max-height: 360px;
  }
}


/* v1.36 - Ajustement mise en page : la colonne liste n'est plus coupée */
.ahm-layout--with-sidebar {
  grid-template-columns: minmax(420px, 0.95fr) minmax(660px, 1.2fr);
  gap: 18px;
}

.ahm-sidebar--split {
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
}

.ahm-sidebar--split .ahm-panel,
.ahm-sidebar--split .ahm-details {
  box-sizing: border-box;
  padding: 20px;
}

.ahm-active-zone-card,
.ahm-zone-agency-summary,
.ahm-city-item,
.ahm-details {
  overflow-wrap: anywhere;
}

.ahm-zone-agency-links span,
.ahm-zone-agency-links a,
.ahm-agency-card a {
  overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
  .ahm-layout--with-sidebar {
    grid-template-columns: 1fr;
  }

  .ahm-sidebar--split {
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  }
}

@media (max-width: 760px) {
  .ahm-sidebar--split {
    grid-template-columns: 1fr;
  }
}

/* v1.36 - évite les coupures de mots dans les cartes statistiques */
.ahm-stats-grid {
  grid-template-columns: repeat(2, minmax(135px, 1fr));
}

.ahm-stat {
  box-sizing: border-box;
  min-width: 0;
}

.ahm-stat-label {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  line-height: 1.12;
  max-width: 100%;
}

.ahm-stat strong {
  white-space: nowrap;
  word-break: keep-all;
}

@media (max-width: 1250px) {
  .ahm-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ahm-stats-grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }
}

@media (max-width: 560px) {
  .ahm-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* v1.37 - Corrections anti-coupure libellés / badges */
.ahm-zone-badge {
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: max-content;
  text-align: center;
}

.ahm-city-header > div:first-child {
  min-width: 0;
}

.ahm-city-header p,
.ahm-city-header p * {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.ahm-stat {
  overflow: visible;
  padding-left: 54px;
  padding-right: 12px;
}

.ahm-stat-label {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  white-space: normal;
  font-size: 12px;
  line-height: 1.15;
}

.ahm-stat-label br {
  display: none;
}

.ahm-stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

@media (max-width: 1350px) {
  .ahm-sidebar--split .ahm-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .ahm-sidebar--split .ahm-stats-grid {
    grid-template-columns: repeat(2, minmax(165px, 1fr));
  }
}

@media (max-width: 560px) {
  .ahm-sidebar--split .ahm-stats-grid {
    grid-template-columns: 1fr;
  }
}


/* v1.38 - Nettoyage fiche zone et titres longs */
.ahm-city-header--zone {
  align-items: flex-start;
  gap: 0;
}
.ahm-city-header--zone h3 {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  line-height: 1.05 !important;
  max-width: 100%;
}
.ahm-city-header--zone .ahm-zone-badge,
.ahm-zone-help {
  display: none !important;
}
.ahm-detail-column .ahm-city-header h3 {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* v1.40 - Correction chevauchement badge agence sur fiche commune */
.ahm-detail-column .ahm-city-header:not(.ahm-city-header--zone) {
  display: block !important;
}

.ahm-detail-column .ahm-city-header:not(.ahm-city-header--zone) > div:first-child {
  min-width: 0;
  width: 100%;
}

.ahm-detail-column .ahm-city-header:not(.ahm-city-header--zone) h3 {
  margin-right: 0 !important;
  max-width: 100% !important;
}

.ahm-detail-column .ahm-city-header:not(.ahm-city-header--zone) .ahm-zone-badge {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  width: auto;
  margin-top: 8px;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-align: left;
  border-radius: 18px;
}
