/* Find Classes — activity cards then listed-center cards */
.fc-browse {
  margin-top: 0.25rem;
}

.fc-browse__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.fc-browse__heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.fc-browse__sub {
  margin: 0.35rem 0 0;
  color: #9aa0a6;
  font-size: 0.95rem;
}

.fc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.fc-back:hover {
  border-color: rgba(161, 222, 86, 0.5);
  color: #a1de56;
  background: rgba(161, 222, 86, 0.08);
}

.fc-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.fc-activity-card {
  --fc-delay: 0;
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  min-height: 220px;
  border-radius: 1.25rem;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141416;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  isolation: isolate;
  transform: translateZ(0);
  animation: fcCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fc-delay);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.fc-activity-card:hover,
.fc-activity-card:focus-visible {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(161, 222, 86, 0.55);
  box-shadow: 0 24px 48px -20px rgba(161, 222, 86, 0.28);
}

.fc-activity-card:focus-visible {
  outline: 2px solid rgba(161, 222, 86, 0.8);
  outline-offset: 3px;
}

.fc-activity-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(161, 222, 86, 0.18), transparent 50%),
    linear-gradient(160deg, #1b1d14 0%, #0d0d0f 100%);
}

.fc-activity-card__face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform-origin: 50% 20%;
  animation: fcFaceKenBurns 16s ease-in-out infinite;
  will-change: transform;
}

.fc-activity-card__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 800;
  color: rgba(161, 222, 86, 0.82);
  letter-spacing: -0.04em;
}

.fc-activity-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 32%,
    rgba(255, 255, 255, 0.16) 48%,
    transparent 64%
  );
  transform: translateX(-120%);
  pointer-events: none;
}

.fc-activity-card:hover .fc-activity-card__shine {
  animation: fcShine 0.9s ease forwards;
}

.fc-activity-card__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 40%);
  pointer-events: none;
}

.fc-activity-card__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 0.95rem 1rem;
  z-index: 1;
}

.fc-activity-card__label {
  display: block;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.fc-activity-card__count {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cfe9a8;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(161, 222, 86, 0.28);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

.fc-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.25rem;
}

.fc-center-card {
  --fc-delay: 0;
  display: flex;
  flex-direction: column;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.05rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  animation: fcCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--fc-delay);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.fc-center-card:hover,
.fc-center-card:focus-visible {
  transform: translateY(-5px);
  border-color: #a1de56;
  box-shadow: 0 12px 28px rgba(161, 222, 86, 0.18);
}

.fc-center-card:focus-visible {
  outline: 2px solid rgba(161, 222, 86, 0.8);
  outline-offset: 3px;
}

.fc-center-card__banner {
  height: 180px;
  background: linear-gradient(135deg, rgba(161, 222, 86, 0.25) 0%, rgba(139, 195, 74, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fc-center-card__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fc-center-card__placeholder {
  font-size: 2.6rem;
  color: rgba(161, 222, 86, 0.55);
}

.fc-center-card__body {
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.fc-center-card__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  color: #fff;
  line-height: 1.25;
}

.fc-center-card__org {
  color: #888;
  font-size: 0.8rem;
}

.fc-center-card__detail {
  color: #aaa;
  font-size: 0.875rem;
  line-height: 1.45;
}

.fc-center-card__distance {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(125, 211, 252, 0.38);
}

.fc-center-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.35rem 0 0.15rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 50%, #a855f7 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fc-center-card__cta {
  margin-top: auto;
  padding-top: 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #a1de56;
}

.fc-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: #999;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

.fc-empty__icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.fc-loading {
  display: none;
  text-align: center;
  color: #9aa0a6;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.fc-browse.is-loading .fc-loading {
  display: block;
}

.fc-browse.is-loading .fc-center-grid {
  opacity: 0.45;
}

.fc-view[hidden],
.fc-empty[hidden],
.fc-loading[hidden] {
  display: none !important;
}

@keyframes fcCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fcFaceKenBurns {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  40% {
    transform: scale(1.16) translate3d(-2.4%, -1.6%, 0);
  }
  70% {
    transform: scale(1.1) translate3d(1.6%, 1.2%, 0);
  }
}

@keyframes fcShine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@media (min-width: 640px) {
  .fc-activity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .fc-activity-card {
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .fc-activity-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .fc-activity-card {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .fc-view--centers .fc-browse__toolbar {
    margin-bottom: 1.75rem;
  }
  .fc-center-grid {
    gap: 1.85rem;
    padding: 0.5rem 0.95rem 1.75rem;
  }
  .fc-center-card {
    margin: 0;
    border-radius: 1.2rem;
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.5),
      0 12px 32px rgba(161, 222, 86, 0.28),
      0 0 0 1px rgba(161, 222, 86, 0.12);
  }
}

@media (max-width: 480px) {
  .fc-activity-card {
    min-height: 200px;
    border-radius: 1rem;
  }
  .fc-activity-card__meta {
    padding: 0.85rem 0.75rem 0.8rem;
  }
  .fc-center-card__banner {
    height: 150px;
  }
  .fc-center-card__body {
    padding: 1.3rem 1.25rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-activity-card,
  .fc-center-card,
  .fc-activity-card__face,
  .fc-activity-card__shine {
    animation: none !important;
    transition: none !important;
  }
  .fc-activity-card:hover,
  .fc-center-card:hover {
    transform: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .fc-activity-card:hover,
  .fc-center-card:hover {
    transform: none;
  }
}
