/* RouteMate V5 — translation of approved scenic, Silver Fern Journey Aotearoa concept.
   White surfaces, NZ photography, green identity and orange ride actions.
   Note: data-bound featured rides; no fabricated members, prices, ratings or statistics. */
:root{--rm5-deep:#093c2d;--rm5-green:#118648;--rm5-bright:#309f4e;--rm5-orange:#f97316;--rm5-paper:#fff;--rm5-text:#10342f;--rm5-grey:#64748b;--rm5-line:#dde8df;--rm5-pale:#ecf6f0;--rm5-soft:#f8fbf9}
body.rm4-body.rm5-body{background:#fff;color:var(--rm5-text);font-family:'Inter',Arial,sans-serif}
.rm5-body .rm4-container{width:min(100%,1460px);max-width:1460px;padding-inline:clamp(22px,4.1vw,65px)}
.rm5-body h1,.rm5-body h2,.rm5-body h3{color:var(--rm5-text)}
.rm5-body .rm4-btn{border-radius:8px}
.rm5-body .rm4-btn-orange{background:var(--rm5-orange);border-color:var(--rm5-orange);color:#fff!important}
.rm5-body .rm4-btn-orange:hover{background:#d85608;border-color:#d85608}
.rm5-body .rm4-btn-outline{color:var(--rm5-deep)!important;border-color:#abc9bb;background:#fff}
/* Fixed white header with a recognisable small fern logo. */
.rm5-header{background:#fff!important;box-shadow:0 1px 0 #e4ede7!important;position:sticky;top:0;z-index:110}
.rm5-header-inner{height:72px;gap:30px}
.rm5-logo{display:flex;gap:9px;align-items:center;text-decoration:none;color:var(--rm5-deep)!important;min-width:max-content}
.rm5-logo>img{height:51px;width:45px;object-fit:contain}
.rm5-brand-name{display:flex!important;flex-direction:column;align-items:start!important;line-height:1!important;letter-spacing:normal!important}
.rm5-brand-name strong{font-weight:900;font-size:22px;letter-spacing:-.068em;color:#073f2c!important;white-space:nowrap}
.rm5-brand-name strong span{color:#3b9446}
.rm5-brand-name sup{font-size:8px;font-weight:900;letter-spacing:0;margin-left:3px;vertical-align:super;color:#115a3b}
.rm5-brand-name small{display:block;font-size:9px;font-weight:550;color:#466d5d;letter-spacing:.02em;margin-top:4px;white-space:nowrap}
.rm5-nav{gap:clamp(13px,1.75vw,29px)}
.rm5-nav>a{font-weight:700!important;color:#233d43!important;font-size:12px!important}
.rm5-nav>a:hover{color:#158544!important}
.rm5-header-actions{gap:12px}
.rm5-header-actions .rm4-btn-orange{font-weight:800;min-height:42px;padding:11px 17px}
.rm5-header-actions .rm4-app-icon{border-color:#e0e8e3}
/* Scenic hero, closer to approved picture than Astra's tour landing. */
.rm5-hero{background:#ecf5ee;position:relative;min-height:410px;isolation:isolate;overflow:hidden}
.rm5-hero-photo{position:absolute;inset:0;z-index:-2;overflow:hidden}
.rm5-hero-photo>.rm5-landscape,.rm5-hero-photo>.rm4-photo-unavailable{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:64% 44%;background:linear-gradient(110deg,#e7f1f0,#9dbdc1)}
.rm5-hero-photo:after{content:'';position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(255,255,255,.985) 0%,rgba(255,255,255,.95) 28%,rgba(255,255,255,.66) 46%,rgba(255,255,255,.15) 67%,rgba(18,54,55,.06) 100%),linear-gradient(0deg,rgba(234,242,238,.4),transparent 55%)}
.rm5-hero-container{position:relative;min-height:410px;padding-top:54px;padding-bottom:36px}
.rm5-hero-copy{max-width:660px}
.rm5-kicker{font-size:10px;letter-spacing:.22em;color:#567783;font-weight:850;display:block;margin-bottom:13px}
.rm5-hero h1{margin:0 0 13px;color:#0c3829;font-size:clamp(42px,5.05vw,76px);font-weight:900;letter-spacing:-.073em;line-height:1.055;max-width:660px}
.rm5-hero h1 em{font-style:normal;color:#12883d}
.rm5-hero-copy>p{max-width:530px;color:#3e5a6b;font-size:15px;line-height:1.5;margin:0}
.rm5-values{display:flex;flex-wrap:wrap;gap:13px 21px;align-items:center;margin-top:22px;max-width:580px}
.rm5-values span{display:flex;align-items:center;gap:7px;color:#1b5540;font-size:11px;font-weight:700;white-space:nowrap}
.rm5-values svg{width:18px;height:18px;color:#098946}
.rm5-hero-scribble{position:absolute;top:90px;right:20%;font-family:Georgia,serif;font-style:italic;color:white;text-shadow:0 2px 8px #173d4380;transform:rotate(-13deg);line-height:1.2;font-size:24px;text-align:center}
.rm5-search-frame{position:absolute;right:clamp(22px,4.1vw,65px);bottom:31px;width:min(930px,72%);max-width:calc(100% - 44px);background:white;border-radius:13px;padding:9px;box-shadow:0 15px 40px #123b3f35;border:1px solid #e4eee8}
.rm5-search-form{display:grid;grid-template-columns:1fr 1fr .82fr 92px 156px;gap:2px;align-items:stretch}
.rm5-search-field{display:flex;gap:9px;align-items:center;min-height:54px;padding:7px 9px;border-right:1px solid #e0ebe5;min-width:0;cursor:text}
.rm5-search-field>span:first-child{display:flex;color:#128a48;flex:0 0 18px}
.rm5-search-field svg{height:18px;width:18px}
.rm5-search-field>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0;width:100%}
.rm5-search-field small{font-size:9px;letter-spacing:.06em;color:#3a5866;font-weight:900}
.rm5-body .rm5-search-field input{min-height:28px!important;width:100%;padding:3px 0!important;background:transparent;border:0!important;border-radius:0!important;color:#203f44!important;font-size:12px!important;font-weight:750;outline:0!important;box-shadow:none!important}
.rm5-search-field input::placeholder{color:#789098}
.rm5-search-field:focus-within{background:#f2f9f3;border-radius:5px}
.rm5-seat-box{min-width:0;padding:5px!important;align-self:center}
.rm5-seat-box legend{font-size:9px!important;color:#375f57!important}
.rm5-seat-box>div{gap:4px!important;margin-top:1px!important}
.rm5-seat-box button{height:25px!important;width:25px!important;font-size:15px!important}
.rm5-search-button{min-height:54px!important;height:54px!important;padding:8px 11px!important;gap:7px!important;font-size:12px!important;align-self:center}
.rm5-search-button svg{height:16px!important;width:16px!important}
/* No fake social proof: measured-data placeholders until a privacy-reviewed API exists. */
.rm5-trust{padding:18px 0;background:white;border-bottom:1px solid #f0f3ee}
.rm5-trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) .9fr;align-items:center;gap:18px}
.rm5-trust-item{display:flex;gap:14px;align-items:center;padding:5px 14px 5px 0;border-right:1px solid #e3ebe5;min-width:0}
.rm5-trust-item:nth-child(3){border-right:0}
.rm5-trust-icon{display:grid;place-items:center;background:#eaf5ed;color:#167d45;border-radius:50%;height:45px;width:45px;flex:0 0 45px}
.rm5-trust-icon svg{height:23px;width:23px}
.rm5-trust-item strong{display:block;font-size:23px;color:#143d3b;line-height:1.15;font-weight:900}
.rm5-trust-item small{display:block;color:#435f71;font-size:12px;line-height:1.35;font-weight:650;margin:3px 0}
.rm5-trust-item em{display:block;color:#8594a0;font-style:normal;font-size:10px;line-height:1.35}
.rm5-trust-message{color:#30894b!important;font:italic 23px/1.13 Georgia,serif;transform:rotate(-5deg);text-align:right;margin:0}
/* Real featured trip cards — public data deliberately excludes names and unverified fares. */
.rm5-featured{padding:27px 0 18px;background:white}
.rm5-section-row{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 15px}
.rm5-section-row>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 14px}
.rm5-section-row h2{margin:0;font-size:21px;line-height:1.2;color:#123342;letter-spacing:-.048em}
.rm5-section-row>div>span{font-size:11px;color:#75838c}
.rm5-section-row>a{font-size:12px;color:#17844b!important;font-weight:850;white-space:nowrap}
.rm5-section-row>a:hover{color:#ee6e15!important}
.rm5-featured-feed{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:170px}
.rm5-featured-loading,.rm5-featured-empty,.rm5-featured-error{grid-column:1/-1;min-height:152px;display:flex;align-items:center;justify-content:center;gap:14px;border:1px dashed #dce9e0;background:#f7fbf8;border-radius:10px;color:#496657;font-size:13px;padding:26px;text-align:center}
.rm5-featured-empty{flex-direction:column;gap:8px}
.rm5-featured-empty strong{color:#1d4b3c;font-size:18px}
.rm5-featured-empty p{max-width:550px;color:#6d8074;margin:0;font-size:12px}
.rm5-featured-empty a{color:#116b42!important;font-size:12px;font-weight:850;text-decoration:underline}
.rm5-loader-dot{width:20px;height:20px;border-radius:50%;border:3px solid #d8eee0;border-top-color:#189347;display:inline-block}
.rm5-ride-card{border:1px solid #dde7e3;border-radius:10px;background:white;padding:16px 15px;min-width:0;display:flex;flex-direction:column;gap:10px;box-shadow:0 6px 18px #0c2a2608}
.rm5-ride-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.rm5-ride-identity{display:flex;align-items:center;gap:8px;min-width:0}
.rm5-ride-avatar{width:35px;height:35px;border-radius:50%;background:#e5f2ec;color:#1b6943;display:grid;place-items:center;flex:0 0 35px}
.rm5-ride-avatar svg{width:18px;height:18px}
.rm5-ride-identity strong{font-size:12px;display:block;color:#173d35}
.rm5-ride-identity small{font-size:10px;color:#607887;display:block}
.rm5-verified{display:flex;align-items:center;gap:4px;color:#188c4b;font-size:9px;font-weight:850;white-space:nowrap}
.rm5-verified svg{height:15px;width:15px}
.rm5-route-timeline{position:relative;border-left:1px solid #6fae85;margin-left:8px;padding-left:15px;display:flex;flex-direction:column;gap:10px}
.rm5-route-timeline>div{position:relative;font-size:11px;display:flex;justify-content:space-between;gap:8px}
.rm5-route-timeline>div:before{content:'';height:7px;width:7px;border-radius:50%;background:#178349;position:absolute;left:-19px;top:5px}
.rm5-route-timeline strong{color:#183b40;font-size:12px;font-weight:850}
.rm5-route-timeline small{color:#7d8d97;font-size:10px;white-space:nowrap}
.rm5-ride-meta{color:#667c85;font-size:10px;display:flex;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #eef2ef}
.rm5-ride-action{margin-top:auto;display:flex;align-items:center;gap:8px;justify-content:space-between}
.rm5-ride-action span{font-size:11px;color:#547366;font-weight:700}
.rm5-ride-action a{font-size:11px;font-weight:850;color:white!important;background:#f97316;padding:9px 11px;border-radius:6px;white-space:nowrap}
.rm5-ride-action a:hover{background:#cf5910}
/* Community photography and arriving/leaving panels. */
.rm5-communities{padding:25px 0 38px;background:white}
.rm5-communities-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px}
.rm5-community-card{height:156px;position:relative;display:block;border-radius:9px;overflow:hidden;background:linear-gradient(145deg,#347965,#9cd0c0);color:#fff!important}
.rm5-community-card:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(1,31,24,.78),transparent 64%)}
.rm5-community-card img,.rm5-community-card .rm4-photo-unavailable{height:100%;width:100%;object-fit:cover;transition:transform .45s ease}
.rm5-community-card:hover img{transform:scale(1.06)}
.rm5-community-card>div{position:absolute;left:14px;right:9px;bottom:12px;z-index:2;display:flex;flex-direction:column;gap:1px}
.rm5-community-card strong{font-size:17px;font-weight:850;line-height:1.1;letter-spacing:-.04em}
.rm5-community-card small{font-size:10px;color:#e8f4e7}
.rm5-directions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}
.rm5-direction{background:#f0f4f2;border-radius:9px;position:relative;min-height:128px;overflow:hidden;display:flex;color:#163b32!important}
.rm5-direction>span{z-index:1;width:57%;padding:21px 8px 16px 19px;display:flex;flex-direction:column;align-items:flex-start}
.rm5-direction strong{font-size:18px;line-height:1.15;font-weight:850;letter-spacing:-.047em}
.rm5-direction small{font-size:11px;color:#536e65;line-height:1.55;margin-top:6px}
.rm5-direction b{font-size:11px;border:1px solid #8cad9c;border-radius:5px;padding:7px 9px;font-weight:850;color:#255d44;margin-top:10px}
.rm5-direction img,.rm5-direction>.rm4-photo-unavailable{width:46%;height:100%;position:absolute;right:0;top:0;object-fit:cover;object-position:center}
.rm5-direction:after{content:'';position:absolute;top:0;right:35%;bottom:0;width:28%;background:linear-gradient(90deg,#f0f4f2,transparent)}
/* Compact lower section, deliberately not an overlong marketing page. */
.rm5-final-strip{background:white;padding:20px 0 35px}
.rm5-final-grid{display:grid;grid-template-columns:1fr 1.06fr .68fr;gap:28px;align-items:start}
.rm5-final-grid>div{min-width:0}
.rm5-final-grid>div+div{border-left:1px solid #e4ece7;padding-left:26px}
.rm5-final-grid h2{font-size:20px;color:#102e3c;letter-spacing:-.045em;line-height:1.18;margin:0 0 5px}
.rm5-final-grid p{font-size:11px;color:#71828a;margin:0 0 14px}
.rm5-impact-banner{display:flex;align-items:center;gap:13px;padding:12px;background:#eaf8ee;border-radius:10px;min-height:75px;color:#175139!important}
.rm5-impact-banner svg{width:26px;height:26px;color:#27824c;flex:none}
.rm5-impact-banner>span:nth-child(2){display:flex;flex-direction:column}
.rm5-impact-banner strong{font-size:13px;color:#165137}
.rm5-impact-banner small{font-size:10px;color:#5a7964;line-height:1.4}
.rm5-mini-arrow{margin-left:auto;white-space:nowrap;color:#146a40;font-weight:850}
.rm5-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.rm5-steps>div{display:flex;gap:8px;align-items:center;min-width:0}
.rm5-steps b{height:31px;width:31px;border-radius:50%;background:#168849;display:grid;place-items:center;color:white;flex:0 0 31px;font-size:14px}
.rm5-steps span{display:flex;flex-direction:column;gap:3px}
.rm5-steps strong{font-size:11px;line-height:1.2;color:#164035;white-space:normal}
.rm5-steps small{font-size:9px;line-height:1.35;color:#758690}
.rm5-mini-join{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:center;background:#f1f7f3;border:0!important;border-radius:11px;padding:14px!important;text-align:center}
.rm5-mini-join img{width:43px;height:47px}
.rm5-mini-join h3{font-size:14px;line-height:1.27;color:#167342;margin:0;letter-spacing:-.04em}
.rm5-mini-join .rm4-btn{padding:10px 12px;min-height:38px;font-size:11px;width:100%}
/* Footer with the approved fern mark, no invented certification badges. */
.rm5-footer{background:#fff!important;color:#375761!important;border-top:1px solid #e5ede7;padding:27px 0 18px!important}
.rm5-footer .rm4-footer-main{gap:22px!important;grid-template-columns:1.7fr repeat(3,1fr)!important}
.rm5-footer .rm4-footer-main h3{color:#173a35!important}
.rm5-footer .rm4-footer-main a{color:#4d666d!important}
.rm5-footer .rm4-footer-brand p{font-size:11px;line-height:1.55;color:#627a76;max-width:330px;margin:13px 0}
.rm5-footer .rm4-footer-base{border-top:1px solid #e6efe8;color:#657b73;font-size:10px}
.rm5-footer .rm5-logo>img{width:40px;height:46px}
.rm5-footer .rm5-brand-name small{color:#4f8063}
/* Responsive: mobile navigation and forms remain working. */
@media(max-width:1200px){.rm5-header-inner{gap:13px}.rm5-nav{gap:12px}.rm5-nav>a{font-size:11px!important}.rm5-hero h1{font-size:clamp(42px,5vw,66px)}.rm5-search-frame{width:73%}.rm5-search-form{grid-template-columns:1fr 1fr .8fr 76px 134px;gap:1px}.rm5-search-button{font-size:11px!important}.rm5-trust-message{font-size:19px}}
@media(max-width:980px){.rm5-search-frame{width:88%;bottom:25px}.rm5-hero-photo:after{background:linear-gradient(90deg,#fffffff7 0%,#ffffffe0 35%,#ffffff60 77%,#ffffff1a)}.rm5-hero-copy{max-width:530px}.rm5-hero-scribble{right:7%;top:56px}.rm5-values{max-width:490px}.rm5-header-actions .rm4-login{display:none}.rm5-trust-grid{grid-template-columns:repeat(3,1fr)}.rm5-trust-message{display:none}.rm5-featured-feed{grid-template-columns:repeat(2,1fr)}.rm5-communities-grid{grid-template-columns:repeat(3,1fr)}.rm5-community-card{height:170px}.rm5-final-grid{grid-template-columns:1fr 1fr}.rm5-mini-join{grid-column:1/-1}.rm5-footer .rm4-footer-main{grid-template-columns:1fr 1fr!important}}
@media(max-width:720px){.rm5-header-inner{height:66px}.rm5-logo>img{height:45px;width:38px}.rm5-brand-name strong{font-size:20px}.rm5-brand-name small{font-size:8px}.rm5-header-actions .rm5-top-offer{font-size:11px;padding:8px 10px}.rm5-header-actions .rm4-app-icon{display:none}.rm5-hero{min-height:700px}.rm5-hero-container{min-height:700px;padding-top:51px;padding-bottom:15px}.rm5-hero h1{font-size:clamp(40px,8.8vw,58px)}.rm5-hero-copy>p{font-size:13px}.rm5-values{gap:8px 13px}.rm5-values span{font-size:10px}.rm5-hero-scribble{display:none}.rm5-search-frame{position:relative;width:100%;right:auto;bottom:auto;margin-top:30px;max-width:100%}.rm5-search-form{grid-template-columns:1fr 1fr;gap:6px}.rm5-search-form>.rm5-search-field{border:1px solid #e1ebe4;border-radius:6px}.rm5-search-field:nth-of-type(3){grid-column:1/-1}.rm5-search-button{grid-column:2;align-self:stretch;height:53px!important}.rm5-seat-box{grid-column:1;padding:6px!important}.rm5-trust-grid{grid-template-columns:repeat(3,1fr);gap:8px}.rm5-trust-item{gap:6px;padding:5px 7px 5px 0}.rm5-trust-icon{height:33px;width:33px;flex-basis:33px}.rm5-trust-icon svg{height:18px;width:18px}.rm5-trust-item strong{font-size:18px}.rm5-trust-item small{font-size:10px}.rm5-trust-item em{font-size:8px}.rm5-section-row{align-items:start;flex-direction:column;gap:6px}.rm5-communities-grid{grid-template-columns:repeat(2,1fr)}.rm5-community-card{height:166px}.rm5-directions{grid-template-columns:1fr}.rm5-direction{min-height:140px}.rm5-final-grid{grid-template-columns:1fr}.rm5-final-grid>div+div{border-left:0;border-top:1px solid #e5ede8;padding-left:0;padding-top:17px}.rm5-steps{gap:12px}.rm5-mini-join{grid-column:auto}.rm5-footer .rm4-footer-main{grid-template-columns:1fr 1fr!important}}
@media(max-width:480px){.rm5-hero{min-height:710px}.rm5-hero-container{min-height:710px}.rm5-hero h1{font-size:clamp(38px,10.8vw,51px)}.rm5-kicker{font-size:8px;letter-spacing:.12em}.rm5-values span{font-size:9px}.rm5-search-frame{margin-top:21px}.rm5-search-form{grid-template-columns:1fr}.rm5-search-form>.rm5-search-field{grid-column:1!important;min-height:51px}.rm5-search-button{grid-column:1!important}.rm5-seat-box{grid-column:1!important;display:flex;align-items:center;gap:12px;padding:6px 9px!important}.rm5-seat-box legend{float:left}.rm5-trust-grid{grid-template-columns:1fr 1fr}.rm5-trust-item:nth-child(3){grid-column:1/-1}.rm5-featured-feed{grid-template-columns:1fr}.rm5-communities-grid{grid-template-columns:1fr 1fr}.rm5-community-card{height:143px}.rm5-community-card strong{font-size:15px}.rm5-community-card small{font-size:9px}.rm5-steps{grid-template-columns:1fr}.rm5-footer .rm4-footer-main{grid-template-columns:1fr 1fr!important}}
@media(prefers-reduced-motion:reduce){.rm5-community-card img,.rm5-search-button{transition:none!important}.rm5-loader-dot{animation:none!important}}

/* Readable footer text on the user's requested pure-white surface. */
.rm5-footer .rm4-footer-main a:not(.rm4-logo){color:#3c6263!important}
.rm5-footer .rm4-footer-main a:not(.rm4-logo):hover{color:#118648!important}
.rm5-footer .rm4-footer-main h3{color:#183d37!important}
.rm5-footer .rm4-footer-brand p{color:#45666a!important}
.rm5-footer .rm4-footer-base span{color:#536f72!important}
.rm5-footer .rm5-brand-name strong{color:#073f2c!important}
.rm5-header-inner{display:flex;align-items:center;justify-content:space-between}
.rm5-header-inner .rm5-nav{margin:auto;flex:1;justify-content:center}
/* Keep the benefit line and floating form from overlapping on desktop. */
@media(min-width:721px){.rm5-hero,.rm5-hero-container{min-height:455px}.rm5-values{max-width:520px;gap:8px 10px}.rm5-values span{font-size:10px}}
