.section-courses-page {
  padding-block: 30px;
  position: relative;
}

/* ==========================================================================
   City tabs
   ========================================================================== */
.city-tabs__content {
  position: relative;
  z-index: 10;
}

.city-tabs__nav {
  display: flex;
  width: 100%;
  gap: 0;
  margin: 0 auto 1.5rem;
  padding: 0.3rem;
  background-color: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 0.8rem;
}

@media (min-width: 640px) {
  .city-tabs__nav {
    width: fit-content;
    gap: 0.25rem;
  }
}

.city-tabs__tab {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: none;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

@media (min-width: 640px) {
  .city-tabs__tab {
    flex: none;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

.city-tabs__tab:hover {
  color: #111827;
}

.city-tabs__tab.is-active {
  background-color: var(--color-primary);
  color: #fff;
}

.city-tabs__tab span {
  white-space: nowrap;
}

.city-tabs__panel[hidden] {
  display: none;
}

.city-tabs__panel .empty-state[hidden],
.city-tabs__panel .courses-list[hidden],
.city-tabs__panel .categories-grid[hidden] {
  display: none;
}

/* ==========================================================================
   City page — courses list (connected rows, not separate cards)
   ========================================================================== */
.city-tabs__panel .courses-list {
  gap: 0;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

.city-tabs__panel .courses-list>li:not([hidden]):has(~ li:not([hidden])) {
  border-bottom: 1px solid #e5e5e5;
}

.city-tabs__panel .course-item {
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

.city-tabs__panel .course-item:hover {
  background-color: #f9fafb;
}

@media (min-width: 640px) {
  .city-tabs__panel .courses-list {
    border-radius: 1rem;
  }
}