/*
 * Explore catalog — explore.html
 * Figma node: 128:92240
 */

.explore {
  width: 100%;
  padding-bottom: calc(var(--profile-scroll-padding-bottom) + 16px);
  background: #ffffff;
}

.explore__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 16px;
  background: #ffffff;
}

.explore__header.is-searching {
  gap: 10px;
  animation: explore-search-in 180ms ease both;
}

.explore__header.is-searching .explore__title,
.explore__header.is-searching .explore__header-action--search {
  display: none;
}

.explore__title {
  margin: 0;
  color: #2c3038;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}

.explore__header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.explore__header.is-searching .explore__header-actions {
  gap: 10px;
}

.explore__header-action--filters {
  flex-shrink: 0;
}

.explore__header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.explore__header-action img {
  display: block;
  width: 24px;
  height: 24px;
}

.explore__search-bar {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.explore__header.is-searching .explore__search-bar,
.explore__search-bar:not([hidden]) {
  display: flex;
}

.explore__search-bar[hidden] {
  display: none !important;
}

.explore__search-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 40px;
  padding: 0 12px 0 14px;
  border: 1px solid #eaebea;
  border-radius: 12px;
  background: #f5f6fa;
  box-shadow: 0 1px 2px rgb(44 48 56 / 4%);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.explore__search-field:focus-within {
  border-color: #108b88;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgb(16 139 136 / 14%);
}

.explore__search-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  opacity: 0.45;
  pointer-events: none;
}

.explore__search-field:focus-within .explore__search-icon {
  opacity: 0.7;
}

.explore__search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2c3038;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  outline: none;
  caret-color: #108b88;
}

.explore__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.explore__search-input::placeholder {
  color: #bfbfbf;
}

.explore__search-cancel {
  display: none;
  flex: 0 0 auto;
  padding: 8px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #108b88;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: background-color 140ms ease, opacity 140ms ease;
}

.explore__header.is-searching .explore__search-cancel {
  display: inline-flex;
  align-items: center;
}

.explore__search-cancel:hover {
  background: #defff0;
}

.explore__search-cancel:active {
  opacity: 0.85;
}

@keyframes explore-search-in {
  from {
    opacity: 0.72;
    transform: translateY(-2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.explore__filters-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #108b88;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.explore__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 20px;
}

.explore__filter-chip,
.explore__tag {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid #eaebea;
  border-radius: 4px;
  background: #f5f6fa;
  color: #2c3038;
  font-size: 13px;
  line-height: 1.3;
}

.explore__filter-chip > span,
.explore__tag > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-align: left;
}

.explore__tag {
  border-color: transparent;
}

.explore__filter-chip {
  border: 0;
  border-radius: 999px;
  background: #b1ffda;
  cursor: pointer;
  font: inherit;
  transition: transform 140ms ease, background-color 140ms ease;
}

.explore__filter-chip:hover {
  background: #9af5cb;
}

.explore__filter-chip:active {
  transform: scale(0.96);
}

.explore__engagement {
  padding: 0;
}

.explore__card .posts__card-media {
  width: 100%;
}

.explore__card .posts__media-viewport {
  aspect-ratio: 375 / 469;
  background: #f5f6fa;
}

.explore__card .posts__card-comments {
  margin-top: 8px;
  padding-inline: 0;
}

.explore__card--comments-open {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffb 100%);
}

.explore__loading,
.explore__load-more {
  display: none !important;
}

.explore__error,
.explore__empty {
  margin: 0;
  padding: 48px 24px;
  color: #737478;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
}

.explore__empty {
  display: grid;
  gap: 8px;
  justify-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, rgb(177 255 218 / 45%) 0 28%, transparent 55%),
    #f8fffb;
}

.explore__error {
  color: var(--color-error);
}

.explore__feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f5f6fa;
}

.explore__feed--skeleton .explore__card--skeleton {
  animation: explore-feed-in 280ms ease both;
}

.explore__feed--skeleton .explore__card--skeleton:nth-child(2) {
  animation-delay: 60ms;
}

.explore__feed--skeleton .explore__card--skeleton:nth-child(3) {
  animation-delay: 120ms;
}

.explore__feed:not(.explore__feed--skeleton) > .explore__card:not(.explore__card--skeleton) {
  animation: explore-feed-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.explore__feed-more-skeletons {
  display: contents;
}

.explore__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 12px 0 20px;
  border: 0;
  background: #ffffff;
}

.explore__card--skeleton {
  gap: 16px;
  pointer-events: none;
  user-select: none;
}

.explore__skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #f5f6fa 25%, #eaebea 50%, #f5f6fa 75%);
  background-size: 200% 100%;
  animation: explore-skeleton 1.35s ease-in-out infinite;
}

.explore__skeleton--avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.explore__skeleton--organizer {
  width: 112px;
  height: 16px;
}

.explore__skeleton--join {
  width: 64px;
  height: 36px;
  margin-left: auto;
  border-radius: 8px;
}

.explore__skeleton--media {
  width: 100%;
  aspect-ratio: 375 / 469;
  border-radius: 0;
}

.explore__engagement--skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.explore__skeleton--stat {
  width: 48px;
  height: 20px;
  border-radius: 999px;
}

.explore__skeleton--dots {
  width: 36px;
  height: 6px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
}

.explore__skeleton--title {
  width: 52%;
  height: 24px;
}

.explore__skeleton--line {
  width: 100%;
  height: 14px;
}

.explore__skeleton--line-short {
  width: 72%;
}

.explore__skeleton--detail {
  width: 68%;
  height: 40px;
  border-radius: 12px;
}

.explore__skeleton--detail-wide {
  width: 100%;
}

@keyframes explore-feed-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes explore-skeleton {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.explore__card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.explore__card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.explore__organizer {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.explore__organizer:hover .explore__organizer-name {
  color: #108b88;
  text-decoration: underline;
}

.explore__organizer-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #b1ffda;
  border-radius: 50%;
  background: #f5f6fa;
  color: #108b88;
  font-size: 13px;
  font-weight: 600;
}

.explore__organizer-avatar--logo {
  padding: 0;
  border-color: #defff0;
  background: #ffffff;
}

.explore__organizer-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore__organizer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.explore__organizer-name {
  overflow: hidden;
  color: #2c3038;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore__organizer-date {
  overflow: hidden;
  color: #737478;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore__join {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 63px;
  padding: 14px 20px;
  border: 0;
  border-radius: 8px;
  background: #108b88;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
}

.explore__join:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.explore__join.is-loading {
  cursor: wait;
  opacity: 0.65;
}

.explore__join--joined {
  background: #b1ffda;
  color: #2c3038;
}

.explore__join--joined:hover:not(:disabled) {
  background: #9af5cb;
}

.explore__join--full,
.explore__join--host,
.explore__join--blocked {
  background: #f5f6fa;
  color: #737478;
}

.explore__join--blocked {
  background: #fde8e8;
  color: #b42318;
  cursor: default;
}

.explore__card--blocked {
  outline: 1px solid rgba(180, 35, 24, 0.16);
}

.explore__blocked-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fde8e8;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.explore__media {
  position: relative;
  width: 100%;
  aspect-ratio: 375 / 469;
  overflow: hidden;
  background: #f5f6fa;
}

.explore__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--explore-logo-bg, #defff0);
}

.explore__media-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgb(43 44 52 / 12%);
  color: var(--explore-logo-color, #108b88);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.explore__media img,
.explore__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.explore__media-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgb(177 255 218 / 75%) 0 5%, transparent 6%),
    linear-gradient(145deg, #defff0 0%, #b1ffda 42%, #f5f6fa 100%);
  color: transparent;
  font-size: 14px;
}

.explore__engagement {
  padding: 0;
}

.explore__card .posts__card-engagement {
  padding: 0 20px;
}

.explore__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 0 16px;
}

.explore__category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.explore__category {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--explore-category-bg, #defff0);
  color: var(--explore-category-color, #108b88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explore__event-title {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: #2c3038;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explore__event-title-link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explore__event-title-link:hover {
  text-decoration: underline;
}

.explore__description {
  display: -webkit-box;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #2c3038;
  font-size: 16px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.explore__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.explore__detail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #f5f6fa;
  border-radius: 12px;
  color: #2c3038;
  font-size: 14px;
  line-height: 1.3;
}

.explore__detail > img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.explore__detail-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.explore__capacity {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.explore__capacity-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.explore__capacity-percent {
  flex: 0 0 auto;
  color: #2dbe7b;
  font-size: 12px;
  line-height: 1.2;
}

.explore__capacity-bar {
  height: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: #b1ffda;
}

.explore__capacity-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #62d8a0;
  box-shadow: 0 4px 12px rgb(43 44 52 / 16%);
}

.explore__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.explore__comments {
  display: none;
}

.explore__comment,
.explore__comments-state,
.explore__comments-list,
.explore__comment-item,
.explore__comment-form {
  display: none;
}

.explore__sentinel {
  width: 100%;
  height: 1px;
}

[data-explore-feed] [hidden] {
  display: none !important;
}

.explore__sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.explore__sheet[hidden] {
  display: none !important;
}

.explore__sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgb(29 31 30 / 55%);
  cursor: pointer;
  animation: explore-sheet-fade 180ms ease both;
}

.explore__sheet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 502px);
  max-height: min(88vh, 720px);
  min-height: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  box-shadow: 0 -12px 40px rgb(44 48 56 / 16%);
  animation: explore-sheet-up 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.explore__sheet-head,
.explore__sheet-foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.explore__sheet-head {
  justify-content: space-between;
  border-bottom: 1px solid #f5f6fa;
}

.explore__sheet-title {
  margin: 0;
  color: #2c3038;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.explore__sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f6fa;
  cursor: pointer;
}

.explore__sheet-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding: 8px 20px 20px;
  overflow: auto;
}

.explore__field,
.explore__fieldset {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.explore__field-label {
  color: #2c3038;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.explore__field-hint {
  margin: 4px 0 0;
  color: #737478;
  font-size: 13px;
  line-height: 1.3;
}

.explore__field-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #eaebea;
  border-radius: 14px;
  background: #f8faf9;
  color: #2c3038;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.explore__field-input:focus {
  border-color: #108b88;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgb(16 139 136 / 12%);
}

.explore__theme-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: #b1ffda transparent;
}

.explore__fieldset--tags {
  gap: 10px;
}

.explore__tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explore__tags-selected[hidden] {
  display: none;
}

.explore__tag-selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #108b88;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.explore__tag-selected img {
  flex: 0 0 auto;
  opacity: 0.9;
}

.explore__tags-combobox {
  position: relative;
  z-index: 3;
}

.explore__tags-combobox.is-open {
  z-index: 40;
}

.explore__fieldset--tags {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.explore__fieldset--tags.is-tags-open {
  z-index: 30;
}

.explore__tags-control {
  position: relative;
  display: flex;
  align-items: center;
}

.explore__tags-input {
  width: 100%;
  padding-right: 44px;
}

.explore__tags-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #737478;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease, transform 180ms ease;
}

.explore__tags-toggle:hover {
  color: #108b88;
  background: #f3fbfa;
}

.explore__tags-toggle[aria-expanded="true"] {
  color: #108b88;
  transform: translateY(-50%) rotate(180deg);
}

.explore__tags-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  display: none;
  overflow: hidden;
  border: 1px solid #eaebea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgb(44 48 56 / 12%);
}

.explore__tags-dropdown.is-open {
  display: block;
}

.explore__tags-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(240px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: #9adfc8 transparent;
  -webkit-overflow-scrolling: touch;
}

.explore__tags-dropdown-list::-webkit-scrollbar {
  width: 6px;
}

.explore__tags-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}

.explore__tags-dropdown-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9adfc8;
}

.explore__tags-loading {
  display: grid;
  place-items: center;
  min-height: 104px;
}

.explore__tags-loading-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid rgb(16 139 136 / 18%);
  border-top-color: #108b88;
  border-radius: 50%;
  animation: explore-tags-spinner 700ms linear infinite;
}

@keyframes explore-tags-spinner {
  to {
    transform: rotate(360deg);
  }
}

.explore__tag-suggest {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #2c3038;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.explore__tag-suggest:hover,
.explore__tag-suggest.is-active {
  background: #f3fbfa;
}

.explore__tag-suggest[aria-pressed="true"],
.explore__tag-suggest--active {
  background: #108b88;
  color: #ffffff;
}

.explore__tag-suggest[aria-pressed="true"].is-active,
.explore__tag-suggest--active.is-active {
  background: #0d736f;
}

.explore__tags-suggest-status {
  margin: 0;
  padding: 10px 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #737478;
}

.explore__theme-chip,
.explore__segment-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #eaebea;
  border-radius: 999px;
  background: #ffffff;
  color: #2c3038;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms ease;
}

.explore__theme-chip:hover,
.explore__segment-btn:hover {
  border-color: #b1ffda;
  background: #f5fffa;
}

.explore__theme-chip--active,
.explore__segment-btn--active {
  border-color: transparent;
  background: #108b88;
  color: #ffffff;
}

.explore__theme-chip:active,
.explore__segment-btn:active {
  transform: scale(0.97);
}

.explore__theme-loading,
.explore__theme-empty {
  color: #737478;
  font-size: 13px;
}

.explore__fieldset--date {
  gap: 10px;
}

.explore__fieldset--date .explore__field-hint {
  margin: 0;
  color: #2c3038;
  font-size: 14px;
  line-height: 1.3;
}


.explore__segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.explore__fieldset--nearby {
  position: relative;
  overflow: visible;
  padding: 14px 16px 16px;
  border: 1px solid #eaebea;
  border-radius: 14px;
  background: #f8faf9;
  transition:
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.explore__fieldset--nearby.is-active {
  border-color: #c8e8e0;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgb(16 139 136 / 8%);
}

.explore__nearby-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.explore__nearby-copy {
  min-width: 0;
  flex: 1;
}

.explore__nearby-title {
  margin: 0;
  padding: 0;
}

.explore__fieldset--nearby .explore__field-hint {
  margin: 4px 0 0;
  max-width: 26ch;
  transition: color 220ms ease;
}

.explore__fieldset--nearby.is-active .explore__field-hint {
  color: #5f636b;
}

.explore__switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 48px;
  height: 30px;
  margin-top: 1px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.explore__switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.explore__switch-ui {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: #e2e4e9;
  box-shadow: inset 0 1px 2px rgb(44 48 56 / 10%);
  transition: background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.explore__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 1px 2px rgb(44 48 56 / 14%),
    0 3px 8px rgb(44 48 56 / 10%);
  transition: transform 340ms cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform;
}

.explore__switch input:checked + .explore__switch-ui {
  background: #108b88;
}

.explore__switch input:checked + .explore__switch-ui::after {
  transform: translateX(18px);
}

.explore__switch input:focus-visible + .explore__switch-ui {
  outline: 2px solid #108b88;
  outline-offset: 3px;
}

.explore__switch:active .explore__switch-ui::after {
  transform: scale(0.92);
}

.explore__switch:has(input:checked):active .explore__switch-ui::after {
  transform: translateX(18px) scale(0.92);
}

.explore__radius {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-top: 1px solid transparent;
  transform: translateY(-6px);
  transition:
    max-height 340ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease,
    margin-top 340ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 340ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 240ms ease,
    transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

.explore__fieldset--nearby.is-active .explore__radius {
  max-height: 220px;
  margin-top: 14px;
  padding-top: 14px;
  padding-bottom: 4px;
  opacity: 1;
  pointer-events: auto;
  border-top-color: #eef1f0;
  transform: translateY(0);
}

.explore__radius-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #737478;
  font-size: 13px;
  line-height: 1.2;
}

.explore__radius-value {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #defff0;
  color: #108b88;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  transition:
    transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1),
    background-color 180ms ease;
}

.explore__radius-value.is-updating {
  transform: scale(1.06);
  background: #c8e8e0;
}

.explore__radius-slider {
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
}

.explore__radius-range {
  --radius-progress: 11.111%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.explore__radius-range:disabled {
  cursor: default;
  opacity: 0.55;
}

.explore__radius-range:focus {
  outline: none;
}

.explore__radius-range:focus-visible::-webkit-slider-thumb {
  box-shadow:
    0 0 0 5px rgb(16 139 136 / 18%),
    0 2px 8px rgb(16 139 136 / 28%);
}

.explore__radius-range:focus-visible::-moz-range-thumb {
  box-shadow:
    0 0 0 5px rgb(16 139 136 / 18%),
    0 2px 8px rgb(16 139 136 / 28%);
}

.explore__radius-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #108b88 0%,
    #108b88 var(--radius-progress),
    #e4e6eb var(--radius-progress),
    #e4e6eb 100%
  );
  transition: background 80ms linear;
}

.explore__radius-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9.5px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #108b88;
  box-shadow:
    0 0 0 1px rgb(16 139 136 / 12%),
    0 2px 8px rgb(16 139 136 / 26%);
  transition: transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 180ms ease;
}

.explore__radius-range:active::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow:
    0 0 0 6px rgb(16 139 136 / 14%),
    0 4px 14px rgb(16 139 136 / 30%);
}

.explore__radius-range::-moz-range-track {
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: #e4e6eb;
}

.explore__radius-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: #108b88;
}

.explore__radius-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #108b88;
  box-shadow:
    0 0 0 1px rgb(16 139 136 / 12%),
    0 2px 8px rgb(16 139 136 / 26%);
  transition: transform 180ms cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 180ms ease;
}

.explore__radius-range:active::-moz-range-thumb {
  transform: scale(1.12);
  box-shadow:
    0 0 0 6px rgb(16 139 136 / 14%),
    0 4px 14px rgb(16 139 136 / 30%);
}

.explore__radius-ticks {
  display: flex;
  justify-content: space-between;
  color: #9a9ca1;
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.explore__geo-status {
  margin: 10px 0 0;
  flex: 1 1 auto;
  min-width: 0;
  color: #108b88;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  padding-bottom: 2px;
}

.explore__geo-status.is-error {
  color: #b8325c;
}

.explore__geo-status.is-pending {
  color: #737478;
}

.explore__geo-feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.explore__geo-retry {
  flex: 0 0 auto;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #108b88;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  cursor: pointer;
}

.explore__geo-retry[hidden] {
  display: none;
}

.explore__geo-retry:focus-visible {
  outline: 2px solid #108b88;
  outline-offset: 2px;
  border-radius: 4px;
}

.explore__sheet-apply.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .explore__fieldset--nearby,
  .explore__fieldset--nearby .explore__field-hint,
  .explore__switch-ui,
  .explore__switch-ui::after,
  .explore__radius,
  .explore__radius-value,
  .explore__radius-range::-webkit-slider-thumb,
  .explore__radius-range::-moz-range-thumb {
    transition: none;
  }
}

.explore__sheet-foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid #f5f6fa;
}

.explore__sheet-reset,
.explore__sheet-apply {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  transition: transform 140ms ease, opacity 140ms ease;
}

.explore__sheet-reset {
  flex: 0 0 auto;
  background: #f5f6fa;
  color: #2c3038;
}

.explore__sheet-apply {
  flex: 1 1 auto;
  background: #108b88;
  color: #ffffff;
}

.explore__sheet-reset:active,
.explore__sheet-apply:active {
  transform: scale(0.98);
}

body.explore-sheet-open {
  overflow: hidden;
}

@keyframes explore-sheet-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes explore-sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0.8;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .explore {
    width: 375px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 40px;
  }
}

@media (min-width: 1280px) {
  .explore {
    width: 502px;
    margin: 0;
  }

  .explore__organizer-avatar {
    width: 60px;
    height: 60px;
  }

  .explore__organizer-name {
    font-size: 16px;
  }

  .explore__organizer-date {
    font-size: 14px;
    line-height: 1.3;
  }

  .explore__sheet {
    align-items: center;
    padding: 24px;
  }

  .explore__sheet-panel {
    max-height: min(80vh, 760px);
    border-radius: 24px;
  }

  .explore__segment {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
