/* ===================================================================
   posts.css — Single blog post layout + Airlines accordion
   (Title/meta BELOW the hero image. No overlay.)
   =================================================================== */

/* -------- Base tokens -------- */
.blog-post-page {
  --ink: #0f1720;
  --muted: #5b6770;
  --line: #e6edf2;
  --line-soft: #dfe6ec;
  --brand: #0b6cff;
  --card: #ffffff;
  --card-soft: #f7fcff;

  color: var(--ink);
  background: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* -------- Hero image band (SAN-style rounded) -------- */
.post-hero {
  position: relative;
  max-width: 1320px; /* wide container like reference */
  margin: 16px auto 0;
  height: clamp(420px, 46vh, 520px);
  border-radius: 26px;
  overflow: visible; /* lets the chip sit outside */
  z-index: 1;
}

/* Hero image fills the band; rounded corners on the image itself */
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 26px;
}

/* No veil/overlay */
.post-hero::after {
  display: none !important;
}

/* "All Posts" chip — OUTSIDE the photo, top-left */
.post-hero .chip {
  position: absolute;
  top: -48px; /* above the rounded photo */
  left: 0;
  z-index: 3;
  display: inline-block;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
@media (max-width: 700px) {
  .post-hero .chip {
    top: -40px;
  }
}

/* -------- Content wrapper (title/meta BELOW image) -------- */
.post-wrap {
  position: relative;
  z-index: 2;
  max-width: 800px; /* article width */
  margin: 24px auto 56px; /* normal flow under image */
  padding: 0 16px;
}
@media (max-width: 700px) {
  .post-wrap {
    margin: 16px auto 40px;
    padding: 0 12px;
  }
}

/* Meta (date • read time • category) under image */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0 0 6px;
}
.post-meta .dot::before {
  content: "•";
  margin: 0 6px;
  opacity: 0.9;
}

/* Title under the image in normal dark color */
.post-title {
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 10px;
  color: var(--ink);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
}

/* Author block not needed */
.post-author {
  display: none !important;
}

/* Divider */
.hr {
  height: 1px;
  background: var(--line);
  margin: 24px 0 32px;
}

/* -------- Article body -------- */
.post-content p {
  margin: 1rem 0;
  font-size: 1.05rem;
}
.post-content a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------- Airlines accordion (same width as text) -------- */
.airlines {
  max-width: 800px; /* matches article width */
  margin: 24px auto 80px;
  padding: 0 16px;
}
.airlines h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  margin: 0 0 6px;
}
.airlines .sub {
  color: var(--muted);
  margin: 0 0 12px;
}

/* Each airline summary/card */
details.airline {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  margin: 14px 0;
  overflow: hidden;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
details.airline[open] {
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
  border-color: #d7e4ee;
}

/* Summary row */
.airline-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}
.airline-summary::-webkit-details-marker {
  display: none;
}
.airline-summary .logo {
  width: 108px;
  max-height: 30px;
  object-fit: contain;
}
.airline-summary .name {
  font-weight: 700;
}
.airline-summary .loc {
  color: var(--muted);
}
.airline-summary .more {
  margin-left: auto;
  color: #0b6cff;
  font-weight: 600;
}
details.airline[open] .airline-summary .more::after {
  content: "Less Info";
}
details.airline:not([open]) .airline-summary .more::after {
  content: "More Info";
}

/* Expanded body */
.airline-body {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--card-soft);
}

/* Three info boxes inside the panel */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 10px 0;
}
.fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.98rem;
}
.fact b {
  display: block;
  margin-bottom: 4px;
}

/* Note below facts */
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* -------- Small screens -------- */
@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .airlines {
    padding: 0 12px;
  }
}
/* === Widen article text + airlines section === */
.post-wrap {
  max-width: 1100px; /* was 800px */
}

.airlines {
  max-width: 1100px; /* match article width */
}

/* Make the info boxes breathe on wider layouts */
@media (min-width: 900px) {
  .facts {
    grid-template-columns: repeat(3, 1fr); /* 3 wide boxes */
    gap: 18px;
  }
  .fact {
    padding: 14px;
    font-size: 1rem;
  }
}
/* Put the "All Posts" chip inside the photo, top-left corner */
.post-hero {
  overflow: hidden; /* keep the rounded clip */
  position: relative;
}

.post-hero .chip {
  position: absolute;
  top: 12px; /* inside the image, not above it */
  left: 12px; /* snug to the left corner */
  z-index: 2; /* sits above the image */
  /* no color/style changes here */
}

@media (max-width: 700px) {
  .post-hero .chip {
    top: 10px;
    left: 10px;
  }
}

/*Centered paragraph in service pages (blog style)*/
.centered-cta {
  text-align: center;
  margin-top: 2rem;
}

.local-picks {
  margin: 1.2em 0;
  padding-left: 1.4em;
  list-style-type: "🍷 ";
}
.local-picks li {
  margin-bottom: 0.8em;
  line-height: 1.6;
}
.local-picks a {
  color: #152a51;
  text-decoration: underline;
}
.local-picks a:hover {
  color: #0b59d0;
}

.inline-link {
  color: #152a51;
  font-weight: 600;
  text-decoration: underline;
}
.inline-link:hover {
  color: #0b59d0;
}
