/* HTML sitemap page */

.rs-sitemap-hero {
  min-height: 280px;
}

.rs-sitemap-page {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 42%);
}

.rs-sitemap-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-bottom: 40px;
  padding: 24px 28px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.rs-sitemap-summary__stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.rs-sitemap-summary__number {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  color: #d42b2b;
}

.rs-sitemap-summary__label {
  font-size: 0.9rem;
  color: #6b7280;
}

.rs-sitemap-summary__text {
  flex: 1;
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.rs-sitemap-xml-link {
  color: #d42b2b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-sitemap-xml-link:hover {
  color: #b82323;
}

.rs-sitemap-card {
  height: 100%;
  padding: 24px;
  border: 1px solid #ececec;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rs-sitemap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.rs-sitemap-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f3f5;
}

.rs-sitemap-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 43, 43, 0.1);
  color: #d42b2b;
  font-size: 1.2rem;
}

.rs-sitemap-card__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1f2937;
}

.rs-sitemap-card__desc {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #6b7280;
}

.rs-sitemap-card__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 700;
}

.rs-sitemap-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
}

.rs-sitemap-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f9fb;
  color: #1f2937;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rs-sitemap-link span {
  line-height: 1.45;
}

.rs-sitemap-link i {
  flex-shrink: 0;
  color: #d42b2b;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rs-sitemap-link:hover {
  background: rgba(212, 43, 43, 0.08);
  color: #d42b2b;
}

.rs-sitemap-link:hover i {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 767px) {
  .rs-sitemap-page {
    padding: 40px 0 56px;
  }

  .rs-sitemap-summary {
    padding: 20px;
  }

  .rs-sitemap-card {
    padding: 20px;
  }
}
