/* Ca La Fustereta – blog (index + articles). Loaded only on /blog pages. */

/* ── index ── */
.blog-index { padding: calc(var(--header-h, 96px) + 24px) 0 80px; }
.blog-index__head { margin-bottom: 28px; }
.blog-index__head h1 { font-family: var(--f-serif); font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; margin: 12px 0 10px; }
.blog-index__head h1 em { color: var(--wood); }
.posts { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--linen); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.post-card__body small { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--wood-dk); font-weight: 600; }
.post-card__body b, .post-card__body h2 { margin: 0; font-family: var(--f-serif); font-weight: 500; font-size: var(--fs-lg); line-height: 1.25; }
.post-card__body span { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.post-card__body em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: var(--fs-sm); color: var(--terra-dk); font-weight: 600; }
.badge-ruta { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--olive); color: var(--white); font-size: .7rem; letter-spacing: .06em; vertical-align: 1px; }

/* ── article ── */
.post { padding: calc(var(--header-h, 96px) + 24px) 0 40px; }
.post__head, .post__body, .post__cta { max-width: 820px; }
.post__head h1 { font-family: var(--f-serif); font-weight: 500; font-size: var(--fs-h2); line-height: 1.1; margin: 10px 0 8px; }
.post__meta { color: var(--ink-3); font-size: var(--fs-sm); margin: 0 0 22px; }
.post__hero { max-width: 980px; margin: 0 auto 30px; }
.post__hero img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--r-lg); display: block; }
.post__body { font-size: 1.05rem; line-height: 1.75; color: var(--ink-2); }
.post__body > * + * { margin-top: 0; }
.post__body p, .post__body ul { margin: 0 0 16px; }
.post__body ul { padding-left: 1.2em; }
.post__body li { margin: 6px 0; }
.post__body h2 { font-family: var(--f-serif); font-weight: 500; color: var(--ink); font-size: var(--fs-h3); line-height: 1.2; margin: 40px 0 12px; }
.post__body h3 { color: var(--ink); font-size: var(--fs-lg); margin: 22px 0 8px; }
.post__body a { color: var(--terra-dk); }
.post__body strong { color: var(--ink); }
.post__body img { max-width: 100%; height: auto; border-radius: var(--r-md); display: block; }
.post__body table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--white); margin: 0 0 18px; }
.post__body th, .post__body td { border: 1px solid var(--linen); padding: 9px 11px; text-align: left; vertical-align: top; }
.post__body th { background: var(--cream); color: var(--ink); }

/* components used inside the articles */
.route-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 24px; }
.route-box-item { background: var(--cream); border-radius: var(--r-sm); padding: 12px; text-align: center; }
.route-box-item span { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.route-box-item strong { font-family: var(--f-serif); font-size: 1.3rem; font-weight: 500; }
.komoot-wrap { margin: 0 0 20px; border-radius: var(--r-md); overflow: hidden; }
.komoot-wrap iframe { width: 100%; border: 0; display: block; }
.info-grid, .services-grid, .zone-grid, .profile-grid, .photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 0 0 22px; }
.info-card, .service-item, .zone-card, .profile-card { background: var(--white); border: 1px solid var(--linen); border-radius: var(--r-md); padding: 14px 16px; line-height: 1.5; }
.info-card strong { display: block; color: var(--ink); }
.info-card span { color: var(--ink-2); font-size: var(--fs-sm); }
.profile-card, .service-item { display: flex; gap: 12px; align-items: flex-start; }
.profile-icon, .service-icon { font-size: 1.5rem; line-height: 1; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tip-box { background: var(--cream); border-left: 4px solid var(--wood); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 16px; margin: 0 0 18px; }
.tip-box p:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { padding-left: 1.6em; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.itinerary { margin: 0 0 24px; border-left: 2px solid var(--linen); padding-left: 18px; }
.it-step { display: grid; grid-template-columns: 70px 1fr; gap: 14px; margin: 0 0 22px; }
.it-time strong { display: inline-block; background: var(--ink); color: var(--white); border-radius: var(--r-pill); padding: 3px 10px; font-size: var(--fs-sm); }
.it-content h3 { margin-top: 0; }
.it-img { margin-top: 10px; }
.routes-list { display: grid; gap: 12px; margin: 0 0 22px; }
.route-info { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.route-badge { background: var(--cream); border-radius: var(--r-pill); padding: 3px 10px; font-size: var(--fs-sm); color: var(--ink-2); }
.faq-item { border-bottom: 1px solid var(--linen); padding: 12px 0; }
.faq-item .faq-q { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.faq-item .faq-a { margin: 0; }
.related-box { background: var(--cream); border-radius: var(--r-md); padding: 18px; margin: 30px 0 0; }
.related-box-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px !important; }
.related-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.related-link { display: block; background: var(--white); border: 1px solid var(--linen); border-radius: var(--r-sm); padding: 12px 14px; text-decoration: none; }
.related-link strong { display: block; color: var(--ink); }
.related-link span { font-size: var(--fs-sm); color: var(--ink-3); }
.wide { grid-column: 1 / -1; }

.post__cta { margin-top: 44px; background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 28px; }
.post__cta h2 { font-family: var(--f-serif); font-weight: 500; margin: 0 0 8px; color: var(--white); }
.post__cta p { color: rgba(255, 255, 255, .82); margin: 0 0 16px; }
.post__cta .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.post__cta .btn--ghost:hover { background: rgba(255, 255, 255, .1); }

@media (max-width: 640px) {
  .route-box { grid-template-columns: repeat(2, 1fr); }
  .it-step { grid-template-columns: 1fr; gap: 6px; }
  .post__cta { padding: 22px 18px; }
}

.embed-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; background: var(--cream); border: 1px solid var(--linen); border-radius: var(--r-md); }
.embed-gate small { color: var(--ink-3); }
