/* ============================================================
   PORTADVENTURER — ROUTE GUIDE STYLES  (2026)
   Extends style.css + article.css — never import standalone.
   ============================================================ */

/* ============================================================
   PACKING TIPS — flush list (no browser indent)
   ============================================================ */
#packing .article-body ul,
#packing ul {
  padding-left: 0;
  list-style: none;
}
#packing li {
  padding-left: 20px;
  position: relative;
}
#packing li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .8rem;
  line-height: 1.9;
}

/* ============================================================
   ROUTE DISCLAIMER NOTE
   ============================================================ */
.route-disclaimer {
  font-size: .875rem;
  color: var(--text-light);
  background: rgba(0,119,182,.06);
  border: 1px solid rgba(0,119,182,.15);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-disclaimer i { color: var(--primary); flex-shrink: 0; }

/* ============================================================
   ROUTE STOPS TIMELINE
   ============================================================ */
.route-stops-timeline {
  padding: 40px 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 8px -8px 8px;
}
.route-stops-timeline::-webkit-scrollbar { display: none; }

.route-stops-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: max-content;
  padding: 20px 8px 8px;
}

.route-stop-card {
  flex-shrink: 0;
  width: 196px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 16px;
  position: relative;
  transition: transform .25s var(--ease-out);
}
.route-stop-card:hover {
  transform: translateY(-3px);
}

/* Numbered circle */
.route-stop-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* EMBARK / DISEMBARK badge */
.route-stop-badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  margin-top: 4px;
}
.route-stop-badge--embark {
  background: rgba(82,183,136,.15);
  color: #2d8a5e;
  border: 1px solid rgba(82,183,136,.3);
}
.route-stop-badge--disembark {
  background: rgba(247,127,0,.12);
  color: var(--accent-dark, #c86200);
  border: 1px solid rgba(247,127,0,.3);
}

/* Port name */
.route-stop-port {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--surface-dark);
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Country */
.route-stop-country {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.route-stop-country i { font-size: .65rem; }

/* Time at port pill */
.route-stop-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-light);
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-top: 10px;
}
.route-stop-time i { color: var(--primary); }

/* Highlight bullets */
.route-stop-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}
.route-stop-highlights li {
  font-size: .76rem;
  color: var(--text);
  line-height: 1.5;
  padding: 3px 0 3px 14px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}
.route-stop-highlights li:last-child { border-bottom: none; }
.route-stop-highlights li::before {
  content: '·';
  position: absolute;
  left: 3px;
  color: var(--primary);
  font-weight: 900;
  font-size: .9rem;
  line-height: 1.4;
}

/* Connecting arrow between cards */
.route-stop-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 32px 8px 0;
  color: var(--border);
  font-size: .9rem;
}

/* Embark / Disembark card variants */
.route-stop-card.is-embark {
  border-color: var(--success);
}
.route-stop-card.is-embark .route-stop-num {
  background: var(--success);
}

.route-stop-card.is-disembark {
  border-color: var(--accent);
}
.route-stop-card.is-disembark .route-stop-num {
  background: var(--accent);
}

/* ============================================================
   PORT HIGHLIGHTS GRID (3-col)
   ============================================================ */
.route-port-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.route-port-highlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out);
}
.route-port-highlight:hover {
  transform: translateY(-4px);
}

.route-port-highlight-img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2f4a 0%, #0d4a6e 100%);
  position: relative;
  overflow: hidden;
}
.route-port-highlight-img .img-placeholder {
  border-radius: 0;
  background: linear-gradient(135deg, #1a3a5c 0%, #0d5880 100%);
}

.route-port-highlight-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(13, 27, 42, .75);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}
.route-port-highlight-pill i { color: var(--accent); }

.route-port-highlight-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.route-port-highlight-body h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--surface-dark);
  margin-bottom: 10px;
  line-height: 1.25;
}
.route-port-highlight-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}
.route-port-highlight-body ul li {
  font-size: .82rem;
  color: var(--text);
  line-height: 1.6;
  padding: 4px 0 4px 18px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}
.route-port-highlight-body ul li:last-child { border-bottom: none; }
.route-port-highlight-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: .8rem;
}

.route-port-highlight-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: auto;
  transition: color .2s, gap .2s;
}
.route-port-highlight:hover .route-port-highlight-link {
  color: var(--accent);
  gap: 9px;
}

/* ============================================================
   CRUISE LINES GRID (3-col)
   ============================================================ */
.route-lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.route-line-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out);
}
.route-line-card:hover {
  transform: translateY(-5px);
}
.route-line-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0,119,182,.15);
}

.route-line-card-header {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #0a3d62 100%);
  padding: 20px 20px 18px;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
}
.route-line-card-header > i {
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.route-line-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 3px;
}
.route-line-ship {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  font-weight: 500;
}
.route-line-featured-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.route-line-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-line-card-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.route-line-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.route-line-price-from {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.route-line-price-value {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--surface-dark);
  line-height: 1;
}
.route-line-price-value small {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
}

.route-line-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.route-line-features li {
  font-size: .83rem;
  color: var(--text);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-line-features li i {
  color: var(--success);
  font-size: .75rem;
  flex-shrink: 0;
}

.route-line-summary {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

/* Affiliate button (shared) */
.btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .875rem;
  transition: var(--transition);
  margin-top: auto;
  text-align: center;
}
.btn-affiliate:hover {
  background: #005a8e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   PORT ENTRIES (per-port sections)
   ============================================================ */
.route-port-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.route-port-entry-header {
  background: linear-gradient(135deg, var(--surface-dark) 0%, #0a3d62 100%);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.route-port-entry-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
}
.route-port-entry-header h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
.route-port-entry-time {
  margin-left: auto;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.route-port-entry-time i { color: var(--accent); }

.route-port-entry-body,
.route-port-entry > p,
.route-port-entry > ul,
.route-port-entry > ol,
.route-port-entry > .article-callout,
.route-port-entry > .route-port-highlight-link {
  padding: 0 24px;
  background: var(--bg-card);
}
.route-port-entry > p:first-of-type { padding-top: 20px; }
.route-port-entry > p:last-of-type  { padding-bottom: 4px; }
.route-port-entry > .route-port-highlight-link {
  display: inline-flex;
  padding: 12px 24px 20px;
}
.route-port-entry > .article-callout { margin: 0 24px 16px; padding: 14px 18px; }
.route-port-entry-body p { margin-bottom: 14px; }

.route-port-entry-sub {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
  font-family: var(--font-body);
}

/* ============================================================
   TOP HIGHLIGHTS GRID (4-col)
   ============================================================ */
.route-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.route-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  text-align: center;
  transition: transform .3s var(--ease-out);
}
.route-highlight-card:hover {
  transform: translateY(-4px);
}

.route-highlight-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.2rem;
}
.route-highlight-icon--cultural { background: rgba(0,119,182,.1); color: var(--primary); }
.route-highlight-icon--scenic   { background: rgba(82,183,136,.12); color: #2d8a5e; }
.route-highlight-icon--food     { background: rgba(247,127,0,.12); color: var(--accent); }
.route-highlight-icon--unique   { background: rgba(156,39,176,.1); color: #7b1fa2; }

.route-highlight-card h3 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--surface-dark);
  margin-bottom: 10px;
}
.route-highlight-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}
.route-highlight-card ul li {
  font-size: .8rem;
  color: var(--text);
  line-height: 1.5;
  padding: 4px 0 4px 16px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}
.route-highlight-card ul li:last-child { border-bottom: none; }
.route-highlight-card ul li::before {
  content: '·';
  position: absolute;
  left: 3px;
  color: var(--primary);
  font-weight: 900;
  font-size: .9rem;
  line-height: 1.4;
}

/* ============================================================
   EXCURSIONS
   ============================================================ */
.route-excursions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.route-excursion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s var(--ease-out);
}
.route-excursion-card:hover {
  transform: translateY(-3px);
}

.route-excursion-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.route-excursion-header h4 {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  color: var(--surface-dark);
  margin: 0;
}

.route-excursion-port {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  background: rgba(0,119,182,.08);
  border: 1px solid rgba(0,119,182,.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.route-excursion-details {
  padding: 16px 20px 20px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.route-excursion-details li {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.route-excursion-details li i {
  color: var(--primary);
  font-size: .8rem;
  margin-top: 3px;
  flex-shrink: 0;
}
/* Button spacing inside excursion card */
.route-excursion-card > a[href] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 20px 20px;
}

/* ============================================================
   PROS & CONS
   ============================================================ */
.route-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.route-pros,
.route-cons {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.route-pros h3,
.route-cons h3 {
  padding: 14px 20px;
  margin: 0;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-pros h3 {
  background: rgba(82,183,136,.12);
  color: #2d8a5e;
}
.route-cons h3 {
  background: rgba(220,53,69,.1);
  color: #b91c2c;
}

.route-pros ul,
.route-cons ul {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  background: var(--bg-card);
}
.route-pros ul li,
.route-cons ul li {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.55;
  padding: 5px 0 5px 22px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}
.route-pros ul li:last-child,
.route-cons ul li:last-child { border-bottom: none; }
.route-pros ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2d8a5e;
  font-weight: 700;
  font-size: .8rem;
}
.route-cons ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #b91c2c;
  font-weight: 700;
  font-size: .8rem;
}

/* ============================================================
   RIGHT FOR YOU
   ============================================================ */
.route-right-for-you {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

.route-rfy-col {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.route-rfy-col h3 {
  padding: 14px 20px;
  margin: 0;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-rfy-great h3 {
  background: rgba(0,119,182,.08);
  color: var(--primary);
}
.route-rfy-not h3 {
  background: rgba(247,127,0,.08);
  color: var(--accent);
}

.route-rfy-col ul {
  list-style: none;
  padding: 16px 20px;
  margin: 0;
  background: var(--bg-card);
}
.route-rfy-col ul li {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.55;
  padding: 5px 0 5px 22px;
  position: relative;
  border-bottom: 1px solid var(--bg-light);
}
.route-rfy-col ul li:last-child { border-bottom: none; }
.route-rfy-great ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
}
.route-rfy-not ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
}

/* ============================================================
   INTERNAL LINKS (port guide links)
   ============================================================ */
.route-internal-links {
  margin: 8px 0 28px;
}
/* Override article.css ul padding-left: 24px */
.article-body .route-port-links-list {
  padding-left: 0;
  margin-bottom: 0;
}
.route-port-links-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.route-port-links-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: border-color .2s, background .2s, transform .2s;
}
.route-port-links-list li a:hover {
  border-color: var(--primary);
  background: rgba(0,119,182,.04);
  transform: translateY(-2px);
}
.route-port-links-list li a i {
  color: var(--accent);
  font-size: .75rem;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large tablet: 2-col grids */
@media (max-width: 1024px) {
  .route-port-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-lines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-lines-grid .route-line-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
  .route-port-links-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / Mobile: 1-col grids, timeline always scrolls */
@media (max-width: 700px) {
  .route-port-highlights-grid {
    grid-template-columns: 1fr;
  }
  .route-highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .route-lines-grid {
    grid-template-columns: 1fr;
  }
  .route-lines-grid .route-line-card:last-child {
    grid-column: auto;
    max-width: none;
  }
  .route-pros-cons,
  .route-right-for-you {
    grid-template-columns: 1fr;
  }
  .route-port-links-list {
    grid-template-columns: 1fr 1fr;
  }
  .route-stop-card {
    width: 172px;
  }
  .route-stop-port { font-size: .9rem; }
}

@media (max-width: 480px) {
  .route-highlights-grid {
    grid-template-columns: 1fr;
  }
  .route-port-links-list {
    grid-template-columns: 1fr;
  }
  .route-port-entry-header {
    flex-wrap: wrap;
  }
  .route-port-entry-time {
    margin-left: 0;
  }
}
