/* Rocky's Ride — expedition loop: story · route · print */

.expedition-loop{
  padding:72px 0;
  background:var(--char);
}
.expedition-loop-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 32px;
}
.expedition-loop-head .kicker{color:var(--jacket-light);}
.expedition-loop-title{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(28px, 3vw, 36px);
  line-height:1.12;
  color:var(--offwhite);
  margin-top:10px;
}
.expedition-loop-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  max-width:1180px;
  margin:0 auto;
}

.expedition-card{
  border:1px solid var(--char-soft);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:border-color .2s ease;
}
a.expedition-card:hover{border-color:rgba(91,127,174,.55);}
.expedition-card--here{
  border-color:rgba(243,241,234,.35);
  background:rgba(255,255,255,.06);
}
.expedition-card-media{
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--char-soft);
}
.expedition-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
/* Malawi magazine card — portrait canoe on Lake Malawi (20251123_060419_df7ntu). */
.expedition-card-media--focus-canoe img{object-position:center 32%;}
/* Lesotho story card: keep both Basotho heads in frame in 16:10 crop. */
.expedition-card-media--focus-lesotho-heads img{object-position:center 22%;}
.expedition-card-body{
  padding:26px 28px 28px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.expedition-card-body .btn{margin-top:auto;align-self:flex-start;}
.expedition-card h3{
  font-family:var(--display);
  color:var(--offwhite);
  font-size:26px;
  line-height:1.15;
  margin:10px 0 10px;
}
.expedition-card p{
  color:#d8d4c8;
  font-size:16px;
  line-height:1.68;
  margin-bottom:16px;
}
.expedition-card p a{
  color:var(--jacket-light);
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.expedition-card p a:hover{color:var(--offwhite);}
.expedition-card-tag{
  display:inline-block;
  font-family:var(--label);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:700;
  color:#cfc8b6;
  margin-bottom:6px;
  line-height:1.45;
  max-width:100%;
}
.expedition-card--here .expedition-card-tag{color:var(--jacket-light);}

.expedition-map{
  padding:72px 0;
  border-top:1px solid var(--line);
  background-color:#f1eee6;
  background-image:
    linear-gradient(rgba(243,241,234,.86), rgba(243,241,234,.86)),
    url("/assets/img/topo-map-bg.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.expedition-map .wrap{
  display:grid;
  grid-template-columns:1fr 1.35fr;
  gap:40px;
  align-items:start;
}
.expedition-map-text .kicker{margin-bottom:8px;}
.expedition-map-text h2{
  font-family:var(--display);
  font-weight:700;
  font-size:clamp(28px, 3vw, 34px);
  line-height:1.12;
  color:var(--char);
  margin-bottom:14px;
}
.expedition-map-text p{
  font-size:17px;
  line-height:1.7;
  color:var(--ink);
  margin-bottom:20px;
  max-width:420px;
}
.expedition-map .map-wrap{
  margin-bottom:14px;
  background:#fff;
  box-shadow:0 8px 28px rgba(26,28,24,.08);
}
.expedition-map .map-actions{justify-content:flex-start;}

/* Route guide: one embed at #map-gpx; optional CTA band (no second iframe) before expedition-loop */
.expedition-map--cta{
  background-image:none;
}
.expedition-map--cta .wrap{
  display:block;
  max-width:640px;
  margin:0 auto;
  text-align:center;
}
.expedition-map--cta .expedition-map-text p{
  max-width:none;
  margin-left:auto;
  margin-right:auto;
}
.expedition-map--cta .map-actions{
  justify-content:center;
  margin-top:4px;
}

/* Route guide embed — taller than story-side map */
.route-section#map-gpx .map-wrap{min-height:700px;}
.route-section#map-gpx .map-actions{margin-top:4px;}

.map-wrap{
  min-height:520px;
  overflow:hidden;
  margin-bottom:18px;
  border-radius:10px;
}
.map-wrap iframe{
  display:block;
  border:none;
  border-radius:10px;
}

.video-embed{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border-radius:10px;
  background:#14110f;
}
.video-embed iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.film-credit{
  margin-top:16px;
  font-family:var(--label);
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:12px;
  font-weight:600;
  color:var(--mute);
}
.film-credit a{
  color:var(--jacket);
  text-decoration:none;
  border-bottom:1px solid transparent;
  transition:border-color .2s;
}
.film-credit a:hover{border-bottom-color:var(--jacket);}
.map-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:12px;
}
.btn-outline{
  background:transparent;
  color:var(--char);
  border-color:var(--char);
}
.btn-outline:hover{
  background:var(--char);
  color:var(--offwhite);
}

@media(max-width:960px){
  .expedition-loop-grid{grid-template-columns:1fr;}
  .expedition-map .wrap{grid-template-columns:1fr;}
}
@media(max-width:680px){
  .expedition-loop{padding:56px 0;}
  .expedition-map{padding:56px 0;}
  .expedition-card h3{font-size:24px;}
  .expedition-card-body{padding:28px 32px 32px;}
}
