.activity-finder {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 6px auto 28px;
  padding: 14px 18px;
  border: 2px solid #000;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff 0%, #edf9f1 55%, #e2f3e8 100%);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
}

.activity-finder__quick-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 8vw, 110px);
  width: 100%;
}

.activity-finder__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.activity-finder__details { flex-basis: 100%; width: 100%; padding-top: 10px; }
.activity-finder__details[hidden] { display: none; }
.activity-finder.is-expanded { flex-wrap: wrap; padding: 16px 18px; }
.activity-finder__form { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 14px; align-items: end; }
.activity-finder__form[hidden] { display: none; }
.activity-finder__field { display: grid; gap: 6px; color: #30202c; font-weight: 700; }
.activity-finder__coming-soon { display: flex; align-items: center; min-height: 48px; box-sizing: border-box; padding: 9px 14px; border: 2px dashed rgba(98, 59, 90, .4); border-radius: 9px; background: rgba(255, 255, 255, .55); color: #623b5a; font-weight: 700; }

.activity-finder select,
.activity-finder button {
  min-height: 56px;
  border: 2px solid #623b5a;
  border-radius: 9px;
  font: inherit;
}

.activity-finder select { width: 100%; padding: 8px 38px 8px 12px; background: #fff; color: #171117; cursor: pointer; }
.activity-finder button { padding: 12px 24px; cursor: pointer; font-size: 1.05rem; font-weight: 700; transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.activity-finder__quick-actions button { flex: 0 1 320px; }
.activity-finder__open { background: #623b5a; color: #fff; }
.activity-finder__favorites { background: #623b5a; color: #fff; white-space: nowrap; }
.activity-finder button:disabled { cursor: wait; opacity: .65; }
.activity-finder button:not(:disabled):hover { background-color: #d36135; color: #fff; box-shadow: 0 7px 16px rgba(98, 59, 90, .24); transform: scale(1.06); }
.activity-finder button:focus-visible,
.activity-card__link:focus-visible { outline: 4px solid #d36135; outline-offset: 3px; }
.activity-finder select:focus-visible { outline: 3px solid #623b5a; outline-offset: 1px; box-shadow: 0 0 0 4px rgba(98, 59, 90, .14); }

.activity-finder__results[hidden] { display: none; }
.activity-finder__results { margin-top: 14px; }
.activity-finder__summary { margin: 0 0 14px; font-weight: 700; color: #3b2937; }
.activity-finder__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }

.activity-card { position: relative; overflow: hidden; border: 2px solid #252025; border-radius: 11px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.activity-card__link { display: block; height: 100%; color: #171117; }
.activity-card__image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.activity-card__title { display: block; min-height: 2.5em; padding: 12px 54px 12px 12px; font-weight: 700; line-height: 1.25; }
.activity-card__favorite { position: absolute; right: 7px; bottom: 7px; display: inline-grid; place-items: center; width: 44px; min-height: 44px !important; padding: 0 !important; border-radius: 50% !important; background: #fff8dc; color: #623b5a; line-height: 1; }
.activity-card__favorite .favorite-star-icon { display: block; width: 26px; height: 26px; transform: translateY(.5px); }
.activity-card__favorite[aria-pressed="true"] { background: #623b5a; color: #fff4a8; }
.activity-finder__empty { grid-column: 1 / -1; margin: 0; padding: 18px; text-align: center; border-radius: 9px; background: #edf9f1; }

.activity-finder.is-favorites {
  border-color: #623b5a;
  background: linear-gradient(90deg, #fff 0%, #f7f0f5 100%);
  box-shadow: 0 6px 16px rgba(98, 59, 90, .16);
}

.activity-finder.is-favorites .activity-finder__favorites { background: #623b5a; color: #fff4a8; }
.activity-finder.is-favorites .activity-finder__summary { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.activity-finder.is-favorites .activity-card { border-color: #623b5a; box-shadow: 0 4px 10px rgba(98, 59, 90, .14); }
.activity-finder.is-favorites .activity-finder__empty { background: rgba(255, 255, 255, .7); color: #4a2d43; }

@media (max-width: 720px) {
  .activity-finder { align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; }
  .activity-finder.is-expanded { padding: 14px; }
  .activity-finder__quick-actions { width: 100%; margin-left: 0; gap: 16px; }
  .activity-finder__quick-actions button { flex: 1; }
  .activity-finder__form { grid-template-columns: 1fr; }
  .activity-finder__favorites { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .activity-finder *, .activity-finder *::before, .activity-finder *::after { scroll-behavior: auto !important; transition: none !important; }
}
