/* ============================================
   FRAME — Sidebar Styles
   sidebar.css
   ============================================ */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sw);
  background: var(--sb-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 300;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) transparent;
  transition: var(--transition-theme);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }

/* ── Logo ── */
.sb-logo {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-wrap { display: block; width: 100%; }
.logo-wrap a { display: block; width: 100%; }
.logo-img { display: block; width: 100%; height: 54px; object-fit: contain; object-position: center; }
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-strong);
  line-height: 1;
}
.logo-sub {
  font-size: 0.5rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Search ── */
.sb-search {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
}
.sb-sbox {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.48rem 0.7rem;
  transition: border-color 0.2s;
  cursor: text;
}
.sb-sbox:focus-within { border-color: var(--gold-dim); }
.sb-sicon { color: var(--text-muted); flex-shrink: 0; }
.sb-sinput {
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.76rem;
  width: 100%;
}
.sb-sinput::placeholder { color: var(--text-muted); }

/* ── Nav ── */
.sb-nav { flex: 1; padding: 0.6rem 0; }

.sb-section-label {
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 1.2rem 0.35rem;
  margin-top: 0.2rem;
}

/* ── Accordion ── */
.acc { border-bottom: 1px solid transparent; }

.acc-btn {
  width: 100%;
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.52rem 1rem 0.52rem 0.7rem;
  background: none; border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted2);
  transition: all 0.2s;
}
.acc-btn:hover {
  color: var(--text);
  background: rgba(128,128,128,0.06);
}
.acc.open .acc-btn {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(200,169,110,0.06);
}

/* ── + toggle — now on the LEFT ── */
.acc-plus {
  width: 14px;
  flex-shrink: 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-muted);
  transition: all 0.25s;
  font-weight: 300;
  user-select: none;
}
.acc.open .acc-plus { transform: rotate(45deg); color: var(--gold); }

/* ── flag + name ── */
.acc-mid {
  flex: 1;
  min-width: 0;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; letter-spacing: 0.04em;
}
.acc-mid img { border-radius: 2px; flex-shrink: 0; }
.acc-mid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── model count — on the RIGHT ── */
.acc-count {
  flex-shrink: 0;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.acc.open .acc-count { color: var(--gold-dim); }

.acc-cities {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc.open .acc-cities { max-height: 280px; }

.acc-city {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.38rem 1rem 0.38rem 2.2rem;
  font-size: 0.71rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.15s;
}
.acc-city::before {
  content: '';
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.acc-city:hover {
  color: var(--text);
  background: rgba(128,128,128,0.06);
}
.acc-city:hover::before { background: var(--gold); }

.acc-city-count {
  margin-left: auto;
  font-size: 0.56rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .sidebar { display: none; }
}
