/* ============================================================
   BASE & RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream:    #faf8f5;
  --sand:     #f0ebe1;
  --terracotta: #c0673a;
  --terracotta-dark: #a0522d;
  --navy:     #1a2744;
  --navy-light: #2e3f6f;
  --text:     #2d2d2d;
  --muted:    #777;
  --border:   #ddd6c8;
  --white:    #ffffff;
  --shadow:   0 2px 12px rgba(0,0,0,0.08);
  --radius:   10px;
  --timeline-width: 3px;
  --marker-size: 44px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 5.5rem 1.5rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 33, 65, 0.55) 0%, rgba(10, 18, 42, 0.90) 100%);
  opacity: 1;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.header-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a8b8d8;
  margin-bottom: 1rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

header h1 {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.header-tagline {
  font-size: 0.88rem;
  color: #8aa0be;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-bottom: 2.25rem;
}

/* Route stop chips */
.route-stops {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.route-arrow {
  color: #445570;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.route-city {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.route-home {
  color: #607080;
}

.route-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.route-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

/* ============================================================
   MAP SECTION
   ============================================================ */
.map-section {
  background: var(--navy);
  position: relative;
}

.map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a8b8d8;
}

.map-legend {
  display: flex;
  gap: 1.25rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  color: #a8b8d8;
}

#trip-map {
  height: 420px;
  width: 100%;
  z-index: 0;
}

/* Custom Leaflet marker styles */
.map-marker-city {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.map-marker-home {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2a7a6e;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15) !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.leaflet-popup-content {
  margin: 10px 14px !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}

.map-popup-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.map-popup-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.map-popup-dates {
  color: var(--terracotta);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  #trip-map { height: 280px; }
}

/* ============================================================
   MAIN / TIMELINE
   ============================================================ */
main {
  flex: 1;
  padding: 3rem 1.5rem 4rem;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: calc(var(--marker-size) + 1.5rem);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--marker-size) / 2);
  top: 0;
  bottom: 0;
  width: var(--timeline-width);
  background: linear-gradient(to bottom, var(--terracotta), var(--navy));
  border-radius: 99px;
}

/* ============================================================
   STOP (city entry)
   ============================================================ */
.stop {
  position: relative;
  margin-bottom: 2.5rem;
}

.stop:last-child {
  margin-bottom: 0;
}

/* Circle marker */
.stop-marker {
  position: absolute;
  left: calc(-1 * (var(--marker-size) + 1.5rem));
  top: 1.1rem;
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 50%;
  background: var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--terracotta);
  z-index: 1;
}

.stop-number {
  color: var(--white);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   TRANSIT CARDS (between city stops)
   ============================================================ */
.transit {
  position: relative;
  margin-bottom: 2.5rem;
}

.transit-marker {
  position: absolute;
  left: calc(-1 * (var(--marker-size) + 1.5rem) + 3px);
  top: 0.45rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 1;
}

.transit-card {
  background: var(--sand);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.transit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  gap: 1rem;
}

.transit-header:hover {
  background: #e8e0d2;
}

.transit-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.transit-route {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #2a7a6e;
}

.transit-duration {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  background: #2a7a6e;
  color: var(--white);
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  letter-spacing: 0.03em;
}

.transit-details {
  background: var(--sand);
  padding: 1rem 1.25rem;
}

.detail-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 600px) {
  .transit-marker {
    left: calc(-1 * (var(--marker-size) + 1rem) + 3px);
  }

  .detail-grid.three-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   HOME STOP (Honolulu departure / return)
   ============================================================ */
.home-marker {
  background: #2a7a6e;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px #2a7a6e;
}

.stop-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.stop-home .stop-card {
  border-left: 3px solid #2a7a6e;
}

.stop-home .stop-title h2 {
  color: #2a7a6e;
}

.stop-home .stop-country {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #2a7a6e;
  opacity: 0.8;
  font-style: italic;
}

/* ============================================================
   CARD
   ============================================================ */
.stop-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
  flex-wrap: wrap;
}

.stop-header:hover {
  background: var(--sand);
}

.stop-title {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.stop-title h2 {
  font-size: 1.5rem;
  font-weight: normal;
  color: var(--navy);
}

.city-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.city-link:hover {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.stop-country {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.stop-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dates {
  font-size: 1.05rem;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.dates em {
  color: #b0a090;
}

/* ============================================================
   TOGGLE BUTTON
   ============================================================ */
.toggle-btn {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.toggle-btn:hover {
  background: var(--terracotta-dark);
}

.toggle-btn.open {
  background: var(--navy);
}

.toggle-btn.small {
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
}

/* ============================================================
   DETAILS PANEL
   ============================================================ */
.stop-details {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-section.full-width {
  grid-column: 1 / -1;
}

.detail-section h3 {
  font-size: 0.95rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 0.3rem;
}

.detail-section p,
.detail-section li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
}

p.placeholder,
li.placeholder {
  color: #b0a898;
  font-style: italic;
}

.accom-detail {
  font-size: 1rem;
  color: var(--muted);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  margin-top: 0.2rem;
}

.detail-section a {
  color: var(--terracotta);
  text-decoration: none;
  font-size: 1.1rem;
}

.detail-section a:hover {
  text-decoration: underline;
}

.activity-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.activity-list li::before {
  content: '→ ';
  color: var(--terracotta);
}

/* ============================================================
   DAY TRIP SUB-CARD
   ============================================================ */
.day-trip {
  margin-top: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
}

.day-trip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  gap: 1rem;
}

.day-trip-header:hover {
  background: var(--sand);
}

.day-trip-header h3 {
  font-size: 1rem;
  font-weight: normal;
  color: var(--navy);
  font-family: 'Georgia', serif;
  text-transform: none;
  letter-spacing: normal;
  border: none;
  padding: 0;
  margin: 0;
}

.day-trip .stop-details {
  background: var(--cream);
  border-top: 1px dashed var(--border);
  padding: 1rem 1.2rem;
}

/* ============================================================
   CITY PAGES — HERO
   ============================================================ */
.city-hero {
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 3rem 1.5rem 3.5rem;
  position: relative;
  overflow: hidden;
}

.city-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(20, 33, 65, 0.60) 0%, rgba(12, 22, 48, 0.90) 100%);
  opacity: 1;
}

.city-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: #a8b8d8;
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--white);
}

.city-hero-label {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a8b8d8;
  margin-bottom: 0.6rem;
}

.city-hero-name {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: normal;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1.05;
}

.city-hero-name a {
  color: inherit;
  text-decoration: none;
}

.city-hero-name a:hover {
  text-decoration: underline;
  text-decoration-color: var(--terracotta);
  text-underline-offset: 0.2em;
}

.city-hero-accent {
  width: 48px;
  height: 3px;
  background: var(--terracotta);
  border-radius: 2px;
  margin: 0.75rem 0 1rem;
}

.city-hero-tagline {
  font-size: 1.1rem;
  color: #c0cce0;
  max-width: 480px;
  line-height: 1.6;
  font-style: italic;
}

/* City-to-city navigation chips */
.city-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 1.75rem;
}

.city-nav-link {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.city-nav-link:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.city-nav-current {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.city-nav-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* ============================================================
   CITY PAGES — MAIN CONTENT
   ============================================================ */
.city-main {
  flex: 1;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.city-section {}

.section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-title {
  font-size: 1.4rem;
  font-weight: normal;
  color: var(--navy);
  font-family: 'Georgia', serif;
}

.cards-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ============================================================
   CITY PAGES — CARDS
   ============================================================ */
.city-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.city-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-2px);
}

.card-photo {
  height: 170px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.city-card:hover .card-photo img {
  transform: scale(1.06);
}

.card-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  flex: 1;
  border-left: 4px solid var(--terracotta);
}

.card-emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  background: rgba(192, 103, 58, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--navy);
  font-family: 'Georgia', serif;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

/* ============================================================
   DAY-BY-DAY ITINERARY (city pages)
   ============================================================ */
.itinerary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toggle-all-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.toggle-all-btn:hover {
  background: var(--navy-light);
}

.day-itinerary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-card {
  border-left: 4px solid var(--terracotta);
}

.day-card .stop-header {
  padding: 1rem 1.5rem;
}

.day-label {
  font-size: 1.25rem;
  font-weight: normal;
  color: var(--navy);
  font-family: 'Georgia', serif;
}

.day-schedule {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.day-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.day-time {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.day-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0;
}

.day-list li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  padding-left: 1.2rem;
  position: relative;
}

.day-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--terracotta);
}

.day-list li strong {
  color: var(--navy);
  font-weight: 600;
}

.day-steps {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ============================================================
   CITY STOP — READ MORE LINK
   ============================================================ */
.stop-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--terracotta);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, gap 0.2s;
}

.stop-read-more:hover {
  border-bottom-color: var(--terracotta);
  gap: 0.65rem;
}

/* ============================================================
   VIDEO EMBED
   ============================================================ */
.video-section {
  margin-bottom: 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 620px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .city-hero-name {
    font-size: 2.6rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  color: #a8b8d8;
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .timeline {
    padding-left: calc(var(--marker-size) + 1rem);
  }

  .timeline::before {
    left: calc(var(--marker-size) / 2);
  }

  .stop-marker {
    left: calc(-1 * (var(--marker-size) + 1rem));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-section.full-width {
    grid-column: 1;
  }

  .stop-header {
    padding: 1rem;
  }
}
