.xi0-city-section {
  background: linear-gradient(180deg, #f7faff 0%, #f2f7ff 100%);
  border: 1px solid #dce7f5;
  border-radius: 18px;
  box-sizing: border-box;
  margin: 48px auto 72px;
  max-width: 1120px;
  overflow: hidden;
  padding: 26px 22px 28px;
  width: min(1120px, calc(100vw - 40px));
}

.xi0-city-header {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  min-width: 0;
}

.xi0-city-heading {
  min-width: 0;
}

.xi0-city-title {
  color: #1a2f47;
  font-family: Poppins-Medium;
  font-size: 30px;
  line-height: 1.2;
  margin: 0;
}

.xi0-city-subtitle {
  color: #607792;
  font-size: 15px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.xi0-city-search {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d3deef;
  border-radius: 12px;
  display: flex;
  justify-self: end;
  max-width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.xi0-city-search-icon {
  fill: #7a8ea8;
  flex: 0 0 auto;
  height: 20px;
  margin-right: 8px;
  width: 20px;
}

.xi0-city-search input {
  background: transparent;
  border: 0;
  color: #1d324a;
  flex: 1 1 auto;
  font-size: 15px;
  line-height: 1.2;
  min-width: 0;
  outline: none;
}

.xi0-city-search input::placeholder {
  color: #7f95af;
  opacity: 1;
}

.xi0-city-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
  min-width: 0;
}

.xi0-city-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1eaf6;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(25, 45, 74, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 126px;
  padding: 18px 12px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.xi0-city-card:hover {
  border-color: #cedaeb;
  box-shadow: 0 14px 24px rgba(25, 45, 74, 0.1);
  transform: translateY(-2px);
}

.xi0-city-card-name {
  color: #1c3248;
  font-family: Poppins-Medium;
  font-size: 17px;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.xi0-city-card-ips {
  color: #5c7088;
  font-size: 14px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.xi0-city-empty {
  color: #5f7691;
  font-size: 16px;
  grid-column: 1 / -1;
  line-height: 1.4;
  padding: 8px 4px 2px;
  text-align: center;
}

.xi0-city-footer {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.xi0-city-load-more {
  background: #ffbd00;
  border: 1px solid #ffbd00;
  border-radius: 10px;
  color: #1f2c3d;
  cursor: pointer;
  font-family: Poppins-Medium;
  font-size: 15px;
  line-height: 44px;
  min-width: 184px;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(255, 189, 0, 0.24);
  transition: all 0.18s ease;
}

.xi0-city-load-more:hover {
  background: #fdb937;
  border-color: #fdb937;
  color: #1f2c3d;
}

.xi0-city-load-more[hidden] {
  display: none;
}

@media only screen and (max-width: 1200px) {
  .xi0-city-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 1024px) {
  .xi0-city-section {
    margin: 38px auto 56px;
    padding: 22px 16px 24px;
    width: min(1120px, calc(100vw - 24px));
  }

  .xi0-city-header {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .xi0-city-title {
    font-size: 25px;
  }

  .xi0-city-search {
    justify-self: stretch;
  }
}

@media only screen and (max-width: 920px) {
  .xi0-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 620px) {
  .xi0-city-grid {
    grid-template-columns: 1fr;
  }

  .xi0-city-card {
    min-height: 114px;
    padding: 14px 10px;
  }

  .xi0-city-card-name {
    font-size: 16px;
  }
}
