/* =========================
   RESET / BASE
========================= */
.boho-wrap {
  background: #b784b7;
  color: #fff;
  font-family: inherit;
}

/* =========================
   MAIN LAYOUT (Desktop)
   Map | Sidebar stacked left→right
   Topbar sits above sidebar column
========================= */
.boho-main {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "topbar  map"
    "sidebar map";
  gap: 0;
  height: 60vh;
}

.boho-topbar {
  grid-area: topbar;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(0,0,0,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.boho-search-wrap {
  position: relative;
  width: 100%;
}

#boho-search {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

#boho-search::placeholder {
  color: rgba(255,255,255,0.6);
}

#boho-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  color: #333;
  z-index: 999;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  max-height: 220px;
  overflow-y: auto;
}

.boho-search-item {
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.boho-search-item:hover {
  background: #f5f5f5;
}

#boho-near {
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#boho-near:hover {
  background: #fff;
  color: #b784b7;
}

.boho-sidebar {
  grid-area: sidebar;
  overflow-y: auto;
  background: rgba(0,0,0,0.1);
}

.boho-map {
  grid-area: map;
}

#boho-map {
  width: 100%;
  height: 100%;
}

/* =========================
   CARDS
========================= */
.boho-card {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.15s;
}

.boho-card:hover {
  background: rgba(255,255,255,0.1);
}

.boho-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.boho-shop {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.boho-shop:hover {
  background: #fff;
  color: #b784b7;
}

/* =========================
   MOBILE  (≤ 768px)
   Stack order: Map → Search → List
========================= */
@media (max-width: 768px) {

  .boho-main {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  /* 1 — Map on top */
  .boho-map {
    order: 1;
    height: 50vh;
    min-height: 280px;
  }

  /* 2 — Search bar next */
  .boho-topbar {
    order: 2;
    padding: 12px;
  }

  /* 3 — List at the bottom */
  .boho-sidebar {
    order: 3;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
  }

  #boho-map {
    height: 100%;
  }
}


/* =========================
   MAPBOX POPUP
========================= */
.mapboxgl-popup-content {
  color: #333;
  background: #fff;
  padding: 12px 28px 12px 14px; /* right padding makes room for the × button */
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.mapboxgl-popup-content strong {
  color: #111;
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}

/* Close button — reposition and darken */
.mapboxgl-popup-close-button {
  color: #666;
  font-size: 18px;
  top: 6px;
  right: 8px;
}

.mapboxgl-popup-close-button:hover {
  color: #111;
  background: none;
}

/* Tip (the little triangle) matches the white background */
.mapboxgl-popup-tip {
  border-top-color: #fff !important;
}

.mapboxgl-popup-close-button {
  color: #666;
  font-size: 14px;  /* was 18px */
  line-height: 1;
  top: 6px;
  right: 6px;
  padding: 2px 4px;
}

.mapboxgl-popup-close-button:hover {
  color: #111;
  background: none;
}

/* =========================
   CARD ACTIONS (Shop + Directions)
========================= */
.boho-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.boho-directions {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.boho-directions:hover {
  background: #fff;
  color: #b784b7;
}
