/* ------- HOW TO RIDE PAGE (/ride-guide/how-to-ride/) ------- */
.htr p {margin:0 0 20px;}
.htr img {max-width:100%;height:auto;}
.htr hr {margin:40px 0;}
.htr h2 {margin:0 0 25px;}
.htr h3 {margin:0 0 15px;font-weight:400 !important;font-size:1.35em !important;}
.htr h4 {margin:0 0 5px;font-weight:600;font-size:1.3em;color:#333;letter-spacing:normal;text-transform:none;}
.htr ul {margin:0 0 25px;}
.htr ul li {padding:2px 0 6px 15px;}

/* Intro */
.htr-intro {display:flow-root;margin:0 0 30px;}
.htr .htr-intro-img {float:right;width:200px;margin:-20px 50px 20px;}

/* Form wrapper (form fields keep their existing CF7 styles) */
#pPlanner {padding:30px 30px 10px;background-color:#f3f3f3;}
#pPlanner p {margin-bottom:0;}
#pPlanner input[type="submit"] {margin-bottom:0;}

/* Image + text row */
.htr-split {display:flex;align-items:flex-start;gap:30px;}
.htr .htr-split-img {flex:0 0 46%;width:46%;}
.htr-split-body {flex:1 1 0;min-width:0;}
.htr-split-body p:last-child {margin-bottom:0;}

/* Responsive YouTube embeds */
.htr-video {position:relative;width:100%;max-width:620px;margin:0 auto;aspect-ratio:16 / 9;}
.htr-video iframe {position:absolute;top:0;left:0;width:100%;height:100%;border:0;}

/* How to pay */
.htr-pay-icons {display:flex;justify-content:center;align-items:center;gap:40px;margin:10px 0 30px;}
.htr-pay-icons img {height:70px;width:auto;}
.htr-app {display:flex;align-items:flex-start;gap:25px;padding:25px 30px;background-color:#f3f3f3;}
.htr .htr-app-icon {flex:0 0 auto;width:90px;}
.htr-app-body {flex:1 1 0;min-width:0;}
.htr-app-body p {margin-bottom:15px;font-size:0.94em;}
.htr-badges {display:flex;flex-wrap:wrap;justify-content:center;gap:12px;}
.htr-badges a {display:block;line-height:0;}
.htr-badges img {height:42px;width:auto;}

/* Routes */
.htr-routes {display:flex;align-items:flex-start;gap:30px;margin:0 0 10px;}
.htr-routes-body {flex:1 1 0;min-width:0;}
.htr-route-badges {display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0 0 20px;}
.htr-route-badges a {display:block;line-height:0;transition:opacity 0.2s linear;}
.htr-route-badges a:hover, .htr-route-badges a:focus {opacity:0.8;}
.htr-route-badges img {width:65px;height:65px;}
.htr-route-badges-grid {flex:0 0 auto;display:grid;grid-template-columns:repeat(2, 65px);gap:8px;margin:0;}

.htr-cards {display:flex;gap:20px;margin:0 0 20px;font-size:0.94em;}
.htr-card {flex:1 1 0;min-width:0;padding:25px 30px;background-color:#f3f3f3;}
.htr-card p:last-child {margin-bottom:0;}
.htr-card-wide {margin:0 0 20px;display:flex;align-items:center;gap:25px;}
.htr-card-wide .htr-route-badges {margin:0;flex:0 0 auto;}
.htr-card-body {flex:1 1 0;min-width:0;}

/* Help callout - whole box is clickable via the Trip Planner link */
.htr .htr-help {padding:20px 30px;background-color:#007ac3;color:#fff;position:relative;cursor:pointer;transition:background-color 0.3s linear;}
.htr .htr-help:hover, .htr .htr-help:focus-within {background-color:#333;}
.htr .htr-help h3 {margin:0 0 8px;color:#fff !important;}
.htr .htr-help p {margin:0;}
.htr .htr-help a {color:#fff;font-weight:600;}
.htr .htr-help a:after {content:"";position:absolute;top:0;right:0;bottom:0;left:0;}

@media (max-width: 767px){
  .htr hr {margin:30px 0;}
  .htr .htr-intro-img {float:none;display:block;margin:0 auto 20px;width:160px;}
  .htr-form {padding:20px;}
  .htr-split, .htr-routes, .htr-cards {flex-direction:column;gap:20px;}
  .htr .htr-split-img {flex:none;width:100%;}
  .htr-pay-icons {gap:20px;}
  .htr-pay-icons img {height:50px;}
  .htr-app {padding:20px;gap:15px;}
  .htr .htr-app-icon {width:64px;}
  .htr-badges {justify-content:flex-start;}
  .htr-routes-body ul {margin-bottom:0;}
  .htr-route-badges-grid {margin:0 auto 30px;grid-template-columns:repeat(4, minmax(0, 65px));}
  .htr-route-badges-grid img {width:100%;height:auto;}
  .htr-card {padding:20px;}
  .htr-card-wide {flex-direction:column;align-items:stretch;}
}
