.district-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  box-sizing: border-box;
}

.district-detail-page .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 24px;
}

/* Stats Counter Grid */
.district-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Elite Stat Card Highlights */
.stat-card-elite {
  border-color: #2563eb;
  background: #eff6ff;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #c8102e;
}

.stat-card-elite .stat-number {
  color: #2563eb;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sections */
.section-wrapper {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.4rem;
  color: #c8102e;
  padding-bottom: 8px;
  border-bottom: 2px solid #c8102e;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Taluks Grid */
.tasmac-taluk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.taluk-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  min-height: 80px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.taluk-card:hover {
  border-color: #c8102e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.15);
  text-decoration: none;
}

.taluk-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: #1f2937;
}

.taluk-card:hover .taluk-name {
  color: #c8102e;
}

.shop-badge {
  align-self: flex-start;
  background-color: #fdf2f4;
  color: #c8102e;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  margin-top: 10px;
}

/* District Shops Grid */
.district-shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.shop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Elite Shop Card Accent (#2563eb) */
.shop-card.is-elite-card {
  border: 1.5px solid #2563eb;
  background-color: #fafcff;
}

.shop-card.is-elite-card:hover {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.shop-number {
  font-weight: 700;
  font-size: 1.1rem;
  color: #1f2937;
}

/* Elite Badge (#2563eb) */
.elite-tag {
  background-color: #eff6ff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.shop-card-body {
  margin-bottom: 14px;
}

.shop-taluk {
  display: block;
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 4px;
}

.shop-address {
  font-size: 0.9rem;
  color: #374151;
  margin: 0;
  line-height: 1.4;
}

.shop-card-footer {
  margin-top: auto;
}

/* Standard Button */
.view-stocks-btn {
  display: block;
  text-align: center;
  background-color: #c8102e;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.view-stocks-btn:hover {
  background-color: #a00c24;
  color: #ffffff;
  text-decoration: none;
}

/* Elite Button (#2563eb) */
.view-stocks-btn-elite {
  background-color: #2563eb;
}

.view-stocks-btn-elite:hover {
  background-color: #1d4ed8;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Pagination
   --------------------------------------------------------- */

.tasmac-shops-pagination {
  margin-top: 35px;
  text-align: center;
}

.tasmac-shops-pagination .pager {
  margin: 0;
}

.tasmac-shops-pagination .pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tasmac-shops-pagination .pager__item {
  margin: 0;
  padding: 0;
}

.tasmac-shops-pagination .pager__item a,
.tasmac-shops-pagination .pager__item.is-active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  color: #333;
  background: #fff;
  font-size: 14px;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tasmac-shops-pagination .pager__item a:hover {
  border-color: #c8102e;
  background: #c8102e;
  color: #fff;
}

.tasmac-shops-pagination .pager__item.is-active {
  border-color: #c8102e;
  background: #c8102e;
  color: #fff;
  font-weight: 600;
}

/* Breadcrumbs */
.taluk-breadcrumb {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}

.taluk-breadcrumb a {
  color: #c8102e;
  text-decoration: none;
}

.taluk-breadcrumb a:hover {
  text-decoration: underline;
}

.taluk-breadcrumb span {
  color: #1f2937;
  font-weight: 600;
}