/* ═══════════════════════════════════════════
   Shared itinerary blocks (day-by-day, info boxes,
   lists, EVR/exp, optional). Load after style.css.
   Each page :root should define --accent and --accent-dim.
═══════════════════════════════════════════ */

/* ── DAY CARDS ──────────────────────── */
.days-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  background: var(--border);
}
.day-card {
  background: var(--paper);
  padding: 1.75rem;
  transition: background 0.2s;
}
.day-card:hover { background: var(--warm); }
.day-card.drive-day { background: var(--warm); }
.day-card.drive-day:hover { background: #e8e1d0; }
.day-card.permit-day { border-left: 3px solid var(--accent); }

.day-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.day-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.day-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.day-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: flex-start; }
.day-pill {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 1px;
  border: 1px solid rgba(134, 97, 24, 0.25);
  background: rgba(134, 97, 24, 0.1);
  color: var(--accent);
}
.day-pill.green {
  border-color: rgba(61, 107, 61, 0.25);
  background: rgba(61, 107, 61, 0.08);
  color: #3d6b3d;
}
.day-pill.muted {
  border-color: var(--border);
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}
.day-pill.permit {
  border-color: rgba(181, 49, 43, 0.25);
  background: rgba(181, 49, 43, 0.08);
  color: #b5312b;
}
.day-pill.blue {
  border-color: rgba(59, 111, 148, 0.25);
  background: rgba(59, 111, 148, 0.07);
  color: #3b6f94;
}

.day-desc {
  font-size: 0.875rem;
  color: #3a3530;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.day-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (max-width: 480px) {
  .day-detail-grid { grid-template-columns: 1fr; }
}

.day-detail {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-lt);
  padding: 0.65rem;
  font-size: 0.8rem;
  color: #3a3530;
  line-height: 1.55;
}
.day-detail strong {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.hl-list,
.highlights-list {
  list-style: none;
  margin: 0.75rem 0;
  padding: 0;
  font-size: 0.85rem;
  color: #3a3530;
  line-height: 1.65;
}
.hl-list li,
.highlights-list li {
  padding: 0.35rem 0 0.35rem 1rem;
  position: relative;
}
.hl-list li::before,
.highlights-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── INFO BOXES ─────────────────────── */
.drive-box,
.transit-box {
  border-left: 2px solid #3d6b3d;
  background: rgba(61, 107, 61, 0.04);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  color: #3a3530;
}
.drive-box strong,
.transit-box strong { color: #3d6b3d; }

.gondola-box {
  border-left: 2px solid #3b6f94;
  background: rgba(59, 111, 148, 0.04);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.75rem;
  color: #3a3530;
}
.gondola-box strong { color: #3b6f94; }

.camp-box {
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: #3a3530;
}
.camp-title {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.warn-box,
.warning-box {
  border-left: 2px solid #9a5322;
  background: rgba(154, 83, 34, 0.06);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: #3a3530;
}
.warn-box strong,
.warning-box strong { color: #9a5322; }

.permit-block {
  border: 1px solid rgba(181, 49, 43, 0.3);
  background: rgba(181, 49, 43, 0.04);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.permit-title {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b5312b;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.camp-box.fcfs { border-color: #9a5322; background: rgba(154, 83, 34, 0.07); }
.camp-box.fcfs .camp-title { color: #9a5322; }
.camp-box.fcfs strong { color: #9a5322; }

/* ── OPTIONAL HIKE ──────────────────── */
.optional-hike {
  border: 1px dashed rgba(74, 127, 165, 0.4);
  padding: 1.5rem;
  background: rgba(74, 127, 165, 0.03);
  position: relative;
}
.optional-label {
  position: absolute;
  top: -0.55rem;
  left: 1rem;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3b6f94;
  background: var(--paper);
  padding: 0 0.5rem;
}

/* ── TRIP PHOTO ─────────────────────── */
.trip-photo { margin: 1.25rem 0; }
.trip-photo img { width: 100%; height: auto; display: block; }
.trip-photo-caption {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-style: italic;
}

.day-title a {
  color: inherit;
  text-decoration: none;
}
.day-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ── EVR BOX ────────────────────────── */
.evr-box {
  border-radius: 1px;
  overflow: hidden;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
}
.evr-header {
  background: #2a5c8a;
  padding: 0.55rem 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}
.evr-body { background: #edf3f8; padding: 0.9rem 1rem; color: #2a3a4a; }
.evr-body p { margin: 0; }

/* ── EXP BOX ────────────────────────── */
.exp-box {
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.6;
  border: 1px solid rgba(42, 107, 61, 0.18);
  background: #edf8f0;
  box-shadow: 0 1px 3px rgba(42, 107, 61, 0.07);
}
.exp-body {
  background: transparent;
  padding: 0.45rem 1.15rem 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.exp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(42, 107, 61, 0.22);
  flex-shrink: 0;
  object-fit: cover;
}
.exp-body p { color: #2a3a2e; font-style: italic; margin: 0; }

/* ── CONTENT PROMO (inline advert) ───── */
.content-promo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.15rem;
  border-radius: 6px;
  background: linear-gradient(165deg, #1e3d5c 0%, #1a2f4a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.content-promo-art {
  flex-shrink: 0;
  width: 104px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}
.content-promo-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.content-promo-body {
  min-width: 0;
  flex: 1;
}
.content-promo-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}
.content-promo-heading-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}
.content-promo-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: #f5f1ea;
  line-height: 1.25;
  margin: 0;
}
.content-promo-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(245, 241, 234, 0.88);
  margin: 0 0 0.65rem;
}
.content-promo-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8d4f0;
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  flex-shrink: 0;
  border: 1px solid rgba(168, 212, 240, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.content-promo-cta:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}
.content-promo-cta:focus-visible {
  outline: 2px solid #a8d4f0;
  outline-offset: 3px;
}

/* Slight inset around promo logo on tablet / large phone (compact strip uses rules below) */
@media (max-width: 768px) and (min-width: 521px) {
  .content-promo-art {
    padding: 0.35rem;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  .content-promo {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.65rem;
    margin: 0;
  }
  .content-promo-art {
    width: 82px;
    height: 82px;
    align-self: center;
    padding: 0.35rem;
    box-sizing: border-box;
  }
  /* Keep copy beside the image; cap text column to image height so the strip doesn’t grow downward */
  .content-promo-body {
    max-height: 82px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    padding-right: 2px;
    scrollbar-width: thin;
  }
  .content-promo-eyebrow {
    margin-bottom: 0;
  }
  .content-promo-heading-row {
    margin-bottom: 0.15rem;
    gap: 0.35rem 0.5rem;
  }
  .content-promo-title {
    font-size: 1rem;
    line-height: 1.15;
    margin: 0;
  }
  .content-promo-text {
    font-size: 0.72rem;
    line-height: 1.3;
    margin: 0;
  }
  .content-promo-cta {
    padding: 0.2rem 0.45rem;
    font-size: 0.58rem;
  }
}

@media (max-width: 400px) {
  .content-promo {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .content-promo-art {
    width: 66px;
    height: 66px;
    padding: 0.3rem;
    box-sizing: border-box;
  }
  .content-promo-body {
    max-height: 66px;
  }
}

/* ─── Shared mobile (itinerary widgets) ─── */
@media (max-width: 768px) {
  .camp-box,
  .drive-box,
  .warn-box,
  .warning-box,
  .permit-block,
  .transit-box,
  .gondola-box {
    padding: 0.7rem 0.85rem;
    font-size: 0.86rem;
  }
  .evr-box { font-size: 0.88rem; }
  .evr-body { padding: 0.75rem 0.85rem; }
}

@media (max-width: 560px) {
  .camp-box,
  .drive-box,
  .warn-box,
  .warning-box,
  .permit-block,
  .transit-box,
  .gondola-box {
    font-size: 0.82rem !important;
    padding: 0.5rem 0.65rem !important;
  }
  .camp-title,
  .permit-title { font-size: 0.68rem !important; }
  .optional-label { font-size: 0.68rem !important; }
}

@media (max-width: 400px) {
  .day-label,
  .day-pill,
  .hike-stat,
  .island-pill,
  .city-pill { font-size: 0.7rem !important; }
  .day-sub,
  .hike-location,
  .island-subtitle,
  .city-subtitle { font-size: 0.9rem !important; }
  .day-desc,
  .hike-desc,
  .island-desc,
  .city-desc,
  .hl-list,
  .highlights-list { font-size: 0.94rem !important; line-height: 1.65 !important; }
  .day-detail,
  .hike-detail,
  .island-detail,
  .city-detail { font-size: 0.9rem !important; }
  .day-detail strong,
  .hike-detail strong,
  .island-detail strong,
  .city-detail strong { font-size: 0.7rem !important; }
}

/* ── Itinerary “ask a question” FAB + modal (WhatsApp via /wa) ── */
html.itinerary-q-modal-open {
  overflow: hidden;
}

.itinerary-q-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--accent, #866118);
  color: #fdfbf6;
  font-family: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
}
.itinerary-q-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}
.itinerary-q-fab:hover {
  filter: brightness(1.08);
}
.itinerary-q-fab:focus-visible {
  outline: 2px solid var(--accent-lt, #ddb33a);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .itinerary-q-fab {
    transition: none;
  }
}

.itinerary-q-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
}
.itinerary-q-modal[hidden] {
  display: none;
}

.itinerary-q-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 13, 12, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.itinerary-q-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  background: var(--paper, #f7f3eb);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: 2px;
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.itinerary-q-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink, #2c2419);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.itinerary-q-hint {
  font-size: 0.82rem;
  color: var(--muted, #6b6358);
  margin: 0 0 1rem;
  line-height: 1.45;
}

.itinerary-q-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent, #866118);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.itinerary-q-text {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink, #2c2419);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 2px;
  background: #fff;
  resize: vertical;
  min-height: 6rem;
  margin-bottom: 1rem;
}
.itinerary-q-text:focus {
  outline: none;
  border-color: var(--accent, #866118);
  box-shadow: 0 0 0 2px var(--accent-dim, rgba(134, 97, 24, 0.15));
}

.itinerary-q-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.itinerary-q-btn {
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.itinerary-q-btn-secondary {
  background: transparent;
  color: var(--muted, #6b6358);
  border-color: var(--border, rgba(0, 0, 0, 0.15));
}
.itinerary-q-btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink, #2c2419);
}

.itinerary-q-btn-primary {
  background: var(--accent, #866118);
  color: #fdfbf6;
  border-color: var(--accent, #866118);
  font-weight: 600;
}
.itinerary-q-btn-primary:hover {
  filter: brightness(1.06);
}
.itinerary-q-btn:focus-visible {
  outline: 2px solid var(--accent-lt, #ddb33a);
  outline-offset: 2px;
}

/* ── Hero share row (itinerary pages) ── */
.page-hero-content:has(.hero-share) .page-hero-sub {
  margin-bottom: 0.65rem;
}

.hero-share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.65rem;
}

.hero-share-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(240, 235, 224, 0.28);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(240, 235, 224, 0.88);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hero-share-btn:hover {
  background: rgba(0, 0, 0, 0.28);
  color: #f5f2ea;
  border-color: rgba(240, 235, 224, 0.45);
}

.hero-share-btn:focus-visible {
  outline: 2px solid var(--accent-lt, #ddb33a);
  outline-offset: 3px;
}

.hero-share-btn:active {
  transform: scale(0.96);
}

.hero-share-copy.is-copied {
  border-color: rgba(127, 186, 127, 0.75);
  color: #e8f5e8;
  background: rgba(45, 74, 45, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .hero-share-btn {
    transition: none;
  }
  .hero-share-btn:active {
    transform: none;
  }
}
