/* ═══ COMPATIBILITY: alias --border-color → --border for use in Nisha Interiors design system ═══ */
:root {
  --border-color: rgba(232, 213, 163, 0.12); /* matches --border in main design system */
}

/* ═══ NISHA INTERIORS - BEFORE & AFTER SLIDER STYLES ═══ */
.ba-section {
  padding: 100px 5vw;
  background: var(--black);
  position: relative;
  z-index: 10;
}

.ba-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ba-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  user-select: none;
  touch-action: pan-y;
}

.ba-img-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-img-before-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid var(--champagne);
}

.ba-img-before {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 44px;
  margin-left: -22px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}

.ba-handle-line {
  width: 2px;
  height: 100%;
  background: var(--champagne);
  box-shadow: 0 0 10px rgba(232, 213, 163, 0.5);
}

.ba-handle-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--champagne);
  color: var(--champagne);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: transform 0.2s;
}

.ba-handle:hover .ba-handle-btn {
  transform: scale(1.1);
  background: var(--wine);
}

.ba-badge {
  position: absolute;
  bottom: 24px;
  padding: 8px 16px;
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne);
  z-index: 5;
  border-radius: 2px;
}

.ba-badge-before {
  left: 24px;
}

.ba-badge-after {
  right: 24px;
}


@media (max-width: 480px) {
  .ba-section { padding: 64px 5vw; }
  .ba-badge { bottom: 10px; padding: 5px 9px; font-size: .55rem; letter-spacing: .08em; }
  .ba-badge-before { left: 10px; } .ba-badge-after { right: 10px; }
}
