/*
 * TobyCon — Packing & Planning Page (packing_june2026.php, etc.)
 * Itinerary, checklists, meal plan, print styles.
 * ─────────────────────────────────────────────────────────────
 */

/* ── Nav ── */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sand-dark);
  text-decoration: none;
}

.nav-links a:hover { color: var(--white); }

.nav-links .btn-nav {
  background: var(--sage);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: background 0.2s;
}

.nav-links .btn-nav:hover { background: var(--sage-dark); }

/* ── Page header ── */

.page-header {
  background: var(--ink);
  padding: 3rem 2rem 2.5rem;
  border-bottom: 3px solid var(--sage-dark);
}

.page-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.page-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.page-title span { color: var(--sage-light); }

.page-meta {
  font-size: 0.9rem;
  color: var(--sand-dark);
  font-weight: 400;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--sage-dark);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-print:hover { background: var(--sage); }

/* ── Page body ── */

.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Section ── */

.plan-section {
  margin-bottom: 3rem;
}

.plan-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 2px solid var(--sage-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

/* ── Two-column grid for desktop ── */

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.plan-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

/* ── Itinerary ── */

.itinerary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.itinerary-table tr {
  border-bottom: 1px solid var(--sand);
}

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

.itinerary-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: top;
}

.itinerary-day {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sage-dark);
  white-space: nowrap;
  width: 130px;
}

.itinerary-activity {
  color: var(--ink-light);
  line-height: 1.5;
}

/* ── Checklist ── */

.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: 0.9rem;
  color: var(--ink-light);
  line-height: 1.4;
}

.checklist li:last-child { border-bottom: none; }

.checklist .cb {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.15s;
}

.checklist .cb:checked {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checklist .item-text { flex: 1; }
.checklist .item-note {
  display: block;
  font-size: 0.78rem;
  color: var(--earth);
  margin-top: 0.1rem;
  font-style: italic;
}

/* ── Required badge ── */

.checklist li.required .item-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── Simple dot list (non-checklist) ── */

.dot-list {
  list-style: none;
}

.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: 0.9rem;
  color: var(--ink-light);
}

.dot-list li:last-child { border-bottom: none; }

.dot-list li::before {
  content: '—';
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Meal plan ── */

.meal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.meal-table tr { border-bottom: 1px solid var(--sand); }
.meal-table tr:last-child { border-bottom: none; }

.meal-table td { padding: 0.75rem 0.5rem; vertical-align: top; }

.meal-slot {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  white-space: nowrap;
  width: 150px;
}

.meal-name { color: var(--ink-light); }

/* ── Card wrappers ── */

.plan-card {
  background: var(--white);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(30, 34, 24, 0.07);
}

/* ── Print note banner ── */

.print-note {
  background: var(--sand-light);
  border: 1.5px solid var(--sand-dark);
  border-radius: 3px;
  padding: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--earth);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Responsive ── */

@media (max-width: 800px) {
  .plan-grid,
  .plan-grid-3 { grid-template-columns: 1fr; }
  .page-body { padding: 2rem 1rem 4rem; }
}

/* ══════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════ */

@media print {
  /* Hide site chrome */
  nav,
  .btn-print,
  .print-note { display: none !important; }

  /* Reset backgrounds */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body { background: white; font-size: 11pt; }

  .page-header {
    background: white !important;
    border-bottom: 2pt solid #4a6448;
    padding: 1rem 0 0.75rem;
  }

  .page-header-inner { display: block; }
  .page-eyebrow { color: #4a6448 !important; }
  .page-title { color: #1e2218 !important; font-size: 24pt; }
  .page-title span { color: #6a9e68 !important; }
  .page-meta { color: #555 !important; }

  .page-body { padding: 1rem 0 2rem; max-width: 100%; }

  /* Section titles */
  .plan-section-title {
    font-size: 13pt;
    border-bottom: 1pt solid #b5c4a1;
    page-break-after: avoid;
  }

  /* Keep sections together where possible */
  .plan-section { page-break-inside: avoid; margin-bottom: 1.5rem; }

  /* Flatten grids for print */
  .plan-grid,
  .plan-grid-3 { grid-template-columns: 1fr 1fr; gap: 1rem; }

  .plan-card { box-shadow: none; padding: 0.5rem 0; }

  /* Checkboxes: show as print boxes */
  .checklist .cb {
    -webkit-appearance: none;
    appearance: none;
    width: 11pt;
    height: 11pt;
    border: 1pt solid #666;
    border-radius: 1pt;
    display: inline-block;
    background: white !important;
    background-image: none !important;
  }

  /* Dot lists */
  .dot-list li::before { color: #4a6448 !important; }

  /* Table cells */
  .itinerary-day,
  .meal-slot { color: #4a6448 !important; }

  /* Avoid breaking tables across pages */
  table { page-break-inside: avoid; }

  /* Page break before major sections if needed */
  .page-break-before { page-break-before: always; }
}
