/* Approved club concepts: consistent typography, media and useful content. */
body:has(.club-profile) {
  --ink: #17231f;
  --muted: #647068;
  --line: #e0e6e1;
  --serif: var(--sans);
}
.club-profile :is(h1, h2, h3) {
  font-family: var(--sans);
  text-wrap: balance;
}
.club-profile .detail-heading {
  padding: 38px 0 32px;
  position: relative;
}
.club-profile .club-title h1 {
  font-size: clamp(36px, 4.7vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  max-width: 1050px;
}
.club-profile .club-title {
  align-items: center;
}
.club-profile .detail-heading .eyebrow {
  color: #657269;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.club-profile .club-actions {
  gap: 10px;
  margin: 18px 0 0;
}
.club-profile .club-actions .outline {
  border-radius: 7px;
  background: #f0f3ef;
  border: 0;
}
.club-profile .profile-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  margin: 22px 0 12px;
}
.club-profile .profile-ratings > :is(a, div):not(:empty) {
  border: 0;
  border-radius: 9px;
  background: #f0f3ef;
  padding: 14px 18px;
  min-width: 230px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.club-profile .profile-ratings .local-rating-summary {
  border-left: 0;
}
.club-profile .profile-ratings .local-rating-summary > span {
  white-space: nowrap;
}
.club-profile .profile-ratings .local-rating-summary strong {
  padding: 0;
}
.club-profile .profile-hero-grid {
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  --club-media-height: 400px;
  grid-template-rows: var(--club-media-height) auto;
  gap: 10px 24px;
  align-items: stretch;
}
.club-profile #profile-media {
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: var(--club-media-height) auto;
  gap: 10px;
}
.club-profile #profile-media > :is(.integrated-gallery, .profile-gallery, .profile-placeholder) {
  height: var(--club-media-height);
  min-height: 0;
  max-height: var(--club-media-height);
  border-radius: 14px;
  overflow: hidden;
}
.club-profile #profile-media > :is(.photo-credit, .integrated-photo-credit) {
  grid-row: 2;
  margin: 0;
}
.club-profile .hero-booking {
  grid-row: 1;
  align-self: stretch;
}
.club-profile .hero-booking .booking-box {
  height: 100%;
  background: #f0f3ef;
  border: 0;
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.club-profile .hero-booking .booking-box h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.045em;
}
.club-profile .hero-booking .booking-box > p {
  font-size: 16px;
}
.club-profile .hero-booking .booking-box .small-note {
  font-size: 13px;
}
.club-profile .hero-booking .booking-facts {
  display: none;
}
.club-profile .hero-booking .booking-directions {
  margin-top: auto;
}
.club-profile.profile-premium .hero-booking .booking-box {
  background: #172f24;
  color: #fff;
}
.club-profile.profile-premium .hero-booking .booking-box :is(h2, p, a) {
  color: #fff;
}
.club-profile.profile-premium .hero-booking .booking-box .primary {
  background: #fff;
  color: #172f24;
  border-color: #fff;
}
.club-profile.profile-premium .hero-booking .booking-box .outline {
  background: #294436;
  color: white;
  border-color: #587262;
}
.profile-key-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 36px 0;
  margin: 18px 0 0;
  border-bottom: 1px solid #e0e6e1;
}
.profile-key-facts > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.profile-key-facts strong {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.profile-key-facts span {
  color: #647068;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 12px;
}
.club-profile .club-tabs {
  border-top: 0;
  padding: 18px 0;
  gap: 24px;
}
.club-profile .detail-section {
  padding: 64px 0;
}
.club-profile .detail-section h2 {
  font-size: clamp(30px, 3.5vw, 50px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.club-profile .detail-section h3 {
  font-family: var(--sans);
  font-weight: 600;
}
.club-profile :is(#pricing, #before-you-go) {
  background: #f0f3ef;
  border: 0;
  border-radius: 12px;
  padding: 32px;
  margin: 28px 0;
}
.club-profile #pricing .session-estimate {
  background: white;
  color: #17231f;
  border: 0;
  border-radius: 9px;
}
.club-profile #overview .facts {
  display: none;
}
.club-profile .premium-coach-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.club-profile .premium-coach-grid article {
  border: 0;
  border-radius: 12px;
  background: #f0f3ef;
  overflow: hidden;
}
.club-profile .premium-coach-grid article > img {
  aspect-ratio: 1.25;
  width: 100%;
  object-fit: cover;
}
.club-profile .premium-coach-grid h3 {
  font-size: 22px;
}
.club-profile .premium-instagram-grid {
  gap: 20px;
}
.club-profile .hours-location-grid {
  column-gap: 32px;
}
.club-profile .hours-location-grid .hours-table {
  border-radius: 12px;
  overflow: hidden;
  background: #f0f3ef;
}
.club-profile .hours-location-grid :is(th, td) {
  background: #f0f3ef;
}
.club-profile .map-canvas {
  border-radius: 12px;
}
.club-profile .google-review-grid {
  gap: 20px;
}
.club-profile :is(.google-review, .review-card) {
  border: 0;
  border-radius: 12px;
  background: #f0f3ef;
  padding: 24px;
}
.club-profile .club-faq details {
  border-bottom: 1px solid #e0e6e1;
  padding: 18px 0;
}
.club-profile .source-box {
  border-radius: 12px;
  background: #f0f3ef;
  border: 0;
  padding: 28px;
}
@media (max-width: 900px) {
  .club-profile .premium-coach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .club-profile .profile-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .club-profile #profile-media {
    display: block;
    width: 100%;
  }
  .club-profile #profile-media > :is(.integrated-gallery, .profile-gallery, .profile-placeholder) {
    height: var(--club-media-height);
    min-height: 0;
  }
  .club-profile #profile-media > :is(.photo-credit, .integrated-photo-credit) {
    margin-top: 10px;
  }
  .club-profile .hero-booking {
    width: 100%;
  }
  .club-profile .hero-booking .booking-box {
    padding: 24px;
  }
  .profile-key-facts {
    gap: 14px;
    padding: 26px 0;
  }
  .profile-key-facts strong {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .club-profile .detail-heading {
    padding: 28px 0 24px;
  }
  .club-profile .profile-ratings > :is(a, div):not(:empty) {
    min-width: 0;
    padding: 12px;
  }
  .club-profile .profile-ratings {
    gap: 10px;
  }
  .club-profile .detail-section {
    padding: 30px 0;
  }
  .club-profile :is(#pricing, #before-you-go) {
    padding: 22px;
  }
  .club-profile .premium-coach-grid {
    gap: 14px;
  }
  .profile-key-facts strong {
    font-size: 21px;
  }
  .profile-key-facts span {
    font-size: 11px;
  }
}
.club-profile .profile-ratings:has(.hero-google-rating:empty) .local-rating-summary {
  padding-left: 18px;
}

/* Bound image tracks as well as their containers: intrinsic photo sizes must
   never expand the hero, including after the Google gallery replaces it. */
.club-profile #profile-media > :is(.integrated-gallery, .profile-gallery) {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.club-profile #profile-media :is(.gallery-tile, .integrated-photo) {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.club-profile #profile-media :is(.gallery-tile, .integrated-photo) > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.club-profile #profile-media > .gallery-count-1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.club-profile #profile-media > .gallery-count-1 .tile-0 {
  grid-row: 1;
}
.club-profile #profile-media > .gallery-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
.club-profile #profile-media > .gallery-count-2 .tile-0 {
  grid-row: 1;
}
.club-profile #pricing .session-estimate :is(strong, p) {
  color: #17231f;
}
.club-profile #pricing .session-estimate :is(span, small, .small-note) {
  color: #506258;
}
@media (min-width: 801px) and (max-width: 1100px) {
  .club-profile .profile-hero-grid {
    --club-media-height: 430px;
  }
  .club-profile .hero-booking .booking-box {
    padding: 24px;
  }
}
@media (max-width: 800px) {
  .club-profile .profile-hero-grid {
    --club-media-height: clamp(240px, 56vw, 340px);
  }
  .club-profile #profile-media > :is(.integrated-gallery, .profile-gallery, .profile-placeholder) {
    height: var(--club-media-height);
    max-height: var(--club-media-height);
  }
}

/* A single-photo viewer should use its space instead of leaving two empty columns. */
#club-gallery-dialog:has(.photo-modal-grid > figure:only-child) {
  max-width: 760px;
}
#club-gallery-dialog .photo-modal-grid:has(> figure:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

/* Match the homepage's text scale and generous section rhythm. */
.club-profile {
  font-size: 16px;
  line-height: 1.7;
}
.club-profile .detail-section > h2 {
  margin: 0 0 28px;
}
.club-profile .detail-section > p {
  font-size: 17px;
  line-height: 1.75;
}
.club-profile .detail-section h3 {
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.club-profile .eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
}
.club-profile .section-heading {
  margin-bottom: 28px;
}
.club-profile .section-heading h2 {
  margin: 14px 0 0;
}
.club-profile #overview > p {
  max-width: none;
}
.club-profile .club-tabs {
  font-family: var(--sans);
  font-size: 14px;
}
@media (max-width: 800px) {
  .club-profile .detail-section {
    padding: 40px 0;
  }
  .club-profile :is(#pricing, #before-you-go) {
    padding: 24px;
  }
  .club-profile .detail-section > p {
    font-size: 16px;
  }
}
@media (min-width: 901px) {
  .club-profile #overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
    row-gap: 20px;
  }
  .club-profile #overview > h2 {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .club-profile #overview > p {
    margin: 0;
  }
}
