/* ── Map section layout ────────────────────────────────────── */
/* .map-wrap becomes a flex row: sidebar left, map right */
.map-wrap {
  display: flex;
  align-items: stretch;
  height: 520px;          /* adjust to match your existing map height */
  border-radius: 4px;
  overflow: hidden;
}

/* The map panel fills remaining space and is position:relative
   so the overlay buttons (.map-locate-btn) sit inside it */
.map-panel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.map-panel #map {
  width: 100%;
  height: 100%;
}

/* ── Sidebar ───────────────────────────────────────────────── */
#taj-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--surface, #111);
  border-right: 1px solid var(--border, rgba(255,255,255,0.08));
  font-family: var(--font-mono, monospace);
}

.taj-sidebar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.taj-sidebar__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg, #e8e8e8);
}

.taj-sidebar__count {
  font-size: 0.65rem;
  color: var(--muted, #666);
  letter-spacing: 0.05em;
}

.taj-sidebar__search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
}

.taj-sidebar__search input {
  width: 100%;
  background: var(--input-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 2px;
  padding: 6px 10px;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  color: var(--fg, #e8e8e8);
  outline: none;
  box-sizing: border-box;
}

.taj-sidebar__search input::placeholder {
  color: var(--muted, #555);
}

.taj-sidebar__search input:focus {
  border-color: var(--accent, #f3c511);
}

.taj-sidebar__list {
  flex: 1 1 auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border, rgba(255,255,255,0.1)) transparent;
}

.taj-sidebar__empty {
  padding: 20px 16px;
  font-size: 0.68rem;
  color: var(--muted, #555);
  text-align: center;
}

/* ── Office card ───────────────────────────────────────────── */
.taj-card {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  cursor: pointer;
  transition: background 0.15s;
}

.taj-card:hover {
  background: rgba(255,255,255,0.04);
}

.taj-card--active {
  background: rgba(243, 197, 17, 0.07);
  border-left: 2px solid var(--accent, #f3c511);
}

.taj-card__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.taj-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, #f3c511);
  flex-shrink: 0;
}

.taj-card__name {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--fg, #e8e8e8);
  letter-spacing: 0.02em;
  line-height: 1.3;
  flex: 1;
}

.taj-card__dist {
  font-size: 0.6rem;
  background: rgba(243,197,17,0.15);
  color: var(--accent, #f3c511);
  padding: 1px 6px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.taj-card__addr {
  font-size: 0.63rem;
  color: var(--muted, #888);
  margin-bottom: 2px;
  padding-left: 14px;
}

.taj-card__phone {
  font-size: 0.6rem;
  color: var(--muted, #666);
  padding-left: 14px;
  margin-bottom: 6px;
}

.taj-card__directions {
  display: inline-block;
  margin-left: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #f3c511);
  text-decoration: none;
}

.taj-card__directions:hover {
  text-decoration: underline;
}

/* ── Responsive: collapse sidebar on small screens ─────────── */
@media (max-width: 680px) {
  .map-wrap {
    flex-direction: column;
    height: auto;
  }

  #taj-sidebar {
    width: 100%;
    max-height: 220px;
    border-right: none;
    border-bottom: 1px solid var(--border, rgba(255,255,255,0.08));
  }

  .map-panel {
    height: 360px;
  }
}

@media (max-width: 900px) {
  .map-wrap { height: 420px; }
}
@media (max-width: 480px) {
  .map-wrap { height: 320px; }
}
