/* The landing screen has its own native search trigger, so both map providers
   present the same UI at every width. Place selection and directions keep their existing flow. */
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) {
  --ink:#193f3d; --accent:#167c78; --home-paper:#faf9f5;
  background:var(--home-paper);
 }
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .topbar {
  height:64px;padding:0 22px;background:var(--home-paper);color:var(--ink);
 }
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .brand {color:var(--ink);font-size:22px;gap:8px}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .brand-mark {background:#167c78;color:white;width:32px;height:32px;line-height:32px;font-size:24px;border-radius:11px}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) #mobile-map-toggle {display:none}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) main {height:calc(100dvh - 64px)}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .sidebar {padding:0 22px;background:var(--home-paper)}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) #panel {padding:0;overflow:visible;min-height:0;display:flex}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) #panel>.simple-heading,
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) #place-trip-form,
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) #trip-results {display:none}
 .mobile-home {display:flex;flex-direction:column;width:100%;min-height:0;gap:clamp(16px,3dvh,26px);padding:clamp(12px,2dvh,20px) 0 max(8px,env(safe-area-inset-bottom));color:#193f3d}
 .home-welcome {flex-shrink:0}
 .home-welcome .home-eyebrow {margin:0 0 10px;color:#5a7d73;font-size:10px;font-weight:700;letter-spacing:2px;line-height:1.4}
 .home-welcome h1 {margin:0;font-size:clamp(34px,9.5vw,42px);font-weight:750;line-height:1.12;letter-spacing:-1.5px}
 .home-welcome>p:last-child {margin:10px 0 0;color:#6c7e77;font-size:14px;line-height:1.4}
 #home-search {display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:12px 14px;background:white;color:#3c5550;border:1px solid #dce5dc;border-radius:17px;box-shadow:0 4px 15px #24483e06;text-align:left;font-size:15px;flex-shrink:0}
 #home-search>span:nth-child(2) {flex:1}
 #home-search svg {width:22px;height:22px;display:block}
 .home-search-icon {color:#167c78}
 .home-search-arrow {display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:#eaf3ee;color:#167c78}
 .home-search-arrow svg {width:18px;height:18px!important}
 .island-promo {position:relative;isolation:isolate;display:flex;align-items:center;flex:1 1 156px;min-height:120px;max-height:210px;padding:20px;border-radius:22px;background:#e5f0e9;color:#193f3d;overflow:hidden}
 .island-promo>div {position:relative;z-index:1}
 .island-promo span {color:#557d6e;font-size:9px;letter-spacing:1.5px;font-weight:700}
 .island-promo h2 {font-size:23px;line-height:1.2;letter-spacing:-.7px;margin:10px 0}
 .island-promo p {font-size:12px;margin:0;color:#57786c;line-height:1.4}
 .island-promo img {position:absolute;z-index:0;right:-8px;bottom:-6px;width:54%;height:100%;object-fit:contain;object-position:right bottom;pointer-events:none}
 .home-content {background:none;border-radius:0;padding:0;min-height:0;flex-shrink:0}
 .home-content h2 {font-size:18px;line-height:1.3;letter-spacing:-.4px;margin:0 0 14px}
 .home-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .home-actions button {display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px;min-height:82px;padding:14px 12px;background:#fff;border:1px solid #e6e9e1;border-radius:17px;text-align:left;color:#23443d}
 .home-action-icon {display:grid;place-items:center;flex-shrink:0;width:34px;height:38px;color:#167c78;background:#eef5f0;border-radius:11px}
 .home-actions button:nth-child(2) .home-action-icon {color:#417f91;background:#edf4f6}
 .home-actions button:nth-child(3) .home-action-icon {color:#ad8840;background:#faf4e6}
 .home-actions button:nth-child(4) .home-action-icon {color:#558170;background:#f0f4ed}
 .home-actions svg {width:22px;height:22px}
 .home-actions strong {display:block;font-size:13px;font-weight:650;line-height:1.3}
 .home-actions small {display:block;font-size:10px;font-weight:400;color:#758379;line-height:1.4;margin-top:5px}
 .home-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0;margin-top:auto;min-height:44px;border-top:1px solid #e4e8df;color:#809086;font-size:10px}
 .home-footer button {display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 0 8px 12px;background:none;color:#527267;font-size:11px;font-weight:600}
 .home-footer svg {width:15px;height:15px}
 .mobile-home button:focus-visible {outline:3px solid #167c78;outline-offset:3px}
 .mobile-home button:active {background:#edf4ee}
/* Reduce decoration before reducing the size of any touch target. */
@media (max-height:700px) {
 .mobile-home {gap:16px;padding-top:10px}
 .home-welcome .home-eyebrow {margin-bottom:7px}
 .home-welcome>p:last-child {margin-top:7px}
 .island-promo {min-height:110px;max-height:146px;padding:16px 18px}
 .island-promo h2 {font-size:21px;margin:7px 0}
 .home-actions button {min-height:72px;padding:10px 12px}
}
@media (max-width:360px) {
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .sidebar {padding:0 16px}
 body.mobile-start:not(.exploring):not(.has-journey):not(.place-selecting):not(.mobile-map-open) .topbar {padding:0 16px}
 .home-actions {gap:8px}
 .home-actions button {gap:8px;padding:10px 9px}
 .home-action-icon {width:29px}
 .home-actions strong {font-size:12px}
 .home-actions small {font-size:9px}
 #home-search {font-size:14px;gap:9px}
 .island-promo img {right:-20px;width:51%;opacity:.85}
}
@media (max-height:580px) {
 .mobile-home {gap:12px;padding-top:6px}
 .home-welcome .home-eyebrow {margin-bottom:5px}
 .home-welcome h1 {font-size:32px}
 .home-welcome>p:last-child {display:none}
 #home-search {min-height:56px}
 .island-promo {min-height:90px;padding:12px 16px}
 .island-promo h2 {font-size:20px;margin:5px 0 0}
 .island-promo p {display:none}
 .home-content h2 {font-size:16px;margin-bottom:10px}
 .home-actions button {min-height:62px}
}
@media (max-height:540px) {
 .island-promo {display:none}
 .home-welcome .home-eyebrow {display:none}
 .home-actions button {min-height:56px}
 .home-actions small {display:none}
 .home-footer {min-height:44px}
}
@media (max-width:760px) and (max-height:380px) {
 .mobile-home {display:grid;grid-template-columns:1fr 1.25fr;grid-template-rows:auto auto 1fr;column-gap:18px;align-content:start}
 .home-welcome {grid-column:1;grid-row:1;align-self:end}
 #home-search {grid-column:1;grid-row:2;min-height:52px;font-size:12px;padding:9px;gap:7px}
 .home-search-arrow {display:none}
 .home-content {grid-column:2;grid-row:1 / 4}
 .home-content h2 {font-size:15px}
 .home-actions button {min-height:62px}
 .home-footer {grid-column:1;grid-row:3;align-self:start;font-size:9px;gap:4px;margin-top:0}
}

/* The MonBis bus mark stays crisp in the home, planner and browse headers. */
.topbar .brand{white-space:nowrap;letter-spacing:-.9px;flex-shrink:0}
.brand-icon{display:block;width:34px;height:34px;flex-shrink:0;border-radius:11px}
@media(max-width:360px){.brand-icon{width:29px;height:29px;border-radius:9px}}
.home-footer-actions {display:flex;align-items:center;gap:4px}
