/* Full-width explore map app: desktop split view, mobile bottom sheet */

body.bbhm-explore-map-page {
  --bbhm-explore-header-offset: 5.5rem;
  overflow: auto;
}

body.bbhm-explore-map-page .site-main {
  padding: 0;
}

body.bbhm-explore-map-page .site-footer {
  display: none;
}

.bbhm-explore-hub {
  width: 100%;
}

.bbhm-explore-hub__seo {
  padding: var(--bbhm-space-4) 0 var(--bbhm-space-3);
}

.bbhm-explore-hub__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--bbhm-accent);
  font-family: var(--bbhm-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.bbhm-explore-hub__title {
  margin: 0 0 0.65rem;
  font-family: var(--bbhm-display);
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.08;
  max-width: 20ch;
}

.bbhm-explore-hub__intro,
.bbhm-explore-hub__body p {
  margin: 0 0 0.75rem;
  max-width: 42rem;
  color: var(--bbhm-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.bbhm-explore-hub__popular,
.bbhm-explore-hub__guides {
  margin-top: 1rem;
}

.bbhm-explore-hub__popular-title,
.bbhm-explore-hub__guides-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-family: var(--bbhm-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bbhm-muted);
}

.bbhm-explore-hub__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bbhm-explore-hub__chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--bbhm-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bbhm-text);
  font-size: 0.88rem;
  text-decoration: none;
}

.bbhm-explore-hub__chip:hover,
.bbhm-explore-hub__chip:focus-visible {
  border-color: var(--bbhm-accent);
}

.bbhm-explore-hub__chip.is-active {
  border-color: var(--bbhm-accent);
  background: rgba(255, 149, 0, 0.12);
  font-weight: 600;
}

.bbhm-explore-hub__guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 42rem;
}

.bbhm-explore-hub__guide-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--bbhm-border);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.bbhm-explore-hub__guide-name {
  font-weight: 700;
}

.bbhm-explore-hub__guide-excerpt {
  color: var(--bbhm-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.bbhm-explore-hub__jump {
  margin: 1rem 0 0;
}

.bbhm-explore-hub__jump-link {
  font-size: 0.9rem;
  font-weight: 600;
}

body.bbhm-explore-map-page .site-main.bbhm-explore-app {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.bbhm-explore-hub .bbhm-explore-app {
  min-height: min(72vh, 760px);
}

.bbhm-explore-app {
  --bbhm-explore-sheet-ratio: 0.5;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  min-height: calc(100dvh - var(--bbhm-explore-header-offset));
  height: calc(100dvh - var(--bbhm-explore-header-offset));
  background: var(--bbhm-bg, #f7f7f4);
}

.bbhm-explore-app__map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  z-index: 1;
  touch-action: none;
  overscroll-behavior: none;
}

.bbhm-explore-app__map-frame {
  position: absolute;
  inset: 0;
  background: #e8edf2;
  touch-action: none;
  overscroll-behavior: none;
}

.bbhm-explore-app__map-frame.is-map-ready {
  background: #e8edf2;
}

.bbhm-explore-app__map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 250, 0.96)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(rgba(0, 0, 0, 0.03) 0 1px, transparent 1px 48px);
}

.bbhm-explore-app__map-placeholder[hidden] {
  display: none;
}

.bbhm-explore-app__map-placeholder p {
  margin: 0;
}

.bbhm-explore-app__map-canvas,
.bbhm-explore-app__map-canvas .maplibregl-map {
  width: 100%;
  height: 100%;
}

.bbhm-explore-app__map-canvas .maplibregl-canvas {
  outline: none;
}

.bbhm-explore-app__map-note {
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  max-width: 28rem;
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bbhm-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bbhm-explore-app__map-note[hidden] {
  display: none;
}

.bbhm-explore-app__sheet {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  height: calc(var(--bbhm-explore-sheet-ratio, 0.5) * 100dvh);
  max-height: calc(100dvh - var(--bbhm-explore-header-offset) - 0.75rem);
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--bbhm-border);
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.14);
  transition: height 180ms ease;
  touch-action: auto;
  isolation: isolate;
}

.bbhm-explore-app__sheet.is-dragging {
  transition: none;
}

.bbhm-explore-app__sheet-handle {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  min-height: 1.35rem;
  padding: 0.55rem 0 0.35rem;
  cursor: grab;
  touch-action: none;
  background: #fff;
}

.bbhm-explore-app__sheet-handle::before {
  content: "";
  display: block;
  width: 2.6rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
}

.bbhm-explore-app__sheet.is-dragging .bbhm-explore-app__sheet-handle {
  cursor: grabbing;
}

.bbhm-explore-app__sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 1rem 1.25rem;
  background: #fff;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.bbhm-explore-app__panel-head {
  margin-bottom: 0.85rem;
}

.bbhm-explore-app__panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.bbhm-explore-app__panel-lead,
.bbhm-explore-app__links {
  margin: 0 0 0.65rem;
  color: var(--bbhm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bbhm-explore-app__intro {
  margin-bottom: 1rem;
}

.bbhm-explore-app__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--bbhm-accent);
  font-family: var(--bbhm-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.bbhm-explore-app__title {
  margin: 0 0 0.5rem;
  font-family: var(--bbhm-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.1;
}

.bbhm-explore-app__lead,
.bbhm-explore-app__links {
  margin: 0 0 0.65rem;
  color: var(--bbhm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.bbhm-explore-app__scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.12);
  color: var(--bbhm-text);
  font-size: 0.88rem;
}

.bbhm-explore-app__scope-badge span {
  color: var(--bbhm-muted);
}

.bbhm-explore-app__filters {
  margin-bottom: 0.85rem;
}

.bbhm-explore-app__filter-form {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border: 1px solid var(--bbhm-border);
  border-radius: 12px;
  background: #fff;
}

.bbhm-explore-app__filter-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--bbhm-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.bbhm-explore-app__filter-form select,
.bbhm-explore-app__filter-form input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bbhm-border);
  border-radius: 8px;
  background: #fff;
}

.bbhm-explore-app__filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bbhm-explore-app__status {
  margin: 0 0 0.85rem;
  color: var(--bbhm-muted);
  font-size: 0.88rem;
}

.bbhm-explore-app__section + .bbhm-explore-app__section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bbhm-border);
}

.bbhm-explore-app__section-head {
  margin-bottom: 0.75rem;
}

.bbhm-explore-app__section-head h2,
.bbhm-explore-app__section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.bbhm-explore-app__section-note {
  margin: 0.35rem 0 0;
  color: var(--bbhm-muted);
  font-size: 0.86rem;
}

.bbhm-explore-app__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.bbhm-explore-app__item {
  border: 1px solid var(--bbhm-border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: #fff;
  cursor: pointer;
}

.bbhm-explore-app__item.is-active {
  border-color: var(--bbhm-accent);
  box-shadow: 0 0 0 1px var(--bbhm-accent);
}

.bbhm-explore-app__list--featured .bbhm-explore-app__item {
  border-color: rgba(255, 149, 0, 0.35);
}

.bbhm-explore-app__item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.bbhm-explore-app__item-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.bbhm-explore-app__item-meta,
.bbhm-explore-app__item-address {
  margin: 0;
  color: var(--bbhm-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  word-break: break-word;
}

.bbhm-explore-app__item-badge {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.14);
  color: var(--bbhm-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bbhm-explore-app__item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.84rem;
}

.bbhm-explore-app__price {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
}

.bbhm-explore-app__empty {
  margin: 0;
  padding: 0.85rem 0;
  color: var(--bbhm-muted);
  font-size: 0.9rem;
}

@media (min-width: 960px) {
  .bbhm-explore-app {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 28vw);
    grid-template-rows: minmax(0, 1fr);
    column-gap: 0;
  }

  .bbhm-explore-app__sheet {
    position: relative;
    inset: auto;
    height: 100%;
    max-height: none;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--bbhm-border);
    box-shadow: none;
    transition: none;
    touch-action: auto;
    background: #fff;
  }

  .bbhm-explore-app__sheet-handle {
    display: none;
  }

  .bbhm-explore-app__sheet-scroll {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .bbhm-explore-app__filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .bbhm-explore-app__search {
    grid-column: 1 / -1;
  }

  .bbhm-explore-app__filter-actions {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .bbhm-explore-app {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 32vw);
  }
}
