/**
 * blog-article.css
 * Impeccable UI/UX styles for Pelicano Island Multilingual Pillar Articles & Hubs.
 * Pure modern CSS3, responsive, zero-layout-shift (CLS = 0).
 */

/* 1. Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--ocean, #00897b) 0%, var(--heist-red, #e05c4b) 100%);
  z-index: 10001;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* 2. Article Page Layout */
.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: start;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-article-main {
  min-width: 0;
  max-width: 100%;
}

/* 3. Sticky & Collapsible Table of Contents (TOC) */
.blog-toc-sidebar {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 20px rgba(0, 40, 30, 0.06);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
}

.blog-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.blog-toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark, #1a2332);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.blog-toc-title svg {
  width: 16px;
  height: 16px;
  color: var(--ocean, #00897b);
}

.blog-toc-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--gray, #697c8a);
}

.blog-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-toc-item {
  margin: 0;
  padding: 0;
}

.blog-toc-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.blog-toc-link:hover {
  color: var(--ocean, #00897b);
  background: rgba(0, 137, 123, 0.05);
}

.blog-toc-link.active {
  color: var(--ocean-dark, #00574c);
  font-weight: 600;
  background: rgba(0, 137, 123, 0.08);
  border-left-color: var(--ocean, #00897b);
  padding-left: 14px;
}

/* 4. Article Meta & Header Enhancements */
.blog-post-meta-details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

.blog-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.blog-meta-sep {
  opacity: 0.4;
}

/* 5. Responsive Comparison Tables */
.responsive-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0 40px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 18px rgba(0, 40, 30, 0.05);
  background: #ffffff;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  text-align: left;
  min-width: 620px;
}

.responsive-table th {
  background: var(--ocean, #00897b);
  color: #ffffff;
  padding: 14px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.responsive-table td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  vertical-align: middle;
  line-height: 1.55;
}

.responsive-table tr:last-child td {
  border-bottom: none;
}

.responsive-table tr:nth-child(even) {
  background: #fbfbfd;
}

.responsive-table tr:hover td {
  background: rgba(0, 137, 123, 0.04);
}

.table-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table-badge.highlight {
  background: rgba(224, 92, 75, 0.12);
  color: var(--heist-red, #e05c4b);
}

.table-badge.ocean {
  background: rgba(0, 137, 123, 0.12);
  color: var(--ocean-dark, #00574c);
}

/* 5b. Travel Note Summary Box Fix (Zero Flex-Column Breakage) */
.travel-note-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.travel-note-list li {
  position: relative !important;
  display: block !important;
  padding-left: 22px !important;
  font-size: 0.95rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
}

.travel-note-list li > span {
  display: inline !important;
}

.travel-note-list li::before {
  content: '•' !important;
  position: absolute !important;
  left: 2px !important;
  top: 0.05em !important;
  color: var(--ocean, #00897b) !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  line-height: 1.2 !important;
}

/* 6. Interactive 9-Item Packing Checklist */
.packing-checklist-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  margin: 36px 0 44px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 40, 30, 0.06);
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.checklist-title-wrap h3 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 700;
  color: var(--dark, #1a2332);
}

.checklist-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checklist-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(0, 137, 123, 0.1);
  color: var(--ocean-dark, #00574c);
  font-weight: 700;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.checklist-toggle-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 137, 123, 0.35);
  color: var(--ocean-dark, #00574c);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-toggle-all-btn:hover {
  background: var(--ocean, #00897b);
  border-color: var(--ocean, #00897b);
  color: #ffffff;
}

.checklist-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #edf2f7;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 24px;
}

.checklist-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ocean, #00897b), var(--heist-red, #e05c4b));
  border-radius: 50px;
  transition: width 0.3s ease;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--sand-light, #faf8f5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background: #ffffff;
  border-color: var(--ocean, #00897b);
  box-shadow: 0 4px 12px rgba(0, 137, 123, 0.08);
  transform: translateY(-1px);
}

.checklist-item.checked {
  background: rgba(0, 137, 123, 0.05);
  border-color: rgba(0, 137, 123, 0.3);
}

.checklist-checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.checklist-item:hover .checklist-checkbox-box {
  border-color: var(--ocean, #00897b);
}

.checklist-checkbox-box svg {
  width: 14px;
  height: 14px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checklist-item.checked .checklist-checkbox-box {
  background: var(--ocean, #00897b);
  border-color: var(--ocean, #00897b);
}

.checklist-item.checked .checklist-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.checklist-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(0, 137, 123, 0.1);
  color: var(--ocean-dark, #00574c);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}

.checklist-item.checked .checklist-num {
  background: rgba(0, 137, 123, 0.18);
  color: var(--ocean-dark, #00574c);
}

.checklist-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--dark, #1a2332);
}

.checklist-text strong {
  color: var(--dark, #1a2332);
  transition: color 0.2s ease;
}

.checklist-item.checked .checklist-text {
  color: #64748b;
}

.checklist-item.checked .checklist-text strong {
  text-decoration: line-through;
  color: #94a3b8;
}

/* 7. Step-by-Step Vertical Route Timeline (Post 4) */
.route-timeline,
.route-timeline-wrapper {
  position: relative;
  margin: 36px 0 44px 14px;
  padding-left: 28px;
  border-left: 2px dashed rgba(0, 137, 123, 0.35);
}

.route-timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.route-timeline-item:last-child {
  margin-bottom: 0;
}

.route-timeline-dot {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ocean, #00897b);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ocean, #00897b);
}

.route-timeline-card,
.route-timeline-content {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 3px 12px rgba(0, 40, 30, 0.04);
}

.route-timeline-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--heist-red, #e05c4b);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.route-timeline-title,
.route-timeline-content h4 {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: var(--dark, #1a2332) !important;
  margin: 0 0 6px !important;
}

.route-timeline-desc,
.route-timeline-content p {
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  color: #4b5563 !important;
  margin: 0 !important;
}

/* 8. Contextual Callout Cards */
.callout-highlight-card {
  background: linear-gradient(135deg, #f8fbfb 0%, #edf7f5 100%);
  border: 1px solid rgba(0, 137, 123, 0.2);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 34px 0;
  position: relative;
}

.callout-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 137, 123, 0.12);
  color: var(--ocean-dark, #00574c);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.callout-highlight-card h3 {
  margin: 0 0 10px !important;
  font-size: 1.25rem !important;
  color: var(--ocean-dark, #00574c) !important;
}

.callout-highlight-card p {
  margin: 0 0 16px !important;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #374151;
}

.callout-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ocean, #00897b);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.callout-action-btn:hover {
  background: var(--ocean-dark, #00574c);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 137, 123, 0.3);
}

.callout-action-btn.secondary {
  background: transparent;
  color: var(--ocean-dark, #00574c) !important;
  border: 1.5px solid var(--ocean, #00897b);
}

.callout-action-btn.secondary:hover {
  background: var(--ocean, #00897b);
  color: #ffffff !important;
}

/* 9. Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-sticky-info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray, #697c8a);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mobile-sticky-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ocean-dark, #00574c);
}

.mobile-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-sticky-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.mobile-sticky-btn.wa {
  background: #25d366;
  color: #ffffff;
}

.mobile-sticky-btn.book {
  background: var(--heist-red, #e05c4b);
  color: #ffffff;
}

/* 10. Responsive Breakpoints */
@media (max-width: 1024px) {
  .blog-article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .blog-toc-sidebar {
    position: static;
    max-height: none;
    margin-bottom: 24px;
  }

  .blog-toc-toggle {
    display: inline-flex;
  }

  .blog-toc-list.collapsed {
    display: none;
  }
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }

  .whatsapp-float {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .quick-booking-float {
    bottom: calc(134px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .packing-checklist-card {
    padding: 24px 18px;
  }
}
