/**
 * Horizontal scroll affordance (Residences pattern, reusable).
 * Pair with scroll-hint.js on any .gaia-hscroll / .j-table-wrap / .avail-wrap.
 */

.gaia-hscroll,
.j-table-wrap,
.avail-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.scroll-hint {
  display: none;
  font-size: 0.7rem;
  color: var(--text-light, #6b6560);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}

.top-scrollbar {
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  height: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.top-scrollbar-inner {
  height: 1px;
  min-width: 100%;
  background: var(--sand-dark, #e5dfd3);
}

.top-scrollbar::-webkit-scrollbar { height: 8px; }
.top-scrollbar::-webkit-scrollbar-track { background: var(--sand-dark, #e5dfd3); }
.top-scrollbar::-webkit-scrollbar-thumb { background: var(--gold, #C9A96E); border-radius: 4px; }

.scroll-gradient {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48px;
  background: linear-gradient(to left, var(--sand, #F5F0E8), transparent);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Dark sections (investment forest panels) */
.gaia-hscroll.is-dark .scroll-gradient,
.j-table-wrap.is-dark .scroll-gradient {
  background: linear-gradient(to left, var(--forest, #2C3B2D), transparent);
}
