/* HotelBlox blog — single post + archive
   Uses tokens from /colors_and_type.css and component conventions from site.css */

/* =====================================================================
   Shared
   ===================================================================== */
.htblx-blog-wrap { background: var(--bg); }

/* Page eyebrow / kicker — small uppercase label with a gold rule */
.htblx-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--htblx-burgundy);
}
.htblx-eyebrow::before {
  content: "";
  width: 32px; height: 2px;
  background: var(--htblx-amber);
}

/* Pretty pill for taxonomy / category */
.htblx-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--htblx-burgundy);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--htblx-sand);
  border-radius: 999px;
}
.htblx-tag:hover { background: var(--htblx-amber); color: var(--htblx-ink); opacity: 1; }

/* Helper container */
.htblx-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 60px;
}
.htblx-container--narrow {
  max-width: 760px;
}

/* =====================================================================
   POST — single-post layout (no sidebar, full-width article column)
   ===================================================================== */

/* Top crumb / back link */
.htblx-post-crumb {
  padding: 36px 60px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg3);
  letter-spacing: 0.04em;
}
.htblx-post-crumb a {
  color: var(--fg3);
  text-decoration: none;
  transition: color .15s ease;
}
.htblx-post-crumb a:hover { color: var(--htblx-burgundy); opacity: 1; }
.htblx-post-crumb .sep { margin: 0 10px; opacity: .5; }

/* Article header — title, meta, gold rule */
.htblx-post-head {
  max-width: 880px;
  margin: 36px auto 0;
  padding: 0 60px;
  text-align: left;
}
.htblx-post-head .htblx-tag { margin-bottom: 22px; }

.htblx-post-head__info {margin-bottom: 24px;}

.htblx-post-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--fg1);
  margin: 0;
  text-wrap: pretty;
  max-width: 820px;
}

.htblx-post-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fg2);
  margin: 0 0 36px;
}
.htblx-post-meta a { color: var(--fg1); text-decoration: none; border-bottom: 1px solid var(--rule); }
.htblx-post-meta a:hover { border-bottom-color: var(--htblx-amber); opacity: 1; }
.htblx-post-meta__dot { display: inline-block; width: 4px; height: 4px; background: var(--htblx-amber); border-radius: 50%; margin: 0 14px; vertical-align: middle; }
.htblx-post-meta__author { display: inline-flex; align-items: center; gap: 10px; }
.htblx-post-meta__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--htblx-burgundy); color: var(--htblx-paper);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-weight: 600; font-size: 14px;
}

/* Featured image — full-bleed feel within container */
.htblx-post-hero {
  max-width: 1180px;
  margin: 0 auto 60px;
  padding: 0 60px;
}
.htblx-post-hero img {
  width: 100%;
  height: clamp(300px, 52vw, 600px);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-image);
}

/* Body column */
.htblx-post-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 60px 80px;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.78;
  color: var(--fg2);
}
.htblx-post-body > * + * { margin-top: 1.15em; }
.htblx-post-body p:first-of-type::first-line {
  font-weight: 500;
}
.htblx-post-body p.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--fg1);
  margin-bottom: 1.3em;
}
.htblx-post-body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg1);
  margin: 2em 0 .6em;
}
.htblx-post-body h2::before {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--htblx-amber);
  margin-bottom: 18px;
}
.htblx-post-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--fg1);
  margin: 1.6em 0 .4em;
}
.htblx-post-body ul {
  list-style: disc;                        /* override Divi parent's `ul { list-style: none }` reset */
  padding-left: 22px;
  margin: 1em 0;
}
.htblx-post-body ol {
  list-style: decimal;                     /* same override for ordered lists */
  padding-left: 22px;
  margin: 1em 0;
}
.htblx-post-body ul li,
.htblx-post-body ol li {
  margin-bottom: .55em;
  padding-left: 6px;
}
.htblx-post-body ul li::marker,
.htblx-post-body ol li::marker { color: var(--htblx-amber); }
.htblx-post-body strong { color: var(--fg1); font-weight: 600; }
.htblx-post-body a:not(.htblx-btn) { color: var(--htblx-burgundy); text-decoration: none; border-bottom: 1px solid var(--htblx-amber); transition: background .15s ease; }
.htblx-post-body a:not(.htblx-btn):hover { background: rgba(244,165,2,0.18); opacity: 1; }

/* Buttons inside the article keep their own styling — no inherited link rules */
.htblx-post-body a.htblx-btn { border-bottom: 0; text-decoration: none; }
.htblx-post-body a.htblx-btn--ink { color: var(--htblx-paper); }
.htblx-post-body a.htblx-btn--amber { color: var(--htblx-ink); }

/* Gutenberg core/button block — strip the burgundy + amber underline that the
   .htblx-post-body a:not(.htblx-btn) rule would otherwise force on it, since
   wp-block-button__link is not .htblx-btn. */
.htblx-post-body a.wp-block-button__link,
.htblx-post-body a.wp-element-button {
  color: var(--htblx-paper) !important;
  border-bottom: 0 !important;
}
.htblx-post-body a.wp-block-button__link:hover,
.htblx-post-body a.wp-element-button:hover {
  background: var(--htblx-ink) !important;
  color: var(--htblx-paper) !important;
  opacity: .82;
}

/* Pull-block CTA inside the article — paper card on sand */
.htblx-post-cta {
  margin: 2.4em 0;
  padding: 36px 40px;
  background: var(--htblx-sand);
  border-left: 3px solid var(--htblx-amber);
}
.htblx-post-cta__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: var(--fg1);
  margin: 0 0 18px;
}
.htblx-post-cta .htblx-btn { font-size: 14px; padding: 11px 24px; }

/* End-of-article share strip */
.htblx-post-end {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 60px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule);
  padding-top: 26px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--fg3);
  letter-spacing: 0.04em;
}
.htblx-post-end__share { display: flex; gap: 10px; align-items: center; }
.htblx-post-end__share a {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--fg2);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  font-weight: 600;
  transition: all .15s ease;
}
.htblx-post-end__share a:hover { background: var(--htblx-burgundy); color: var(--htblx-paper); border-color: var(--htblx-burgundy); opacity: 1; }

/* =====================================================================
   "Latest Posts" — replacement for comment section
   ===================================================================== */
.htblx-latest {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 80px 0 100px;
  margin-top: 40px;
}
.htblx-latest__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 44px;
  gap: 24px;
}
.htblx-latest__h {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg1);
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.htblx-latest__h-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--htblx-burgundy);
  margin-bottom: 12px;
}
.htblx-latest__link {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg1);
  text-decoration: none;
  border-bottom: 1px solid var(--htblx-amber);
  padding-bottom: 4px;
  transition: color .15s ease;
}
.htblx-latest__link:hover { color: var(--htblx-burgundy); opacity: 1; }
.htblx-latest__link::after { content: " →"; }

.htblx-latest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* =====================================================================
   Post card (used in archive + latest section)
   ===================================================================== */
.htblx-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease;
}
.htblx-card:hover { opacity: 1; transform: translateY(-2px); }
.htblx-card:hover .htblx-card__title { color: var(--htblx-burgundy); }
.htblx-card:hover .htblx-card__img img { transform: scale(1.03); }

.htblx-card__img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--htblx-sand);
}
.htblx-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.htblx-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--htblx-paper);
  color: var(--htblx-burgundy);
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
}
.htblx-card__date {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--fg3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.htblx-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--fg1);
  margin: 0 0 12px;
  transition: color .15s ease;
  text-wrap: balance;
}
.htblx-card__excerpt {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg2);
  margin: 0;
}
.htblx-card__more {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--htblx-burgundy);
  letter-spacing: 0.02em;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.htblx-card__more::after { content: "→"; transition: transform .2s ease; }
.htblx-card:hover .htblx-card__more::after { transform: translateX(4px); }

/* =====================================================================
   ARCHIVE — index page header + filter row + grid
   ===================================================================== */
.htblx-archive-hero {
  padding: 70px 60px 50px;
  text-align: center;
}
.htblx-archive-hero .htblx-eyebrow { justify-content: center; margin-bottom: 18px; }
.htblx-archive-hero .htblx-eyebrow::after {
  content: "";
  width: 32px; height: 2px;
  background: var(--htblx-amber);
}
.htblx-archive-hero__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--fg1);
  margin: 0 0 18px;
}
.htblx-archive-hero__sub {
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--fg2);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category filter row — WordPress category links rendered as pills.
   First "All" + sub-categories. Active state = burgundy fill. */
.htblx-filter {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg);
}
.htblx-filter__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg3);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.htblx-filter__label::before {
  content: "";
  width: 18px; height: 2px; background: var(--htblx-amber);
}
.htblx-filter__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  flex: 1; justify-content: center;
}
.htblx-filter__btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg2);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s ease;
}
.htblx-filter__btn:hover {
  border-color: var(--htblx-ink);
  color: var(--htblx-ink);
}
.htblx-filter__btn.is-active {
  background: var(--htblx-ink);
  color: var(--htblx-paper);
  border-color: var(--htblx-ink);
}
.htblx-filter__btn .count {
  margin-left: 8px;
  font-size: 11px;
  opacity: .55;
}

/* Archive grid */
.htblx-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

/* Empty state when filter has 0 matches */
.htblx-archive-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg3);
}

/* Simple pagination */
.htblx-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 0 60px 100px;
}
.htblx-pager a, .htblx-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--fg2);
  text-decoration: none;
  padding: 0 10px;
  border-radius: 4px;
  transition: all .15s ease;
}
.htblx-pager a:hover { background: var(--htblx-sand); color: var(--htblx-ink); opacity: 1; }
.htblx-pager .is-current {
  background: var(--htblx-ink);
  color: var(--htblx-paper);
}
.htblx-pager .next, .htblx-pager .prev {
  font-family: var(--font-serif);
  font-style: italic;
  padding: 0 16px;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 980px) {
  .htblx-latest__grid,
  .htblx-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .htblx-post-title { font-size: 40px; }
  .htblx-archive-hero__title { font-size: 56px; }
}

@media (max-width: 820px) {
  .htblx-container,
  .htblx-post-head,
  .htblx-post-hero,
  .htblx-post-body,
  .htblx-post-end,
  .htblx-archive-hero,
  .htblx-archive-grid,
  .htblx-filter,
  .htblx-pager,
  .htblx-post-crumb { padding-left: 22px; padding-right: 22px; }

  .htblx-post-title { font-size: 38px; }
  .htblx-post-body { font-size: 17px; }
  .htblx-post-body h2 { font-size: 28px; }
  .htblx-post-body h3 { font-size: 20px; }

  .htblx-archive-hero { padding-top: 50px; padding-bottom: 36px; }
  .htblx-archive-hero__title { font-size: 42px; }

  .htblx-latest { padding: 60px 0 70px; }
  .htblx-latest__h { font-size: 34px; }
  .htblx-latest__head { flex-direction: column; align-items: flex-start; }

  .htblx-latest__grid,
  .htblx-archive-grid { grid-template-columns: 1fr; gap: 36px; }

  .htblx-filter { flex-direction: column; align-items: flex-start; padding: 18px 22px; }
  .htblx-filter__list { justify-content: flex-start; }

  .htblx-post-cta { padding: 26px 24px; }
}
