:root {
  /* ───── Core brand tokens (your standard palette) ───── */
  --primary:       #2E8B57;
  --primary-dark:  #1E6140;
  --secondary:     #F4EBD0;
  --highlight:     #FFD700;
  --text-dark:     #2F2F2F;
  --text-light:    #7A7A7A;
  --bg:            #F9F9F2;
  --white:         #ffffff;
  --border:        #E0E0D1;
  --shadow:        rgba(0, 0, 0, 0.06);

  --transport-bg: rgba(46, 139, 87, 0.04);
  --transport-border: rgba(46, 139, 87, 0.14);
  --transport-accent: rgba(46, 139, 87, 0.45);
  --transport-icon-bg: rgba(46, 139, 87, 0.12);

  /* Radii */
  --radius:    14px;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-ms: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Transitions */
  --transition-fast:   all 0.15s ease;
  --transition-normal: all 0.2s ease;
  --transition-slow:   all 0.3s ease;

  /* Backgrounds */
  --bg-primary:   var(--bg);
  --bg-secondary: var(--white);
  --bg-tertiary:  #f4f5ec;       /* soft neutral derived from bg */
  --bg-hover:     #ecefe4;

  /* Text */
  --text-primary:   var(--text-dark);
  --text-secondary: var(--text-light);
  --text-muted:     #94a3b8;
  /* keep a “very light” variant distinct from your standard text-light */
  --text-light-soft: #cbd5e1;

  /* Borders & shadows (aliases) */
  --border-color: var(--border);
  --border-light: #f1f5f0;
  --shadow-sm:    0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:    0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:    0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:    0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: sans-serif;
  background: var(--bg);
  color: var(--text-dark);
}

.it-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 70px;
}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  margin-top: 18px;
}

.kicker{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: .85rem;
}

h1{
  margin: 10px 0 8px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.sub{
  margin:0;
  color: var(--text-light);
  line-height: 1.55;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 14px;
}

.chip{
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.75);
  font-weight: 600;
  font-size: .9rem;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 16px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn.primary{
  background: var(--primary);
  color: #fff;
}
.btn.primary:hover{ background: var(--primary-dark); }

.btn.ghost{
  background: rgba(255,255,255,.85);
  border-color: var(--border);
  color: var(--text-dark);
}
.btn.ghost:hover{
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  color: var(--primary-dark);
}

.mini-note{
  margin-top: 10px;
  color: var(--text-light);
  font-size: .95rem;
}

.card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 22px var(--shadow);
  padding: 14px;
}

.card-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.route-lines{
  display:grid;
  gap:8px;
}

.route-line{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.95);
}

.route-line strong{ font-weight: 900; }
.route-line span{ color: var(--text-light); }

.totals{
  display:grid;
  gap:8px;
}
.total-row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.95);
  font-weight: 700;
}
.fineprint{
  margin-top: 10px;
  color: var(--text-light);
  font-size: .9rem;
}

.section-head{ margin-top: 24px; }
.section-head h2{ margin:0 0 6px; font-size: 1.35rem; }
.section-head p{ margin:0; color: var(--text-light); }

.accordion{
  margin-top: 14px;
  display:grid;
  gap:10px;
}

.day{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  overflow:hidden;
  box-shadow: 0 10px 20px var(--shadow);
}

.day summary{
  list-style:none;
  cursor:pointer;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.day summary::-webkit-details-marker{ display:none; }

.day-title{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.day-title .top{
  font-weight: 900;
}
.day-title .meta{
  color: var(--text-light);
  font-size: .95rem;
}

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(46,139,87,0.10);
  color: var(--primary-dark);
}

.day-body{
  padding: 0 14px 14px;
  border-top:1px solid rgba(0,0,0,0.06);
}

.day-summary{
  margin: 10px 0 10px;
  color: var(--text-dark);
}

.step{
  display:grid;
  grid-template-columns: 78px 1fr;
  gap:10px;
  padding: 10px 0;
  border-top:1px dashed rgba(0,0,0,0.10);
}
.step:first-of-type{ border-top:0; }

.step .time{
  font-weight: 700;
  color: var(--primary-dark);
}
.step .title{
  font-weight: 700;
}
.step .details{
  color: var(--text-light);
  margin-top: 2px;
  line-height: 1.4;
}

.day-footer{
  margin-top: 10px;
  display:grid;
  gap:10px;
}
.transport{
  color: var(--text-light);
}
.costs{
  display:grid;
  gap:8px;
}
.costs .row{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.95);
  font-weight: 700;
}

.faq{
  margin-top: 26px;
  border-top:1px solid rgba(0,0,0,0.08);
  padding-top: 18px;
}
.faq details{
  border:1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  padding: 10px 12px;
  margin-top: 10px;
}
.faq summary{ cursor:pointer; font-weight: 700; }
.faq p{ margin: 8px 0 0; color: var(--text-light); line-height: 1.45; }

@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
}

/* --- Hero: one column --- */
.hero--onecol{
  grid-template-columns: 1fr !important;
}

/* Trip variables card */
.vars-card{
  margin-top: 14px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px var(--shadow);
  padding: 14px;
}

.vars-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}

.vars-title{
  font-weight: 700;
}

.vars-costs-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  cursor:pointer;
  font-weight: 700;
}
.vars-costs-btn:hover{
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  color: var(--primary-dark);
}

.vars-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:10px;
}

.var{
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  padding: 10px 12px;
}
.var-k{
  color: var(--text-light);
  font-size: .85rem;
  font-weight: 700;
}
.var-v{
  margin-top: 4px;
  font-weight: 700;
}

/* Bottom CTA section (not salesy, just a bridge) */
.bottom-cta{
  margin-top: 26px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 18px;
}
.bottom-cta-inner{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 22px var(--shadow);
  padding: 16px;
}
.bottom-cta-title{
  margin:0 0 6px;
  font-weight: 700;
  font-size: 1.25rem;
}
.bottom-cta-sub{
  margin:0 0 12px;
  color: var(--text-light);
}

/* Always respect the HTML hidden attribute */
[hidden] { display: none !important; }

/* Modal */
body.modal-open{ overflow:hidden; }

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
}

.modal{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
  transform: translateZ(0);
}

.modal-card{
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.98);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
  padding: 14px;
}

.modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.modal-title{ font-weight: 700; }
.modal-sub{ color: var(--text-light); font-size: .9rem; margin-top: 2px; }

.modal-close{
  border:1px solid var(--border);
  background: rgba(255,255,255,.9);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.modal-close:hover{
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  color: var(--primary-dark);
}

.totals--modal .total-row{
  padding: 10px 12px;
}

.total-row--grand{
  border-color: color-mix(in srgb, var(--primary) 55%, rgba(0,0,0,0.06));
}

.modal-actions{
  margin-top: 12px;
  display:flex;
  justify-content:flex-end;
}

/* Responsive */
@media (max-width: 900px){
  .vars-grid{ grid-template-columns: 1fr 1fr; }
}

@supports not (height: 100dvh){
  .modal-card{ max-height: calc(100vh - 36px); }
}

/* ===== Two-panel day-by-day layout (like real trips) ===== */
.days-shell{
  margin-top: 14px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}

/* Left column */
.day-nav{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px var(--shadow);
  overflow: hidden;
}

.day-nav__head{
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.day-nav__title{
  font-weight: 700;
  margin-bottom: 2px;
}

.day-nav__meta{
  color: var(--text-light);
  font-size: .92rem;
}

.day-buttons{
  padding: 10px;
  display: grid;
  gap: 8px;
}
/* ===== UPDATED button sizing + layout (shorter, date top-right, only Day trip tag) ===== */
.day-btn{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  padding: 10px 10px;                 /* tighter */
  cursor: pointer;

  display: flex;
  align-items: center;
  gap: 10px;

  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

.day-btn:hover{
  border-color: color-mix(in srgb, var(--primary) 55%, rgba(0,0,0,0.06));
  transform: translateY(-1px);
}

.day-btn.is-active{
  border-color: color-mix(in srgb, var(--primary) 70%, rgba(0,0,0,0.06));
  background: var(--primary,#2e8b57);
}

.day-btn__left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;                      /* KEY: left side grows to full width */
}

.day-btn__num{
  width: 26px;                        /* smaller */
  height: 26px;                       /* smaller */
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.9);
  flex: 0 0 auto;
}

.day-btn__txt{
  min-width: 0;
  flex: 1 1 auto;                      /* KEY: text column grows */
}

/* new row structure */
.day-btn__row1{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;                         /* KEY: allow ellipsis + flex */
}

.day-btn__city{
  flex: 1 1 auto;                      /* KEY: takes remaining space */
  min-width:0;
  font-weight: 700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.day-btn__date{
  flex: 0 0 auto;
  margin-left:auto;                    /* KEY: push to the far right */
  white-space:nowrap;
  color: var(--text-light);
  font-size: .88rem;
  font-weight: 700;
}

.day-btn__row2{
  margin-top: 6px;                    /* tighter */
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  width: 100%;
}

.day-btn__tag{
  padding: 2px 8px;                   /* tighter */
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.9);
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .78rem;                  /* smaller */
}

.day-btn__chev{
  flex: 0 0 auto;                     /* stays at the far end of the button */
  font-size: 18px;                    /* smaller */
  line-height: 1;
  color: rgba(0,0,0,0.35);
}

/* Right column */
.day-panel{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px var(--shadow);
  overflow: hidden;
}

.day-panel__card{
  padding: 16px;
}

.day-panel__title{
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.day-panel__summary{
  margin: 0 0 12px;
  color: var(--text-dark);
}

.day-panel__steps{
  margin-top: 6px;
}

.day-panel__empty{
  color: var(--text-light);
  padding: 10px 0;
}

.day-panel__footer{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Mobile: stack + horizontal day scroller */
@media (max-width: 900px){
  .days-shell{
    grid-template-columns: 1fr;
  }

  .day-buttons{
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px;
    scroll-snap-type: x mandatory;
  }

  .day-btn{
    min-width: 260px;
    scroll-snap-align: start;
  }

  .day-btn__city{
    max-width: 165px;                 /* mobile-friendly */
  }
}

.day-btn__lineRoute{
  margin-top: 4px;
  font-weight: 700;
  color: rgba(47,47,47,.72);
  font-size: .92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.day-btn.is-locked{
  opacity: .9;
}

.day-btn.is-locked .day-btn__tag{
  background: rgba(255,215,0,0.14);
  border-color: rgba(255,215,0,0.25);
  color: rgba(30,97,64,.95);
}

/* Right panel CTA */
.preview-cta{
  border: 1px dashed rgba(0,0,0,0.14);
  border-radius: 14px;
  background: rgba(244,235,208,0.35);
  padding: 14px;
}

.preview-cta__title{
  font-weight: 700;
  font-size: 1.05rem;
}

.preview-cta__sub{
  margin-top: 6px;
  color: var(--text-light);
  line-height: 1.45;
}

.preview-cta__actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-cta__fine{
  margin-top: 10px;
  color: rgba(122,122,122,.95);
  font-size: .92rem;
}

/* lock pill (used in JS) */
.day-btn__lock{
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(30,97,64,0.85);
  font-weight: 700;
  font-size: .8rem;
}

.day-btn__lock i{
  opacity: .7;
}

.day-btn.is-active .day-btn__lock i{
  color: rgba(255,255,255,0.9);
} 

.day-btn.is-active .day-btn__tag{
  color: var(--text-dark);
  background: var(--white);
} 

.day-btn.is-active .day-btn__lock{
  color: rgba(255,255,255,0.9);
}

/* ===== New unified header card ===== */
.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px var(--shadow);
  padding: 14px;
}

.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.hero-title{
  margin: 10px 0 6px;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.15;
}

.hero-sub{
  margin:0;
  color: var(--text-light);
  line-height: 1.5;
}

.hero-top__right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 10px;
  min-width: 190px;
}

/* smaller + lighter variables row */
.hero-vars{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.var-pill{
  display:inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 3px 10px;
  border-radius: 999px;
  border:1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.85);
  font-size: .8rem;
  color: rgba(47,47,47,.84);
  font-weight: 700;
}

.var-pill strong{
  font-weight: 700;
  color: rgba(47,47,47,.78);
}

/* make costs button a bit less loud */
.vars-costs-btn{
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--primary);
  cursor:pointer;
  font-weight: 700;
  white-space: nowrap;
}

.costs-btn-letter {
  color: var(--white);
}

.fa-solid.fa-receipt {
  color: var(--white);
}

.route-note{
  margin: 8px 0 0;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.4;
}

@media (max-width: 900px){
  .hero-top{
    flex-direction: column;
    align-items: stretch;
  }
  .hero-top__right{
    display:flex;
    justify-content:flex-start;
  }
}

/* ===== Day panel hero (like your real plans) ===== */

.day-hero{
  margin-bottom: 12px;
}

.day-banner {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    margin-top: -10px;
    margin-bottom: 20px;
}

.day-banner :is(h3,h4){
  margin: 0 0 6px;
  font-weight: 700;
}
.day-banner p{
  margin: 0;
  color: rgba(47,47,47,.78);
  line-height: 1.45;
}
.day-banner a{
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.day-banner a:hover{ text-decoration: underline; }

.day-hero__grid{
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 12px;
  align-items: stretch;
}

.day-overview{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 10px 12px;
}

.day-overview__title{
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.day-overview__summary{
  margin: 0;
  color: rgba(47,47,47,.78);
  line-height: 1.5;
  font-size: 0.9rem;
}

.day-overview__transport{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.12);
  color: var(--text-light);
  line-height: 1.45;
  font-size: 0.9rem;
}

.day-overview__transport strong{
  color: rgba(47,47,47,.82);
}

.day-hero__media{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
}

.day-hero__img{
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 240px;
  object-fit: cover;
  display: block;
}

.day-hero__attrib{
  padding: 8px 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: .86rem;
  color: rgba(122,122,122,.95);
  line-height: 1.35;
}
.day-hero__attrib a{
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}
.day-hero__attrib a:hover{ text-decoration: underline; }

/* Mobile */
@media (max-width: 900px){
  .day-hero__grid{
    grid-template-columns: 1fr;
  }
  .day-hero__img{
    max-height: 220px;
  }
}

.day-overview__divider{
  height: 1px;
  background: rgba(0,0,0,0.08);          /* or var(--border) if you prefer */
  margin: 12px 0;                         /* spacing like your screenshot */
}

.day-overview__section{
  padding: 10px 14px 10px 14px;
}

/* divider becomes full-width separator */
.day-overview__divider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 0 14px;
}

.day-hero__kicker{
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--text-dark);
}

/* ===== Day details (timeline steps like main app) ===== */
.day-details{
  margin-top: 14px;
}

.day-details__head{
  margin: 12px 0 10px;
}

.day-details__title{
  font-weight: 700;
  font-size: 1.15rem;
}

.day-details__rule{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-top: 10px;
}

.day-title__rule{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-top: 20px;
  margin-bottom: 30px;
}

/* Timeline layout: time | rail | card */
.timeline{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.tl-item{
  display: grid;
  grid-template-columns: 72px 18px 1fr;
  gap: 12px;
  align-items: start;
}

/* Green time pill */
.tl-time{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
}

/* Rail + dot */
.tl-rail{
  position: relative;
  width: 18px;
  min-height: 34px;
}

.tl-rail::before{
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(46,139,87,0.25);
  border-radius: 2px;
}

.tl-item.is-last .tl-rail::before{
  bottom: 50%;
}

.tl-dot{
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(46,139,87,0.10);
}

/* Step card */
.tl-card{
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.96);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 18px var(--shadow);
}

.tl-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text-dark);
}

.tl-details{
  font-size: 0.95rem;
}

.tl-emoji{
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(46,139,87,0.10);
  border: 1px solid rgba(46,139,87,0.14);
}

.tl-details{
  margin-top: 12px;
  margin-bottom: 12px;
  color: rgba(47,47,47,.78);
  line-height: 1.55;
}

.tl-mfact{
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.mFact-label{
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
}

.mFact-content{
  font-size: 0.8rem;
  color: var(--text-secondary, #555);
  display: inline;
}

/* If mFact sometimes comes as "<p>...</p>" or "<div>...</div>" */
.mFact-content p,
.mFact-content div{
  display: inline;
  margin: 0;
}

.tl-meta{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.tl-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 600;
  font-size: .76rem;
  color: rgba(30,97,64,.95);
}

.tl-pill--muted{
  color: rgba(47,47,47,.70);
}

/* Mobile tighten */
@media (max-width: 900px){
  .tl-item{
    grid-template-columns: 66px 16px 1fr;
    gap: 10px;
  }
  .tl-time{
    height: 32px;
    font-size: .9rem;
  }
}

/* Title + grid */
.trip-meta{
  width: 100%;
  max-width: 330px;              /* keeps it tidy in the yellow zone */
  text-align: left;              /* table should read left-aligned */
}

.trip-meta__title{
  font-size: .82rem;
  font-weight: 700;
  color: rgba(122,122,122,.9);
  margin-bottom: 6px;
}

/* The mini-table */
.trip-meta__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.08);  /* subtle separator from button */
}

.trip-meta__cell{
  padding: 6px 0;
}

.trip-meta__k{
  font-size: .78rem;
  font-weight: 700;
  color: rgba(122,122,122,.92);
  line-height: 1.1;
}

.trip-meta__v{
  margin-top: 3px;
  font-size: .95rem;
  font-weight: 700;
  color: rgba(47,47,47,.82);
  line-height: 1.15;
}

/* Mobile: put it under the title area, full width */
@media (max-width: 900px){
  .hero-top__right{
    align-items:flex-start;
    min-width: 0;
  }
  .trip-meta{
    max-width: none;
    width: 100%;
  }
}

.preview-marketing{
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  padding: 14px;
}

.preview-marketing__title{
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

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

.pm-item{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,.96);
}

.pm-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(46,139,87,0.10);
  border: 1px solid rgba(46,139,87,0.14);
}

.pm-h{
  font-weight: 700;
  margin-bottom: 2px;
}

.pm-p{
  color: rgba(47,47,47,.78);
  line-height: 1.4;
}

.preview-marketing__fine{
  margin-top: 10px;
  color: var(--text-light);
  font-size: .92rem;
}

/* Optional: 2 columns on wide screens */
@media (min-width: 980px){
  .preview-marketing__grid{
    grid-template-columns: 1fr 1fr;
  }
}

.day-btn.is-active .day-btn__city{
  color: var(--white);
}

.day-btn.is-active .day-btn__date{
  color: var(--white);
}

/* SEO block: keep it in DOM, but visually minimal */
.it-seo details {
  margin: 10px 0 0;
}

/* Hide the default summary row so the page doesn't show a second "Details" button */
.it-seo summary {
  display: none;
}

/* Optional: if you want a little spacing without showing content */
.it-seo__content {
  padding: 0;
}

/* New Details button next to Estimated costs */
.vars-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.vars-details-btn:hover {
  transform: translateY(-1px);
}

/* Modal body spacing */
#detailsBody {
  padding: 14px 0 4px;
}

#detailsBody h2, #detailsBody h3 {
  margin: 0 0 10px;
}

#detailsBody p, #detailsBody ul, #detailsBody ol {
  margin: 0 0 12px;
}

#detailsModal .modal-body {
  max-width: 720px;
}

#detailsModal h2 {
  font-size: 1.6rem;
  margin: 0 0 14px;
}

#detailsModal h3 {
  font-size: 1.15rem;
  margin: 22px 0 8px;
}

#detailsModal p,
#detailsModal li {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-dark);
}

#detailsModal ul,
#detailsModal ol {
  padding-left: 18px;
}

.modal-card--wide {
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}

/* Filename: /css/itineraryPage.css */

/* Details modal: nice reading layout */
#detailsModal .modal-card{
  width: min(860px, calc(100vw - 36px));
  padding: 0;
  overflow: hidden; /* header stays clean */
}

#detailsModal .modal-head{
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.98);
}

#detailsModal .modal-title {
  color: var(--white);
  font-size: 1.3rem;
}

#detailsModal .modal-sub {
  color: var(--white);
  font-size: 1rem;
}



#detailsModal .modal-body{
  max-height: calc(100dvh - 36px - 78px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(244,235,208,.35), rgba(255,255,255,0) 160px);
}

/* Center + constrain the article width */
#detailsModal .details-wrap{
  max-width: 760px;
  margin: 0 auto;
}

/* “Card” sections */
#detailsModal .details-card{
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  margin: 12px 0;
}

/* Typography + spacing */
#detailsModal h2{
  font-size: 1.6rem;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}
#detailsModal h3{
  font-size: 1.06rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
#detailsModal p{
  margin: 0;
  color: rgba(47,47,47,.86);
  line-height: 1.65;
}
#detailsModal ul,
#detailsModal ol{
  margin: 0;
  padding-left: 18px;
  color: rgba(47,47,47,.86);
  line-height: 1.6;
}

/* Improve the list look */
#detailsModal .details-list li{ margin: 6px 0; }
#detailsModal .details-days li{ margin: 7px 0; }

/* Small section kicker */
#detailsModal .details-kicker{
  font-size: .78rem;
  font-weight: 700;
  color: rgba(47,47,47,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

/* Filename: /css/itineraryPage.css */

/* ===== Details modal: reading width (no dead right space) ===== */
#detailsModal .modal-card{
  width: min(730px, calc(100vw - 36px));   /* <— key change */
  padding: 0;
  overflow: hidden; /* keep header clean */
}

#detailsModal .modal-head{
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--primary);
}

/* Scroll only the body */
#detailsModal .modal-body{
  max-height: calc(100dvh - 36px - 74px); /* modal padding - head */
  overflow: auto;
  -webkit-overflow-scrolling: touch;

  padding: 16px 18px 18px;
  background: linear-gradient(
    180deg,
    rgba(244,235,208,.22),
    rgba(255,255,255,0) 180px
  );
}

/* Center text, but don’t over-constrain */
#detailsModal .details-wrap{
  max-width: 720px;    /* matches your screenshot nicely */
  margin: 0 auto;
}

/* Lighter cards (less “boxed”) */
#detailsModal .details-card{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,0.06);     /* lighter than --border */
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.05);
  margin: 12px 0;
}

#detailsModal .details-kicker{
  margin-bottom: 6px;
}

.hero-intro {
  margin-top: 14px;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
}

.place-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);

  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.place-link a {
  font-weight: 500;
  font-size: 0.76rem;
  text-decoration: none;
  color: #1c7d54; /* your green */
}

.place-link a:hover {
  text-decoration: underline;
}

.place-link__pin{
  font-size: 0.8rem;   /* smaller than text */
  line-height: 1;
  opacity: 0.9;
  transform: translateY(0.5px); /* optional: visual alignment */
}

.place-link .ext{
  font-size: 0.85em;
  opacity: 0.7;
  margin-left: 4px;
}