/* ── Blog & Post public styles ────────────────────────────────────────────── */

/* Section banner */
.blog-hero-banner {
  background: #f7f4ef;
  border-bottom: 1px solid #e8e4de;
  padding: 48px 0 36px;
}
.blog-hero-banner--image {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 72px 0 56px;
  border-bottom: none;
}
.blog-hero-banner--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, rgba(0,0,0,.3) 100%);
}
.blog-hero-banner--image .container { position: relative; }
.blog-hero-banner--image .blog-section-title { color: #fff; }
.blog-hero-banner--image .blog-section-tagline { color: rgba(255,255,255,.8); }
.blog-section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.blog-section-tagline {
  color: var(--muted);
  font-size: 16px;
}

/* Toolbar */
.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.blog-type-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog-type-chip {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid #e8e4de;
  color: var(--muted);
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.blog-type-chip:hover { border-color: var(--terracotta); color: var(--terracotta); }
.blog-type-chip--active { border-color: var(--terracotta); color: var(--terracotta); background: rgba(185,82,57,.06); }

/* Language switcher */
.blog-lang-switcher {
  position: relative;
  display: inline-block;
}
.blog-lang-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px 10px;
  border: 1.5px solid #e8e4de;
  border-radius: 4px;
  display: inline-block;
  user-select: none;
}
.blog-lang-label::after { content: ' ▾'; font-size: 10px; }
.blog-lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1.5px solid #e8e4de;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  min-width: 140px;
  z-index: 100;
  overflow: hidden;
}
.blog-lang-switcher:hover .blog-lang-dropdown,
.blog-lang-switcher:focus-within .blog-lang-dropdown { display: block; }
.blog-lang-option {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  text-decoration: none;
  color: var(--ink-2);
  transition: background .1s;
}
.blog-lang-option:hover { background: #f7f4ef; }
.blog-lang-option--active { font-weight: 700; color: var(--terracotta); }

/* Blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 700px) {
  .blog-card--featured { grid-template-columns: 1fr; }
  .blog-card--featured .blog-card__image-wrap { aspect-ratio: 16/9; }
}

/* Card */
.blog-card {
  background: #fff;
  border: 1px solid #ede9e2;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.blog-card__image-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-card--featured .blog-card__image-wrap {
  aspect-ratio: unset;
  height: 100%;
  min-height: 260px;
}
.blog-card__image {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.blog-card:hover .blog-card__image { transform: scale(1.04); }
.blog-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.blog-card__date { font-size: 12px; color: var(--muted); }
.blog-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}
.blog-card__title--lg { font-size: clamp(22px, 3vw, 30px); }
.blog-card__link { text-decoration: none; color: inherit; }
.blog-card__link:hover { color: var(--terracotta); }
.blog-card__excerpt {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card__read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--terracotta);
  text-decoration: none;
  align-self: flex-start;
}
.blog-card__read-more:hover { text-decoration: underline; }

/* Type chips */
.blog-chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
}
.chip--blog         { background: #dbeafe; color: #1d4ed8; }
.chip--guide        { background: #d1fae5; color: #065f46; }
.chip--restaurant   { background: #fde8e4; color: #b95239; }
.chip--tag          { background: #f0ece5; color: var(--ink-2); }
.chip--tag:hover    { background: #e8e4de; }
.blog-chip--light   { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ── Post hero ────────────────────────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.post-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 40%);
}
.post-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
}
.post-hero__caption {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
  padding-top: 24px;
  color: #fff;
}
.post-hero__title {
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin: 12px 0 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.post-hero__byline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
  flex-wrap: wrap;
}
.post-hero__sep { color: rgba(255,255,255,.4); }

/* Post lang switcher (in-article) */
.post-lang-switcher { display: flex; gap: 6px; flex-wrap: wrap; }
.post-lang-option {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
  transition: background .15s;
}
.post-lang-option:hover { background: rgba(255,255,255,.2); color: #fff; }
.post-lang-option--active { background: rgba(255,255,255,.25); color: #fff; border-color: rgba(255,255,255,.7); }

/* No-hero title */
.post-title-no-hero {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}
.post-byline-no-hero {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 0;
}
.post-byline-no-hero .post-lang-option {
  border-color: #e8e4de;
  color: var(--ink-2);
}
.post-byline-no-hero .post-lang-option:hover { background: #f0ece5; }
.post-byline-no-hero .post-lang-option--active { background: #f0ece5; color: var(--ink); border-color: var(--ink-2); }

/* Post layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  padding-top: 44px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
}

/* Prose (rendered Markdown) */
.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 36px 0 14px; line-height: 1.25; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.prose p  { margin-bottom: 20px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 6px; }
.prose a  { color: var(--terracotta); text-decoration: underline; }
.prose blockquote {
  border-left: 3px solid #e8ddd0;
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  color: var(--ink-2);
  font-style: italic;
}
.prose img { width: 100%; border-radius: 4px; margin: 24px 0; }
.prose hr  { border: none; border-top: 1px solid #e8e4de; margin: 36px 0; }
.prose code {
  background: #f0ece5; padding: 2px 6px; border-radius: 3px;
  font-size: 14px; font-family: monospace;
}
.prose pre  {
  background: #f0ece5; padding: 16px; border-radius: 4px; overflow-x: auto; margin-bottom: 20px;
}
.prose pre code { background: none; padding: 0; }

/* Sidebar */
.post-sidebar__section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8e4de;
}
.post-sidebar__section:last-child { border-bottom: none; }
.post-sidebar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
