:root {
  --bg: #faf7f2;
  --bg-soft: #f3eee5;
  --bg-muted: #ebe4d7;
  --border: #e2d9c9;
  --border-light: #ece5d8;
  --text: #17130d;
  --text-secondary: #57503f;
  --text-muted: #948a76;
  --accent: #d9482a;
  --accent-soft: #bd3a1f;
  --accent-tint: #fbe9e1;
  --ink: #17130d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(60,40,20,0.04);
  --shadow-md: 0 6px 22px rgba(60,40,20,0.06);
  --shadow-lg: 0 18px 50px rgba(60,40,20,0.10);
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--text); color: var(--bg);
  padding: 0.6rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }
html { scroll-behavior: smooth; }
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;
}
h1, h2, h3 { font-family: 'Fraunces', 'Playfair Display', serif; font-weight: 500; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 1rem; font-weight: 500; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin-bottom: 1.25rem; }
h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
}
.top.scrolled { border-bottom-color: var(--border-light); }
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.brand {
  font-family: 'Fraunces', 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 500;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent); font-weight: 500; }
.top nav { display: flex; gap: 2rem; }
.top nav a {
  color: var(--text-secondary); font-size: 0.88rem;
  font-weight: 400;
  position: relative;
  transition: color var(--t);
}
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.top nav a:hover::after { transform: scaleX(1); }

.hero {
  padding: 7rem 0 5rem;
  text-align: center;
}
.hero h1 { animation: fadeUp 0.6s ease; }
.lead {
  font-size: 1.125rem;
  max-width: 580px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  animation: fadeUp 0.7s ease;
}
.lead strong { font-weight: 500; color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.search-box {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  animation: fadeUp 0.8s ease;
}
#q {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  padding: 1rem 1.4rem;
  padding-right: 5.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
}
#q::placeholder { color: var(--text-muted); }
#q:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(15,15,15,0.06); }
.count {
  position: absolute; right: 1.2rem; top: 50%;
  transform: translateY(-50%);
  font-size: 0.78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}
.filters select, .filters button {
  font: inherit; font-size: 0.88rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: all var(--t);
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 4l3 3 3-3' stroke='%239a968e' fill='none' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.filters button { padding-right: 1rem; background-image: none; }
.filters select:hover, .filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters select:focus, .filters button:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

.mapa-section {
  margin: 1rem 0 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
#map { height: 480px; width: 100%; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 0 0 4rem;
}
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--t), transform var(--t), background var(--t);
  display: flex; flex-direction: column; gap: 0.3rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: '→';
  position: absolute;
  right: 1.5rem; top: 1.5rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: all var(--t);
}
.card:hover {
  border-color: var(--accent);
  background: var(--bg);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.card:hover::after { opacity: 1; transform: translateX(0); }
.card h3 { margin: 0 2rem 0 0; font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; letter-spacing: -0.005em; }
.card .meta { font-size: 0.85rem; color: var(--text-muted); }
.card .tag {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.22rem 0.65rem;
  background: var(--accent-tint);
  border-radius: 999px;
  color: var(--accent-soft);
  margin-top: 0.6rem;
  align-self: flex-start;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.stats { margin: 5rem 0 3rem; padding-top: 3rem; border-top: 1px solid var(--border-light); }
.stats p { max-width: 640px; margin-bottom: 1.5rem; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
}
.stat {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t);
  display: flex; flex-direction: column; gap: 0.15rem;
}
.stat:hover { border-color: var(--accent); background: var(--accent-tint); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat .n { font-size: 1.9rem; font-weight: 600; font-family: 'Fraunces', 'Playfair Display', serif; letter-spacing: -0.02em; line-height: 1; color: var(--accent); }
.stat .l { font-size: 0.82rem; color: var(--text-secondary); }

.share-block {
  margin: 4rem 0;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.share-block h2 { font-size: 1.15rem; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.share-block p { max-width: 600px; font-size: 0.9rem; margin-bottom: 1.25rem; }
.share-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.sh-btn {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  box-sizing: border-box;
  overflow: hidden;
  display: inline-flex;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  padding: 0;
}
.sh-btn > svg { width: 18px !important; height: 18px !important; max-width: 18px; max-height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s ease; display: block; }
.sh-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); text-decoration: none; transform: translateY(-1px); }
.sh-btn:hover svg { transform: scale(1.1); }
.sh-btn::before {
  content: attr(data-label);
  position: absolute;
  bottom: -26px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sh-btn:hover::before { opacity: 1; }
/* Mostra el tooltip del botó de copiar quan està en estat "copiat" */
.sh-copy.copied::before { opacity: 1; color: var(--text); font-weight: 500; }
.sh-copy.copied { background: var(--text); color: var(--bg); border-color: var(--text); }

.sobre { margin: 3rem 0 5rem; padding-top: 2rem; border-top: 1px solid var(--border-light); }
.sobre p { max-width: 700px; }

.faq { margin: 5rem 0 3rem; padding-top: 3rem; border-top: 1px solid var(--border-light); }
.faq details {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
  transition: all var(--t);
}
.faq details:last-of-type { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.15rem 0;
  transition: color var(--t);
}
.faq summary:hover { color: var(--accent-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--t);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details[open] summary { color: var(--text); font-weight: 500; }
.faq details p { max-width: 680px; margin-top: 0.8rem; margin-bottom: 0.3rem; color: var(--text-secondary); }

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-light);
  padding: 3rem 0 2.5rem;
  background: var(--bg-soft);
}
footer p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }
footer .credits { color: var(--text-secondary); margin-bottom: 0.4rem; line-height: 1.8; }
footer .credits a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color var(--t); }
footer .credits a:hover { border-color: var(--text); }
footer .disclaimer { font-size: 0.78rem; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs {
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 0;
  font-size: 0.88rem;
}
.breadcrumbs .wrap { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.breadcrumbs span[aria-hidden] { color: var(--text-muted); }

/* Detail page */
.detail { padding-top: 2rem; padding-bottom: 4rem; }
.detail h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.35rem; }
.detail-meta { color: var(--text-muted); margin-bottom: 2rem; font-size: 1rem; }
.map-single {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.info-grid { margin-bottom: 2rem; }
.info-grid dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border-top: 1px solid var(--border-light);
}
.info-grid dt, .info-grid dd {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}
.info-grid dt { color: var(--text-muted); font-weight: 400; }
.info-grid dd { color: var(--text); }
.info-grid dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.actions-bar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 3rem; }
.btn {
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color var(--t), background var(--t);
  color: var(--text);
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.sobre-centre { max-width: 720px; }
.sobre-centre h2 { font-size: 1.3rem; }

@media (max-width: 640px) {
  .info-grid dl { grid-template-columns: 1fr; }
  .info-grid dt { padding-bottom: 0.25rem; border-bottom: 0; }
  .info-grid dd { padding-top: 0; }
}

.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-inner {
  background: var(--bg);
  border-radius: var(--radius);
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow: auto;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: transparent; border: 0;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  color: var(--text-muted);
}
.modal-close:hover { color: var(--text); }
.modal h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.modal .row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.92rem; }
.modal .row:last-of-type { border-bottom: 0; }
.modal .row .k { color: var(--text-muted); }
.modal .row .v { color: var(--text); text-align: right; }
.modal .actions { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.modal .actions a {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: border-color var(--t);
}
.modal .actions a:hover { border-color: var(--text); text-decoration: none; }
.modal .actions a.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ============================================================
   NEARBY CENTRES (detail page internal linking)
   ============================================================ */
.nearby {
  margin: 3rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-light);
}
.nearby h2 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.nearby p { max-width: 620px; margin-bottom: 1.25rem; font-size: 0.93rem; }
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
}
.nearby-card {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--t), transform var(--t), background var(--t);
  position: relative;
}
.nearby-card:hover {
  border-color: var(--text);
  background: var(--bg-soft);
  transform: translateY(-2px);
  text-decoration: none;
}
.nearby-card .nearby-dist {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  background: var(--bg-muted);
  color: var(--text-secondary);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.5rem;
}
.nearby-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  letter-spacing: -0.005em;
}
.nearby-card .nearby-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   SKELETON LOADING + SCROLL REVEALS
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-muted) 0%, var(--border-light) 50%, var(--bg-muted) 100%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
  color: transparent;
}
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Counter animation */
.counter { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .skeleton { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — Tablet (≤1024px) + Mòbil (≤640px) + XS (≤400px)
   ============================================================ */

/* Burger button (ocult a desktop, visible només a mòbil — regla !important per evitar cache/overrides) */
.burger {
  display: none !important;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--text);
}
.burger:hover { border-color: var(--text); }
.burger svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="false"] .burger-close { display: none; }

/* ---------- TABLET (≤ 1024px) ---------- */
@media (max-width: 1024px) {
  .wrap { padding: 0 1.25rem; }
  .hero { padding: 5rem 0 3.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #map { height: 420px; }
  .top nav { gap: 1.4rem; }
}

/* ---------- MÒBIL (≤ 640px) ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 1rem; }

  /* Header: burger + dropdown nav */
  .top .wrap { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .brand { font-size: 1.15rem; }
  .burger { display: inline-flex !important; }
  .top nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem 1rem;
    display: none;
  }
  .top nav.open { display: flex; }
  .top nav a {
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
  }
  .top nav a:last-child { border-bottom: 0; }
  .top nav a::after { display: none; }

  /* Hero */
  .hero { padding: 2.5rem 0 2rem; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .lead { font-size: 1rem; margin-bottom: 2rem; padding: 0 0.25rem; }
  #q { padding: 0.85rem 1.15rem; padding-right: 5rem; font-size: 16px; /* evita zoom iOS */ }
  .count { font-size: 0.72rem; right: 1rem; }

  /* Filters: stacked, full-width-ish */
  .filters {
    margin: 2rem 0 1.25rem;
    padding-top: 1.5rem;
    gap: 0.5rem;
  }
  .filters select { flex: 1 1 45%; min-width: 0; font-size: 0.9rem; }
  .filters button { flex: 1 1 100%; padding: 0.7rem 1rem; }

  /* Map */
  #map { height: 320px; }
  .mapa-section { margin: 0.5rem 0 2rem; }

  /* Grid: 1 column */
  .grid { grid-template-columns: 1fr; gap: 0.6rem; margin-bottom: 3rem; }
  .card { padding: 1.15rem 1.25rem; }
  .card::after { right: 1.15rem; top: 1.15rem; }
  .card h3 { font-size: 0.98rem; }
  .card .meta { font-size: 0.82rem; }

  /* Stats */
  .stats { margin: 3rem 0 2rem; padding-top: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
  .stat { padding: 0.9rem 1rem; }
  .stat .n { font-size: 1.5rem; }
  .stat .l { font-size: 0.78rem; }

  /* FAQ */
  .faq { margin: 3rem 0 2rem; padding-top: 2rem; }
  .faq summary { font-size: 0.95rem; }

  /* Share block */
  .share-block { margin: 2.5rem 0; padding: 2rem 0; }
  .share-btns { gap: 0.4rem; justify-content: flex-start; }
  .sh-btn, .sh-btn.sh-btn { width: 44px; height: 44px; flex: 0 0 44px; } /* ≥ 44px Apple HIG */
  .sh-btn::before { display: none; } /* tooltips no tenen sentit a mòbil */

  /* Modal */
  .modal { padding: 0.5rem; }
  .modal-inner { padding: 1.5rem 1.25rem; max-height: 92vh; }
  .modal h2 { font-size: 1.25rem; }
  .modal .actions a { flex: 1 1 100%; text-align: center; }

  /* Footer */
  footer { padding: 2rem 0 2rem; margin-top: 3rem; }
  footer .credits { font-size: 0.82rem; line-height: 1.7; }

  /* Detail page */
  .detail { padding-top: 1rem; padding-bottom: 2.5rem; }
  .map-single { height: 280px; }
  .actions-bar { gap: 0.45rem; }
  .actions-bar .btn { flex: 1 1 100%; text-align: center; padding: 0.85rem 1rem; }
}

/* ---------- MÒBIL PETIT (≤ 400px) ---------- */
@media (max-width: 400px) {
  .wrap { padding: 0 0.85rem; }
  .hero { padding: 2rem 0 1.5rem; }
  h1 { font-size: 1.7rem; line-height: 1.12; }
  .lead { font-size: 0.95rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .sh-btn, .sh-btn.sh-btn { width: 42px; height: 42px; flex: 0 0 42px; }
}

/* ---------- PRINT ---------- */
@media print {
  .top, .filters, .share-block, .modal, footer, .burger, .sh-btn { display: none !important; }
  body { background: white; }
  .card { break-inside: avoid; }
}

/* --- Cursos: llista d'enllaços del hub /cursos-i-tallers/ --- */
.link-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.4rem 1.5rem}
.link-list li{margin:0}
.link-list a{display:block;padding:.5rem 0;border-bottom:1px solid var(--border,#eee);color:inherit;text-decoration:none}
.link-list a:hover{color:var(--accent,#000);padding-left:.35rem;transition:padding .15s ease}
.cursos-centre .actions-bar{margin-top:1rem}

/* ---------- Descàrrega guia PDF (CTA) ---------- */
.pdf-cta {
  margin: 3.5rem 0;
  padding: 2rem 2.2rem;
  background: var(--accent-tint);
  border: 1px solid #f2cdbf;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.pdf-cta .pdf-txt { max-width: 620px; }
.pdf-cta h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.pdf-cta p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.pdf-cta .btn-pdf {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-sm);
  white-space: nowrap; box-shadow: var(--shadow-sm); transition: all var(--t);
}
.pdf-cta .btn-pdf:hover { background: var(--accent-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

/* ---------- Xarxes socials (footer) ---------- */
.social-row { display: flex; gap: 0.6rem; margin: 0.4rem 0 0.9rem; flex-wrap: wrap; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--border);
  border-radius: 50%; color: var(--text-secondary); transition: all var(--t);
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); text-decoration: none; }

/* ---------- Impressió: qualsevol fitxa -> PDF net ---------- */
@media print {
  .top, .breadcrumbs, .burger, #mainnav, .share-block, .pdf-cta,
  .map-single, #map, .mapa-section, .filters, .actions-bar, .nearby,
  .modal, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: 100%; padding: 0; }
  a { color: #000; text-decoration: none; }
  .detail h1, h1, h2, h3 { color: #000; }
  .info-grid dd a::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; }
  footer { border-top: 1px solid #ccc; margin-top: 1rem; font-size: 8pt; }
  @page { margin: 1.6cm; }
}
