:root {
  --red: #d71920;
  --gold: #ffcf33;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f8fa;
  --white: #ffffff;
  --green: #15803d;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
  font: inherit;
}

.finder-shell {
  width: min(1440px, 100%);
  min-height: 0;
  margin: 0 auto;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.finder-header {
  min-height: 86px;
  padding: 16px 28px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.finder-actions-header {
  min-height: 58px;
  padding: 12px 28px 10px;
  justify-content: flex-end;
  border-bottom: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.drb-logo {
  width: 184px;
  height: auto;
  flex: 0 0 auto;
}

.finder-brand {
  min-width: 74px;
  padding-left: 0;
  border-left: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  flex: 0 0 auto;
}

.finder-pin {
  width: 42px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(17, 24, 39, 0.12));
}

.finder-brand span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drbvf-page-brand {
  display: inline-grid;
  justify-items: center;
  gap: 2px;
  min-width: 86px;
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  vertical-align: middle;
}

.drbvf-page-brand img {
  width: 42px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(17, 24, 39, 0.12));
}

.drbvf-page-brand span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.controls {
  padding: 10px 24px 11px;
  display: grid;
  grid-template-columns: minmax(215px, 0.95fr) minmax(132px, 0.45fr) minmax(165px, 0.55fr) minmax(225px, 0.78fr) auto 38px;
  gap: 9px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 78%, #fff7d6 100%);
}

.field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

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

input,
select {
  width: 100%;
  height: 38px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.14);
}

.input-icon,
.input-action {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i,
.input-icon > svg {
  position: absolute;
  left: 13px;
  width: 17px;
  height: 17px;
  color: #4b5563;
  pointer-events: none;
  flex: 0 0 auto;
}

.input-icon input {
  padding-left: 42px;
}

.input-action {
  gap: 6px;
}

.input-action input {
  flex: 1 1 auto;
}

.input-action.is-attention input {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.14);
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 900;
  max-height: 300px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
}

.input-icon .suggestions {
  left: 0;
}

.input-action .suggestions {
  right: 0;
}

.suggestion-item {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f3;
  background: #ffffff;
  color: var(--ink);
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item:hover {
  background: #fff7d6;
}

.suggestion-item span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.suggestion-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.icon-button,
.text-button {
  height: 38px;
  border: 1px solid #cfd4dc;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.icon-button {
  width: 38px;
  flex: 0 0 38px;
}

.icon-button i,
.text-button i,
.icon-button svg,
.text-button svg {
  width: 18px;
  height: 18px;
}

.text-button {
  padding: 0 12px;
  font-weight: 700;
}

.text-button.compact {
  height: 34px;
  font-size: 13px;
}

.icon-button:hover,
.text-button:hover {
  transform: translateY(-1px);
  border-color: var(--red);
  background: #fff5f5;
}

.field-radius input {
  accent-color: var(--red);
  height: 38px;
  margin: 0;
}

.field-radius {
  padding: 0 3px 0;
}

.field-toggle,
.field-reset {
  align-self: end;
}

.content {
  flex: 0 0 auto;
  height: clamp(600px, calc(100vh - 180px), 860px);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
}

body:not(.has-search) .content {
  grid-template-columns: 1fr;
}

body:not(.has-search) .results {
  display: none;
}

.map-wrap {
  position: relative;
  min-height: 0;
  height: 100%;
  background: #dbe4e9;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.map-status {
  position: absolute;
  top: 14px;
  left: 58px;
  z-index: 500;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.map-wrap .leaflet-top,
.map-wrap .leaflet-bottom {
  z-index: 400;
}

.map-wrap .leaflet-top.leaflet-left {
  top: 108px;
}

.leaflet-germany-outline-pane {
  opacity: 1;
  transition: opacity 120ms ease;
}

#map.is-outline-zooming .leaflet-germany-outline-pane {
  opacity: 0;
  transition-duration: 0ms;
}

.location-consent {
  position: fixed;
  inset: 0;
  z-index: 2200;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.46);
}

.location-consent[hidden] {
  display: none;
}

.location-consent-panel {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
}

.location-consent-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.location-consent h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.location-consent p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.location-consent-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-primary {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.location-primary:hover {
  background: #d71920;
  color: #ffffff;
}

.results {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.results-head {
  min-height: 64px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.results-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.results-head strong {
  display: block;
  margin-top: 2px;
  font-size: 26px;
  line-height: 1;
}

.result-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 14px 10px;
  scroll-padding: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-note {
  flex: 0 0 auto;
  margin: 6px 0 8px;
  padding: 9px 16px;
  border: 1px solid rgba(17, 24, 39, 0.92);
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 10px 14px;
  animation: dataNoteIntro 1000ms ease 250ms 1;
}

.data-note p {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.data-note span {
  display: block;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.data-note a {
  width: 32px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.data-note a:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.7);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.data-note a svg {
  width: 17px;
  height: 17px;
}

@keyframes dataNoteIntro {
  0% {
    transform: translateY(5px);
    border-color: rgba(215, 25, 32, 0.52);
    box-shadow: 0 0 0 0 rgba(215, 25, 32, 0.24);
  }

  55% {
    transform: translateY(0);
    box-shadow: 0 0 0 6px rgba(215, 25, 32, 0.08);
  }

  100% {
    transform: translateY(0);
    border-color: rgba(215, 25, 32, 0.18);
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-note {
    animation: none;
  }
}

.result-item {
  flex: 0 0 auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease,
    background 160ms ease;
}

.result-item.has-distance {
  padding-right: 72px;
}

.result-item:hover,
.result-item.is-active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.11);
}

.result-item.is-search-match {
  border-color: rgba(255, 207, 51, 0.95);
  background: linear-gradient(90deg, #fff8d7 0%, #ffffff 68%);
  box-shadow: inset 4px 0 0 var(--gold), 0 8px 20px rgba(255, 207, 51, 0.18);
  animation: resultMatchPulse 1400ms ease-in-out infinite;
}

.result-item.is-active {
  padding-top: 12px;
  padding-bottom: 12px;
  border-color: rgba(17, 24, 39, 0.86);
  background: linear-gradient(90deg, #f3f4f6 0%, #ffffff 62%, #fff8d7 100%);
  box-shadow: inset 5px 0 0 var(--ink), 0 12px 28px rgba(17, 24, 39, 0.18);
  animation: resultActivePulse 1100ms ease-in-out infinite, resultExpand 180ms ease;
}

.result-item.is-active .result-name {
  color: var(--ink);
}

.result-item.is-collapsed .result-contact,
.result-item.is-collapsed > .details-link {
  display: none;
}

.result-item.is-collapsed .result-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 1.22;
}

.result-item.is-collapsed .result-meta {
  margin-top: 5px;
}

.result-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.24;
}

.search-highlight {
  display: inline-block;
  margin: 0 1px;
  padding: 1px 3px 2px;
  border-radius: 4px;
  background: #fff3c4;
  color: #b91c1c;
  font-size: 1.12em;
  font-weight: 950;
  line-height: 1;
  animation: searchHighlightPulse 1300ms ease-in-out infinite;
}

.badge .search-highlight,
.suggestion-item .search-highlight {
  font-size: 1.06em;
}

@keyframes searchHighlightPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(215, 25, 32, 0);
    transform: translateY(0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(255, 207, 51, 0.32);
    transform: translateY(-1px);
  }
}

@keyframes resultMatchPulse {
  0%,
  100% {
    box-shadow: inset 4px 0 0 var(--gold), 0 8px 20px rgba(255, 207, 51, 0.18);
  }

  50% {
    box-shadow: inset 4px 0 0 var(--gold), 0 12px 30px rgba(255, 207, 51, 0.34);
  }
}

@keyframes resultActivePulse {
  0%,
  100% {
    box-shadow: inset 5px 0 0 var(--ink), 0 12px 28px rgba(17, 24, 39, 0.18);
  }

  50% {
    box-shadow: inset 5px 0 0 var(--ink), 0 16px 36px rgba(17, 24, 39, 0.34);
  }
}

@keyframes resultExpand {
  from {
    transform: translateY(-2px);
  }

  to {
    transform: translateY(0);
  }
}

.result-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.badge {
  min-height: 23px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.badge-lo {
  background: #111827;
  color: #ffffff;
}

.badge-league {
  background: #fff1f2;
  color: var(--red);
  border: 1px solid rgba(215, 25, 32, 0.22);
}

.badge-status {
  background: #fff3c4;
  color: #8a4b00;
}

.badge-status.sicher {
  background: #dcfce7;
  color: var(--green);
}

.result-contact {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
}

.result-contact a {
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f9fafb;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.result-contact a svg {
  width: 14px;
  height: 14px;
  color: #b91c1c;
  flex: 0 0 auto;
}

.result-contact a span {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .search-highlight,
  .result-item.is-search-match,
  .result-item.is-active,
  .club-pin-active {
    animation: none;
  }
}

.details-link {
  margin-top: 10px;
  width: fit-content;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  background: #111827;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.details-link:hover {
  background: #d71920;
}

.result-contact .details-link {
  margin-top: 0;
}

.result-contact a:hover {
  background: #fff1f2;
}

.popup-contact {
  margin-top: 8px;
}

.popup-contact a {
  color: #b91c1c;
  font-weight: 800;
  text-decoration: none;
}

.popup-actions {
  margin: 10px 0 0;
}

.popup-actions a {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.detail-shell {
  min-height: 100vh;
  background: #f6f7f9;
}

.club-detail {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.detail-main {
  min-width: 0;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.detail-hero {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.detail-title {
  min-width: 0;
  flex: 1 1 auto;
}

.club-logo-slot {
  width: 132px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.club-logo-slot[hidden] {
  display: none;
}

.club-logo-slot img {
  display: block;
  width: 100%;
  max-height: 112px;
  object-fit: contain;
}

.detail-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-main h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-list {
  margin: 34px 0 0;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px 22px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.45;
}

.detail-list a {
  color: #b91c1c;
  text-decoration: none;
}

.federation-extra {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  justify-content: flex-start;
}

a.federation-link {
  width: min(100%, 282px);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

a.federation-link:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 25, 32, 0.38);
  background: #fffdf2;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.detail-list a.league-link {
  width: fit-content;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.detail-list a.league-link:hover {
  border-color: rgba(215, 25, 32, 0.38);
  background: #fffdf2;
}

.league-mark {
  padding: 4px 7px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.federation-logo {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.federation-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  padding: 3px;
  object-fit: contain;
}

.federation-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.federation-copy small {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.federation-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.detail-map-wrap {
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #dbe4e9;
}

#detailMap {
  width: 100%;
  height: 100%;
  min-height: 620px;
}

.distance {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 52px;
  min-height: 24px;
  padding: 5px 6px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.empty {
  padding: 28px 14px;
  color: var(--muted);
  text-align: center;
}

.club-pin {
  width: 24px !important;
  height: 24px !important;
  border-radius: 999px;
  background: var(--red);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.28), 0 5px 16px rgba(17, 24, 39, 0.34);
}

.club-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: var(--gold);
}

.club-pin-hover {
  width: 32px !important;
  height: 32px !important;
  background: var(--red);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.22), 0 0 0 10px rgba(255, 207, 51, 0.28),
    0 12px 28px rgba(17, 24, 39, 0.38);
  animation: activePinPulse 1100ms ease-in-out infinite;
}

.club-pin-hover::after {
  inset: 8px;
  background: var(--ink);
}

.club-pin-active {
  width: 32px !important;
  height: 32px !important;
  background: var(--ink);
  border-width: 4px;
  box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.42), 0 8px 22px rgba(17, 24, 39, 0.34);
  animation: activePinPulse 1100ms ease-in-out infinite;
}

.club-pin-active::after {
  inset: 8px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 207, 51, 0.35);
}

.center-pin {
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px;
  background: #111827;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.28);
}

@keyframes activePinPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(17, 24, 39, 0.42), 0 8px 22px rgba(17, 24, 39, 0.34);
  }

  50% {
    box-shadow: 0 0 0 9px rgba(17, 24, 39, 0.16), 0 12px 28px rgba(17, 24, 39, 0.38);
  }
}

.leaflet-popup-content {
  margin: 12px;
  min-width: 270px;
  max-width: 320px;
}

.club-tooltip {
  border: 1px solid rgba(17, 24, 39, 0.16);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.16);
}

.popup-title {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

.popup-head {
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.popup-logo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.popup-logo img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.popup-head-copy {
  min-width: 0;
}

.popup-place {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.popup-federation {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.popup-federation img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.popup-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-radius,
  .field-toggle {
    align-self: initial;
  }

  .content {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .map-wrap,
  #map {
    min-height: 56vh;
    height: 56vh;
  }

  .results {
    border-left: 0;
    border-top: 1px solid var(--line);
    max-height: 44vh;
  }

  .club-detail {
    grid-template-columns: 1fr;
  }

  .detail-map-wrap,
  #detailMap {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .finder-header,
  .controls {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 10px;
  }

  .drb-logo {
    width: 132px;
  }

  .finder-brand {
    min-width: 58px;
    padding-left: 10px;
  }

  .finder-pin {
    width: 34px;
    height: 40px;
  }

  .finder-brand span {
    font-size: 9px;
    letter-spacing: 0.05em;
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .data-note {
    margin: 12px 14px 18px;
    grid-template-columns: 1fr;
  }

  .map-wrap,
  #map {
    min-height: 52vh;
  }

  .club-detail {
    padding: 14px;
  }

  .detail-main {
    padding: 18px;
  }

  .detail-hero {
    gap: 14px;
  }

  .club-logo-slot {
    width: 86px;
    min-height: 86px;
    padding: 9px;
  }

  .club-logo-slot img {
    max-height: 72px;
  }

  .detail-main h2 {
    font-size: 23px;
  }

  .detail-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  a.federation-link {
    width: 100%;
    margin-bottom: 10px;
  }
}
