/* City landing pages for yarn-shops.com SEO */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf9f7;
  --bg-secondary: #f3f1ed;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555;
  --text-tertiary: #888;
  --accent: #c2185b;
  --accent-hover: #a01248;
  --accent-light: #fce4ec;
  --border: #e8e5e0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --star-color: #f59e0b;
  --max-width: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1e;
    --bg-secondary: #242428;
    --surface: #2a2a2e;
    --text: #e8e6e3;
    --text-secondary: #a8a8a8;
    --text-tertiary: #707070;
    --accent: #e91e63;
    --accent-hover: #f06292;
    --accent-light: #3a1a28;
    --border: #3a3a3e;
    --shadow: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 8px rgba(0,0,0,0.25);
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */

.city-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.city-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.nav-home {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.nav-home:hover { color: var(--accent-hover); }

.nav-sep { color: var(--text-tertiary); }

.nav-current { color: var(--text-secondary); }

/* ── Main ── */

.city-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 60px;
}

.city-main section {
  margin-top: 48px;
}

/* ── Hero ── */

.city-hero {
  text-align: center;
  padding-top: 48px;
  margin-top: 0 !important;
}

.city-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.stat { display: flex; align-items: center; gap: 4px; }
.stat-sep { color: var(--text-tertiary); }

.star { color: var(--star-color); font-size: 16px; }
.star.half { opacity: 0.5; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s;
}

.cta-btn:hover { background: var(--accent-hover); }

.cta-btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 10px 24px;
  font-size: 14px;
}

.cta-btn.secondary:hover {
  background: var(--accent-light);
}

/* ── About ── */

.city-about p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ── Shop list ── */

.city-shops h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.shop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.15s;
}

.shop-item:hover {
  box-shadow: var(--shadow-md);
}

.shop-rank {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.shop-info { flex: 1; min-width: 0; }

.shop-name {
  font-weight: 600;
  font-size: 15px;
  display: block;
}

.shop-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 14px;
}

.shop-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
  color: var(--text);
}

.shop-rating .star { font-size: 13px; }

.shop-reviews {
  color: var(--text-tertiary);
  font-size: 13px;
}

.shop-addr {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.more-shops {
  text-align: center;
  margin-top: 20px;
}

.more-shops a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.more-shops a:hover { text-decoration: underline; }

/* ── Features ── */

.city-features h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Yarn Crawl ── */

.city-crawl h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.city-crawl p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── Nearby / Country links ── */

.city-nearby h2, .city-country h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nearby-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.nearby-link:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.country-links {
  font-size: 14px;
  line-height: 2;
  color: var(--text-secondary);
}

.country-links a {
  color: var(--accent);
  text-decoration: none;
}

.country-links a:hover {
  text-decoration: underline;
}

/* ── Footer ── */

.city-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}

.city-footer a {
  color: var(--accent);
  text-decoration: none;
}

.city-footer a:hover { text-decoration: underline; }

.footer-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .city-main { padding: 0 16px 40px; }
  .city-main section { margin-top: 36px; }
  .city-hero { padding-top: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 4px; }
  .stat-sep { display: none; }
}
