/* Result-only enhancement. Desktop styles are active whenever .ebr-mobile is absent. */
.ebr-toolbar{display:none}
.eb-results-page.ebr-mobile{--ebr-blue:var(--th-primary,#1468d6);--ebr-ink:#172e4b;--ebr-muted:#61748c;--ebr-line:#e0e8f2;background:linear-gradient(180deg,#f0f6ff,#f8fafd 480px,#f7f9fc);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;padding:10px 0 18px;min-height:70vh;color:var(--ebr-ink)}
.ebr-mobile>[hidden],.ebr-mobile [hidden]{display:none!important}
.ebr-mobile>.eb-wrap{width:calc(100% - 16px);max-width:none;margin:0 8px;min-width:0}
/* Hide only the original inline positions while enhancement moves them into panels. */
.ebr-mobile>.eb-wrap>#ets-search-stage,.ebr-mobile .eb-results-grid>.eb-filters{display:none}
.ebr-mobile :is(button,input,select){font-family:inherit}
.ebr-mobile button{touch-action:manipulation}
.ebr-mobile :is(button,input,select,a,summary):focus-visible{outline:3px solid #8ab9f1;outline-offset:3px}
.ebr-mobile .eb-results-heading{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0 0 10px;padding:5px 4px 0}
.ebr-mobile .eb-results-heading .eb-eyebrow{display:none}
.ebr-mobile .eb-results-heading h2{font-family:inherit;font-size:21px;font-weight:800;letter-spacing:-.65px;line-height:1.35;overflow-wrap:anywhere;color:var(--ebr-ink)}
.ebr-mobile #ets-count{font-size:10px;line-height:18px;margin:4px 0 0;color:var(--ebr-muted)}
.ebr-mobile .eb-date-nav{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px;align-items:center;max-width:none;width:100%;margin:0;padding:5px;background:#fff;border:1px solid var(--ebr-line);border-radius:12px}
.ebr-mobile .eb-date-nav .eb-btn{display:grid;place-items:center;min-height:36px;padding:4px 10px;margin:0;border:0;border-radius:8px;background:#edf4ff;color:var(--ebr-blue);font-size:17px;box-shadow:none}
.ebr-mobile .eb-date-nav span{max-width:none;text-align:center;font-size:11px;line-height:20px;font-weight:700;color:#49617e}
.ebr-mobile .ebr-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:sticky;top:var(--ebr-toolbar-top,58px);z-index:800;margin-bottom:10px;padding:4px 0;background:#f4f8fd}
.ebr-mobile .ebr-control{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;padding:10px;border:1px solid #dae5f3;border-radius:11px;background:#fff;color:#335675;font-size:12px;font-weight:700;line-height:20px;box-shadow:0 3px 10px #2a568a05}
.ebr-mobile .ebr-control .eb-icon{width:17px;height:17px;color:var(--ebr-blue)}
.ebr-mobile .ebr-filter-count{display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:6px;background:#e8f1ff;color:var(--ebr-blue);font-size:10px}
.ebr-mobile .eb-results-grid{display:block;min-width:0;width:100%}
.ebr-mobile .eb-results-grid>div{min-width:0;width:100%}
.ebr-mobile .eb-sort{gap:8px;padding:0 2px 9px;font-size:10px;line-height:18px;min-width:0}
.ebr-mobile .eb-sort>span{white-space:nowrap;color:var(--ebr-muted)}
.ebr-mobile .eb-sort label{font-size:9px;gap:5px;min-width:0}
.ebr-mobile .eb-sort select{width:145px;max-width:145px;min-height:36px;margin:0;padding:7px 21px 7px 9px;border:1px solid var(--ebr-line);border-radius:9px;background-color:#fff;font-size:10px;color:#385570}
.ebr-mobile .eb-results{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%}
/* Compact mobile rows retain every fare, seat action and policy control. */
.ebr-mobile .eb-bus-card{width:100%;min-width:0;border:1px solid var(--ebr-line);border-radius:15px!important;box-shadow:0 4px 16px #264d7b05;overflow:hidden;background:#fff}
.ebr-mobile .eb-bus-body{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px;min-width:0}
.ebr-mobile .eb-bus-operator{display:flex;align-items:flex-start;gap:9px;min-width:0}
.ebr-mobile .eb-bus-operator>div{min-width:0;flex:1}
.ebr-mobile .eb-bus-operator h3{font-family:inherit;font-size:13px;font-weight:800;line-height:19px;letter-spacing:-.2px;overflow-wrap:anywhere}
.ebr-mobile .eb-bus-operator p{font-size:10px;line-height:16px;margin:1px 0 0;color:#657a92;overflow-wrap:anywhere}
.ebr-mobile .eb-bus-operator small{display:block;font-size:9px;line-height:16px;font-weight:600;color:#16806a}
.ebr-mobile .eb-bus-operator .eb-feature-icon{width:32px;height:32px;flex:0 0 32px;border-radius:10px}
.ebr-mobile .eb-bus-operator .eb-rtc-logo{width:30px;height:30px;object-fit:contain}
.ebr-mobile .eb-bus-operator .eb-feature-icon .eb-icon{width:19px;height:19px}
.ebr-mobile .eb-journey-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(62px,.8fr) minmax(0,1fr);align-items:center;gap:8px;min-width:0;padding:8px 0;border-top:1px solid #eff3f8;border-bottom:1px solid #eff3f8}
.ebr-mobile .eb-journey-line>div:first-child,.ebr-mobile .eb-journey-line>div:last-child{min-width:0;display:flex;flex-direction:column}
.ebr-mobile .eb-journey-line strong{font-size:17px;line-height:24px;font-weight:800;letter-spacing:-.6px;white-space:nowrap;color:var(--ebr-ink)}
.ebr-mobile .eb-journey-line span{font-size:9px;line-height:14px;color:#7a8ba0}
.ebr-mobile .eb-journey-line small{font-size:8px;line-height:13px;overflow-wrap:anywhere;color:#7a8ba0}
.ebr-mobile .eb-duration{font-size:10px;line-height:17px;text-align:center;white-space:nowrap;color:#687e98}
.ebr-mobile .eb-duration>div{display:flex;align-items:center;justify-content:center;gap:3px;height:14px;font-size:8px;color:#cad9ea}
.ebr-mobile .eb-duration .eb-icon{width:13px;height:13px;color:#7197bf}
.ebr-mobile .eb-duration>div>span{height:1px;flex:1;background:#dce6f2}
.ebr-mobile .eb-bus-price{grid-column:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;padding:0;text-align:left;min-width:0}
.ebr-mobile .eb-bus-price>div{min-width:0}
.ebr-mobile .eb-bus-price small{display:block;font-size:8px;line-height:14px;color:#8797a9}
.ebr-mobile .eb-bus-price strong{display:block;font-size:21px;line-height:27px;font-weight:800;letter-spacing:-.65px;color:var(--ebr-ink);white-space:nowrap}
.ebr-mobile .eb-bus-price .eb-btn{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;margin:0;padding:10px 13px;border:0;border-radius:10px;background:var(--th-btn,#1468d6);font-size:11px;font-weight:700;line-height:20px;color:#fff;box-shadow:0 4px 10px #165db016}
.ebr-mobile .eb-bus-price .eb-btn .eb-icon{width:15px;height:15px}
.ebr-mobile .eb-bus-footer{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;max-width:100%;padding:7px 12px;background:#fbfcff;border-top:1px solid #eff3f8;overflow-x:auto;scrollbar-width:none}
.ebr-mobile .eb-bus-footer::-webkit-scrollbar{display:none}
.ebr-mobile .eb-bus-footer .eb-tags{display:flex;flex:none;flex-wrap:nowrap;gap:6px;margin:0;white-space:nowrap}
.ebr-mobile .eb-bus-footer .eb-tags>span{display:inline-flex;align-items:center;gap:4px;padding:3px 5px;border:0;border-radius:5px;background:#edf3fa;font-size:8px;line-height:15px;color:#647c96}
.ebr-mobile .eb-bus-footer .eb-icon{width:11px;height:11px}
.ebr-mobile .eb-bus-more{margin:0;border:0;border-top:1px solid #edf2f8}
.ebr-mobile .eb-bus-more>summary{padding:8px 12px;min-height:34px;font-size:9px;line-height:17px;color:#526e8c}
.ebr-mobile .eb-bus-more-content{display:block;padding:0 12px 12px;min-width:0;font-size:10px}
.ebr-mobile .eb-bus-more-content>div{min-width:0}
.ebr-mobile .eb-bus-more-content :is(p,h4){overflow-wrap:anywhere}
.ebr-mobile .eb-bus-more-content h4{font-family:inherit;font-size:11px;font-weight:750;margin:10px 0 6px}
.ebr-mobile .eb-bus-more-content p{font-size:10px;line-height:17px}
.ebr-mobile .eb-rtc-group{width:100%;min-width:0;border:1px solid #d6e3f4;border-radius:14px;background:#edf4fe;overflow:hidden}
.ebr-mobile .eb-rtc-group>summary{gap:9px;padding:12px;min-width:0}
.ebr-mobile .eb-rtc-group>summary>div{min-width:0}
.ebr-mobile .eb-rtc-group>summary h3{font-family:inherit;font-size:12px;line-height:19px;font-weight:800;overflow-wrap:anywhere}
.ebr-mobile .eb-rtc-group>summary small{font-size:9px;line-height:15px;display:block;color:#617b98;overflow-wrap:anywhere}
.ebr-mobile .eb-rtc-group>summary .eb-feature-icon{width:33px;height:33px;flex:0 0 33px}
.ebr-mobile .eb-rtc-group>summary>.eb-icon{width:17px;height:17px;flex:0 0 17px}
.ebr-mobile .eb-rtc-group>div{padding:0 6px 6px;gap:8px;min-width:0}
.ebr-mobile .ebr-more-wrap{display:flex;flex-direction:column;align-items:center;gap:6px;margin:3px 0 7px}
.ebr-mobile .ebr-more{width:100%;min-height:43px;padding:10px 12px;border:1px solid #d7e5f7;border-radius:10px;background:#fff;color:var(--ebr-blue);font-size:11px;font-weight:700;line-height:20px}
.ebr-mobile .ebr-more-wrap>small{font-size:9px;line-height:15px;color:#71869e}
/* Panels are app children, so existing filter and search selectors still work. */
.ebr-mobile .ebr-backdrop{position:fixed;inset:0;z-index:100030;width:100%;height:100%;padding:0;border:0;border-radius:0;background:#142a4659;backdrop-filter:blur(3px)}
.ebr-mobile .ebr-panel{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom));z-index:100031;display:flex;flex-direction:column;width:calc(100% - 16px);max-width:560px;max-height:calc(100vh - 18px);max-height:calc(100dvh - 18px);margin:0 auto;padding:0;border:1px solid #e0e8f2;border-radius:20px;background:#fff;box-shadow:0 15px 55px #12345530;overflow:hidden;color:var(--ebr-ink)}
.ebr-mobile .ebr-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:15px 16px 12px;border-bottom:1px solid #edf2f8}
.ebr-mobile .ebr-panel-head h2{font-family:inherit;font-size:17px;font-weight:800;line-height:24px;letter-spacing:-.4px;margin:0}
.ebr-mobile .ebr-panel-close{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;padding:0;border:0;border-radius:11px;background:#eef4fc;color:#496482}
.ebr-mobile .ebr-panel-close .eb-icon{width:18px;height:18px}
.ebr-mobile .ebr-panel-body{padding:14px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}
.ebr-mobile .ebr-panel-foot{padding:10px 14px 14px;flex:none;border-top:1px solid #edf2f8}
.ebr-mobile .ebr-panel-apply{width:100%;min-height:46px;padding:12px;border:0;border-radius:11px;background:var(--th-btn,#1468d6);color:#fff;font-size:13px;font-weight:700;line-height:22px}
.ebr-mobile .ebr-panel .eb-filters{display:block;position:static;top:auto;width:100%;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff}
.ebr-mobile .ebr-panel .eb-filters h3{font-size:12px;line-height:22px;font-weight:700}
.ebr-mobile .ebr-panel .eb-filters .eb-text-btn{min-height:36px;font-size:11px;color:var(--ebr-blue)}
.ebr-mobile .ebr-panel .eb-filters>label{margin-top:10px;font-size:11px;line-height:20px}
.ebr-mobile .ebr-panel .eb-filters input[type=search]{min-height:44px;padding:11px 12px;margin:6px 0 0;border:0;border-radius:10px;background:#f2f6fc;font-size:14px}
.ebr-mobile .ebr-panel .eb-filters fieldset{margin-top:13px;padding-top:12px;border-color:#eaf0f8}
.ebr-mobile .ebr-panel .eb-filters legend{font-size:11px;font-weight:750;margin-bottom:7px}
.ebr-mobile .ebr-panel .eb-filters fieldset label{display:inline-flex;align-items:center;gap:8px;min-height:36px;margin:2px 14px 2px 0;font-size:11px;line-height:18px;color:#526d8c}
.ebr-mobile .ebr-panel .eb-filters input[type=checkbox]{width:17px;height:17px;padding:0;margin:0;border-radius:5px;accent-color:var(--ebr-blue);flex:none}
.ebr-mobile .eb-time-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ebr-mobile .eb-time-filters button{min-height:44px;padding:9px;border-radius:10px;font-size:10px;line-height:17px}
.ebr-mobile .eb-time-filters button .eb-icon{width:16px;height:16px}
.ebr-mobile .eb-filter-note{margin-top:14px;padding:11px;font-size:10px;line-height:17px}
.ebr-mobile .ebr-panel #ets-search-stage{display:block;isolation:auto;padding:0;margin:0}
.ebr-mobile .ebr-panel .eb-search{display:grid;position:relative;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff}
.ebr-mobile .ebr-panel .eb-city-field{min-width:0;margin:0}
.ebr-mobile .ebr-panel .eb-search-field{position:relative;display:block;min-width:0;min-height:77px;padding:11px 12px;border:0;border-radius:12px;background:#f4f8fd}
.ebr-mobile .ebr-panel .eb-search-field>span{display:block;width:100%;min-width:0}
.ebr-mobile .ebr-panel .eb-search-field>.eb-icon{position:absolute;top:13px;left:12px;width:14px;height:14px;color:var(--ebr-blue)}
.ebr-mobile .ebr-panel .eb-search-field small{display:block;margin:0 0 5px;padding-left:20px;font-size:9px;font-weight:600;line-height:18px;letter-spacing:0;color:#617b98}
.ebr-mobile .ebr-panel .eb-search-field input{width:100%;max-width:100%;min-width:0;height:28px;min-height:28px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:16px;font-weight:750;line-height:28px;letter-spacing:-.4px;color:var(--ebr-ink);text-overflow:ellipsis}
.ebr-mobile .ebr-panel .eb-swap{position:absolute;left:50%;top:40px;transform:translate(-50%,-50%);display:grid;place-items:center;width:33px;height:33px;padding:0;margin:0;border:3px solid #fff;border-radius:50%;background:#eaf3ff;color:var(--ebr-blue);z-index:2}
.ebr-mobile .ebr-panel .eb-swap .eb-icon{width:16px;height:16px}
.ebr-mobile .ebr-panel .eb-date-field{grid-column:1/-1;min-width:0;padding:11px 12px;border-radius:12px;background:#f4f8fd}
.ebr-mobile .ebr-panel .eb-date-field .eb-search-field{min-height:0;padding:0;border-radius:0;background:transparent}
.ebr-mobile .ebr-panel .eb-date-field .eb-search-field>.eb-icon{top:2px;left:0}
.ebr-mobile .ebr-panel .eb-date-shortcuts{display:flex;gap:6px;margin-top:7px}
.ebr-mobile .ebr-panel .eb-date-shortcuts button{min-height:34px;padding:7px 11px;border:0;border-radius:8px;background:#e8eff9;color:#58799d;font-size:10px;font-weight:650;line-height:20px}
.ebr-mobile .ebr-panel .eb-date-shortcuts button.active{background:#dfecfd;color:var(--ebr-blue)}
.ebr-mobile .ebr-panel .eb-search>button[type=submit]{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:2px 0 0;padding:12px;border:0;border-radius:11px;background:var(--th-btn,#1468d6);color:#fff;font-size:13px;font-weight:700;line-height:22px}
.ebr-mobile .ebr-panel .eb-search>button[type=submit] .eb-icon{width:16px;height:16px}
.ebr-mobile #ets-city-popup.is-mobile{z-index:100050}
@media(max-width:359px){.ebr-mobile .eb-results-heading h2{font-size:19px}.ebr-mobile .eb-sort select{width:131px;max-width:131px;font-size:9px}.ebr-mobile .eb-journey-line{gap:5px}.ebr-mobile .eb-journey-line strong{font-size:15px}.ebr-mobile .eb-bus-price strong{display:block;font-size:20px}.ebr-mobile .eb-bus-price .eb-btn{padding:10px;font-size:10px}.ebr-mobile .eb-sort label{font-size:8px}}
@media(prefers-reduced-motion:reduce){.ebr-mobile *{scroll-behavior:auto!important;transition:none!important}}

.ebr-mobile .ebr-panel-message{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:#fff2ee;color:#a4422a;font-size:12px;line-height:19px}
.ebr-mobile .ebr-panel input[type=range]{accent-color:var(--ebr-blue)}
