/* Diretório de academias: lista em tela cheia e mapa com barra lateral. */
body.map-page {
  background: var(--bg);
}

body.map-page::before {
  display: none;
}

body.map-page .main {
  display: flex;
  flex-direction: column;
  padding: 0;
}

html:has(body.map-page .map-app[data-view="map"]),
body.map-page:has(.map-app[data-view="map"]) {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body.map-page:has(.map-app[data-view="map"]) {
  padding-bottom: 0 !important;
}

body.map-page:has(.map-app[data-view="map"]) .site-header {
  position: relative;
  flex: 0 0 auto;
}

body.map-page:has(.map-app[data-view="map"]) .main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.map-page:has(.map-app[data-view="map"]) .compare-tray {
  display: none;
}

body.map-page.has-map-panel {
  overflow: hidden;
}

body.map-page.has-map-panel .main {
  z-index: calc(var(--z-skip) + 1);
}

.map-overview {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.15rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-overview h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.map-overview p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

body.map-page:has(.map-app[data-view="map"]) .map-overview {
  gap: 0.35rem;
  padding: 0.4rem 1rem;
}

body.map-page:has(.map-app[data-view="map"]) .map-overview h1 {
  font-size: 1.15rem;
}

body.map-page:has(.map-app[data-view="map"]) .map-overview > div > p {
  display: none;
}

.explorer-breadcrumbs {
  margin-bottom: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.explorer-breadcrumbs a {
  color: var(--brand);
}

.map-app {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}

.map-app[data-view="map"] {
  flex: 1 1 auto;
  min-height: 0;
}

.map-app:not(.is-enhanced) [data-view-tab="map"] {
  display: none;
}

.map-tabs {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding-inline: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.map-app[data-view="list"] .map-tabs {
  position: sticky;
  top: var(--map-header-height, var(--header-h));
  z-index: 15;
}

.map-tabs-views {
  display: flex;
  align-self: stretch;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
}

.map-tabs [data-view-tab] {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0 1rem;
  color: var(--ink-soft);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.map-tabs [aria-selected="true"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.map-filters-toggle,
.map-panel-close {
  display: none;
}

.map-shell {
  display: flex;
  min-width: 0;
  background: var(--surface-muted);
}

.map-app[data-view="map"] .map-shell {
  flex: 1 1 auto;
  min-height: 0;
}

.map-app[data-view="list"] .map-shell {
  flex: 1 0 auto;
  align-items: stretch;
}

.map-sidebar {
  display: flex;
  flex: 0 0 17.5rem;
  flex-direction: column;
  gap: 1rem;
  align-self: flex-start;
  min-height: 0;
  min-width: 0;
  max-height: calc(100dvh - var(--map-header-height, var(--header-h)) - 3rem);
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface-muted);
}

.map-app[data-view="list"] .map-sidebar {
  position: sticky;
  top: calc(var(--map-header-height, var(--header-h)) + 3rem);
}

.map-app[data-view="map"] .map-sidebar {
  align-self: stretch;
  max-height: none;
  flex-shrink: 0;
}

.map-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.map-sidebar-heading h2,
.directory-content h2 {
  margin: 0;
  font-size: 1.15rem;
}

.map-sidebar .btn {
  width: 100%;
}

.city-sidebar-form,
.map-state {
  display: grid;
  gap: 0.45rem;
}

.map-state > span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.map-state input,
.map-state select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.map-clear-filters,
.directory-scope-links a,
.explorer-cities > a,
.explorer-state-link {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.directory-scope-links,
.explorer-cities {
  display: grid;
  gap: 0.35rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.explorer-cities details {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.explorer-cities summary {
  padding-block: 0.55rem;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
}

.explorer-cities summary small,
.explorer-cities a small,
.directory-state-links small {
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.explorer-cities summary small {
  float: right;
}

.explorer-cities details a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  text-decoration: none;
}

.explorer-cities a:hover,
.explorer-cities [aria-current="page"] {
  background: var(--surface-muted);
  color: var(--brand);
}

.explorer-city-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.map-panel-scrim {
  display: none;
}

.map-stage {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-inline-start: 1px solid var(--line-strong);
  background: var(--surface);
}

.map-board {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 28rem;
}

.map-app[data-view="map"] .map-board {
  min-height: 0;
}

.map-canvas,
.map-canvas .leaflet-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #d5e2ee;
  font: inherit;
}

.map-canvas {
  z-index: 1;
}

.map-index {
  min-width: 0;
  background: var(--surface);
}

.map-app[data-view="list"] .map-index {
  display: block;
  padding: 1.4rem 1.5rem 2rem;
}

.map-board[hidden],
.map-index[hidden],
.map-panel-scrim[hidden],
.map-load-status[hidden],
.map-app [hidden] {
  display: none;
}

.map-load-status {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.5rem;
  background: var(--surface);
  text-align: center;
}

.map-load-status p,
.map-location-note,
.map-no-script,
.map-source,
.directory-content p,
.category-empty p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
}

.map-location-note {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 5;
  width: min(24rem, calc(100% - 7.5rem));
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  font-size: 0.75rem;
  pointer-events: none;
}

.map-tally {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  margin: 0;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--signal);
  color: var(--black);
  font-size: 0.75rem;
  font-weight: 800;
  pointer-events: none;
}

.map-in-view {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 5;
  display: grid;
  gap: 0.15rem;
  width: min(18rem, calc(100% - 7.5rem));
  max-height: min(16.5rem, 48%);
  margin: 0;
  padding: 0.4rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--surface) 94%, transparent);
}

.map-in-view p {
  margin: 0;
  padding: 0.2rem 0.4rem 0.15rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.map-in-view ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-in-view button {
  display: grid;
  width: 100%;
  padding: 0.32rem 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.map-in-view button:hover,
.map-in-view button.is-open {
  background: var(--brand-soft);
}

.map-in-view button span,
.map-in-view button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-in-view button span {
  font-size: 0.84rem;
  font-weight: 750;
}

.map-in-view button small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.map-no-script {
  padding: 1rem;
}

.map-app .map-pin-wrap,
.map-app .map-cluster-wrap,
.map-app .leaflet-div-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}

.map-app .leaflet-tooltip.map-tip {
  padding: 0.28rem 0.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand-deep);
  color: var(--white);
  font-weight: 750;
  box-shadow: var(--shadow-low);
}

.map-canvas:focus-visible,
.map-app a:focus-visible,
.map-app button:focus-visible,
.map-app input:focus-visible,
.map-app select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.map-app .leaflet-marker-icon:focus-visible {
  outline-color: #14614a;
}

.map-app .leaflet-control-zoom a {
  width: 42px;
  height: 42px;
  line-height: 42px;
}

.map-app .leaflet-control-attribution {
  color: #10241c;
  background: #fff;
}

.map-app .leaflet-control-attribution a {
  color: #14614a;
}

.map-app .leaflet-container a.leaflet-popup-close-button {
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 36px;
}

.map-app .leaflet-tooltip.map-tip::before {
  border-top-color: var(--brand-deep);
}

.map-app .leaflet-tooltip.map-tip-label {
  padding: 0.12rem 0.38rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: #fff;
  color: #10241c;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  box-shadow: 0 1px 3px oklch(12% 0.025 155 / 0.35);
}

.map-app .leaflet-tooltip.map-tip-label::before {
  display: none;
}

.map-app .map-gym-pin {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1.5px var(--white), 0 1px 3px oklch(12% 0.025 155 / 0.45);
}

.map-app .map-gym-pin.is-open {
  background: var(--brand-deep);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 6px var(--signal);
}

.map-app .is-selected .map-gym-pin {
  background: var(--brand-deep);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 6px var(--signal);
}

.map-app .map-city-pin,
.map-app .map-cluster {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 1px 2px oklch(12% 0.025 155 / 0.2), 0 6px 16px oklch(12% 0.025 155 / 0.28);
}

.map-app .map-city-pin {
  background: #073427;
  color: var(--white);
}

.map-app .map-cluster {
  background: var(--signal);
  color: var(--black);
}

.map-popup {
  display: grid;
  gap: 0.35rem;
}

.map-popup img {
  display: block;
  width: 100%;
  height: 9.2rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.map-popup small {
  color: #3d4a45;
  font-size: 0.72rem;
}

.map-popup strong {
  padding-inline-end: 1rem;
  color: #10241c;
  font-size: 0.95rem;
}

.map-popup span,
.map-popup p {
  margin: 0;
  color: #3d4a45;
  font-size: 0.8rem;
}

.map-app .leaflet-popup-content .map-popup a,
.map-popup a {
  color: #14614a;
  font-weight: 750;
}

.map-popup a.map-popup-phone {
  font-size: 0.84rem;
}

.directory-content {
  display: grid;
  gap: 2rem;
}

.directory-section-heading h2 {
  margin-bottom: 0.2rem;
}

.directory-regions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.directory-regions a {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.directory-regions a:hover {
  border-color: var(--brand);
  background: var(--surface-muted);
}

.directory-regions strong {
  color: var(--ink);
}

.directory-regions b,
.directory-city-card b,
.gym-nearby-distance {
  color: var(--brand);
  font-size: 1.45rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.directory-regions span {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.city-suggest {
  display: grid;
  gap: 0.1rem;
}

.city-suggest a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.84rem;
  text-decoration: none;
}

.city-suggest a:hover,
.city-suggest a.is-active {
  background: var(--surface-muted);
  color: var(--brand);
}

.city-suggest a.is-place {
  display: grid;
  justify-items: stretch;
}

.city-suggest a.is-place span,
.city-suggest a.is-place small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-suggest a.is-place small {
  text-align: start;
}

.city-suggest small,
.city-suggest p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 500;
}

.city-suggest p {
  padding: 0.25rem 0.15rem;
}

.directory-state-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.45rem;
}

.directory-state-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  text-decoration: none;
}

.directory-state-links a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.directory-state-links--photos {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.directory-state-links .directory-state-card {
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.65rem;
}

.directory-state-photo {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--surface-muted);
}

.directory-state-copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.directory-state-copy strong {
  line-height: 1.3;
}

.directory-photo-caption {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}

.directory-fold {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.directory-fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  cursor: pointer;
}

.directory-fold summary h2 {
  margin: 0;
  font-size: 1.05rem;
}

.directory-fold summary small {
  color: var(--ink-soft);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.directory-fold .directory-state-links {
  padding: 0 0.95rem 0.95rem;
}

.directory-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.directory-city-card {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.directory-city-main {
  display: grid;
  gap: 0.2rem;
  color: var(--ink);
  text-decoration: none;
}

.directory-city-main strong {
  font-size: 1.05rem;
}

.directory-city-main span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.directory-city-card:hover {
  border-color: var(--brand);
}

.directory-facets {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.directory-facets legend {
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 750;
}

.directory-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.directory-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.directory-chips a small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.directory-chips a:hover,
.directory-chips a[aria-current="page"] {
  border-color: transparent;
  background: var(--signal);
  color: var(--black);
}

.directory-chips a:hover small,
.directory-chips a[aria-current="page"] small {
  color: var(--black);
}

.gym-chain {
  display: inline-block;
  margin: 0.35rem 0 0;
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--signal);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
}

.page-hero-plain {
  grid-template-columns: 1fr;
  min-height: 0;
}

.directory-city-cover,
.gym-card-photo,
.gym-nearby-photo,
.place-hero {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
}

.directory-city-cover {
  height: auto;
  min-height: 11rem;
  border-inline-end: 1px solid var(--line);
  text-decoration: none;
}

.directory-city-cover img {
  position: absolute;
  inset: 0;
}

.directory-city-cover img,
.gym-card-photo img,
.gym-nearby-photo img,
.place-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.gym-card:hover .gym-card-photo img,
.directory-city-card:hover .directory-city-cover img,
.gym-nearby:hover .gym-nearby-photo img {
  transform: scale(1.05);
}

.gym-card-photo .place-pin,
.gym-nearby-photo .place-pin,
.directory-city-cover .place-pin {
  width: 0.7rem;
  height: 0.7rem;
  box-shadow: 0 0 0 0.22rem color-mix(in oklab, var(--signal) 78%, transparent), 0 2px 6px oklch(12% 0.025 155 / 0.4);
}

.place-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 0.9rem;
  height: 0.9rem;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0.35rem color-mix(in oklab, var(--signal) 72%, transparent), 0 4px 10px oklch(12% 0.025 155 / 0.35);
  transform: translate(-50%, -50%);
}

.directory-city-count {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 1;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--brand-deep);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
}

.directory-city-card > div {
  padding: 0.9rem 1rem 1rem;
}

.directory-city-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.directory-city-card h3 a {
  text-decoration: none;
}

.directory-city-card p {
  margin: 0.35rem 0 0;
}

.directory-state-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.directory-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1.2rem;
}

.directory-pagination > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.directory-pagination a {
  display: grid;
  place-items: center;
  min-width: 2.3rem;
  min-height: 2.3rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.directory-pagination [aria-current="page"] {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--white);
}

.gym-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: 0.9rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.gym-card,
.directory-city-card,
.gym-nearby {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gym-card:hover,
.directory-city-card:hover,
.gym-nearby:hover,
.gym-card.is-open {
  border-color: var(--brand);
  box-shadow: var(--shadow-low);
}

.gym-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.gym-card-photo {
  display: block;
  height: 11.5rem;
  text-decoration: none;
}

.gym-card-copy {
  min-width: 0;
  padding: 0.85rem 0.95rem 0;
}

.gym-card h3,
.gym-nearby h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.gym-card h3 a,
.gym-nearby h3 a,
.directory-city-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.gym-card h3 a:hover,
.gym-nearby h3 a:hover,
.directory-city-card h3 a:hover {
  color: var(--brand-deep);
}

.directory-content .gym-card-kind {
  margin: 0.25rem 0 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
}

.gym-card-city {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 750;
}

.gym-card-city a {
  color: var(--brand);
  text-decoration: none;
}

.gym-card-address,
.gym-nearby p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.gym-card-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.75rem;
  margin-top: 0.35rem;
}

.gym-card-phone {
  margin: 0;
  font-size: 0.84rem;
}

.gym-card-phone a,
.gym-card-site a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.gym-card-site {
  margin: 0;
  font-size: 0.82rem;
}

.gym-card .map-row-locate {
  align-self: flex-start;
  margin: 0.75rem 0.95rem 0.9rem;
}

.gym-nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gym-nearby {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.9rem 1rem 1rem;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.gym-nearby h3,
.gym-nearby p {
  margin: 0;
}

.gym-nearby-distance {
  margin: 0;
}

.map-row-locate {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.3rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--brand);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.map-row-locate:hover {
  background: var(--surface-muted);
}

.category-empty h3 {
  margin: 0;
}

.map-source {
  padding-top: 0.8rem;
  font-size: 0.82rem;
}

.gym-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0 0;
}

.gym-facts div {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.gym-facts dt {
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.gym-facts dd {
  margin: 0.28rem 0 0;
}

.gym-facts + .hero-actions {
  margin-top: 1rem;
}

.directory-criteria {
  padding-bottom: 0.4rem;
}

.directory-criteria .criteria-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  margin-top: 0.75rem;
}

.directory-criteria .criterion,
.directory-criteria .criterion + .criterion {
  padding: 1rem 0;
}

.directory-criteria .criterion-index {
  display: none;
}

.directory-criteria .criterion h3 {
  font-size: 1.1rem;
}

.map-filter-label-short {
  display: none;
}

@media (max-width: 1100px) {
  .directory-regions,
  .directory-city-grid,
  .gym-nearby-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .map-stage {
    border-inline-start: 0;
  }

  .map-overview {
    align-items: flex-start;
    padding: 0.9rem;
  }

  .map-app.is-enhanced .map-filters-toggle,
  .map-app.is-enhanced .map-panel-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.3rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
  }

  .map-panel-close {
    width: 2.3rem;
    padding-inline: 0;
  }

  .map-app.is-enhanced .map-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1001;
    width: min(20rem, calc(100vw - 2.5rem));
    height: 100dvh;
    max-height: none;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
    visibility: hidden;
    transform: translateX(-105%);
    box-shadow: 4px 8px 24px rgb(0 0 0 / 18%);
  }

  .map-app.is-panel .map-sidebar {
    visibility: visible;
    transform: none;
  }

  .map-app.is-panel .map-panel-scrim:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    border: 0;
    background: rgb(8 16 12 / 38%);
  }

  .map-app:not(.is-enhanced) .map-shell {
    flex-direction: column;
  }

  .map-app:not(.is-enhanced) .map-sidebar {
    position: static;
    flex-basis: auto;
    width: auto;
    max-height: none;
  }

  .map-app[data-view="list"] .map-index {
    padding: 1rem 0.9rem 1.6rem;
  }

  .gym-card-photo {
    height: 12.5rem;
  }

  .directory-city-grid,
  .gym-nearby-grid {
    grid-template-columns: 1fr;
  }

  .map-in-view {
    display: none;
  }

  .map-tally {
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.35rem 0.55rem;
  }

  .map-location-note {
    bottom: 1.75rem;
    width: auto;
    right: 0.75rem;
  }

  .map-tabs {
    gap: 0.4rem;
    padding-inline: 0.5rem;
  }

  .map-tabs [data-view-tab] {
    padding-inline: 0.75rem;
  }

  .directory-criteria .criteria-grid {
    grid-template-columns: 1fr;
  }
}

html[data-theme="dark"] .map-app .leaflet-tooltip.map-tip {
  background: #073427;
  color: #fff;
}

html[data-theme="dark"] .map-shell,
html[data-theme="dark"] .map-sidebar,
html[data-theme="dark"] .map-in-view {
  border-color: oklch(48% 0.05 155);
  background: oklch(17% 0.035 156);
}

html[data-theme="dark"] .gym-card,
html[data-theme="dark"] .directory-city-card,
html[data-theme="dark"] .gym-nearby,
html[data-theme="dark"] .directory-fold,
html[data-theme="dark"] .directory-regions a,
html[data-theme="dark"] .directory-state-links a,
html[data-theme="dark"] .directory-chips a {
  background: oklch(23% 0.04 156);
  border-color: oklch(46% 0.055 155);
}

html[data-theme="dark"] .map-state input,
html[data-theme="dark"] .map-state select,
html[data-theme="dark"] .explorer-cities input {
  background: oklch(12% 0.025 155);
  border-color: oklch(50% 0.045 155);
  color: var(--ink);
}

html[data-theme="dark"] .directory-chips a:hover,
html[data-theme="dark"] .directory-chips a[aria-current="page"],
html[data-theme="dark"] .gym-chain {
  background: var(--signal);
  border-color: transparent;
  color: var(--black);
}

@media (prefers-reduced-motion: reduce) {
  .gym-card,
  .directory-city-card,
  .gym-nearby,
  .directory-city-cover img,
  .gym-card-photo img,
  .gym-nearby-photo img {
    transition: none;
  }

  .gym-card:hover .gym-card-photo img,
  .directory-city-card:hover .directory-city-cover img,
  .gym-nearby:hover .gym-nearby-photo img {
    transform: none;
  }
}

@media (max-width: 380px) {
  .map-filter-label-full {
    display: none;
  }

  .map-filter-label-short {
    display: inline;
  }
}
