/* Sitemap Layout */
.sitemap-page {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  background-color: #f5f5f5;
  width: 100vw;
  display: block;
  text-align: center;
}

.sitemap-wrapper {
  display: inline-block;
  width: 90vw;
  max-width: 1400px;
  margin: 0 auto;
  text-align: left;
}

.sitemap-content {
  width: 100%;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  margin: 0 auto;
}

/* Typography */
.sitemap-page h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

/* Links Layout */
.site-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Car Categories */
.cars-section {
  margin-bottom: 40px;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.make-column {
  display: flex;
  flex-direction: column;
}

.make-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid #e74c3c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.make-title:hover {
  color: #e74c3c;
}

.models-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.model-item {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 2px 0;
  transition: color 0.2s ease;
}

.model-item:hover {
  color: #e74c3c;
}

.announcement-count {
  color: #666;
  font-size: 14px;
  margin-left: 5px;
}

/* Individual Announcements */
.announcements-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 15px;
  margin-top: 4px;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 1px solid #ddd;
}

.announcement-item {
  text-decoration: none;
  color: #666;
  font-size: 12px;
  padding: 1px 0;
  transition: color 0.2s ease;
  font-style: italic;
}

.announcement-item:hover {
  color: #e74c3c;
}

/* CMS Pages */
.other-pages-section {
  margin-top: 40px;
  border-top: 2px solid #e74c3c;
  padding-top: 20px;
}

.other-pages-title {
  font-size: 20px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
}

.other-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.other-page-item {
  text-decoration: none;
  color: #333;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.other-page-item:hover {
  color: #e74c3c;
}

/* Utility Classes */
.no-links {
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
  padding: 40px;
}

.back-link {
  text-align: center;
  margin-top: 30px;
}

.back-link a {
  color: #e74c3c;
  text-decoration: none;
  font-weight: bold;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Footer Overrides */
.sitemap-page footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.sitemap-page .footer-main-section {
  width: 100vw;
  margin: 0;
  padding: 24px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Global Overrides */
.sitemap-page main {
  width: 100%;
  max-width: none;
}

.sitemap-page * {
  box-sizing: border-box;
}

/* Override any global styles */
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

main {
  width: 100%;
  max-width: none;
}
