/* Mash Poa East Africa theme: loaded after styles.css, overrides the original palette, fonts and chrome. */
:root{
  --brand:#F7190A;--brand-600:#D91509;--brand-700:#B91D16;--brand-800:#8f1610;--brand-100:#fdd3cf;--brand-50:#fff1f0;--on-brand:#fff;
  --accent:#F7190A;--accent-600:#D91509;--accent-700:#B91D16;--accent-50:#fff1f0;--focus:#B91D16;
  --gold:#FFC94A;--ink:#4A4A4A;--ink-2:#5a5a5a;--muted:#858585;--line:#E7E7E7;--surface:#F5F5F5;
  --font-display:'Oswald','Roboto Condensed','Arial Narrow',sans-serif;--font-body:'Open Sans',system-ui,sans-serif;
}
body{font-weight:300}
h1,h2,h3,h4{font-family:var(--font-display)}
.btn-primary:hover,.btn-accent:hover{box-shadow:none}
.btn-primary,.btn-accent{color:#fff}
.btn{border-radius:0}

/* header: compact red bar */
.site-header{background:var(--brand);border-bottom:0;color:#fff;box-shadow:none}
.site-header .brand,.site-header .nav a{color:#fff}
.site-header .nav a:hover,.site-header .nav a[aria-current],.site-header .nav a.active{color:#fff;opacity:.85}
.m-logo{display:flex;align-items:center;gap:8px;font-family:var(--font-display);font-weight:700;font-size:26px;letter-spacing:.5px;line-height:1;color:#fff}
.m-logo svg{width:34px;height:34px;fill:#fff}
.m-logo small{display:block;font:400 9px var(--font-body);letter-spacing:2px;opacity:.9}
.m-tools{display:flex;gap:2px;align-items:center}
.m-tools>button,.m-tools>a,.m-tools .nav-toggle{background:none;border:0;color:#fff;width:40px;height:40px;display:grid;place-items:center;cursor:pointer;border-radius:50%;padding:0}
.m-tools>button:hover,.m-tools>a:hover,.m-tools .nav-toggle:hover{background:rgba(0,0,0,.14)}
.m-tools svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.m-srch{display:flex;gap:10px;padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}
.m-srch[hidden]{display:none}
.m-srch input{flex:1;min-width:0;border:1px solid var(--line);padding:10px 12px;font:400 16px var(--font-body);color:var(--ink)}
.m-srch button{border:0;background:var(--brand);color:#fff;padding:0 16px;font:500 14px var(--font-display);letter-spacing:1px;cursor:pointer}
.mobile-nav{background:var(--brand-700)}
.mobile-nav .nav-link{color:#fff;font-family:var(--font-display);text-transform:uppercase;border-color:rgba(255,255,255,.2)}
.mobile-nav .btn-primary{background:#fff;color:var(--brand);border-color:#fff}

/* footer: short red bar */
.site-footer{background:var(--brand);color:#fff}
.site-footer a,.site-footer h4{color:#fff}
.site-footer a:hover{text-decoration-color:var(--gold)}
.site-footer .footer-bottom{border-color:rgba(255,255,255,.3);color:#fff}
.m-logo{color:#fff}

/* section colours: white and pale grey */
.section-alt{background:var(--surface)}
.section h2{color:var(--ink);font-weight:600}
.net-stat span{color:var(--gold)}

/* Mash home sections */
.m-search{margin-top:0;position:relative;z-index:4}
.m-hero{position:relative;min-height:calc(100svh - var(--header-h));display:grid;place-items:center;text-align:center;color:#fff;overflow:hidden;background:#3a1210;clip-path:polygon(0 0,100% 0,100% 88%,0 100%);padding:40px 24px 120px}
.m-pic{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.m-slides{position:absolute;inset:0}
.m-slide{position:absolute;inset:0;opacity:0;transition:opacity 2.5s ease-in-out}
.m-slide.on{opacity:1}
.m-slide img{width:100%;height:100%;object-fit:cover;object-position:center 60%;display:block}
.m-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,25,10,.62),rgba(185,29,22,.7));z-index:1}
.m-dots{position:absolute;inset:0;z-index:2;pointer-events:none}
.m-dots i{position:absolute;border-radius:50%;background:rgba(255,255,255,.35);animation:mfl 9s ease-in-out infinite}
@keyframes mfl{0%,100%{transform:translateY(0);opacity:.15}50%{transform:translateY(-18px);opacity:.55}}
.m-hc{position:relative;z-index:3;max-width:560px}
.m-hc h1{font-size:clamp(20px,5.4vw,30px);font-weight:700;color:#fff;margin:0}
.m-hc hr{width:54px;height:2px;border:0;background:#fff;margin:14px auto}
.m-hc p{font:300 clamp(22px,6.4vw,34px)/1.3 var(--font-body);margin:0 0 26px;color:#fff}
.m-btn{display:inline-flex;align-items:center;gap:6px;font:500 14px var(--font-display);letter-spacing:1.2px;padding:10px 20px;border:1px solid #fff;color:#fff;background:transparent;transition:background .2s;text-decoration:none}
.m-btn:hover{background:rgba(255,255,255,.2)}
.m-btn.red{background:var(--brand);border-color:var(--brand)}
.m-btn.red:hover{background:var(--brand-700);border-color:var(--brand-700)}
.m-cue{position:absolute;z-index:3;left:50%;bottom:62px;transform:translateX(-50%);color:rgba(255,255,255,.7)}
.m-cue .mi{width:34px;height:34px}
.m-cue{animation:mwig 1.4s ease-in-out infinite}
@keyframes mwig{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(12px)}}
.mi{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.m-btn .mi{width:14px;height:14px;stroke-width:2.2}
.m-sec{padding:64px 22px;text-align:center}
.m-sec h2{font-size:clamp(34px,9vw,48px);font-weight:600;color:var(--ink);line-height:1.15;margin:0}
.m-sub{font:300 clamp(17px,4.6vw,21px) var(--font-body);color:var(--muted);margin:6px auto 22px;max-width:520px}
.m-sep{display:flex;align-items:center;justify-content:center;gap:10px;margin:28px auto 0}
.m-sep::before,.m-sep::after{content:"";width:64px;height:1px;background:var(--brand);opacity:.6}
.m-sep b{width:9px;height:9px;border-radius:50%;background:var(--gold)}
#m-bus{padding-top:36px}
.m-svc{padding-top:8px}
.m-cards{max-width:960px;margin:0 auto;display:flex;flex-direction:column;align-items:center}
.m-card{background:#fff;border:1px solid var(--line);box-shadow:0 2px 12px rgba(0,0,0,.06);padding:36px 26px;width:100%;max-width:400px;position:relative}
.m-card.gold{background:linear-gradient(180deg,#FFD66E,var(--gold));border-color:#f0b83a;z-index:2;margin:-18px 0;padding:54px 26px;box-shadow:0 10px 28px rgba(0,0,0,.16)}
.m-card .mi{font-size:34px;color:var(--brand)}
.m-card h3{font-size:22px;font-weight:500;text-transform:uppercase;color:var(--ink);margin:10px 0 4px;letter-spacing:.5px}
.m-card .s{font-size:14px;color:#9a9a9a;margin:0 0 12px}
.m-card .d{margin:0;font-size:14.5px;color:#777;line-height:1.7}
.m-card.gold .s{color:#6d5a2a}.m-card.gold .d{color:#5a4a20}
.m-more{background:linear-gradient(180deg,#fff,var(--surface) 22%,#ececec)}
.m-more .m-sep:first-of-type{margin-bottom:40px}
.m-feat{display:grid;gap:36px;max-width:960px;margin:0 auto}
.m-feat div{display:flex;flex-direction:column;align-items:center}
.m-feat .mi{font-size:40px;color:var(--brand);margin-bottom:8px}
.m-feat h3{font:600 17px var(--font-body);color:var(--ink);margin:0}
.m-feat span{font-size:14px}
.m-g{max-width:520px;margin:44px auto 0;font-size:15px}
.m-dia{height:46px;background:linear-gradient(to bottom right,#ececec 49.5%,#fff 50%)}
.m-exp{padding-top:36px}
.m-car{max-width:620px;margin:34px auto 0}
.m-sl{display:none;animation:min .5s}.m-sl.on{display:block}
@keyframes min{from{opacity:0}to{opacity:1}}
.m-sl q{display:block;quotes:none;font-size:17px;line-height:1.85;color:var(--muted)}
.m-sl strong{display:block;margin-top:22px;font-weight:700;color:var(--ink)}
.m-sl em{font-style:normal;font-size:13px;color:#aaa}
.m-nav{display:flex;justify-content:center;gap:14px;margin-top:26px}
.m-nav button{background:none;border:1px solid var(--line);width:42px;height:42px;font-size:18px;color:var(--ink);cursor:pointer;transition:border-color .2s,color .2s}
.m-nav button:hover{border-color:var(--brand);color:var(--brand)}
@media(min-width:820px){
  .m-hero{clip-path:polygon(0 0,100% 0,100% 84%,0 100%)}
  .m-sec{padding:84px 32px}
  .m-cards{flex-direction:row;align-items:stretch}
  .m-card{max-width:none;flex:1}.m-card.gold{margin:-26px -1px;flex:1.1}
  .m-feat{grid-template-columns:repeat(3,1fr);gap:56px 32px}
}
@media(prefers-reduced-motion:reduce){.m-dots i{animation:none;opacity:.3}.m-sl{animation:none}}

/* keep the compact red header on every page (cancels the old transparent overlay header) */
body.is-home .site-header,.site-header{position:sticky!important;top:0;left:auto;right:auto;background:var(--brand)!important;box-shadow:none!important}
body.is-home .site-header .header-inner{height:var(--header-h)!important;padding-top:0!important}
body.is-home .site-header .nav a,.site-header .nav a{color:#fff!important;text-shadow:none!important;background:none!important}
.m-tools .nav-toggle{display:grid!important;filter:none!important;background:none!important;border:0!important;color:#fff!important;border-radius:50%}
.header-cta{margin-left:auto}
@media(max-width:960px){.header-cta{margin-left:auto}.m-tools .nav-toggle{display:grid!important}}
@media(min-width:961px){.header-inner{gap:24px}.m-tools{margin-left:0}}
.mobile-nav a.nav-link,.mobile-nav a.nav-link.active{color:#fff;font-family:var(--font-display);font-weight:500;font-size:1.25rem}
.mobile-nav a.nav-link.active{color:var(--gold)}

/* About Mash & booking directly */
.m-about{background:#f7f7f7;padding:72px 22px 80px}
.m-about-in{max-width:680px;margin:0 auto;text-align:left}
.m-about h2{font:700 1.15rem/1.3 var(--font-body);color:#111;margin:0 0 18px}
.m-about p{font:400 1rem/1.75 var(--font-body);color:#222;margin:0 0 16px}
.m-about a{color:var(--brand-700);font-weight:700;text-decoration:underline}
.footer-brand a{background:none;padding:0}
.footer-brand p,.site-footer li,.site-footer .footer-bottom{color:#fff}

/* Booking landing page (#/book) */
.bk-hero{position:relative;overflow:hidden;color:#fff;background:#3a1210;padding:44px 22px 128px}
.bk-hero .m-pic{opacity:.9}
.bk-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,25,10,.8),rgba(185,29,22,.88));z-index:1}
.bk-hero-in{position:relative;z-index:2;max-width:720px;margin:0 auto}
.bk-eyebrow{font:600 .8rem var(--font-body);letter-spacing:.2em;text-transform:uppercase;margin:0 0 10px;color:#fff;opacity:.95}
.bk-hero .req{color:#fff}
.bk-hero h1{font:600 clamp(26px,6.5vw,40px)/1.2 var(--font-display);color:#fff;margin:0 0 14px}
.bk-lead{font:400 1rem/1.6 var(--font-body);margin:0;max-width:560px;color:#fff}
.bk-card{position:relative;z-index:4;max-width:760px;margin:-92px auto 0;padding:0 16px}
.bk-card .search-card{margin:0}
.bk-card .search-note{display:none}
.bk-feat{display:grid;gap:34px;max-width:960px;margin:0 auto;padding:64px 22px 40px;text-align:center}
.bk-feat div{display:flex;flex-direction:column;align-items:center}
.bk-ic{width:56px;height:56px;border-radius:14px;display:grid;place-items:center;margin-bottom:16px;font-size:26px}
.bk-ic.t0{background:#fdd3cf;color:var(--brand)}.bk-ic.t1{background:#fff0c4;color:#b45f06}.bk-ic.t2{background:#d9f4e4;color:#1d7a4a}
.bk-feat h3{font:500 1.2rem var(--font-body);color:var(--ink);margin:0 0 8px}
.bk-feat p{margin:0;max-width:340px;font-size:.95rem;color:var(--muted)}
.bk-routes{background:var(--surface);padding:64px 0 72px;text-align:center}
.bk-routes h2{font:600 clamp(28px,7vw,38px) var(--font-display);color:var(--ink);margin:0}
.bk-sub{color:var(--muted);margin:8px auto 30px;max-width:520px}
.bk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;text-align:left}
.bk-rt{display:flex;flex-direction:column;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.08);color:var(--ink);text-decoration:none;transition:box-shadow .2s}
.bk-rt:hover{box-shadow:0 6px 20px rgba(0,0,0,.14)}
.bk-rt .dest-media{aspect-ratio:16/9}
.bk-badge{position:absolute;left:10px;top:10px;background:rgba(20,24,40,.82);color:#fff;font:600 .75rem var(--font-body);padding:4px 10px;border-radius:999px}
.bk-rt-body{display:flex;flex-direction:column;gap:12px;padding:14px 14px 16px}
.bk-rt-t{font:500 .95rem var(--font-body);display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.bk-rt-t .ic{width:12px;height:12px;color:var(--muted)}
.bk-rt-go{display:inline-flex;align-items:center;gap:6px;font-size:.85rem;color:var(--muted)}
.bk-rt-go .ic{width:12px;height:12px;color:var(--brand)}
@media(min-width:820px){.bk-feat{grid-template-columns:repeat(3,1fr);gap:40px}.bk-grid{grid-template-columns:repeat(3,1fr);gap:22px}.bk-hero{padding:64px 32px 140px}}
@media(min-width:1100px){.bk-grid{grid-template-columns:repeat(4,1fr)}}
.book-page{padding-top:0!important;background:var(--surface)}

/* City picker ("SELECT CITY" list) */
.control select.m-hid{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none}
.m-pick{width:100%;height:52px;padding:0 34px 0 42px;background:#fff;border:1.5px solid var(--line);border-radius:var(--r-md,8px);color:var(--ink);font:500 1rem var(--font-body);text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366666c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.m-pick.is-empty{color:var(--muted)}
.m-pick[aria-expanded="true"]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2366666c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E")}
.m-pick:hover{border-color:var(--line-3,#cfcfcf)}
.m-pick:focus,.m-pick[aria-expanded="true"]{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px rgba(247,25,10,.13)}
.field.has-error .m-pick{border-color:var(--danger);box-shadow:0 0 0 4px rgba(180,35,24,.09)}
.m-pop{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:60;background:#fff;border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.2);max-height:min(62vh,430px);overflow-y:auto;padding:0 8px 8px;-webkit-overflow-scrolling:touch}
.m-pop[hidden]{display:none}
.m-pop-h{margin:0 0 8px 4px;font:700 .72rem var(--font-body);letter-spacing:.08em;color:#8a8f98}
.m-pop ul{list-style:none;margin:0;padding:0}
.m-opt{display:flex;align-items:center;gap:14px;padding:8px 10px;margin:0 6px;border-radius:10px;cursor:pointer}
.m-opt:hover,.m-opt:focus{background:#f4f5f7;outline:none}
.m-opt[aria-selected="true"]{background:var(--brand-50,#fff1f0)}
.m-ic{flex:none;width:34px;height:34px;border-radius:9px;background:#f0f1f3;display:grid;place-items:center}
.m-ic svg{width:17px;height:17px;fill:none;stroke:#6b7280;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.m-tx{display:flex;flex-direction:column;min-width:0}
.m-tx b{font:600 .95rem/1.25 var(--font-body);color:#1f2937}
.m-tx small{font:400 .75rem/1.3 var(--font-body);color:#7b818b}
.m-clear{padding-left:16px}
/* City picker search + grouped results */
.m-top{position:sticky;top:0;z-index:2;background:#fff;margin:0 -8px;padding:16px 14px 10px}
.control .m-pop input.m-q, .search-grid .control .m-pop input.m-q{display:block;width:100%;height:44px;padding:0 12px 0 40px!important;border:1.5px solid var(--line)!important;border-radius:10px!important;height:44px!important;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2366666c' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;font:500 16px var(--font-body);min-height:0;color:var(--ink);-webkit-appearance:none;appearance:none}
.m-pop input.m-q::placeholder{color:var(--muted)}
.control .m-pop input.m-q:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(247,25,10,.13)!important;border-color:var(--brand)!important}
.m-grp{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:10px 6px 2px;padding:10px 10px 4px;border-top:1px solid #eef0f3;font:700 .8rem var(--font-body);color:#374151}
.m-grp:first-child{border-top:0;margin-top:0}
.m-grp small{font:500 .72rem var(--font-body);color:#9aa0aa;white-space:nowrap}
.m-opt.m-rest .m-tx b{font-weight:500;color:#4b5563}
.m-none{padding:20px 18px;font:400 .9rem/1.4 var(--font-body);color:#7b818b}
@media(max-width:640px){
  .search-grid .m-pick{height:62px;border:0;border-radius:0;padding-left:56px;font-size:1.1rem;background-position:right 18px center}
  .search-grid .m-pick:focus,.search-grid .m-pick[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--brand)}
  .search-grid .field.has-error .m-pick{box-shadow:inset 0 0 0 2px var(--danger)}
  .search-grid .m-pop{left:8px;right:8px}
}

/* ---------- Search results page (#/book/results) ---------- */
.res-head { background: var(--brand); color: #fff; padding: 14px 0; }
.res-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.res-head h1 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #fff; }
.res-head h1 svg { color: #fff; }
.res-head p { margin: 4px 0 0; color: rgba(255,255,255,.9); font-size: .9rem; }
.res-body { padding-top: 18px; padding-bottom: 40px; max-width: 760px; }
.res-days { display: flex; gap: 8px; align-items: stretch; margin-bottom: 14px; }
.res-day, .res-arrow { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); cursor: pointer; font: inherit; color: var(--ink); }
.res-day { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 4px; gap: 2px; min-width: 0; }
.res-day span { font-size: .75rem; color: var(--muted); }
.res-day b { font-size: 1.15rem; }
.res-day.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.res-day.on span { color: rgba(255,255,255,.85); }
.res-arrow { width: 40px; display: grid; place-items: center; }
.res-arrow:disabled { opacity: .4; cursor: default; }
.res-count { color: var(--ink-2); font-weight: 600; margin: 0 0 12px; font-size: .95rem; }
.res-card { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 14px; }
.res-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.res-logo { font-family: var(--font-display); font-weight: 800; color: var(--brand-700); letter-spacing: .02em; font-size: .95rem; }
.res-logo i { font-style: italic; color: var(--ink); }
.res-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.res-end { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-end.r { text-align: right; }
.res-d { font-size: .8rem; color: var(--muted); }
.res-p { font-weight: 700; overflow-wrap: anywhere; }
.res-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; }
.res-line { display: block; width: 100%; min-width: 64px; border-top: 2px solid var(--line-3); }
.res-dur { font-weight: 700; font-size: .9rem; }
.res-km { font-size: .75rem; color: var(--muted); }
.res-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.res-prices { display: flex; flex-direction: column; gap: 4px; }
.res-prices div { display: flex; align-items: baseline; gap: 8px; }
.res-prices span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; min-width: 52px; text-align: right; }
.res-prices b { font-size: 1rem; }
.res-blank { display: inline-block; width: 56px; border-bottom: 2px solid var(--line-3); height: .9em; vertical-align: baseline; }
@media (max-width: 480px) { .res-head h1 { font-size: 1.15rem; } .res-row { gap: 6px; } }

/* results page (v7): styled after the client's screenshot */
.m-logo-img{height:44px;width:auto;max-width:150px;object-fit:contain;background:#fff;border-radius:8px;padding:2px 6px}
.m-logo-fb{display:flex;align-items:center;gap:8px}
.m-logo-fb[hidden]{display:none}
.logo-wrap{display:inline-flex;align-items:center}
.logo-wrap[hidden],.logo-fb[hidden]{display:none}
.res-logo{height:34px;width:auto;max-width:90px;object-fit:contain}
.logo-fb{font-family:var(--font-display);font-weight:800;color:var(--brand-700);letter-spacing:.02em;font-size:.95rem}
.logo-fb i{font-style:italic;color:var(--ink)}
.res-head-in{flex-wrap:wrap}
.res-head-logo{height:34px;width:auto;max-width:90px;object-fit:contain;background:#fff;border-radius:6px;padding:2px 4px}
.res-head-in .logo-fb{color:#fff}.res-head-in .logo-fb i{color:#fff}
.res-head-t{flex:1;min-width:0}
.res-head .btn-secondary{background:#fff;color:var(--brand-700);border-color:#fff}
.res-head .btn-secondary:hover{background:var(--brand-50)}
.res-card{border-radius:12px;border:0;box-shadow:0 1px 3px rgba(28,28,30,.12);gap:12px}
.res-top{gap:8px 10px;flex-wrap:nowrap}
.res-top .chips{flex-wrap:wrap;gap:6px}
.res-top .chip{font-size:.72rem;padding:3px 8px;background:#eef7f1;color:#1d7a4a;border:0}
.res-top .chip svg{display:none}
.res-row{grid-template-columns:auto 1fr auto;gap:12px}
.res-t{font-size:1.5rem;font-weight:700;color:var(--ink);line-height:1.15;letter-spacing:-.01em}
.res-d{font-size:.78rem;color:var(--muted)}
.res-p{font-weight:400;font-size:.9rem;color:var(--muted)}
.res-end.r{text-align:right}
.res-mid{min-width:0;align-self:center;padding-top:2px}
.res-line{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:16px;border-top:0;background:linear-gradient(var(--line-3),var(--line-3)) center/100% 1px no-repeat}
.res-line svg{background:#fff;padding:0 4px;box-sizing:content-box;color:var(--muted)}
.res-dur{font-size:.8rem;font-weight:400;color:var(--muted)}
.res-km{font-size:.7rem;color:var(--muted)}
.chip-seats{display:inline-flex;align-self:flex-start;align-items:center;gap:5px;margin:0;background:#fff3d6;color:#b45f06;font-size:.8rem;font-weight:600;padding:5px 12px;border-radius:999px}

.res-foot{border-top:1px solid var(--line-2)}
.res-prices span{font-size:.7rem;color:var(--muted);letter-spacing:.04em;min-width:44px}
.res-prices b{font-size:1.05rem;color:var(--ink)}
.res-card .btn-primary{background:#E0201B;border-color:#E0201B;color:#fff;border-radius:6px;font-weight:600;padding:12px 22px;min-height:44px}
.res-card .btn-primary:hover{background:var(--brand-700);border-color:var(--brand-700)}
.res-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 12px}
.res-bar .res-count{margin:0}
.res-filter-btn{border:1.5px solid var(--brand);background:#fff;color:var(--brand-700);border-radius:6px;padding:7px 16px;font:600 .9rem var(--font-body);cursor:pointer;min-height:40px}
.res-filter-btn.on,.res-filter-btn[aria-expanded="true"]{background:var(--brand);color:#fff}
.res-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.res-filters[hidden]{display:none}
.res-fchip{border:1.5px solid var(--line-3);background:#fff;border-radius:6px;padding:8px 14px;cursor:pointer;font:600 .9rem var(--font-body);color:var(--ink);min-height:44px}
.res-fchip.on{border-color:var(--brand);background:var(--brand-50);color:var(--brand-700);box-shadow:inset 0 0 0 1px var(--brand)}
.res-fclear{border:0;background:none;color:var(--brand-700);font:600 .9rem var(--font-body);text-decoration:underline;cursor:pointer;padding:8px;min-height:44px}
.res-blank-sm{width:28px}
.res-note{color:var(--muted);font-size:.8rem;margin:4px 0 0}
.res-day:focus-visible,.res-arrow:focus-visible,.res-fchip:focus-visible,.res-filter-btn:focus-visible,.res-fclear:focus-visible{outline:3px solid var(--brand);outline-offset:2px}
@media (max-width:480px){.res-t{font-size:1.3rem}.res-head-logo{height:30px}.res-row{gap:8px}}

/* ===== booking flow (v9): seat map, boarding sheet, passenger page, summary ===== */
html.fl-lock, html.fl-lock body { overflow: hidden; }
.fl-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(18,20,26,.55); display: flex; align-items: flex-end; justify-content: center; }
.fl-sheet { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; border-radius: 20px 20px 0 0; display: flex; flex-direction: column; overflow: hidden; outline: none; }
@media (min-width: 700px) { .fl-overlay { align-items: center; } .fl-sheet { border-radius: 20px; max-height: 90vh; } }
.fl-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); flex: none; }
.fl-logo { height: 46px; width: auto; max-width: 84px; object-fit: contain; }
.fl-head-t { flex: 1; min-width: 0; }
.fl-head-t h2 { margin: 0; font: 700 1.1rem var(--font-body); color: var(--ink); }
.fl-head-t p { margin: 3px 0 0; color: var(--muted); font-size: .85rem; }
.fl-x, .fl-back { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #eef0f3; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.fl-back { border-radius: 12px; }
.fl-back svg { transform: rotate(180deg); }
.fl-body { overflow-y: auto; padding: 16px 18px; flex: 1; -webkit-overflow-scrolling: touch; }
.fl-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-2); background: #fff; }
.fl-total span { display: block; color: var(--muted); font-size: .8rem; }
.fl-total b { font-size: 1.4rem; color: var(--ink); }
.fl-btn { border: 0; border-radius: 8px; padding: 14px 22px; min-height: 48px; font: 700 .98rem var(--font-body); background: #e4e6ea; color: #fff; cursor: not-allowed; }
.fl-btn.on { background: #E0201B; color: #fff; cursor: pointer; }
.fl-btn.on:hover { background: var(--brand-700); }
.fl-btn:focus-visible, .fl-x:focus-visible, .fl-back:focus-visible, .seat:focus-visible, .bd-opt:focus-visible, .pg-edit:focus-visible, .sm-edit:focus-visible, .sm-send:focus-visible, .pg-chev:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.fl-bus { background: #f6f7f9; border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 10px 18px; display: flex; justify-content: center; }
.seat-grid { display: grid; grid-template-columns: 44px 44px 30px 44px 44px; gap: 14px 14px; align-items: center; justify-items: center; }
.wheel { justify-self: end; color: #9aa0a9; display: grid; }
.seat { position: relative; width: 44px; height: 44px; border-radius: 9px; border: 2px solid #d3d6dc; background: #fff; color: #4b5058; font: 700 .95rem var(--font-body); cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; box-shadow: inset 0 -6px 0 #e2e4e8; }
.seat.vip { border-color: #f2b705; box-shadow: inset 0 -6px 0 #f2b705; color: #5b3b00; }
.seat.on { background: #E0201B; border-color: #E0201B; color: #fff; box-shadow: inset 0 -6px 0 #b3140f; }
.crown { position: absolute; top: -7px; right: -7px; width: 17px; height: 17px; border-radius: 50%; background: #f2b705; display: grid; place-items: center; }
.fl-legend { display: flex; justify-content: space-around; gap: 8px; list-style: none; padding: 16px 0 4px; margin: 0; color: var(--muted); font-size: .85rem; }
.fl-legend li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seat-mini { width: 32px; height: 28px; border-radius: 7px; border: 2px solid #d3d6dc; background: #fff; box-shadow: inset 0 -5px 0 #e2e4e8; display: block; }
.seat-mini.on { background: #E0201B; border-color: #E0201B; box-shadow: inset 0 -5px 0 #b3140f; }
.seat-mini.vip { border-color: #f2b705; box-shadow: inset 0 -5px 0 #f2b705; }
.fl-hint { margin: 10px 0 0; font-size: .85rem; color: var(--ink); text-align: center; font-weight: 600; }
.fl-note { margin: 6px 0 0; min-height: 1.2em; font-size: .82rem; color: #b3140f; text-align: center; }
.bd-sec { margin: 0 0 18px; }
.bd-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.bd-h h3 { margin: 0; flex: 1; font: 700 1rem var(--font-body); }
.bd-h h3.g { color: #1d7a4a; } .bd-h h3.r { color: #E0201B; }
.bd-n { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: grid; place-items: center; font: 700 .85rem var(--font-body); }
.bd-n.g { background: #1d9a5b; } .bd-n.r { background: #E0201B; }
.bd-pill { background: #eef0f3; color: var(--muted); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.bd-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line-3); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.bd-radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b8bcc4; background: #fff; }
.bd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bd-name b { text-transform: uppercase; font-size: 1rem; }
.bd-name small, .bd-time small { color: var(--muted); font-size: .78rem; }
.bd-time { display: flex; flex-direction: column; align-items: flex-end; }
.bd-time b { font-size: 1rem; }
.bd-opt.board .bd-time b { color: #1d7a4a; } .bd-opt.drop .bd-time b { color: #b4501c; }
.bd-opt.board.on { border-color: #1d9a5b; background: #eefaf3; } .bd-opt.board.on .bd-radio { border: 7px solid #1d9a5b; }
.bd-opt.drop.on { border-color: #E0201B; background: #fff1f0; } .bd-opt.drop.on .bd-radio { border: 7px solid #E0201B; }
.fl-warn { display: flex; align-items: center; gap: 10px; background: #fff8e1; color: #8a5a00; border-radius: 12px; padding: 14px; margin: 4px 0 0; font-size: .9rem; }
.fl-warn svg { flex: none; }

/* passenger page */
.pg-page { background: #f4f5f7; }
.pg { max-width: 640px; margin: 0 auto; padding: 0 16px 130px; display: flex; flex-direction: column; gap: 16px; }
.pg-back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.pg-back svg { transform: rotate(180deg); }
.pg-steps { display: flex; align-items: center; list-style: none; margin: 0; padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(28,28,30,.1); gap: 8px; }
.pg-steps li:not(.line) { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.pg-steps li.done, .pg-steps li.cur { color: var(--ink); }
.pg-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d3d6dc; font-weight: 700; color: var(--muted); }
.pg-steps .done .pg-dot { background: #1d9a5b; border-color: #1d9a5b; color: #fff; }
.pg-steps .cur .pg-dot { background: #E0201B; border-color: #E0201B; color: #fff; }
.pg-steps .line { flex: 1; height: 2px; background: #d3d6dc; min-width: 10px; }
.pg-steps .line.done { background: #1d9a5b; }
.pg-trip { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(28,28,30,.1); flex-wrap: wrap; }
.pg-logo { height: 40px; width: auto; max-width: 70px; object-fit: contain; }
.pg-trip-t { flex: 1; min-width: 150px; display: flex; flex-direction: column; }
.pg-trip-t small { color: #E0201B; font-weight: 700; letter-spacing: .04em; font-size: .72rem; }
.pg-trip-t b { font-size: 1.05rem; }
.pg-trip-t span { color: var(--muted); font-size: .85rem; }
.pg-pill { background: #fde8e6; color: #c4190f; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .85rem; }
.pg-h { font: 700 1.25rem var(--font-body); margin: 6px 0 0; }
#pax-cards { display: flex; flex-direction: column; gap: 14px; }
.pg-card { background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.pg-card.open { border-color: #E0201B; }
.pg-card-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.pg-card:not(.open) .pg-card-h { border-bottom: 0; }
.pg-num { width: 40px; height: 40px; border-radius: 10px; background: #fde8e6; color: #E0201B; display: grid; place-items: center; font-weight: 700; flex: none; }
.pg-card-h > div { flex: 1; min-width: 0; }
.pg-card-h h3 { margin: 0; font: 700 1.05rem var(--font-body); }
.pg-card-h p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.pg-chev { border: 0; background: none; width: 44px; height: 44px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pg-chev svg { transform: rotate(-90deg); transition: transform .15s; }
.pg-card:not(.open) .pg-chev svg { transform: rotate(90deg); }
.pg-card:not(.open) .pg-card-b { display: none; }
.pg-card-b { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.pg-f label { display: block; font-weight: 700; font-size: .92rem; margin: 0 0 6px; }
.pg-f .req { color: #E0201B; } .pg-f .opt { color: var(--muted); font-weight: 400; }
.pg-f input, .pg-f select { width: 100%; min-height: 50px; border: 1.5px solid #cfd3d9; border-radius: 10px; padding: 0 14px; font: 1rem var(--font-body); background: #fff; color: var(--ink); }
.pg-f input:focus, .pg-f select:focus { outline: 3px solid rgba(26,115,232,.35); border-color: #1a73e8; }
.pg-f.bad input, .pg-f.bad select { border-color: #c4190f; }
.pg-err { margin: 6px 0 0; color: #c4190f; font-size: .85rem; min-height: 0; }
.pg-err:empty { display: none; }
.pg-phone { display: flex; gap: 0; }
.pg-phone select { width: 46%; max-width: 210px; border-radius: 10px 0 0 10px; border-right: 0; text-overflow: ellipsis; padding-right: 6px; }
.pg-phone input { border-radius: 0 10px 10px 0; flex: 1; min-width: 0; }
.pg-bd { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(28,28,30,.1); }
.pg-bd-rows { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pg-bd-lab { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.pg-bd-row { display: flex; align-items: center; gap: 12px; }
.pg-bd-row span:last-child { display: flex; flex-direction: column; }
.pg-bd-row small { color: var(--muted); }
.pg-bd-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pg-bd-ic.g { background: #e6f6ee; color: #1d9a5b; } .pg-bd-ic.r { background: #fde8e6; color: #E0201B; }
.pg-edit { border: 1px solid #d3d6dc; background: #f4f5f7; border-radius: 10px; padding: 12px 20px; font: 600 1rem var(--font-body); cursor: pointer; min-height: 48px; }
.pg-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; box-shadow: 0 -2px 10px rgba(28,28,30,.12); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.pg-bar[hidden] { display: none; }
.pg-bar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-bar-t span { display: block; color: var(--muted); font-size: .82rem; }
.pg-bar-t b { font-size: 1.5rem; color: #E0201B; }
.pg-summary { background: #fff; border-radius: 14px; padding: 18px 16px; box-shadow: 0 1px 3px rgba(28,28,30,.1); outline: none; }
.pg-summary h2 { margin: 0 0 12px; font: 700 1.25rem var(--font-body); }
.sm-leg { border-top: 1px solid var(--line-2); padding: 14px 0; }
.sm-lab { margin: 0; color: #E0201B; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.sm-leg h3 { margin: 4px 0; font: 700 1.05rem var(--font-body); }
.sm-line { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.sm-dl { display: grid; gap: 6px; margin: 0 0 8px; }
.sm-dl div { display: flex; justify-content: space-between; gap: 12px; }
.sm-dl dt { color: var(--muted); } .sm-dl dd { margin: 0; font-weight: 600; text-align: right; }
.sm-seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sm-seats li, .sm-sub, .sm-total { display: flex; justify-content: space-between; gap: 12px; }
.sm-sub { margin: 8px 0 0; font-weight: 700; }
.sm-pax { list-style: none; margin: 0; padding: 14px 0; border-top: 1px solid var(--line-2); display: grid; gap: 12px; }
.sm-pax li { display: flex; flex-direction: column; gap: 2px; }
.sm-pax span { color: var(--muted); font-size: .88rem; }
.sm-total { border-top: 1px solid var(--line-2); padding-top: 14px; font-size: 1.25rem; font-weight: 800; }
.sm-total b { color: #E0201B; }
.sm-fine { color: var(--muted); font-size: .8rem; margin: 8px 0 0; }
.sm-actions { display: flex; gap: 12px; margin-top: 14px; }
.sm-edit, .sm-send { flex: 1; min-height: 52px; border: 0; border-radius: 10px; font: 700 1rem var(--font-body); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sm-edit { background: #E0201B; } .sm-send { background: #1d9a5b; }
.sm-edit, .sm-send { line-height: 1.2; padding: 8px 12px; text-align: center; }
.sm-edit:hover { background: var(--brand-700); } .sm-send:hover { background: #167a48; }
.res-step { display: block; color: rgba(255,255,255,.9); font-weight: 600; font-size: .78rem; letter-spacing: .03em; margin-bottom: 2px; }
.chip-seats[data-seats-left] { }
@media (max-width: 380px) { .seat-grid { grid-template-columns: 40px 40px 22px 40px 40px; gap: 12px; } .seat { width: 40px; height: 40px; } .pg-steps li:not(.line) { font-size: .8rem; } }

.res-route-note{margin:0 0 12px;padding:10px 14px;background:#fff8e6;border:1px solid #f3dca0;border-radius:10px;color:#5c4a12;font:500 .9rem/1.4 var(--font-body)}

/* No buses found (results page) */
.res-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.res-bar .res-count{margin:0}
.res-filters{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;background:var(--white);border:1px solid var(--line-2);border-radius:var(--r-lg);font:600 .95rem var(--font-body);color:var(--ink);cursor:default}
.res-empty{background:var(--white);border:1px solid var(--line-2);border-radius:var(--r-xl);padding:26px 22px;text-align:center}
.res-empty h2{margin:0 0 10px;font-size:1.15rem;font-weight:600;color:var(--ink)}
.res-empty p{margin:0;padding-bottom:16px;border-bottom:1px solid var(--line-2);color:var(--ink-2);font-size:.95rem;line-height:1.5}

/* Before the page content is drawn, keep the footer below the fold so it is not seen first. */
#app:empty{min-height:100vh;min-height:100svh}

/* "and so much more" animations */
.rv{opacity:0;transform:translateY(28px);transition:opacity .9s ease,transform .9s ease}
.rv.in{opacity:1;transform:none}
@keyframes mblink{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.2;transform:scale(1.15)}}
.m-feat .mi{animation:mblink 1.8s ease-in-out infinite}
.m-feat div:nth-child(2) .mi{animation-delay:.3s}
.m-feat div:nth-child(3) .mi{animation-delay:.6s}
.m-feat div:nth-child(4) .mi{animation-delay:.9s}
.m-feat div:nth-child(5) .mi{animation-delay:1.2s}
.m-feat div:nth-child(6) .mi{animation-delay:1.5s}
.m-more .m-sep b{animation:mblink 1.2s ease-in-out infinite}

/* "and so much more" icons: blink in and out, staggered. Also kept running when the phone has
   "reduce motion" / battery saver on (styles.css otherwise freezes every animation on those phones). */
@keyframes mblink2{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.08;transform:scale(1.12)}}
.m-feat .mi{animation:mblink2 2s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){
  .m-feat .mi{animation-duration:2s!important;animation-iteration-count:infinite!important}
  .m-more .m-sep b{animation-duration:1.2s!important;animation-iteration-count:infinite!important}
  .m-cue{animation-duration:1.4s!important;animation-iteration-count:infinite!important}
  .m-slide{transition-duration:2.5s!important}
}
