/* ==========================================================================
   EXPLORE PAGE — explore.css
   Mirrors the layout and visual language of Explore.tsx.
   All values use Design System tokens from app.css (:root).
   No Tailwind. No inline styles.
   ========================================================================== */

/* ── Viewport lock (same pattern as home.css / activities.css) ───────────── */
html:has(.boh-explore),
body:has(.boh-explore) {
  height: 100%;
  overflow: hidden;
}

body:has(.boh-explore) .boh-shell {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hide the global shell header — Explore renders its own header internally */
body:has(.boh-explore) .boh-shell__header {
  display: none;
}

body:has(.boh-explore) .boh-shell__main {
  flex: 1;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

/* ── Root container ──────────────────────────────────────────────────────── */
.boh-explore {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--boh-color-bg);
  font-family: var(--boh-font-sans);
  color: var(--boh-color-primary);
}

/* ==========================================================================
   HEADER
   Mirrors React: px-screen pt-10 pb-2.5 flex-shrink-0 relative z-10
   ========================================================================== */
.boh-explore__header {
  padding: 2.5rem var(--boh-space-screen) 0.625rem var(--boh-space-screen);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  background-color: var(--boh-color-bg);
}

.boh-explore__header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Back button — absolute left, matches React's absolute left-0 */
.boh-explore__back-btn {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  margin-left: -0.5rem;
  background: none;
  border: none;
  color: var(--boh-color-primary);
  cursor: pointer;
  text-decoration: none;
  transition-property: var(--boh-transition-property-transform);
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.boh-explore__back-btn:active {
  transform: scale(0.95);
}

.boh-explore__back-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Page title — centered, navtitle scale, sans bold */
.boh-explore__title {
  margin: 0;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-navtitle);
  line-height: var(--boh-line-height-navtitle);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
}

/* ==========================================================================
   MAIN SCROLL AREA
   Mirrors React: flex-1 overflow-y-auto hide-scrollbar pb-24 mt-2 space-y-4
   ========================================================================== */
.boh-explore__main {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem var(--boh-space-screen) 6rem var(--boh-space-screen);
}

/* Vertical gap between sections — mirrors space-y-4 */
.boh-explore__section + .boh-explore__section {
  margin-top: 1.5rem;
}

/* ==========================================================================
   SECTION HEADING
   Mirrors React: font-serif text-boh-primary text-heading font-semibold
   ========================================================================== */
.boh-explore__section-heading {
  margin: 0 0 0.5rem 0;
  font-family: var(--boh-font-serif);
  font-size: var(--boh-font-size-heading);
  line-height: var(--boh-line-height-heading);
  font-weight: var(--boh-font-weight-600);
  color: var(--boh-color-primary);
}

/* ==========================================================================
   SECTION HEADER ROW (heading + "View all" CTA)
   Mirrors React: flex justify-between items-end mb-1.5
   ========================================================================== */
.boh-explore__section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.375rem;
}

.boh-explore__section-header .boh-explore__section-heading {
  margin-bottom: 0;
}

/* "View all" link — mirrors React: text-boh-accent text-label font-bold */
.boh-explore__view-all {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  line-height: var(--boh-line-height-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-accent);
  text-decoration: none;
  transition-property: var(--boh-transition-property-opacity);
  transition-duration: 0.15s;
}

.boh-explore__view-all:active {
  opacity: 0.7;
}

/* ==========================================================================
   CATEGORY GRID
   Mirrors React: grid grid-cols-3 gap-3
   ========================================================================== */
.boh-explore__category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* Individual category tile — mirrors React: bg-boh-tile rounded-card p-4 flex flex-col
   items-center justify-center gap-3 active:scale-95 transition-transform */
.boh-explore__category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--boh-color-tile);
  border-radius: var(--boh-radius-card);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--boh-color-primary);
  transition-property: var(--boh-transition-property-transform);
  transition-duration: 0.15s;
  transition-timing-function: ease;
  -webkit-tap-highlight-color: transparent;
}

.boh-explore__category-tile:active {
  transform: scale(0.95);
}

/* Icon wrapper */
.boh-explore__category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon SVG — mirrors React: w-6 h-6 text-boh-gold strokeWidth={1.5} */
.boh-explore__category-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--boh-color-gold);
  stroke: currentColor;
}

/* Category label — mirrors React: text-label font-bold text-boh-primary */
.boh-explore__category-label {
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  line-height: var(--boh-line-height-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
  text-align: center;
}

/* ==========================================================================
   POPULAR EXPERIENCES — horizontal scroll row
   Mirrors React: flex gap-4 overflow-x-auto pb-3 snap-x hide-scrollbar
   ========================================================================== */
.boh-explore__experiences-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Experience card — mirrors React: min-w-[260px] w-[260px] snap-start flex flex-col gap-3 text-left */
.boh-explore__experience-card {
  flex-shrink: 0;
  width: 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition-property: var(--boh-transition-property-opacity);
  transition-duration: 0.15s;
}

.boh-explore__experience-card:active {
  opacity: 0.8;
}

/* Image container — mirrors React: w-full h-[180px] rounded-card overflow-hidden */
.boh-explore__experience-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--boh-radius-card);
  overflow: hidden;
  background-color: var(--boh-color-tile);
}

.boh-explore__experience-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition-property: var(--boh-transition-property-transform);
  transition-duration: 0.3s;
}

.boh-explore__experience-card:hover .boh-explore__experience-img {
  transform: scale(1.02);
}

/* Info block */
.boh-explore__experience-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Name — mirrors React: text-boh-primary font-bold text-label leading-tight */
.boh-explore__experience-name {
  margin: 0;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  line-height: 1.25;
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-primary);
}

/* Location — mirrors React: text-boh-muted/70 text-body mt-1 */
.boh-explore__experience-location {
  margin: 0.25rem 0 0 0;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-body);
  line-height: var(--boh-line-height-body);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
}

/* Price — mirrors React: text-boh-gold font-bold text-label mt-1 */
.boh-explore__experience-price {
  margin: 0.25rem 0 0 0;
  font-family: var(--boh-font-sans);
  font-size: var(--boh-font-size-label);
  line-height: var(--boh-line-height-label);
  font-weight: var(--boh-font-weight-700);
  color: var(--boh-color-gold);
}

/* Loading / empty message for the client-rendered experiences rail. */
.boh-explore__status {
  margin: 0;
  padding: 0.5rem 0;
  font-size: var(--boh-font-size-label);
  color: color-mix(in srgb, var(--boh-color-muted) 70%, transparent);
}

