/* ═══════════════════════════════════════════════════════════════════════
   GUIDES.CSS — Shared styles for all guide pages (/guides/ + /es/guias/)
   Loaded on every guide page, after styles.css.
   Single source of truth for prose, CTA banners, FAQ, and tables.
═══════════════════════════════════════════════════════════════════════ */

/* ── Prose typography ──────────────────────────────────────────────────── */
.prose p           { margin-bottom: 1.1em; line-height: 1.75; }
.prose h2          { margin-top: 1.6em;  margin-bottom: 0.55em; }
.prose h3          { margin-top: 1.2em;  margin-bottom: 0.3em; }
.prose ul,
.prose ol          { margin-bottom: 1.1em; }
.prose li          { margin-bottom: 0.4em; line-height: 1.7; }
.prose ul.guide-list,
.prose ol.guide-list { padding-left: 18px; }

/* ── Prose tables ──────────────────────────────────────────────────────── */
.prose table    { width: 100%; border-collapse: collapse; margin: 16px 0 20px; font-size: 0.97rem; background: transparent; overflow: hidden; border-radius: 8px; }
.prose thead th { background: #1a3a2a !important; color: #fff !important; font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: none; }
.prose tbody td { padding: 10px 14px; border-bottom: 1px solid rgba(10,10,10,0.04); }
.prose tbody tr:nth-child(even) { background: rgba(0,0,0,0.02); }
@media (max-width: 560px) {
  .prose table,
  .prose thead,
  .prose tbody,
  .prose th,
  .prose td,
  .prose tr  { display: block; }
  .prose thead { display: none; }
  .prose tbody tr { margin-bottom: 12px; border-radius: 8px; background: rgba(0,0,0,0.02); padding: 10px; }
  .prose tbody td { padding: 6px 10px; border: none; display: flex; justify-content: space-between; }
  .prose tbody td::before { content: attr(data-label); font-weight: 600; margin-right: 8px; color: rgba(0,0,0,0.6); }
}

/* ── CTA Banner ────────────────────────────────────────────────────────────
   Guide CTAs sit between sections so they use compact sizing (not the large
   56px 64px homepage default from styles.css). !important ensures this wins
   even over older .guides-page .cta-banner { padding: 56px 64px } rules that
   some pages may still have in their own <style> blocks.
─────────────────────────────────────────────────────────────────────────── */
.cta-banner { padding: 28px 36px !important; }
.cta-banner h3,
.cta-banner p { margin: 0; line-height: inherit; }
.cta-banner__content { flex: 1 1 auto; min-width: 0; }

/* White text — force even when a .guides-page custom property sets --text dark */
.cta-banner .cta-banner__content h3 {
  color: #fff !important;
  font-size: 26px !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}
.cta-banner .cta-banner__content p {
  color: rgba(255,255,255,.85) !important;
  font-size: 15px !important;
  margin-bottom: 0 !important;
}

/* Button group — named class */
.cta-banner__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Unnamed button wrapper divs (inline-styled) — stack + prevent squeezing */
.cta-banner > div:not(.cta-banner__content) {
  flex-direction: column;
  flex-shrink: 0;
}

/* Primary button inside CTA — white bg, accent text */
.cta-banner .btn:not(.btn--outline) {
  background: #fff !important;
  color: #5c8a6e !important;
  border: none !important;
}

/* Outline variant inside CTAs — transparent, white border */
.cta-banner .btn--outline {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.6) !important;
}
.cta-banner .btn--outline:hover {
  background: rgba(255,255,255,.1) !important;
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .cta-banner { padding: 24px 20px !important; flex-direction: column; gap: 18px; }
}

/* ── FAQ accordions ────────────────────────────────────────────────────── */
details.faq                          { border-bottom: 1px solid rgba(10,10,10,0.08); padding: 2px 0; }
details.faq summary                  { cursor: pointer; padding: 10px 0; display: list-item; font-weight: 600; line-height: 1.4; }
details.faq summary::-webkit-details-marker { color: #1a3a2a; }
details.faq p                        { margin: 4px 0 12px; }
details.faq:first-of-type            { margin-top: 16px; }

/* ── Guide table (weather, crowds, tours, accommodation) ───────────────── */
.guide-table                        { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 0.92rem; }
.guide-table th                     { background: #1a3a2a; color: #fff; text-align: left; padding: 9px 12px; font-weight: 600; }
.guide-table td                     { padding: 8px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.guide-table tr:nth-child(even) td  { background: #f8faf9; }
.guide-table tr:hover td            { background: #f0f5f2; }
@media (max-width: 640px) {
  .guide-table                      { display: block; }
  .guide-table thead                { display: none; }
  .guide-table tbody, .guide-table tr, .guide-table td { display: block; }
  .guide-table tr                   { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
  .guide-table td                   { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 12px; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; }
  .guide-table td::before           { content: attr(data-label); font-weight: 600; color: #374151; flex-shrink: 0; margin-right: 12px; min-width: 80px; }
  .guide-table tr:nth-child(even) td { background: transparent; }
}

/* ── Itinerary table ───────────────────────────────────────────────────── */
.itinerary-table                        { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.92rem; }
.itinerary-table th                     { background: #1a3a2a; color: #fff; text-align: left; padding: 8px 12px; font-weight: 600; }
.itinerary-table td                     { padding: 7px 12px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.itinerary-table tr:nth-child(even) td  { background: #f8faf9; }
@media (max-width: 640px) {
  .itinerary-table                      { display: block; }
  .itinerary-table thead                { display: none; }
  .itinerary-table tbody, .itinerary-table tr, .itinerary-table td { display: block; }
  .itinerary-table tr                   { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
  .itinerary-table td                   { display: flex; justify-content: space-between; align-items: flex-start; padding: 6px 12px; border-bottom: 1px solid #f0f0f0; font-size: 0.88rem; }
  .itinerary-table td::before           { content: attr(data-label); font-weight: 600; color: #374151; flex-shrink: 0; margin-right: 12px; min-width: 90px; }
  .itinerary-table tr:nth-child(even) td { background: transparent; }
}

/* ── Wildlife seasonal table ───────────────────────────────────────────── */
.wildlife-table                         { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.93rem; border-radius: 8px; overflow: hidden; }
.wildlife-table th                      { background: #1a3a2a; color: #fff; text-align: left; padding: 10px 14px; font-weight: 600; }
.wildlife-table td                      { padding: 9px 14px; border-bottom: 1px solid rgba(10,10,10,0.06); vertical-align: top; }
.wildlife-table td:first-child          { white-space: nowrap; width: 1%; }
.wildlife-table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
@media (max-width: 560px) {
  .wildlife-table, .wildlife-table thead, .wildlife-table tbody,
  .wildlife-table th, .wildlife-table td, .wildlife-table tr { display: block; }
  .wildlife-table thead               { display: none; }
  .wildlife-table tbody tr            { margin-bottom: 12px; border-radius: 8px; background: rgba(0,0,0,0.02); padding: 10px; }
  .wildlife-table tbody td            { padding: 5px 10px; border: none; }
  .wildlife-table tbody td:first-child { font-weight: 700; color: #1a3a2a; white-space: normal; }
}

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge          { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.78rem; font-weight: 600; white-space: nowrap; }
.badge--green   { background: #d1fae5; color: #065f46; }
.badge--yellow  { background: #fef3c7; color: #92400e; }
.badge--red     { background: #fee2e2; color: #991b1b; }

/* ── Day blocks (itinerary) ────────────────────────────────────────────── */
.day-block                  { border-left: 3px solid #1a3a2a; padding: 0 0 4px 16px; margin: 18px 0 24px; }
.day-block .day-label       { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #1a3a2a; margin-bottom: 2px; }
.day-block h3               { margin: 0 0 8px; font-size: 1.08rem; }
