.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: start;
}
.map-results {
  min-width: 0;
}
.map-layout .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.map-layout .image-wrap {
  height: 150px;
}
.map-layout .photo {
  height: 150px;
  object-fit: cover;
}
.map-layout .card-body {
  padding: 20px;
}
.map-layout .card-body h3 {
  font-size: 1.4rem;
}
.map-layout .card-body > p {
  font-size: 0.95rem;
}
.map-panel {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid #ccd5d1;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
}
.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  background: #113e34;
  color: white;
  font-size: 0.95rem;
  gap: 12px;
}
.map-toolbar button {
  background: transparent;
  color: white;
  border: 1px solid #ffffff60;
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}
.map-toolbar button:hover {
  background: #ffffff20;
}
#club-map {
  height: min(65vh, 660px);
  min-height: 360px;
  background: #e5ebe8;
  z-index: 0;
  font-family: inherit;
}
.map-note,
.map-credit {
  margin: 0;
  padding: 12px 18px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.map-credit {
  padding-top: 0;
  color: #58645e;
}
.map-credit a {
  color: inherit;
  text-decoration: underline;
}
.map-view-toggle {
  display: flex;
  border: 1px solid #9dafaa;
  border-radius: 8px;
  padding: 3px;
  gap: 3px;
}
.map-view-toggle button {
  border: 0;
  background: transparent;
  padding: 9px 16px;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
  color: #173c32;
}
.map-view-toggle button[aria-pressed='true'] {
  background: #173c32;
  color: white;
}
.padel-pin {
  background: transparent;
  border: 0;
}
.padel-pin span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: #124d3e;
  color: white;
  border: 2px solid white;
  box-shadow: 0 2px 8px #0005;
  font-weight: 700;
  font-size: 15px;
}
.padel-pin span::first-letter {
  transform: rotate(45deg);
}
.padel-pin span {
  border-radius: 50%;
  transform: none;
}
.padel-pin:focus {
  outline: 3px solid #cb7449;
  outline-offset: 3px;
}
.club-map-popup {
  font-family: inherit;
  line-height: 1.45;
  min-width: 190px;
}
.club-map-popup small {
  color: #52625d;
  font-size: 13px;
}
.club-map-popup .map-club-title {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #143e33;
  margin: 6px 0;
}
.club-map-popup p {
  font-size: 14px;
  margin: 9px 0;
}
.club-map-popup > div {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.club-map-popup a {
  color: #143e33;
  font-size: 14px;
}
.leaflet-container .leaflet-control-attribution {
  font-size: 12px;
}
.map-selected {
  outline: 3px solid #bb633b;
  outline-offset: 3px;
}
.show-on-map {
  margin: 0 20px 18px;
  padding: 7px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #a7b7af;
  color: #214f3e;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  align-self: start;
}
.map-loading {
  padding: 24px;
  line-height: 1.6;
}
.detail-map {
  position: relative;
  top: auto;
  margin: 0 0 28px;
}
.detail-map #club-map {
  height: 320px;
  min-height: 280px;
}
.map-layout .card[hidden] {
  display: none;
}
.map-results .load-wrap {
  margin-bottom: 0;
}
.map-layout .card-link {
  display: block;
}
.map-layout .card {
  display: flex;
  flex-direction: column;
}
.map-layout .card-link {
  flex: 1;
}
.map-view-toggle button:focus-visible,
.show-on-map:focus-visible {
  outline: 3px solid #bb633b;
  outline-offset: 3px;
}
@media (min-width: 960px) {
  .map-view-toggle {
    display: none;
  }
  .map-results {
    max-height: 1000px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 4px;
  }
  .map-layout .card-foot {
    font-size: 0.85rem;
    gap: 8px;
  }
  .map-layout .tags {
    flex-wrap: wrap;
  }
}
@media (max-width: 1150px) and (min-width: 960px) {
  .map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr);
  }
  .map-layout .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 959px) {
  .map-layout {
    display: block;
  }
  .map-layout[data-view='list'] .map-panel {
    display: none;
  }
  .map-layout[data-view='map'] .map-results {
    display: none;
  }
  .map-panel {
    position: relative;
    top: auto;
  }
  .map-layout .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #club-map {
    height: 60vh;
    min-height: 350px;
  }
  .view-controls {
    flex-wrap: wrap;
  }
  .section-heading {
    gap: 16px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .map-layout .cards {
    grid-template-columns: 1fr;
  }
  .map-layout .image-wrap,
  .map-layout .photo {
    height: 210px;
  }
  .map-toolbar {
    padding: 12px 14px;
  }
  .map-note,
  .map-credit {
    padding-left: 14px;
    padding-right: 14px;
  }
  .detail-map #club-map {
    height: 300px;
  }
  .map-layout .card-body h3 {
    font-size: 1.6rem;
  }
}

.google-club-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 2px solid white;
  border-radius: 18px;
  background: #700b24;
  color: white;
  font:
    600 14px Arial,
    sans-serif;
  box-shadow: 0 2px 7px #0004;
}
#club-map .gm-style .club-map-popup {
  padding: 2px 4px 10px;
  font:
    14px/1.5 Arial,
    sans-serif;
}
