.public-affiliated-gyms-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 28, 0.16), transparent 22%),
    radial-gradient(circle at top right, rgba(31, 78, 140, 0.14), transparent 24%),
    linear-gradient(180deg, #ffffff, #f4f7fb);
}

.public-affiliated-gyms-shell {
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
}

.public-affiliated-gyms-hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.public-affiliated-gyms-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
}

.public-affiliated-gyms-copy {
  max-width: 52rem;
  color: rgb(71 85 105);
  font-size: 1rem;
  line-height: 1.8;
}

.public-affiliated-gyms-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.public-affiliated-gyms-search {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(100%, 38rem);
  border: 1px solid rgb(217 225 236);
  border-radius: 999px;
  background: #fff;
  padding: 0.65rem 0.95rem;
  color: #163a6b;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.public-affiliated-gyms-search svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: rgb(100 116 139);
}

.public-affiliated-gyms-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  padding: 0;
  box-shadow: none;
}

.public-affiliated-gyms-search input::placeholder {
  color: rgb(100 116 139);
}

.public-affiliated-gyms-summary {
  display: grid;
  justify-items: end;
  gap: 0.15rem;
  min-width: 8rem;
}

.public-affiliated-gyms-summary-value {
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #163a6b;
}

.public-affiliated-gyms-summary-label {
  color: rgb(100 116 139);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-affiliated-gyms-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.public-gym-card {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  background: #ffffff;
  border-color: rgb(217 225 236);
  color: rgb(30 41 59);
  box-shadow: 0 14px 34px rgba(22, 58, 107, 0.14);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-gym-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(22, 58, 107, 0.14);
  border-color: rgba(31, 78, 140, 0.24);
}

.public-gym-card[hidden] {
  display: none;
}

.public-gym-card-top {
  flex-direction: column;
  display: flex;
  gap: 1rem; 
}

.public-gym-card-logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  border: 1px solid rgb(217 225 236);
  background:
    radial-gradient(circle at top, rgba(255, 184, 28, 0.18), transparent 65%),
    linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
}

.public-gym-card-logo-frame-image {
  width: auto;
  height: auto;
  max-width: none;
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.public-gym-card-logo-image {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  max-height: 88px;
  object-fit: contain;
}

.public-gym-card-logo-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #163a6b;
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-gym-card-headline {
  min-width: 0;
}

.public-gym-card-name {
  color: #163a6b;
  font-family: Oswald, "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-gym-card-owner {
  margin-top: 0.5rem;
  color: rgb(71 85 105);
  font-size: 0.98rem;
  line-height: 1.2;
}

.public-gym-card-body {
  margin-top: auto;
}

.public-gym-card-details {
  flex-direction: column;
  display: flex;
  gap: 0.5rem;
}

.public-gym-card-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  border: 1px solid rgb(217 225 236);
  border-radius: 18px;
  background: rgb(248 250 252 / 0.92);
  padding: 0.6rem 0.8rem;
  color: rgb(30 41 59);
  font-size: 0.92rem;
  line-height: 1.6;
  /* max-width: calc(100% - 1.6rem - 0.75rem); */
}

.public-gym-card-detail a { 
  display: block;
  min-width: 0; 
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  color: #1f4e8c;
  font-weight: 600;
  text-decoration: none;
}

.public-gym-card-detail a:hover {
  color: #163a6b;
  text-decoration: underline;
}

.public-gym-card-detail-truncate {
  overflow: hidden;
} 

.public-gym-card-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff;
  color: #1f4e8c;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.public-gym-card-detail-icon svg {
  width: 1rem;
  height: 1rem;
}

.public-affiliated-gyms-empty {
  display: none;
  margin-top: 1.5rem;
  border: 1px dashed rgba(31, 78, 140, 0.25);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  padding: 2rem 1.5rem;
  color: rgb(71 85 105);
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.public-affiliated-gyms-empty.is-visible {
  display: block;
}

@media (max-width: 767px) {
  .public-affiliated-gyms-shell {
    padding: 1.5rem 0.9rem 3rem;
  }

  .public-affiliated-gyms-toolbar {
    align-items: stretch;
  }

  .public-affiliated-gyms-search {
    width: 100%;
  }

  .public-affiliated-gyms-summary {
    justify-items: start;
  }

  .public-gym-card-top {
    justify-items: stretch;
  }
}
