/* ==========================================================================
   DIA BONITO · guide.css
   Article layout for the /bocas-del-toro guide pages.
   Uses the colors, fonts and header from style.css.
   ========================================================================== */

.guide-hero {
  position: relative;
  min-height: clamp(320px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink-deep);
}
.guide-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 19, 16, 0.92) 0%, rgba(10, 19, 16, 0.55) 45%, rgba(10, 19, 16, 0.3) 100%);
}
.guide-hero-content {
  position: relative;
  width: 100%;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(28px, 5vw, 56px);
}
.guide-crumbs {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bone-2);
  margin-bottom: 14px;
}
.guide-crumbs a { color: var(--bone-2); text-decoration: none; }
.guide-crumbs a:hover, .guide-crumbs a:focus-visible { color: var(--bone); text-decoration: underline; }
.guide-title {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--bone);
  max-width: 820px;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(10, 19, 16, 0.9), 0 2px 24px rgba(10, 19, 16, 0.7);
}

.guide-article {
  padding: clamp(36px, 6vw, 72px) 0 var(--section-y);
}
.guide-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--sans);
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.7;
  color: var(--bone-2);
}
.guide-body .guide-lede {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.5;
  color: var(--bone);
  margin-bottom: 1.4em;
}
.guide-body h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 2.2em 0 0.6em;
}
.guide-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 24px);
  line-height: 1.25;
  color: var(--bone);
  margin: 1.8em 0 0.4em;
}
.guide-body p { margin: 0 0 1.15em; }
.guide-body a { color: var(--lagoon); text-underline-offset: 3px; }
.guide-body a:hover, .guide-body a:focus-visible { color: var(--bone); }
.guide-body ul { margin: 0 0 1.3em; padding-left: 1.2em; }
.guide-body li { margin-bottom: 0.6em; }
.guide-body li::marker { color: var(--lagoon); }
.guide-body strong { color: var(--bone); font-weight: 600; }

.guide-figure { margin: 2em 0; }
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.guide-table-wrap { overflow-x: auto; margin: 1.6em 0 2em; -webkit-overflow-scrolling: touch; }
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}
.guide-table th, .guide-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--bone-3);
  vertical-align: top;
}
.guide-table th {
  font-weight: 600;
  color: var(--bone);
  white-space: nowrap;
}
.guide-table td:first-child { color: var(--bone); white-space: nowrap; }

.guide-faq dt {
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 22px);
  line-height: 1.3;
  color: var(--bone);
  margin: 1.6em 0 0.4em;
}
.guide-faq dd { margin: 0 0 1em; }

.guide-cta {
  margin: 3em 0 0;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--bone-3);
  border-radius: 4px;
  text-align: center;
}
.guide-cta h2 { margin-top: 0; }
.guide-cta p { margin-bottom: 1.3em; }
.guide-btn {
  display: inline-block;
  margin: 6px 6px;
  padding: 0.85em 1.8em;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--bone);
  border-radius: 2px;
  color: var(--ink);
  background: var(--bone);
}
.guide-body a.guide-btn { color: var(--ink); }
.guide-btn-alt { background: transparent; color: var(--bone); }
.guide-body a.guide-btn-alt { color: var(--bone); }
.guide-btn:hover, .guide-btn:focus-visible { opacity: 0.85; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 2em 0;
}
.guide-card {
  display: block;
  text-decoration: none !important;
  border: 1px solid var(--bone-3);
  border-radius: 4px;
  overflow: hidden;
  background: var(--ink-2);
}
.guide-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.guide-card-text { padding: 18px 20px 22px; }
.guide-card-title {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--bone);
  margin-bottom: 8px;
}
.guide-card-desc { display: block; font-size: 0.95rem; line-height: 1.55; color: var(--bone-2); }
.guide-card:hover .guide-card-title, .guide-card:focus-visible .guide-card-title { color: var(--lagoon); }

.guide-related { margin-top: 2.4em; font-size: 0.95rem; }

/* ==========================================================================
   Rich article pieces (Nov 16): photo breaks, galleries, quotes, notes,
   facts, table of contents, author box and photo calls to action.
   ========================================================================== */

body.guide-page { overflow-x: clip; }

/* Hero extras */
.guide-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 14px;
}
.guide-dek {
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.45;
  color: var(--bone);
  max-width: 680px;
  margin-top: 16px;
  text-shadow: 0 1px 12px rgba(10, 19, 16, 0.8);
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--bone-2);
}
.guide-meta img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--lagoon-dim);
}
.guide-meta-who { display: inline-flex; align-items: center; gap: 10px; }
.guide-hero { min-height: clamp(420px, 72vh, 720px); }
@media (prefers-reduced-motion: no-preference) {
  .guide-hero-image { animation: guide-drift 24s ease-out both; }
  @keyframes guide-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
}

/* Drop cap on the first paragraph after the lede */
.guide-body .guide-lede + p::first-letter,
.guide-body .guide-toc + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--lagoon);
}

/* Section headings get a small lagoon rule above */
.guide-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--lagoon);
  margin-bottom: 18px;
}
.guide-body .guide-stay h2::before, .guide-body .guide-cta h2::before, .guide-body .guide-hub-section > h2.no-rule::before { display: none; }
.guide-body h2 { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Table of contents */
.guide-toc {
  margin: 0 0 2.4em;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--lagoon);
  background: var(--ink-2);
  border-radius: 2px;
}
.guide-toc-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 10px;
}
.guide-body .guide-toc ol {
  margin: 0;
  padding-left: 1.3em;
  columns: 2 260px;
  column-gap: 32px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.guide-body .guide-toc li { margin-bottom: 0.45em; break-inside: avoid; }
.guide-body .guide-toc li::marker { color: var(--bone-3); font-size: 0.85em; }
.guide-body .guide-toc a { color: var(--bone-2); text-decoration: none; }
.guide-body .guide-toc a:hover, .guide-body .guide-toc a:focus-visible { color: var(--lagoon); }

/* Captions */
.guide-body figcaption {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--bone-3);
}

/* Wide photo: breaks out of the text column */
.guide-wide {
  width: min(1100px, 100vw - 2 * var(--gutter, 20px));
  margin: 2.6em 0 2.6em 50%;
  transform: translateX(-50%);
}
.guide-wide img { display: block; width: 100%; height: auto; border-radius: 4px; }
.guide-wide figcaption { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Full-bleed photo band with words on it */
.guide-bleed {
  position: relative;
  width: 100vw;
  margin: 3.2em 0 3.2em 50%;
  transform: translateX(-50%);
  min-height: clamp(340px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.guide-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.guide-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 15, 12, 0.88) 0%, rgba(7, 15, 12, 0.35) 45%, rgba(7, 15, 12, 0) 75%);
}
.guide-body .guide-bleed-text {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  margin-top: 0;
  padding: 0 var(--gutter, 20px) clamp(28px, 5vw, 56px);
  font-family: var(--serif);
  font-weight: 340;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--bone);
  text-shadow: 0 1px 16px rgba(7, 15, 12, 0.8);
}
.guide-body .guide-bleed-text small {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lagoon);
}

/* Photo galleries */
.guide-gallery {
  display: grid;
  gap: 10px;
  margin: 2.4em 0;
}
.guide-gallery.g2 { grid-template-columns: 1fr 1fr; }
.guide-gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.guide-gallery.is-wide {
  width: min(1100px, 100vw - 2 * var(--gutter, 20px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.guide-gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.guide-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.guide-gallery.tall img { aspect-ratio: 3 / 4; }
.guide-gallery figure:hover img { transform: scale(1.04); }
.guide-gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 28px 12px 10px;
  font-size: 0.8rem;
  color: var(--bone);
  background: linear-gradient(to top, rgba(7, 15, 12, 0.85), rgba(7, 15, 12, 0));
}
/* Mosaic: one big photo and two stacked */
.guide-gallery.mosaic {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.guide-gallery.mosaic figure:first-child { grid-row: 1 / 3; }
.guide-gallery.mosaic img { aspect-ratio: auto; min-height: 160px; }
.guide-gallery.mosaic figure:first-child img { aspect-ratio: 4 / 3.2; }
@media (max-width: 640px) {
  .guide-gallery.g3 { grid-template-columns: 1fr 1fr; }
  .guide-gallery.g3 figure:first-child { grid-column: 1 / 3; }
  .guide-gallery.mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .guide-gallery.mosaic figure:first-child { grid-row: auto; grid-column: 1 / 3; }
  .guide-gallery.mosaic img { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-gallery img { transition: none; }
  .guide-gallery figure:hover img { transform: none; }
}

/* Pull quote */
.guide-quote {
  margin: 2.4em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 2px solid var(--lagoon);
  font-family: var(--serif);
  font-weight: 340;
  font-style: italic;
  font-size: clamp(23px, 3.2vw, 31px);
  line-height: 1.35;
  color: var(--bone);
}
.guide-quote p { margin: 0; }
.guide-quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lagoon);
}

/* Good-to-know note */
.guide-note {
  margin: 2em 0;
  padding: 20px 24px;
  background: rgba(143, 184, 168, 0.08);
  border: 1px solid var(--lagoon-dim);
  border-radius: 4px;
  font-size: 0.97rem;
  line-height: 1.6;
}
.guide-note-title {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 8px;
}
.guide-note p:last-child, .guide-note ul:last-child { margin-bottom: 0; }

/* Quick facts strip */
.guide-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 2.4em 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.guide-fact {
  padding: 20px 18px;
  background: var(--ink);
  text-align: center;
}
.guide-fact strong {
  display: block;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.1;
  color: var(--lagoon);
  margin-bottom: 6px;
}
.guide-fact span { display: block; font-size: 0.85rem; line-height: 1.4; color: var(--bone-2); }

/* Photo call to action: "stay with us" card */
.guide-stay {
  position: relative;
  margin: 3em 0;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
}
.guide-stay.is-wide {
  width: min(1100px, 100vw - 2 * var(--gutter, 20px));
  margin-left: 50%;
  transform: translateX(-50%);
  min-height: 460px;
}
.guide-stay > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s ease;
}
.guide-stay:hover > img { transform: scale(1.03); }
.guide-stay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(7, 15, 12, 0.92) 0%, rgba(7, 15, 12, 0.7) 45%, rgba(7, 15, 12, 0.15) 100%);
}
.guide-stay-inner {
  padding: clamp(26px, 5vw, 52px);
  max-width: 560px;
}
.guide-stay-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 12px;
}
.guide-body .guide-stay h2, .guide-body .guide-stay h3 {
  margin: 0 0 0.45em;
  font-size: clamp(26px, 3.8vw, 38px);
  line-height: 1.12;
}
.guide-stay p { color: var(--bone); margin-bottom: 1.3em; }
.guide-stay .guide-btn { margin: 6px 10px 6px 0; }
@media (max-width: 640px) {
  .guide-stay::before { background: linear-gradient(to top, rgba(7, 15, 12, 0.94) 0%, rgba(7, 15, 12, 0.75) 55%, rgba(7, 15, 12, 0.25) 100%); }
  .guide-stay, .guide-stay.is-wide { min-height: 480px; }
}
@media (prefers-reduced-motion: reduce) { .guide-stay > img { transition: none; } .guide-stay:hover > img { transform: none; } }

/* Small inline call to action between sections */
.guide-inline-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 2.2em 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink-2);
  text-decoration: none !important;
}
.guide-inline-cta img {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
}
.guide-inline-cta span { display: block; font-size: 0.95rem; line-height: 1.45; color: var(--bone-2); }
.guide-inline-cta strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--bone);
  margin-bottom: 2px;
}
.guide-inline-cta:hover strong, .guide-inline-cta:focus-visible strong { color: var(--lagoon); }
.guide-inline-cta::after {
  content: "\2192";
  margin-left: auto;
  padding-right: 8px;
  font-size: 1.3rem;
  color: var(--lagoon);
}

/* Author box */
.guide-author {
  display: flex;
  gap: 20px;
  align-items: center;
  margin: 3em 0 1em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}
.guide-author img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--lagoon-dim);
}
.guide-author p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.guide-author strong { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; }

/* FAQ as soft cards */
.guide-faq { margin-top: 1em; }
.guide-faq dt {
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
}
.guide-faq dt:first-child { border-top: 0; padding-top: 0; }

/* Related reading as photo cards */
.guide-more {
  margin-top: 3em;
}
.guide-more-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 14px;
}
.guide-more .guide-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0; }
.guide-more .guide-card-title { font-size: 18px; margin-bottom: 0; }
.guide-more .guide-card-text { padding: 14px 16px 16px; }

/* Hub: featured card and tags */
.guide-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 52vw, 520px);
  margin: 2em 0;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  text-decoration: none !important;
}
.guide-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 1.2s ease;
}
.guide-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(7, 15, 12, 0.92) 0%, rgba(7, 15, 12, 0.4) 50%, rgba(7, 15, 12, 0.05) 100%);
}
.guide-feature:hover img { transform: scale(1.03); }
.guide-feature-text { padding: clamp(22px, 4vw, 44px); max-width: 680px; }
.guide-feature-title {
  display: block;
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.1;
  color: var(--bone);
  margin: 6px 0 10px;
}
.guide-feature-desc { display: block; color: var(--bone-2); line-height: 1.55; }
.guide-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 8px;
}
.guide-card { transition: border-color 0.3s ease, transform 0.3s ease; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--lagoon-dim); transform: translateY(-3px); }
.guide-card img { transition: transform 0.8s ease; }
.guide-card:hover img { transform: scale(1.04); }
.guide-card { position: relative; }
.guide-card > img { overflow: hidden; }
.guide-hub-section { margin-top: 3.2em; }
.guide-hub-section > h2 { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  .guide-card, .guide-card img, .guide-feature img { transition: none; }
  .guide-card:hover, .guide-card:hover img, .guide-feature:hover img { transform: none; }
}

/* Wider body for the hub so card grids breathe */
.guide-body.is-hub { max-width: 1100px; }
.guide-body.is-hub > p, .guide-body.is-hub > h2, .guide-body.is-hub > .guide-lede { max-width: 760px; }
.guide-body .guide-toc + h2 + p::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.6em;
  line-height: 0.82;
  padding: 0.06em 0.1em 0 0;
  color: var(--lagoon);
}
.guide-more .guide-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 480px) {
  .guide-inline-cta::after { display: none; }
  .guide-inline-cta img { width: 88px; height: 72px; }
}
@media (min-width: 1000px) {
  .guide-body.is-hub .guide-cards.five { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .guide-body.is-hub .guide-cards.five .guide-card-title { font-size: 19px; }
  .guide-body.is-hub .guide-cards.five .guide-card-text { padding: 14px 14px 18px; }
}
