.region-layout {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

@media (min-width: 1200px) {
  .region-layout {
    max-width: 650px;
  }
}

@media (min-width: 992px) {
  .region-layout {
    position: relative;
    padding-left: 0;
    gap: 1.25rem;
  }
}

.region-tabs-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.region-tabs {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 992px) {
  .region-tabs-wrapper {
    width: 230px;
    position: absolute;
    left: calc(-230px - 1.25rem);
    top: 0;
    justify-content: flex-end;
  }

  .region-tabs {
    flex-direction: column;
    align-items: stretch;
    min-width: 230px;
  }
}

.region-panel-wrap {
  width: 100%;
  padding: 1rem;
}

@media (min-width: 768px) {
  .region-panel-wrap {
    padding: 0;
  }
}

@media (min-width: 1200px) {
  .region-panel-wrap {
    width: 650px;
  }
}

.region-panel-stack {
  width: 100%;
}

.region-panel {
  display: none;
}

.region-panel.active {
  display: block;
}

.region-tab {
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.region-tab.active {
  border-color: #0d6efd;
  color: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.region-tab--completed {
  background: #e8f5e9;
  border-color: #198754;
  color: #198754;
}

.region-tab--completed.active {
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}

.region-tab--in-progress {
  background: #fff8d8;
  border-color: #f7c948;
  color: #735400;
}

.region-tab--in-progress.active {
  box-shadow: 0 0 0 2px rgba(247, 201, 72, 0.35);
}

.region-tab--expired {
  background: #ffe0e0;
  border-color: #dc3545;
  color: #721c24;
}

.region-tab--expired.active {
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.region-tab__badge {
  font-weight: 600;
  font-size: 0.85rem;
}
