/* ====================================
   VIEW TOGGLE - MOBILE FIRST
   ==================================== */

:root {
  --color-gray-50: #f2f1f1;
  --color-gray-900: #261313;
}

/* --- WRAPPER --- */
.view-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 0;
}

/* --- MAIN TOGGLE CONTAINER --- */
.view-toggle {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-gray-900);
  border-radius: 9999px;
  width: 18rem; /* 288px - mobile */
  height: 3rem; /* 48px */
  padding: 0.25rem;
  border: 1px solid var(--color-gray-900);
}

/* --- SLIDING WHITE BACKGROUND --- */
.view-toggle__slider {
  position: absolute;
  top: 0.25rem;
  height: 2.5rem; /* 40px */
  border-radius: 9999px;
  background: var(--color-gray-50);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  /* Width and position set by JS */
}

/* --- BUTTONS CONTAINER --- */
.view-toggle__buttons {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0.5rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 500;
  z-index: 10;
}

/* --- INDIVIDUAL BUTTON --- */
.view-toggle__button {
  width: 100%;
  text-align: center;
  color: var(--color-gray-50);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.view-toggle__button:hover {
  color: var(--color-gray-50);
}

/* Active button (black text) */
.view-toggle__button.active {
  color: var(--color-gray-900);
  cursor: default;
}

.view-toggle__button:focus {
  outline: none;
}

.view-toggle__button:focus-visible {
  outline: 2px solid var(--color-gray-50);
  outline-offset: 2px;
}

/* --- VIEW CONTENT CONTAINERS --- */
.view-content {
  width: 100%;
}

.view-content[style*="display: none"] {
  display: none !important;
}

/* ====================================
   TABLET: 768px+
   ==================================== */
@media (min-width: 768px) {
  .view-toggle {
    width: 24rem; /* 384px - tablet/desktop */
  }
}

/* ====================================
   DESKTOP: 992px+
   ==================================== */
@media (min-width: 992px) {
  /* Add desktop-specific styles if needed */
}

/* ====================================
   LARGE DESKTOP: 1200px+
   ==================================== */
@media (min-width: 1200px) {
  /* Add large desktop styles if needed */
}
