/* ===============================
   Neighborhood Manager - Frontend
   =============================== */

/* --- Layout --- */
.neighborhood-page__map-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.neighborhood-page__map-container,
.neighborhood-page__map-iframe,
#nbm-map {
  width: 100%;
  position: relative;
}
.neighborhood-page__map-iframe{
  height: 100%!important;
}

/* --- Map Overlay (top-left card) --- */
.nbm-map-overlay {
  position: absolute;
  top: 55px;
  left: 12px;
  z-index: 2;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  max-width: min(360px, 90%);
}
.nbm-overlay-title {
  font-weight: 700;
  margin-bottom: 4px;
}
.nbm-overlay-address {
  font-size: 13px;
  color: #444;
}
.nbm-overlay-directions {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  color: #0073aa;
  text-decoration: none;
}
.nbm-overlay-directions:hover { text-decoration: underline; }

/* --- Sidebar Quick Search --- */
.neighborhood-page__quick-search {
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 16px;
  border-radius: 8px;
}

.neighborhood-page__quick-search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.neighborhood-page__quick-search-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.neighborhood-page__quick-search-description {
  color: #666;
  font-size: 14px;
  margin: 0 0 10px 0;
}

/* --- Category Buttons --- */
.neighborhood-page__category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.neighborhood-page__category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.neighborhood-page__category-item:hover {
  background: #f7f7f7;
}

.neighborhood-page__category-item.active {
  border-color: #333;
  background: #f0f0f0;
}

.nbm-cat-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: inline-block;
}

.nbm-cat-arrow {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  object-fit: contain;
}

/* --- Info Window Styles --- */
.neighborInfoWindow {
  display: flex;
  gap: 10px;
  max-width: 320px;
  align-items: flex-start;
}

.neighborInfoWindow .nbm-thumb img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.neighborInfoWindow .nbm-iw-meta {
  flex: 1;
  line-height: 1.3;
  font-size: 13px;
}

.neighborInfoWindow a {
  color: #0073aa;
  text-decoration: none;
}

.neighborInfoWindow a:hover {
  text-decoration: underline;
}

.nbm-rating {
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .neighborhood-page__map-grid {
    grid-template-columns: 1fr;
  }
  .neighborhood-page__quick-search {
    margin-top: 16px;
  }
  .nbm-map-overlay {
    max-width: calc(100% - 24px);
  }
}


/* Sidebar button layout: icon+label on left, arrow on right */
.neighborhood-page__category-item {
  display: flex;
  align-items: center;
  justify-content: space-between; /* left group vs right arrow */
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.nbm-cat-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;       /* icon and text spacing */
}
.nbm-cat-arrow { width: 14px; height: 14px; opacity: .6; object-fit: contain; }
