.container-header {
  text-align: center;
  margin-bottom: 24px;
  background-image: url("./assets/images/locations.webp");
  background-size: contain;
  flex: 1;
  padding: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
}
.dark-mode .header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  text-align: center;
}
.header {
  padding: 20px 0;
  border-bottom: 1px solid black;
  text-align: center;
}
h1 {
  font-size: 2.5rem;
  margin: 8px 0;
  color: #111;
  text-align: center;
}
.dark-mode h1 {
  font-size: 2.5rem;
  margin: 8px 0;
  color: #fff;
  text-align: center;
}
.dark-mode h2 {
  font-size: 1.25rem;
  margin: 18px 0 8px;
  color: black;
}
h2 {
  font-size: 1.25rem;
  margin: 18px 0 8px;
  color: #111;
}
.dark-mode p.lead {
  color: var(--muted);
  margin: 0 0 14px;
  text-align: center;
}
p.lead {
  color: black;
  margin: 0 0 14px;
  text-align: center;
}
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.region {
  border: 1px solid black;
  padding: 14px;
  border-radius: 8px;
  background: #fafafa;
}
.dark-mode .region {
  border: 1px solid #f0f0f0;
  padding: 14px;
  border-radius: 8px;
  background: white;
}

.region p {
  padding: 14px;
  border-radius: 8px;
  color: black;
}
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.city-link {
  display: inline-block;
  padding: 6px 6px 10px 6px;
  border-radius: 60px;
  background: #a52c19;
  border: 1px solid #eee;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
}
.city-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--accent);
  color: #a52c19;
}
/* City page specific styles */
.city-header {
  text-align: center;
  margin-bottom: 18px;
}
.city-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.city-description {
  color: #111; /* ensure black description */
  max-width: 900px;
  margin: 0 auto 10px;
  line-height: 1.7;
  font-size: 1.05rem;
}
.city-description-more {
  color: #111;
  max-width: 900px;
  margin: 8px auto 0;
  line-height: 1.7;
  font-size: 1rem;
  opacity: 0.95;
}
.city-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 18px 0;
}
.btn {
  background: var(--accent, #a52c19);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(165, 44, 25, 0.12);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(165, 44, 25, 0.18);
}
.btn-outline {
  background: transparent;
  color: var(--accent, #a52c19);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid var(--accent, #a52c19);
  font-weight: 700;
}
.city-keywords {
  text-align: center;
  margin-top: 8px;
}
.keyword-list {
  color: #444;
  max-width: 900px;
  margin: 6px auto 0;
}

/* Dark mode tweaks */
.dark-mode .city-description,
.dark-mode .city-description-more {
  color: #e6e6e6;
}
.dark-mode .btn {
  box-shadow: none;
}
@media (max-width: 520px) {
  h1 {
    font-size: 1.5rem;
  }
  .wrap {
    padding: 16px;
  }
}

/* City listings slider styles (moved from inline in the HTML) */
.city-listings { margin: 20px 0; }
.listings-slider { position: relative; display: flex; align-items: center; gap: 8px; }
.listings-track { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 4px; }
.listings-track::-webkit-scrollbar { height: 8px; }
.listings-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 6px; }
.listing-card { min-width: 220px; max-width: 320px; background: #fff; border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; display: flex; flex-direction: column; }
.listing-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.listing-image-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f6f6f6; }
.listing-image-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-body { padding: 10px; flex: 1 1 auto; display: flex; flex-direction: column; }
.listing-title { font-size: 1rem; margin: 0 0 6px 0; }
.listing-meta { color: #666; font-size: 0.9rem; margin-bottom: 6px; }
.listing-price { color: #111; font-weight: 700; margin-top: auto; }
.listing-short { color: #444; font-size: 0.9rem; margin-top: 6px; }
.slider-nav { background: #fff; border: 1px solid #eee; border-radius: 6px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.listings-note { color: #666; font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 700px) {
  .listing-card { min-width: 80%; }
  .slider-nav { display: none; }
}
