/* District-Wise News */
.ers-dwn-anchor:empty {
  display: none;
}

.ers-dwn {
  margin: 24px 0;
  padding: 0 0 8px;
  overflow-x: hidden;
}

.ers-dwn-head {
  margin-bottom: 10px;
}

.ers-dwn-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #b91c1c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ers-dwn-title-ico {
  font-size: 0.75rem;
  color: #b91c1c;
}

.ers-dwn-subtitle {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.ers-dwn-tabs-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.ers-dwn-tabs-wrap::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}

.ers-dwn-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  background: var(--ers-dwn-tab-bg, #1e3a5f);
  min-width: max-content;
  width: 100%;
}

.ers-dwn-tab {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  font-family: inherit;
  transition: background 0.15s ease;
}

.ers-dwn-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ers-dwn-tab.is-active {
  background: var(--ers-dwn-tab-active, #e11d48);
  color: #fff;
}

.ers-dwn-body {
  display: grid;
  grid-template-columns: minmax(160px, var(--ers-dwn-map-w, 220px)) 1fr;
  gap: 16px 20px;
  align-items: start;
  padding: 16px 12px 14px;
  border: 1px solid #e5e7eb;
  border-top: none;
  background: #fff;
}

.ers-dwn-map-col {
  width: 100%;
  text-align: center;
}

.ers-dwn-indicator {
  text-align: center;
  line-height: 1.15;
}

.ers-dwn-indicator--mobile {
  display: none;
  margin: 0 0 8px;
}

.ers-dwn-indicator--desk {
  display: block;
  margin: 8px 0 0;
}

.ers-dwn-arrow {
  display: block;
  color: var(--ers-dwn-sel, #e11d48);
  font-size: 0.85rem;
  line-height: 1;
  margin-bottom: 2px;
}

.ers-dwn-indicator-name {
  display: block;
  color: var(--ers-dwn-sel, #e11d48);
  font-size: 1rem;
  font-weight: 700;
}

.ers-dwn-map {
  width: 100%;
  max-width: var(--ers-dwn-map-w, 220px);
  margin: 0 auto;
}

.ers-dwn-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--ers-dwn-map-h, 320px);
}

.ers-dwn-district {
  cursor: pointer;
  stroke: var(--ers-dwn-border, #334155);
  stroke-width: 1;
  filter: grayscale(1);
  opacity: 0.9;
  transition: filter 0.15s ease, opacity 0.15s ease, fill 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.ers-dwn-district:hover {
  opacity: 1;
  filter: grayscale(0.35);
}

.ers-dwn-district.is-selected {
  fill: var(--ers-dwn-sel, #e11d48) !important;
  filter: none;
  opacity: 1;
  stroke: #9f1239;
  stroke-width: 1.6;
}

.ers-dwn-label {
  pointer-events: none;
  user-select: none;
  font-size: 8px;
  font-weight: 600;
  fill: #111;
}

.ers-dwn-news-col {
  min-width: 0;
  position: relative;
}

.ers-dwn-news-col.is-fetching .ers-dwn-news {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.ers-dwn-status {
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Featured + rest: avoid large empty right/bottom space */
.ers-dwn-news {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ers-dwn-featured {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 12px 16px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.ers-dwn-featured-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3f4f6;
  border-radius: 2px;
}

.ers-dwn-featured-body {
  min-width: 0;
}

.ers-dwn-featured-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.ers-dwn-featured-title a {
  color: inherit;
  text-decoration: none;
}

.ers-dwn-featured-title a:hover {
  color: #b91c1c;
}

.ers-dwn-featured-excerpt {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ers-dwn-meta {
  font-size: 0.78rem;
  color: #6b7280;
}

.ers-dwn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.ers-dwn-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  align-items: start;
}

.ers-dwn-card-img {
  width: 88px;
  height: 64px;
  object-fit: cover;
  background: #f3f4f6;
  border-radius: 2px;
  display: block;
}

.ers-dwn-card-title {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.ers-dwn-card-title a {
  color: inherit;
  text-decoration: none;
}

.ers-dwn-card-title a:hover {
  color: #b91c1c;
}

.ers-dwn-empty {
  padding: 24px 12px;
  text-align: center;
  color: #6b7280;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .ers-dwn-body {
    grid-template-columns: 170px 1fr;
  }

  .ers-dwn-featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ers-dwn-body {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .ers-dwn-indicator--mobile {
    display: block;
  }

  .ers-dwn-indicator--desk {
    display: none;
  }

  .ers-dwn-indicator--mobile .ers-dwn-arrow {
    transform: none;
  }

  .ers-dwn-map {
    max-width: 280px;
  }

  .ers-dwn-grid {
    grid-template-columns: 1fr;
  }

  .ers-dwn-tab {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .ers-dwn-featured-title {
    font-size: 1.05rem;
  }

  .ers-dwn-featured {
    grid-template-columns: 1fr;
  }

  .ers-dwn-info {
    display: none !important;
  }
}


/* District information panel (below map) */
.ers-dwn-info {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #374151;
  text-align: left;
}

.ers-dwn-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}

.ers-dwn-info-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ers-dwn-info-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: none;
  letter-spacing: 0;
}

.ers-dwn-info-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: #111827;
  word-break: break-word;
}

.ers-dwn-info-tourist {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Secondary article under featured description */
.ers-dwn-secondary {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px 10px;
  align-items: start;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
}

.ers-dwn-secondary-img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 2px;
  background: #f3f4f6;
  display: block;
}

.ers-dwn-secondary-title {
  margin: 0 0 3px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.ers-dwn-secondary-title a {
  color: inherit;
  text-decoration: none;
}

.ers-dwn-secondary-title a:hover {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .ers-dwn-secondary {
    grid-template-columns: 64px 1fr;
  }
}

@media (max-width: 640px) {
  .ers-dwn-secondary {
    grid-template-columns: 72px 1fr;
  }

  .ers-dwn-featured-body {
    display: flex;
    flex-direction: column;
  }
}
