/* BWS 2.0 — Search Results Popout Map (left-side drawer)
 * Only ever plots businesses with real stored coordinates (bob_lat/bob_lng)
 * — online-only listings have no coordinates and are never shown here.
 * See js/search-map-drawer.js.
 */

.bws-map-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 940;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.bws-map-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bws-map-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: #150900;
  border-right: 1px solid rgba(200, 137, 42, .3);
  box-shadow: 12px 0 40px rgba(0, 0, 0, .5);
  z-index: 941;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s ease;
}
.bws-map-drawer.is-open {
  transform: translateX(0);
}

.bws-map-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(200, 137, 42, .2);
  font-family: 'Rajdhani', sans-serif;
}
.bws-map-drawer-title {
  color: #f0e8d8;
  font-weight: 700;
  font-size: 16px;
}
.bws-map-drawer-sub {
  color: rgba(240, 232, 216, .5);
  font-size: 12px;
  margin-top: 2px;
}
.bws-map-drawer-close {
  background: none;
  border: none;
  color: rgba(240, 232, 216, .6);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.bws-map-drawer-close:hover { color: #f0e8d8; }

.bws-map-drawer-map {
  flex: 0 0 45%;
  min-height: 220px;
  background: #0a0500;
}

.bws-map-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
}

.bws-map-drawer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.bws-map-drawer-item:hover,
.bws-map-drawer-item.is-active {
  background: rgba(200, 137, 42, .1);
  border-color: rgba(200, 137, 42, .3);
}
.bws-map-drawer-item-idx {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c8892a;
  color: #150900;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
}
.bws-map-drawer-item-body {
  flex: 1;
  min-width: 0;
  font-family: 'Rajdhani', sans-serif;
}
.bws-map-drawer-item-title {
  color: #f0e8d8;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bws-map-drawer-item-meta {
  color: rgba(240, 232, 216, .45);
  font-size: 11px;
}

.bws-map-drawer-empty {
  padding: 24px 18px;
  color: rgba(240, 232, 216, .5);
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  text-align: center;
}

.map-view-btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .bws-map-drawer { width: 100vw; }
}
