/* —— Rankings index: city-wise section —— */
.rk-city-section {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

/* —— Shared city panel (index + city-wise pages) —— */
.cw-city-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.06);
}

.cw-city-panel__cta-row {
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #e2e8f0;
}

.cw-city-panel__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  background: linear-gradient(135deg, #002147 0%, #003d6b 100%);
  color: #fff !important;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 12px;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0, 33, 71, 0.2);
}

.cw-city-panel__cta:hover {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 33, 71, 0.28);
}

.cw-city-panel__cta .bi-geo-alt-fill {
  color: #d4af37;
  font-size: 1.15rem;
}

.cw-city-panel__cta-hint {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.cw-city-panel__active {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
}

.cw-city-panel__active .bi {
  color: #1e88e5;
  margin-right: 0.2rem;
}

.cw-city-panel__active strong {
  color: #002147;
}

.cw-city-panel__title {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.cw-city-panel__filter-wrap {
  position: relative;
  margin-bottom: 0.85rem;
  max-width: 320px;
}

.cw-city-panel__filter-wrap .bi-search {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.cw-city-panel__filter {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.9rem;
}

.cw-city-panel__filter:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.12);
}

/* Multi-column city list — main UX */
.cw-city-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.15rem 1.25rem;
  align-content: start;
}

.cw-city-columns.is-scroll {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 0.65rem 0.5rem 0.65rem 0.75rem;
  background: #fafbfc;
}

.cw-city-columns.is-scroll::-webkit-scrollbar {
  width: 6px;
}

.cw-city-columns.is-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.cw-city-link {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e88e5 !important;
  text-decoration: none !important;
  line-height: 1.35;
  transition: background 0.12s, color 0.12s;
}

.cw-city-link:hover {
  background: #eff6ff;
  color: #1565c0 !important;
}

.cw-city-link.is-active {
  background: #1e88e5;
  color: #fff !important;
  font-weight: 700;
}

.cw-city-panel__count {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .cw-city-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .cw-city-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem 0.75rem;
  }

  .cw-city-columns.is-scroll {
    max-height: 260px;
  }

  .cw-city-panel__filter-wrap {
    max-width: none;
  }

  .cw-city-panel__cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 399.98px) {
  .cw-city-columns {
    grid-template-columns: 1fr;
  }
}

/* City-wise page: compact city bar (not used on rankings index) */
.cw-city-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.cw-city-bar-label {
  font-weight: 800;
  color: #002d62;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cw-city-bar-current {
  font-weight: 800;
  color: #1e88e5;
  font-size: 0.95rem;
  margin-right: 0.35rem;
}

.cw-city-bar .cw-city-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid #1e88e5;
  background: rgba(30, 136, 229, 0.08);
  color: #1e88e5 !important;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
}

.cw-city-bar button.cw-city-chip {
  background: rgba(30, 136, 229, 0.08);
}

.cw-city-bar .cw-city-chip:hover,
.cw-city-bar .cw-city-chip.is-active {
  background: #1e88e5;
  color: #fff !important;
}

.cw-others-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  width: 100%;
}

.cw-others-wrap select {
  max-width: 280px;
  border-radius: 6px;
  border: 1px solid #cbd5e0;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}
