/* Explore-specific layout and controls. Shared maps and cards retain their common styles. */
html body.page-explore .explore-workspace__body:has([data-map-unavailable]) {
  grid-template-columns: minmax(0, 1fr);
}

html body.page-explore .summary-map-shell--explore-workspace[data-map-unavailable] {
  order: -2;
}

html body.page-explore .summary-map-shell--explore-workspace[data-map-unavailable] :is(.summary-map-copy, .summary-map-frame, .summary-map-mobile-switch),
html body.page-explore .explore-workspace__body:has([data-map-unavailable]) .explore-workspace__list-note {
  display: none !important;
}

html body.page-explore .explore-workspace__body:has([data-map-unavailable]) .explore-workspace__board {
  display: grid !important;
  max-height: none;
}

@media (min-width: 761px) {
  .page-explore .summary-map-shell--explore-workspace .summary-map-results-panel {
    display: none;
  }
}

  @media (max-width: 760px) {
    html body.page-explore .decision-section--explore {
    padding-top: 0.72rem !important;
  }

  html body.page-explore .section-head.section-head--stacked {
    gap: 0.42rem !important;
    align-items: flex-start !important;
  }

  html body.page-explore .section-head.section-head--stacked .eyebrow {
    margin-bottom: 0.14rem !important;
  }

  html body.page-explore .section-title {
    font-size: 1.46rem !important;
    line-height: 1.02 !important;
  }

  html body.page-explore .hero__meta {
    width: 100% !important;
    gap: 0.36rem !important;
  }

  html body.page-explore .hero__meta .stat-chip {
    min-height: 2.18rem !important;
    padding: 0.34rem 0.64rem !important;
    font-size: 0.74rem !important;
  }

  html body.page-explore .status-banner {
    padding: 0.72rem !important;
    border-radius: 20px !important;
  }

  html body.page-explore .status-banner .muted {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }

  html body.page-explore .explore-workspace {
    gap: 0.62rem !important;
    padding: 0.68rem !important;
    border-radius: 24px !important;
  }

  html body.page-explore .board-filters__workspace {
    gap: 0.56rem !important;
  }

  html body.page-explore .board-filters__group {
    padding: 0.7rem !important;
    border-radius: 20px !important;
  }

  html body.page-explore .board-filters__group-head {
    margin-bottom: 0.42rem !important;
  }

  html body.page-explore .board-filters__group-title {
    font-size: 0.82rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  html body.page-explore .home-location-bar--embedded .home-location-bar__form {
    gap: 0.42rem !important;
    align-items: stretch !important;
  }

  html body.page-explore .home-location-bar__search {
    order: 1 !important;
  }

  html body.page-explore .home-location-bar__use {
    order: 2 !important;
    width: auto !important;
    min-height: 2.7rem !important;
    justify-self: start;
    border-radius: 999px;
  }

  html body.page-explore .home-location-bar--embedded .home-location-bar__actions {
    order: 3 !important;
    gap: 0.42rem !important;
  }

  html body.page-explore .home-location-bar__search .filter-search__input,
html body.page-explore .home-location-bar__search-input {
    border-radius: 16px !important;
  }

  html body.page-explore .home-location-bar .filter-chip {
    min-height: 2.68rem !important;
    border-radius: 16px !important;
  }

  html body.page-explore .board-filters__controls {
    gap: 0.42rem !important;
  }

  html body.page-explore .board-filters__advanced {
    gap: 0.42rem !important;
  }

  html body.page-explore .board-filters__advanced-heading {
    font-size: 0.84rem !important;
  }

  html body.page-explore .board-filters__advanced-note {
    display: none !important;
  }

  html body.page-explore .board-filters__actions .filter-chip {
    min-height: 2.68rem !important;
    font-size: 0.84rem !important;
  }

  html body.page-explore .board-filters__actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.page-explore .explore-workspace__filters {
    gap: 0.32rem !important;
  }

  html body.page-explore .explore-workspace__filter-pill {
    min-height: 1.82rem !important;
    padding: 0.28rem 0.58rem !important;
    font-size: 0.72rem !important;
  }

  html body.page-explore .explore-workspace__body {
    gap: 0.62rem !important;
  }

  html body.page-explore .explore-workspace__board {
    order: 1 !important;
    gap: 0.56rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace {
    order: 2 !important;
    gap: 0.5rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-copy {
    padding: 0.62rem 0.68rem !important;
    gap: 0.24rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-copy .eyebrow {
    margin-bottom: 0 !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .section-title {
    font-size: 1.04rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-copy__lede,
html body.page-explore .explore-workspace__list-note,
html body.page-explore .summary-map-shell--explore-workspace .summary-map-legend {
    display: none !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-frame {
    padding: 0.34rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map {
    min-height: 15.5rem !important;
    border-radius: 18px !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-footer {
    padding-top: 0.28rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map__status {
    font-size: 0.72rem !important;
  }

  html body.page-explore .explore-workspace__list-head {
    gap: 0.16rem !important;
    padding: 0 !important;
  }

  html body.page-explore .explore-workspace__list-head-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.45rem !important;
  }

  html body.page-explore .explore-workspace__count {
    min-height: 1.9rem !important;
    padding: 0.24rem 0.6rem !important;
    font-size: 0.74rem !important;
  }

  html body.page-explore .river-grid--explore-list {
    gap: 0.48rem !important;
  }

  html body.page-explore .explore-pagination {
    gap: 0.5rem !important;
  }

  html body.page-explore .explore-pagination__controls {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.42rem !important;
    width: 100% !important;
  }

  html body.page-explore .explore-pagination__page {
    grid-column: 1 / -1 !important;
    text-align: center !important;
  }

  html body.page-explore .home-board-inline--wide {
    margin-top: 0.72rem !important;
    gap: 0.5rem !important;
  }
  html body.page-explore .summary-map-shell--explore-workspace {
    gap: 0.42rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map-mobile-switch {
    display: inline-grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.14rem;
    width: 100%;
    padding: 0.14rem;
    border: 1px solid rgba(16, 35, 45, 0.08);
    border-radius: 999px;
    background: rgba(250, 248, 243, 0.94);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.82),
      0 8px 20px rgba(16, 35, 45, 0.07);
  }

  html body.page-explore .summary-map-shell--explore-workspace .summary-map__toggle,
html body.page-explore .explore-workspace__board {
    display: none !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-list .summary-map-frame {
    display: none !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-list .summary-map-copy {
    padding: 0.68rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map {
    gap: 0.32rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-copy {
    gap: 0.42rem !important;
    padding: 0.62rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-copy__intro {
    display: none !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-results-panel {
    gap: 0.34rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-results-head {
    gap: 0.22rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-results__back {
    display: inline-flex !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-results {
    max-height: 6rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-frame {
    padding: 0.28rem !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map {
    min-height: 17rem !important;
    border-radius: 18px !important;
  }

  html body.page-explore .summary-map-shell--explore-workspace.summary-map-shell--mobile-map .summary-map-footer {
    padding-top: 0.2rem !important;
  }
}
html body.page-explore .explore-workspace {
  gap: 0.85rem;
  padding: 1rem;
  border-color: rgba(30, 115, 151, 0.14);
  background:
    linear-gradient(180deg, rgba(247, 251, 252, 0.96), rgba(255, 255, 255, 0.92)),
    var(--panel);
  box-shadow: 0 18px 42px rgba(16, 35, 45, 0.075);
}

html body.page-explore .explore-workspace .board-filters--embedded {
  padding: 0.75rem;
  border-color: rgba(30, 115, 151, 0.12);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 10px 25px rgba(16, 35, 45, 0.055);
}

html body.page-explore .board-filters__workspace {
  grid-template-columns: minmax(19rem, 0.72fr) minmax(0, 1.28fr);
  align-items: stretch;
  gap: 0.75rem;
}

html body.page-explore .board-filters__group {
  gap: 0.62rem;
  padding: 0.82rem;
  border-color: rgba(20, 69, 83, 0.1);
  border-radius: 17px;
  background: rgba(251, 252, 252, 0.9);
}

html body.page-explore .board-filters__group--location {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(30, 115, 151, 0.19);
  background:
    radial-gradient(circle at 0% 0%, rgba(126, 190, 174, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(239, 248, 250, 0.96), rgba(255, 255, 255, 0.92));
}

html body.page-explore .board-filters__group-title {
  font-family: var(--serif);
  font-size: 1.02rem;
}

html body.page-explore .board-filters__controls--primary {
  gap: 0.55rem;
}

html body.page-explore .board-filters__controls--primary > .filter-select--sort {
  flex-basis: 13.75rem;
}

html body.page-explore .board-filters__controls--primary .filter-select__input,
html body.page-explore .board-filters__controls--primary .filter-search__input {
  min-height: 2.42rem;
  border-color: rgba(20, 69, 83, 0.13);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 12px rgba(16, 35, 45, 0.035);
}

html body.page-explore .score-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem 0.72rem;
  padding: 0.42rem 0.48rem 0.42rem 0.68rem;
  border: 1px solid rgba(30, 115, 151, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgba(236, 247, 248, 0.9), rgba(250, 252, 252, 0.9));
}

html body.page-explore .score-filter__label {
  color: #536d78;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

html body.page-explore .score-filter__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

html body.page-explore .score-filter__option {
  min-height: 2rem;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(20, 69, 83, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

html body.page-explore .score-filter__option:hover {
  border-color: rgba(31, 101, 119, 0.32);
  background: #fff;
}

html body.page-explore .score-filter__option:focus-visible {
  outline: 3px solid rgba(30, 115, 151, 0.2);
  outline-offset: 2px;
}

html body.page-explore .score-filter__option--active {
  border-color: #1f6577;
  background: #1f6577;
  color: #fff;
  box-shadow: 0 6px 14px rgba(31, 101, 119, 0.18);
}

html body.page-explore .board-filters__actions {
  gap: 0.4rem;
}

html body.page-explore .board-filters__actions .filter-chip {
  min-height: 2rem;
  padding-inline: 0.65rem;
  font-size: 0.72rem;
}

html body.page-explore .explore-workspace__filters {
  min-height: 2rem;
  gap: 0.4rem;
  padding-inline: 0.05rem;
}

html body.page-explore .explore-workspace__filter-pill {
  min-height: 1.9rem;
  padding: 0.32rem 0.68rem;
  box-shadow: none;
}

html body.page-explore .explore-workspace__body {
  grid-template-columns: minmax(0, 1fr) minmax(19.5rem, 0.42fr);
  gap: 1rem;
}

html body.page-explore .summary-map-shell--explore-workspace {
  gap: 0.8rem;
}

html body.page-explore .summary-map-shell--explore-workspace .summary-map-copy,
html body.page-explore .summary-map-shell--explore-workspace .summary-map-frame {
  border-color: rgba(20, 69, 83, 0.11);
  box-shadow: 0 10px 26px rgba(16, 35, 45, 0.055);
}

html body.page-explore .summary-map-shell--explore-workspace .summary-map-copy {
  padding: 0.9rem 0.95rem;
}

html body.page-explore .summary-map-shell--explore-workspace .summary-map-frame {
  padding: 0.72rem;
}

html body.page-explore .summary-map-shell--explore-workspace .summary-map {
  border-radius: 17px;
}

html body.page-explore .explore-workspace__board {
  gap: 0.75rem;
}

html body.page-explore .explore-workspace__list-head {
  padding: 0.15rem 0.15rem 0.05rem;
}

html body.page-explore .river-grid--explore-list .river-card--compact {
  max-width: none;
  border-color: rgba(20, 69, 83, 0.11);
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(16, 35, 45, 0.045);
}

html body.page-explore .explore-location-quick {
  display: grid;
  gap: 0.48rem;
  margin-top: 0.72rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(30, 115, 151, 0.13);
}

html body.page-explore .explore-location-quick[hidden],
html body.page-explore .home-location-bar__clear[hidden] {
  display: none !important;
}

html body.page-explore .home-location-bar--embedded .home-location-bar__form {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
}

html body.page-explore .home-location-bar--embedded .home-location-bar__search {
  flex: 1 1 min(18rem, 100%);
  max-width: 100%;
}

html body.page-explore .home-location-bar--embedded .home-location-bar__actions {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

html body.page-explore .home-location-bar__use {
  min-width: 0;
  max-width: 100%;
}

html body.page-explore .explore-location-quick__heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

html body.page-explore .explore-location-quick__eyebrow {
  color: var(--river-deep);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body.page-explore .explore-location-quick__location {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body.page-explore .explore-location-quick__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

html body.page-explore .explore-location-quick__button {
  min-height: 2.1rem;
  padding-inline: 0.68rem;
  font-size: 0.72rem;
}

html body.page-explore .explore-location-quick__button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

html body.page-explore .explore-location-quick__summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

html body.page-explore .explore-location-quick__expand {
  min-height: 1.85rem;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(30, 115, 151, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--river-deep);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

html body.page-explore .explore-location-quick__expand[hidden],
html body.page-explore .explore-location-best[hidden] {
  display: none !important;
}

html body.page-explore .explore-location-best {
  display: grid;
  gap: 0.08rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(103, 154, 117, 0.2);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(242, 249, 242, 0.98), rgba(255, 255, 255, 0.94));
  color: var(--ink);
  text-decoration: none;
}

html body.page-explore .explore-location-best:hover,
html body.page-explore .explore-location-best:focus-visible {
  border-color: rgba(30, 115, 151, 0.38);
  box-shadow: 0 5px 14px rgba(16, 35, 45, 0.08);
}

html body.page-explore .explore-location-best__eyebrow {
  color: rgba(44, 88, 60, 0.86);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body.page-explore .explore-location-best strong {
  font-size: 0.92rem;
}

html body.page-explore .explore-location-best__detail {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

html body.page-explore .summary-map-results__more {
  width: 100%;
  margin-top: 0.5rem;
}

html body.page-explore .board-filters__advanced > .board-filters__advanced-header {
  cursor: pointer;
  list-style: none;
}

html body.page-explore .board-filters__advanced > .board-filters__advanced-header::-webkit-details-marker {
  display: none;
}

html body.page-explore .board-filters__advanced > .board-filters__advanced-header::after {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(30, 115, 151, 0.2);
  border-radius: 999px;
  color: var(--river-deep);
  content: '+';
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
}

html body.page-explore .board-filters__advanced[open] > .board-filters__advanced-header::after {
  content: '−';
}

html body.page-explore .explore-page .home-location-bar--embedded .home-location-bar__use {
  width: auto;
  min-width: 6rem;
  padding-inline: 0.7rem;
  gap: 0.34rem;
}

html body.page-explore .explore-page .home-location-bar__use span:not(.icon) {
  display: inline;
}

@media (max-width: 1100px) {
  html body.page-explore .board-filters__workspace {
    grid-template-columns: minmax(17rem, 0.68fr) minmax(0, 1.32fr);
  }

  html body.page-explore .score-filter {
    grid-template-columns: 1fr;
  }

  html body.page-explore .explore-workspace__body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html body.page-explore .explore-workspace .board-filters--embedded {
    padding: 0.58rem;
  }

  html body.page-explore .board-filters__workspace {
    grid-template-columns: 1fr;
  }

  html body.page-explore .score-filter {
    gap: 0.42rem;
    padding: 0.58rem;
    border-radius: 16px;
  }

  html body.page-explore .score-filter__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 5rem), 1fr));
  }

  html body.page-explore .score-filter__option {
    min-height: 2.32rem;
    padding-inline: 0.42rem;
    font-size: 0.7rem;
  }

  html body.page-explore .explore-location-quick__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 6rem), 1fr));
  }

  html body.page-explore .explore-location-quick__button {
    width: 100%;
    padding-inline: 0.45rem;
  }

  html body.page-explore .explore-page .home-location-bar--embedded .home-location-bar__use {
    min-width: 6rem;
  }
}
html body.page-explore button.explore-workspace__filter-pill {
  min-height: 2.75rem;
  gap: 0.5rem;
  cursor: pointer;
  font-family: inherit;
}

html body.page-explore button.explore-workspace__filter-pill:hover {
  border-color: var(--river-deep);
  background: var(--panel);
}
html body.page-explore .board-filters__controls--secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
html body.page-explore .board-filters__controls--secondary .filter-select {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
html body.page-explore .board-filters__controls :is(.filter-search, .filter-select) {
  min-width: 0;
  max-width: 100%;
}
html body.page-explore .board-filters__controls :is(.filter-search__input, .filter-select__input) {
  width: 100%;
  min-width: 0;
}
html body.page-explore .score-filter__option,
html body.page-explore .board-filters__actions .filter-chip { min-height: 44px; }
@media (max-width: 760px) {
  html body.page-explore .board-filters__controls--secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  html body.page-explore .board-filters__controls--secondary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html body.page-explore .explore-workspace__filter-pill--filter {
    min-height: 44px !important;
  }
}
