/* Main fitness places archive */

.sfbx-directory-page,
.sfbx-directory-page * {
  box-sizing: border-box;
}

.sfbx-directory-page {
  background: #f5f3ef;
  padding: 56px 20px 80px;
}

.sfbx-directory-wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
}

.sfbx-directory-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.sfbx-directory-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: 700;
}

.sfbx-directory-header h1 {
  margin: 0 0 16px;
  color: #1c1917;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.sfbx-directory-header p {
  margin: 0;
  color: #57534e;
  font-size: 18px;
  line-height: 1.8;
}

.sfbx-district-filter {
  background: #fffaf3;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 26px;
  padding: 26px;
  margin-bottom: 32px;
  box-shadow: 0 16px 45px rgba(68, 64, 60, 0.06);
}

.sfbx-district-filter h2 {
  margin: 0 0 18px;
  color: #1c1917;
  font-size: 24px;
}

.sfbx-district-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sfbx-district-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(120, 113, 108, 0.18);
  color: #1c1917;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}

.sfbx-district-links a:hover {
  background: #dcfce7;
  color: #166534;
}

.sfbx-district-links span {
  color: #78716c;
  font-size: 13px;
}

.sfbx-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.sfbx-directory-card {
  background: #fffaf3;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(68, 64, 60, 0.08);
}

.sfbx-directory-photo {
  display: block;
  aspect-ratio: 4 / 3;
  background: #e7e5e4;
  overflow: hidden;
  text-decoration: none;
}

.sfbx-directory-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sfbx-directory-photo span {
  display: grid;
  place-items: center;
  height: 100%;
  color: #78716c;
}

.sfbx-directory-card-body {
  padding: 22px;
}

.sfbx-directory-chip {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
}

.sfbx-directory-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.sfbx-directory-card h2 a {
  color: #1c1917;
  text-decoration: none;
}

.sfbx-directory-card h2 a:hover {
  color: #166534;
}

.sfbx-directory-en {
  margin: 0 0 12px;
  color: #78716c;
  font-size: 15px;
}

.sfbx-directory-address {
  margin: 0 0 18px;
  color: #44403c;
  font-size: 15px;
  line-height: 1.65;
}

.sfbx-directory-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #ede9e2;
  font-size: 14px;
}

.sfbx-directory-footer span {
  color: #78716c;
}

.sfbx-directory-footer a {
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.sfbx-directory-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .sfbx-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sfbx-directory-page {
    padding: 32px 14px 56px;
  }

  .sfbx-directory-grid {
    grid-template-columns: 1fr;
  }

  .sfbx-directory-header h1 {
    font-size: 40px;
  }
}


.sfbx-directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px auto;
  gap: 16px;
  align-items: end;
  background: #fffaf3;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 26px;
  padding: 22px;
  margin-bottom: 28px;
  box-shadow: 0 16px 45px rgba(68, 64, 60, 0.06);
}

.sfbx-search-box label {
  display: block;
  margin-bottom: 8px;
  color: #57534e;
  font-size: 14px;
  font-weight: 700;
}

.sfbx-search-box input,
.sfbx-search-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(120, 113, 108, 0.24);
  border-radius: 14px;
  background: #ffffff;
  color: #1c1917;
  padding: 0 14px;
  font-size: 16px;
}

.sfbx-search-box input:focus,
.sfbx-search-box select:focus {
  outline: 3px solid rgba(22, 101, 52, 0.15);
  border-color: #166534;
}

.sfbx-result-count {
  margin: 0 0 12px;
  color: #57534e;
  font-size: 15px;
  white-space: nowrap;
}

.sfbx-result-count strong {
  color: #1c1917;
}

@media (max-width: 760px) {
  .sfbx-directory-tools {
    grid-template-columns: 1fr;
  }

  .sfbx-result-count {
    margin-bottom: 0;
  }
}


.sfbx-map-section {
  background: #fffaf3;
  border: 1px solid rgba(120, 113, 108, 0.18);
  border-radius: 26px;
  padding: 14px;
  margin-bottom: 30px;
  box-shadow: 0 16px 45px rgba(68, 64, 60, 0.06);
}

#sfbx-directory-map {
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: #e7e5e4;
}

.sfbx-map-popup {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.sfbx-map-popup strong {
  color: #1c1917;
  font-size: 15px;
}

.sfbx-map-popup span {
  color: #57534e;
  font-size: 13px;
  line-height: 1.5;
}

.sfbx-map-popup a {
  color: #166534;
  font-weight: 700;
  text-decoration: none;
}

.sfbx-map-popup a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  #sfbx-directory-map {
    height: 360px;
  }
}
