/* City Selector page specific styles */

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Current Selection Card */
.current-selection-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(62, 84, 172, 0.3);
}

.current-city-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  font-size: 1.5rem;
}

.current-city-name {
  font-size: 1.3rem;
  font-weight: 600;
}

.ticket-count .badge {
  font-size: 0.9rem;
  padding: 8px 12px;
}

/* Cities Section */
.cities-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f8f9fa;
}

/* Cities Grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 2rem;
}

.city-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: inherit;
  text-decoration: none;
}

.city-card.popular {
  border-color: var(--primary);
  background: linear-gradient(135deg, #fff, #f8f9ff);
}

.city-card.popular::before {
  content: "🔥";
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.city-card.popular {
  position: relative;
}

.city-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-text);
}

.city-tickets {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.city-province {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 5px;
}

/* Alphabet Filter */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.alphabet-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark-text);
}

.alphabet-btn:hover,
.alphabet-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Cities List */
.cities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}

.city-list-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.city-list-item:hover {
  background: #f8f9fa;
  border-color: var(--primary);
  color: inherit;
  text-decoration: none;
}

.city-list-item .city-name {
  font-weight: 500;
  margin-bottom: 0;
}

.city-list-item .city-tickets {
  font-size: 0.8rem;
}

/* Sidebar Cards */
.stats-card,
.top-cities-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f8f9fa;
}

/* Stats List */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Top Cities List */
.top-cities-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-city-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8f9fa;
}

.top-city-item:last-child {
  border-bottom: none;
}

.city-rank {
  width: 30px;
  height: 30px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.city-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.city-info .city-name {
  font-weight: 500;
  margin-bottom: 2px;
}

.city-info .city-tickets {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Search Results */
.search-results {
  margin-top: 20px;
}

.no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .cities-list {
    grid-template-columns: 1fr;
  }

  .alphabet-filter {
    justify-content: center;
  }

  .alphabet-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .current-selection-card {
    padding: 15px;
  }

  .current-city-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .current-city-name {
    font-size: 1.1rem;
  }

  .cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .city-card {
    padding: 10px;
  }

  .city-name {
    font-size: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Hidden class */
.d-none {
  display: none !important;
}
