/* ═══════════════════════════════════════════════════
   TravelGirona.com — Estil minimalista v8
   Sense fotos · Tipografia editorial · SEO-first
═══════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  --black:   #0A0A0A;
  --ink:     #1A1A1A;
  --stone:   #4A4A4A;
  --muted:   #7A7A7A;
  --line:    #E8E8E8;
  --cream:   #F8F6F2;
  --white:   #FFFFFF;

  --gold:    #C9870F;
  --gold-bg: #FEF3DC;
  --teal:    #0F7A5C;
  --teal-bg: #E8F5F0;
  --blue:    #1A5FA8;
  --blue-bg: #EBF2FC;
  --red:     #B52A2A;
  --red-bg:  #FAEAEA;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 2px 6px rgba(0,0,0,0.10), 0 8px 24px rgba(0,0,0,0.06);

  --max: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: var(--white); }

/* ── Topbar ── */
.topbar {
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem var(--gutter);
  letter-spacing: 0.02em;
}
.topbar a { color: var(--white); text-decoration: underline; }

/* ── Navegació ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 2rem;
}
.nav-logo span { color: var(--gold); }
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  padding: 0 0.6rem;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--stone);
  white-space: nowrap;
  height: 56px;
  line-height: 56px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav-links a.nav-ryder { color: var(--gold); font-weight: 600; }
.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.search-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  color: var(--blue, #2563eb);
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: background 0.15s;
}
.search-btn:hover { background: rgba(37,99,235,0.08); }
.search-btn svg { stroke: var(--blue, #2563eb); }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
}
.lang-btn {
  border: none;
  background: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 2px;
  letter-spacing: 0.04em;
  transition: color 0.15s, background 0.15s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--white); background: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.2s;
}

/* ── Hero ── */
.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc {
  font-size: 1.05rem;
  color: var(--stone);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}
.hero-cat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--stone);
  background: var(--white);
  transition: border-color 0.15s, color 0.15s;
}
.hero-cat:hover { border-color: var(--gold); color: var(--gold); }
.hero-cat-count { font-size: 0.7rem; color: var(--muted); }

/* ── Section header ── */
.section-header { margin-bottom: 2rem; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.section-title em { font-style: italic; }
.section-desc { font-size: 0.92rem; color: var(--stone); max-width: 560px; }

/* ── Filtres ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.filter-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-right: 0.25rem; }
.filter-btn {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--stone);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-btn.active-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.results-count { margin-left: auto; font-size: 0.75rem; color: var(--muted); }

/* ── Llista de targetes ── */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  padding-left: 1rem;
  margin-left: -1rem;
  transition: border-color 0.15s;
}
.list-item:first-child { border-top: 1px solid var(--line); }
.list-item:hover { border-left-color: var(--gold); }
.list-item.featured { border-left-color: var(--gold); background: var(--gold-bg); padding: 1.25rem 1rem; margin-left: -1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.list-item.hidden { display: none; }

.item-main { flex: 1; min-width: 0; }
.item-badges { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
}
.badge-gold { background: var(--gold-bg); color: var(--gold); }
.badge-teal { background: var(--teal-bg); color: var(--teal); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-red  { background: var(--red-bg);  color: var(--red);  }
.badge-gray { background: var(--cream); color: var(--stone); }

.item-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}
.item-name a { transition: color 0.15s; }
.item-name a:hover { color: var(--gold); }
.item-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.item-desc {
  font-size: 0.88rem;
  color: var(--stone);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-tags { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
.item-tag {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--cream);
  padding: 1px 6px;
  border-radius: 3px;
}
.stars { color: var(--gold); letter-spacing: 1px; font-size: 0.85rem; }

.item-aside { text-align: right; flex-shrink: 0; }
.item-price-from { font-size: 0.7rem; color: var(--muted); }
.item-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
}
.item-price-note { font-size: 0.7rem; color: var(--muted); display: block; }
.item-price-unverified {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  display: block;
  margin-top: 1px;
}
.item-link {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}
.item-link:hover { text-decoration: underline; }

/* Stats inline (km, elevation, etc.) */
.item-stats { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.item-stat { font-size: 0.78rem; }
.item-stat-val { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.item-stat-lbl { color: var(--muted); font-size: 0.7rem; }

/* ── Pàgina de detall ── */
.detail-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--line); }
.detail-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.detail-sub { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }

.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; padding: 3rem 0; }
.detail-content { min-width: 0; }
.detail-content p { font-size: 0.95rem; line-height: 1.8; color: var(--stone); margin-bottom: 1.25rem; }
.detail-content h2 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--black); margin: 2rem 0 0.75rem; }

.detail-aside { }
.info-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 72px;
}
.info-card h3 { font-family: var(--font-serif); font-size: 1rem; margin-bottom: 1rem; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  gap: 0.5rem;
}
.info-row:last-of-type { border-bottom: none; }
.info-row .lbl { color: var(--muted); flex-shrink: 0; }
.info-row .val { font-weight: 600; text-align: right; }
.info-row .val a { color: var(--blue); }
.info-row .val a:hover { text-decoration: underline; }
.price-notice-box {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

/* ── Countdown ── */
.countdown {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cd-unit { text-align: center; }
.cd-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  display: block;
}
.cd-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.section-dark .cd-num { color: var(--white); }
.section-dark .cd-label { color: rgba(255,255,255,0.5); }

/* ── Newsletter ── */
.newsletter-form { display: flex; gap: 0.5rem; max-width: 460px; flex-wrap: wrap; }
.newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--gold); }

/* ── Botons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--black); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #a8720d; }
.btn-outline { background: transparent; border: 1px solid var(--line); color: var(--stone); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
.btn-civitatis { background: #E84D1C; color: var(--white); }
.btn-civitatis:hover { background: #c63e12; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: var(--cream);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); margin-bottom: 0.75rem; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.82rem; color: var(--muted); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); }
.footer-img-credit { font-size: 0.7rem; color: var(--muted); font-style: italic; }

/* ── SEO link cloud ── */
.seo-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.seo-cloud a { font-size: 0.78rem; color: var(--muted); padding: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: 3px; transition: color 0.15s; }
.seo-cloud a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Paginació ── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; }
.page-btn { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.82rem; color: var(--stone); cursor: pointer; background: var(--white); }
.page-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.page-btn:hover:not(.active) { border-color: var(--ink); }

/* ── Utilitats ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-mono { font-family: var(--font-mono); }
.mt-auto { margin-top: auto; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .detail-aside .info-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 99;
  }
  .nav-links.open a { height: auto; line-height: 1; padding: 0.75rem 1.5rem; border-bottom: none; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-lang { display: none; }
  .nav-lang.open { display: flex; flex-wrap: wrap; gap: 4px; padding: 0.75rem 1.5rem; }
  .site-nav { position: relative; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .item-aside { text-align: left; }
  .list-item { flex-direction: column; gap: 0.75rem; }
  .info-card { position: static; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cats { gap: 0.4rem; }
  .filter-bar { gap: 0.4rem; }
  .countdown { gap: 1rem; }
  .cd-num { font-size: 2rem; }
}
