/* Soft ambient page background lives in member.css (body rule) so it
   applies site-wide across the member area, not just this page. */

.main-container {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.matches-header-container {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
    padding: 0 0;
}

.matches-header-container hr {
    display: none;
}

.matches-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .matches-header-container {
        padding: 2rem 4rem 0 4rem;
    }
    .matches-container {
        padding: 0 4rem;
    }
}

/* Phone / tablet: one gutter; avoid 90% width + extra 4rem from the old 512px breakpoint */
@media (max-width: 991.98px) {
    .matches-header-container,
    .matches-container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    .matches-header-container {
        padding-top: 0.5rem;
    }

    body.explore-page .main-container,
    body.public-explore-page .main-container {
        padding-top: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        box-sizing: border-box;
    }

    body.explore-page,
    body.public-explore-page {
        overflow-x: clip;
    }

    .matches-grid-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #cardsContainer > div:first-child {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .matches-header-container .filter-button-wrap {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .explore-results-heading {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .explore-subject-search-banner {
        border-radius: 16px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .matches-header-container,
    .matches-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (min-width: 600px) and (max-width: 991.98px) {
    .matches-grid-container {
        justify-content: center !important;
    }
}

body.explore-page,
body.public-explore-page {
    --explore-filter-width: 408px;
}

.filters {
    box-sizing: border-box;
    width: var(--explore-filter-width, 408px);
    max-width: var(--explore-filter-width, 408px);
    min-width: 0;
    flex: 0 0 var(--explore-filter-width, 408px);
    position: static;
    padding: 24px 20px;
    margin: 1.75rem 0 1rem 0;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: visible;
    scrollbar-width: thin;
    scrollbar-color: #BBB #F0F0F0;
}

/* the old hard divider between the filter panel and the results grid */
.verticalLine {
    display: none !important;
}

@media (max-width: 600px) {
    .filters {
        padding: 0;
    }
}

/* WebKit browsers */
.filters::-webkit-scrollbar {
    width: 8px;
}

.filters::-webkit-scrollbar-track {
    background: #F0F0F0;
}

.filters::-webkit-scrollbar-thumb {
    background-color: #BBB;
    border-radius: 4px;
    border: 2px solid #F0F0F0;
}

.filters::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}


@media (max-width: 992px) {
    .filters {
        width: 0px;
        min-width: 0;
        flex: 0 0 0;
        margin: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    .matches-container {
        flex-direction: column;
    }

    .matches-container > #cardsContainer {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .matches__filters {
        display: none !important;
    }

    /* The filter drawer is fixed full-screen here; the base .filters-content
       "position: relative" above would otherwise win and leave it in the flow
       as a tall blank gap above the results. */
    .filters-content.filterArea {
        position: fixed;
    }

    .matches-grid-container {
        justify-content: flex-start !important;
    }
}

.filters-content {
    display: flex;
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.filters-content > div {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#cardsContainer {
    margin: 1rem 0;
}

/* Desktop: card grid uses fixed 300px tracks; toolbar aligns with up to 3 columns. */
@media (min-width: 993px) {
    .matches-results-toolbar {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 1rem 2.5rem;
        padding: 1rem;
        justify-content: flex-start;
        width: 100%;
        max-width: calc(300px * 3 + 1rem * 2 + 2rem);
        box-sizing: border-box;
    }

    .matches-results-toolbar__count {
        display: flex;
        align-items: center;
        flex: 0 1 auto;
        min-width: 0;
    }

    .matches-results-toolbar__count p {
        margin: 0 !important;
        line-height: 1.4;
    }

    .matches-results-toolbar .matches__filters {
        width: auto;
        margin-top: 0;
        margin-left: auto;
        flex: 0 0 auto;
        justify-content: flex-end !important;
    }

    .matches-results-toolbar .filter-group {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
    }

    .matches-results-toolbar .filter-group label {
        margin: 0;
        color: #4b4557;
        font-weight: 600;
        line-height: 1.4;
    }

    .matches-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, 300px);
        justify-content: flex-start;
    }

    .matches-grid-container > .user-match-card,
    .matches-grid-container > .matches-card-skeleton {
        flex: none;
        width: 300px;
        max-width: 300px;
    }
}

.matches-results-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem;
    justify-content: flex-start;
}

.matches-results-toolbar__count p {
    margin: 0;
    line-height: 1.4;
}

.matches-results-toolbar__text {
    font-weight: 600;
    color: #4b4557;
    font-size: 14px;
    white-space: nowrap;
}

.matches-results-toolbar__text--public {
    font-weight: 500;
    color: #9791a2;
}

.matches-results-toolbar .matches__filters {
    width: auto;
    margin-top: 0;
    justify-content: flex-start;
}

.matches-results-toolbar__filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 993px) {
    .matches-results-toolbar .matches-results-toolbar__filters {
        margin-left: auto;
        flex: 0 0 auto;
        justify-content: flex-end;
    }
}

.matches-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    justify-content: flex-start;
    align-items: stretch;
}

.matches-grid-container > .user-match-card,
.matches-card-skeleton {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.user-match-card{
    position: relative;
    overflow: hidden;
}

@media (max-width: 600px) {
    .matches-grid-container > .user-match-card {
        flex: 1 1 100%;
    }
}

.card {
    background: #cdcdcd;
    height: 200px;
    border-radius: 5px;
}

.recommended-subjects-to-learn {
    width: 100%;
    margin-top: 20px;
}

.matches-empty-state {
    width: 100%;
    clear: both;
    box-sizing: border-box;
}

.matches-empty-state__illustration {
    display: block;
    width: auto;
    max-width: min(250px, 72vw);
    height: auto;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .matches-empty-state {
        padding: 0.5rem 1rem 1rem;
    }

    .matches-empty-state .noMatchesFoundContainer {
        max-width: 100%;
    }

    .matches-empty-state .noMatchesFoundContainer h2 {
        font-size: 1.35rem;
    }

    .matches-empty-state .noMatchesFoundContainer p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    #cardsContainer:has(#noDataFoundMatches.visible) + #sentinel + .recommended-subjects-to-learn,
    #cardsContainer:has(#noDataFoundMatches.visible) + .recommended-subjects-to-learn {
        margin-top: 0.5rem;
        padding-top: 0.25rem;
    }

    .recommended-subjects-to-learn .matches__header > h2 {
        margin-top: 0;
        padding-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .filters {
        height: auto;
        position: relative;
    }
}

.filter-select {
    padding: 6px 12px;
    padding-right: 30px; /* room for arrow */
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f9f9f9;
    font-weight: 500;
    color: #6B647C;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%236B647C" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    outline: none;
}

.filter-select:focus {
    border-color: #999;
}

.matches__filters {
    margin-top: 1rem;
}

.matches__checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 14px;
}

/* Subject pill sizing/centering lives in member.css (single source of
   truth - this file used to duplicate/conflict with those rules). */

/* LOAD MORE BUTTON */
.load-more-container {
    text-align: center;
    margin: 1.5rem 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #F76922;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-load-more:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-load-more:active {
    transform: scale(0.97);
}

.btn-load-more:focus {
    outline: none;
}

.btn-load-more .spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    margin-left: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-load-more.loading .btn-text {
    opacity: 0;
}

.btn-load-more.loading .spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.filter__checkbox label {
    width: 100%;
}

/* Explore sidebar — filter pills and location field */
.filters .filter__checkbox {
  width: 100%;
  max-width: none;
}

.filters .filter__checkbox:not(.explore-subject-filter-chip) label {
  gap: 0;
}

.filters .explore-subject-filter-chip label {
  gap: 8px;
}

.filters .filter__checkbox input.checkbox {
  top: 0 !important;
  margin-top: 0 !important;
  transform: none;
}

.filters #filterLocation {
  width: 100%;
}

.filters .locationText {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* LOAD MORE BUTTON - PAGINATION */

.results-container {
  text-align: center;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

#resultsText {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
}

.remaining-info {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
}

.end-message {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  opacity: 0;
  transition: opacity .3s ease;
}

.end-message.show {
  opacity: 1;
}

.hide {
  display: none !important;
}

.load-more-btn {
  background-color: #F76922;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.load-more-btn:hover {
  background-color: #dc5d1d;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Response rate on the match card - only rendered when "Sort By: Response
   Rate" is selected (see matchCardResponseRate() in explore.js), sitting
   next to the lessons-taught/reviews stats it's grouped with on the card. */
.match-card-response-rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    color: #AEA9B7;
}

.match-card-response-rate .profile-meta-item__icon--response-rate {
    width: 13px;
    height: 13px;
}

.match-card-last-active {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #6b6578;
}

/* "Active now" only: pill + dot; other recent labels use green text only */
.match-card-last-active--now {
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef8f3;
    color: #157a52;
}

.match-card-last-active--now::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    flex-shrink: 0;
}

.match-card-last-active--recent,
.match-card-last-active--yesterday,
.match-card-last-active--week {
    color: #2a7a58;
}

.match-card-last-active--older {
    font-weight: 400;
    color: #8a8494;
    font-size: 11px;
}

.match-card-positive-reviews {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f7ec;
    color: #1a7a3a;
}

.match-sentiment-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.match-sentiment-summary .match-review-count {
    font-size: 12px;
    color: #6b6578;
}

/* Explore sidebar — subject toggles under "Based on your saved subjects" */
.explore-subject-filter-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 12px 0 8px;
}

.explore-subject-filter-chip {
  width: fit-content !important;
  min-height: 32px;
  height: auto !important;
  margin: 0 !important;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #E5E3EA;
  background-color: #F1F0F3;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.explore-subject-filter-chip label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 8px;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-transform: capitalize;
  color: #8B8794;
  width: auto;
}

.explore-subject-filter-chip__name,
.explore-subject-filter-chip__count {
  color: inherit;
}

.explore-subject-filter-chip__count {
  font-weight: 600;
  font-size: 13px;
  opacity: 0.9;
}

.explore-subject-filter-chip .explore-subject-filter-chip__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  top: 0 !important;
  border: 1px solid #D4D0DC;
  background-color: #fff !important;
}

.explore-subject-filter-chip .explore-subject-filter-chip__check:checked {
  background-color: #F76922 !important;
  border-color: #F76922 !important;
}

.explore-subject-filter-chip .explore-subject-filter-chip__check:checked:after {
  width: 12px;
  height: 12px;
}

/* Checked: per-subject tint; tick stays orange — no outer orange ring */
.explore-subject-filter-chip.subject-tinted:has(input:checked) {
  background-color: var(--subject-bg) !important;
  border-color: var(--subject-bg) !important;
  box-shadow: none;
}

.explore-subject-filter-chip.filter__checkbox:has(input[type="checkbox"]:checked) {
  border-color: var(--subject-bg, #E5E3EA) !important;
}

.explore-subject-filter-chip.subject-tinted:has(input:checked) label,
.explore-subject-filter-chip.subject-tinted:has(input:checked) .explore-subject-filter-chip__name,
.explore-subject-filter-chip.subject-tinted:has(input:checked) .explore-subject-filter-chip__count {
  color: var(--subject-color) !important;
}

/* Unchecked: muted pill; count still visible */
.explore-subject-filter-chip:not(:has(input:checked)) {
  background-color: #F1F0F3 !important;
  border-color: #E5E3EA !important;
  opacity: 0.92;
}

.explore-subject-filter-chip--no-matches:not(:has(input:checked)) {
  opacity: 0.78;
}

.explore-subject-filter-chip:not(:has(input:checked)) label,
.explore-subject-filter-chip:not(:has(input:checked)) .explore-subject-filter-chip__name,
.explore-subject-filter-chip:not(:has(input:checked)) .explore-subject-filter-chip__count {
  color: #8B8794 !important;
}

/* Public explore — subject search banner above results heading */
.main-container:has(.explore-subject-search-banner) .matches__header {
  padding-left: 0;
  padding-right: 0;
}

.main-container:has(.explore-subject-search-banner) .explore-results-heading {
  padding-left: 0;
  padding-right: 0;
}

.explore-subject-search-banner {
  margin: 1.25rem 0 0;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.25rem 1.625rem;
  border-radius: 20px;
  border: 1px solid rgba(247, 105, 34, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 246, 242, 0.92) 48%, rgba(234, 243, 255, 0.55) 100%);
  box-shadow:
    0 4px 22px rgba(20, 10, 5, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.explore-subject-search-banner__inner {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.explore-subject-search-banner__label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.35;
  color: #272232;
  margin: 0 0 1rem;
}

.explore-subject-search__field {
  position: relative;
  text-align: left;
}

.explore-subject-search-banner__signup-cta {
  margin: 1rem 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #6b6578;
  text-align: center;
}

.explore-subject-search-banner__signup-link {
  color: #f76922;
  font-weight: 600;
  text-decoration: none;
}

.explore-subject-search-banner__signup-link:hover,
.explore-subject-search-banner__signup-link:focus-visible {
  color: #dc5d1d;
  text-decoration: underline;
  outline: none;
}

.explore-subject-search__input-wrap {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1.5px solid rgba(83, 73, 101, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 10, 5, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.explore-subject-search__input-wrap:focus-within {
  border-color: rgba(247, 105, 34, 0.45);
  box-shadow: 0 0 0 3px rgba(247, 105, 34, 0.12);
}

.explore-subject-search-banner .explore-subject-search__input.searchBox {
  flex: 1;
  min-width: 0;
  width: 100% !important;
  height: 3rem;
  margin: 0;
  padding: 0 0.75rem 0 1.25rem;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: #272232;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.explore-subject-search-banner .explore-subject-search__input.searchBox::placeholder {
  color: #8a8494;
  opacity: 1;
}

.explore-subject-search-banner .explore-subject-search__button.searchButton {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(83, 73, 101, 0.12);
  border-radius: 0;
  background-color: #fff;
  background-size: 22px 22px;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.explore-subject-search__suggestions {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 100%;
  z-index: 30;
  box-sizing: border-box;
}

.explore-subject-search-banner div.homePageAutocompletedSuggestions,
.explore-subject-search-banner .explore-subject-search__suggestions {
  width: 100% !important;
  max-width: none;
}

.explore-subject-search-banner + .explore-results-heading,
.explore-results-heading {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #272232;
  text-align: left;
}

.explore-results-heading__lead {
  font-weight: 600;
}

@media (min-width: 768px) {
  .explore-subject-search-banner {
    padding: 1.75rem 2rem 1.875rem;
  }

  .explore-subject-search-banner .explore-subject-search__input.searchBox {
    height: 3.125rem;
    padding-left: 1.375rem;
    font-size: 1.0625rem;
  }

  .explore-subject-search-banner .explore-subject-search__button.searchButton {
    width: 3.25rem;
    height: 3.125rem;
  }

  .explore-subject-search-banner + .explore-results-heading,
  .explore-results-heading {
    margin-top: 1.75rem;
  }
}

.explore-filter-section--retired {
  display: none !important;
}

.explore-price-range-block {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.explore-price-range-block.explore-price-range-block--visible {
  display: block;
  max-width: 100%;
}

.filters .price-display-container {
  flex-wrap: wrap;
  gap: 12px 16px;
  max-width: 100%;
}

.filters .price-display-row {
  min-width: 0;
  max-width: 100%;
}

.filters .price-display {
  min-width: 0;
  max-width: 100%;
}

.filters .price-display-input {
  width: 4.25rem;
  max-width: 4.25rem;
  flex: 0 0 4.25rem;
}

/* --- Explore filter sidebar (desktop) --- */
@media (min-width: 993px) {
  .filters .explore-filters__first-heading {
    margin-top: 0;
  }
}

/* Single-column result cards: centered reads better on narrow viewports */
@media (max-width: 599.98px) {
  .matches-grid-container {
    justify-content: center !important;
  }
}

/* --- Mobile / tablet filter drawer --- */
@media (max-width: 992px) {
  .filterArea.filterArea--open {
    top: 0;
    height: 100%;
    height: 100dvh;
    padding: max(4.75rem, calc(env(safe-area-inset-top) + 3.5rem)) 1.25rem 14rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .filterArea.filterArea--open > div {
    width: 100%;
    max-width: none;
    margin: 0;
    /* keep the content at its natural height (not stretched to the screen) and
       leave room at the end so the last options scroll up above the buttons */
    align-self: flex-start;
    padding-bottom: 9rem;
  }

  /* Solid bar behind Reset Filters / Update Results so options never show through them */
  .filterArea.filterArea--open::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(8.25rem + env(safe-area-inset-bottom));
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), #f8f9fa 22%);
    pointer-events: none;
    z-index: 2000;
  }

  .filterArea.filterArea--open .explore-filters__first-heading {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
  }

  .filterArea.filterArea--open h3 {
    width: 100%;
    font-size: 1.0625rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .filterArea.filterArea--open .filter__checkbox {
    width: 100%;
    max-width: none;
  }

  .filterArea.filterArea--open #filterLocation,
  .filterArea.filterArea--open .locationText,
  .filterArea.filterArea--open .price-range-container,
  .filterArea.filterArea--open .price-display-container {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  .filterArea.filterArea--open .price-display-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filterArea.filterArea--open .price-display-container > div {
    width: 100%;
    justify-content: flex-start;
  }

  .filterArea.filterArea--open .price-display-row {
    width: 100%;
  }

  .filterArea.filterArea--open .price-display {
    flex: 1;
    min-width: 8.5rem;
  }

  .filterArea.filterArea--open .price-display-input {
    width: auto;
    max-width: none;
    flex: 1 1 auto;
    min-width: 3.25rem;
    text-align: left !important;
  }
}

.explore-everyone-chip-list {
  margin-top: 8px;
  margin-bottom: 4px;
}

.explore-everyone-pill {
  margin: 0;
  cursor: default;
  pointer-events: none;
  box-sizing: border-box;
}

.explore-show-everyone {
  display: inline-block;
  width: auto;
  margin: 1.25rem 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #726a81;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.explore-show-everyone:hover,
.explore-show-everyone:focus-visible {
  color: #f76922;
  background: transparent;
}

.explore-map-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.explore-map-heading h2 {
  margin: 0;
}

/* The page heading is an <h1> for SEO; keep the size and spacing it had as an <h2>. */
.explore-map-heading h1 {
  margin: 0;
  padding: 0 0 8px;
  font-size: 32px !important;
  line-height: 1.2;
}

.explore-map-heading__tagline {
  font-weight: 500;
  color: #4B4557;
  margin: 5px 0 0;
}

@media (max-width: 992px) {
  body.explore-page nav.members-mob-navbar,
  body.public-explore-page nav.public-mob-navbar {
    position: relative;
    z-index: 40;
  }

  body.explore-filters-open .explore-map-button {
    visibility: hidden;
    pointer-events: none;
  }
}

.explore-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: fixed;
  top: calc(var(--explore-map-top, 4.5rem) + 0.75rem);
  right: 1rem;
  z-index: 5;
  box-sizing: border-box;
  height: 2.55rem;
  margin: 0;
  background: #F76922;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 1rem 0 0.7rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(247, 105, 34, 0.38);
  transition: none;
}

body.explore-map-open .explore-map-button {
  visibility: hidden;
  pointer-events: none;
}

.explore-map-button__globe {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  flex: 0 0 auto;
}

.explore-map-button:hover,
.explore-map-button:focus-visible {
  background: #e25d1b;
}

.explore-map-button:focus:not(:focus-visible),
.explore-map__close:focus:not(:focus-visible),
.explore-map__spin:focus:not(:focus-visible),
.explore-map__back:focus:not(:focus-visible) {
  outline: none;
}

.explore-map[hidden] {
  display: none !important;
}

.explore-map {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--explore-map-top, 4.5rem);
  z-index: 1;
  display: block;
  padding: 0;
  box-sizing: border-box;
  background: #070b16;
}

.explore-map__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.explore-map__toolbar {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.explore-map__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.explore-map__spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 6.6rem;
  height: 2.55rem;
  box-sizing: border-box;
  background: #fff;
  color: #1c1630;
  border: 1px solid #d9d4e0;
  border-radius: 999px;
  padding: 0 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: none;
  box-shadow: 0 8px 22px rgba(7, 11, 22, 0.28);
}

.explore-map__spin-label {
  width: 2.15rem;
  text-align: left;
}

.explore-map__spin-track {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #d5d0db;
  flex: 0 0 auto;
}

.explore-map__spin-knob {
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 0.86rem;
  height: 0.86rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 22, 48, 0.25);
  transition: transform 0.18s ease;
}

.explore-map__spin[aria-pressed="true"] .explore-map__spin-track {
  background: #F76922;
}

.explore-map__spin[aria-pressed="true"] .explore-map__spin-knob {
  transform: translateX(0.9rem);
}

.explore-map__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-sizing: border-box;
  height: 2.55rem;
  background: #fff;
  color: #1c1630;
  border: 1px solid #d9d4e0;
  border-radius: 999px;
  padding: 0 1rem 0 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: none;
  box-shadow: 0 8px 22px rgba(7, 11, 22, 0.28);
}

.explore-map__back {
  display: inline-flex;
  align-items: center;
  height: 2.55rem;
  margin: 0 0 0.15rem;
  padding: 0;
  background: transparent;
  color: #5c5668;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
}

.explore-map__back:hover,
.explore-map__back:focus-visible {
  color: #1c1630;
  background: transparent;
}

.explore-map__view-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  flex: 0 0 auto;
}

.explore-map__status {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  z-index: 3;
  margin: 0;
  padding: 0;
  color: #e8e4ef;
  transform: translateX(-50%);
}

.explore-map__status[hidden] {
  display: none !important;
}

.explore-map__body {
  position: relative;
  flex: 1;
  min-height: 0;
}

.explore-map__globe,
.explore-map-pin {
  touch-action: none;
}

.explore-map__globe,
.explore-map__list,
.explore-map__people {
  position: absolute;
  inset: 0;
}

.explore-map__globe[hidden],
.explore-map__list[hidden],
.explore-map__people[hidden] {
  display: none !important;
}

.explore-map__list,
.explore-map__people {
  overflow: auto;
  background: #fff;
  padding: 0.25rem 1rem 1rem;
  box-sizing: border-box;
}

.explore-map__people {
  left: auto;
  width: min(320px, 100%);
  padding-top: 0.75rem;
  box-shadow: -8px 0 24px rgba(20, 16, 28, 0.08);
  z-index: 2;
}

.explore-map__country {
  margin: 1rem 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b6575;
}

.explore-map__city,
.explore-map__person {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  background: #fff;
  color: #1c1630;
  border: none;
  border-bottom: 1px solid #efeaf3;
  padding: 0.75rem 0.15rem;
  font-size: 1rem;
  cursor: pointer;
}

.explore-map__city:hover,
.explore-map__person:hover,
.explore-map__city:focus-visible,
.explore-map__person:focus-visible {
  background: #faf7f4;
}

.explore-map__person img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.explore-map__names {
  list-style: none;
  margin: 0;
  padding: 0;
}

.explore-map__note,
.explore-map__empty,
.explore-map__credit {
  color: #6b6575;
  font-size: 0.8rem;
}

.explore-map__credit {
  position: absolute;
  right: 1rem;
  bottom: 0.45rem;
  z-index: 3;
  margin: 0;
  max-width: min(520px, 46vw);
  color: rgba(232, 228, 239, 0.72);
  pointer-events: none;
}

.explore-map__globe .scene-nav-info {
  display: none !important;
}

.explore-map-pin {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #1c1630;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: none;
  text-shadow: 0 0 4px #fff, 0 0 4px #fff;
}

.explore-map-pin__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F76922;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(28, 22, 48, 0.25);
}

@media (max-width: 767px) {
  .explore-map__people {
    width: 100%;
    box-shadow: none;
    z-index: 5;
    /* clear the Filters / Spin / List buttons pinned to the top corners */
    padding: 4.25rem 1.25rem 1.5rem;
  }

  /* The list covers the whole map here, so stop the city pins showing through it */
  .explore-map__globe:has(~ .explore-map__people:not([hidden])) {
    visibility: hidden;
  }
}

.explore-map__people h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}

.explore-map__people .explore-map__note {
  margin: 0 0 0.5rem;
}

.explore-map__people .explore-map__person {
  padding: 0.85rem 0.25rem;
}

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

body.explore-map-open .matches__header,
body.explore-map-open #cardsContainer,
body.explore-map-open .recommended-subjects-to-learn,
body.explore-map-open #sentinel {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (min-width: 993px) {
  body.explore-map-open .filters {
    position: fixed;
    left: 1rem;
    top: calc(var(--explore-map-top, 4.5rem) + 0.75rem);
    bottom: auto;
    width: var(--explore-filter-width, 408px);
    min-width: var(--explore-filter-width, 408px);
    max-width: var(--explore-filter-width, 408px);
    flex: 0 0 var(--explore-filter-width, 408px);
    height: fit-content;
    max-height: none;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
    z-index: 6;
  }

  body.explore-map-open .filters .place-suggest {
    z-index: 20;
  }
}

@media (max-width: 992px) {
  body.explore-map-open .filter-button-wrap {
    display: block;
    position: fixed;
    top: calc(var(--explore-map-top, 4.5rem) + 0.75rem);
    left: 0.75rem;
    z-index: 5;
    margin: 0;
  }

  body.explore-map-fullscreen {
    overflow: hidden;
  }

  body.explore-map-fullscreen .explore-map {
    top: 0;
    height: 100%;
    height: 100dvh;
    z-index: 1500;
  }

  /* The full-screen map has its own Filters / Spin / List controls in the top
     corners; the page logo and hamburger would sit on top of them. */
  body.explore-map-fullscreen nav.public-mob-navbar,
  body.explore-map-fullscreen nav.members-mob-navbar {
    visibility: hidden;
    pointer-events: none;
  }

  body.explore-map-fullscreen .explore-map__toolbar {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
  }

  body.explore-map-fullscreen .explore-map__credit {
    bottom: max(0.45rem, env(safe-area-inset-bottom));
  }

  body.explore-map-fullscreen .filter-button-wrap {
    top: max(0.75rem, env(safe-area-inset-top));
    left: max(0.75rem, env(safe-area-inset-left));
    z-index: 1600;
  }
}

.explore-browse-subjects {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.95rem;
}

.explore-browse-subjects a {
  color: #f94e10;
  font-weight: 600;
  text-decoration: none;
}

.explore-browse-subjects a:hover,
.explore-browse-subjects a:focus-visible {
  text-decoration: underline;
}
