/* Final iPhone/Capacitor layout layer. Keep this stylesheet last. */
:root{
  --gosom-safe-top:env(safe-area-inset-top,0px);
  --gosom-safe-right:env(safe-area-inset-right,0px);
  --gosom-safe-bottom:env(safe-area-inset-bottom,0px);
  --gosom-safe-left:env(safe-area-inset-left,0px)
}
html{width:100%;min-height:100%;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;min-height:100%;margin:0;overflow-x:hidden;overscroll-behavior-x:none}
*,*:before,*:after{box-sizing:border-box}
img:not(.leaflet-tile),svg,canvas,video,iframe{max-width:100%}
.leaflet-container{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}
.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas{position:absolute;left:0;top:0}
.leaflet-map-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}
.leaflet-control{position:relative;z-index:800;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}
button,input,select,textarea{font:inherit}

@media(max-width:760px){
  html,body{max-width:100vw}
  body{padding-left:var(--gosom-safe-left);padding-right:var(--gosom-safe-right)}
  .login-screen{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;display:block!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch;background:#07121f!important}
  .login-screen.hidden{display:none!important}
  .showcase-front .login-visual{width:100%!important;min-height:340px!important;height:auto!important;padding:max(10px,var(--gosom-safe-top)) 16px 25px!important;background-position:58% 58%!important}
  .showcase-front .showcase-top{min-height:42px!important;grid-template-columns:28px minmax(0,1fr) 68px!important}
  .showcase-front .login-logo{width:126px!important;height:45px!important;max-width:44vw!important}
  .showcase-front .front-hero{max-width:290px!important;margin:10px 0 8px!important}
  .showcase-front .front-hero .eyebrow{font-size:7px!important;margin:0 0 5px!important}
  .showcase-front .front-hero h1{font-size:clamp(31px,9.2vw,37px)!important;line-height:.86!important;letter-spacing:-1.8px!important;overflow-wrap:anywhere}
  .showcase-front .front-hero h2{margin:9px 0 3px!important;font-size:13px!important}
  .showcase-front .front-hero>p:not(.eyebrow){max-width:270px!important;font-size:9px!important;line-height:1.4!important}
  .showcase-benefits{width:min(280px,94%)!important;margin-top:12px!important}
  .showcase-benefits i{width:28px!important;height:28px!important}
  .showcase-benefits b{font-size:7px!important}
  .showcase-front .login-panel{width:100%!important;margin:-14px 0 0!important;padding:18px 14px calc(20px + var(--gosom-safe-bottom))!important;border-radius:20px 20px 0 0!important;min-height:auto!important}
  .showcase-front .login-panel form{width:100%!important;max-width:520px!important}
  .showcase-front .front-panel-heading{margin-bottom:11px!important}
  .showcase-front .front-panel-heading h2{font-size:21px!important;line-height:1.15!important}
  .showcase-front .login-type-switch{gap:8px!important;margin-bottom:14px!important}
  .showcase-front .login-type{min-width:0!important;min-height:60px!important;padding:9px!important;grid-template-columns:36px minmax(0,1fr)!important;touch-action:manipulation}
  .showcase-front .login-type-icon{width:36px!important;height:36px!important}
  .showcase-front .login-type b{font-size:13px!important}.showcase-front .login-type small{font-size:8px!important}
  .showcase-front #googleButton,.showcase-front .google-fallback{width:100%!important;min-height:50px!important;height:50px!important}
  .showcase-front .google-fallback{display:flex;align-items:center;justify-content:center;gap:12px;padding:0 16px!important}
  .showcase-front .oauth-note{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .showcase-proof{margin-top:15px!important;padding:12px 5px!important}
  .showcase-skyline{height:38px!important}

  .role-bar{padding-top:var(--gosom-safe-top)!important;height:auto!important;min-height:calc(54px + var(--gosom-safe-top))!important}
  .portal,.driver-app-page,.driver-account-backdrop,.rider-account-page,.settings-backdrop,.schedule-backdrop{max-width:100vw!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  .customer-portal,.driver-portal{min-height:100dvh!important;padding-bottom:calc(92px + var(--gosom-safe-bottom))!important}
  .rider-home-v2,.driver-app-page>section,.driver-account-backdrop>section,.rider-account-page>section{width:100%!important;max-width:100%!important}
  .account-page-header{padding-top:max(14px,var(--gosom-safe-top))!important}
  .rider-bottom-nav,.driver-bottom-nav{left:0!important;right:0!important;bottom:0!important;min-height:calc(66px + var(--gosom-safe-bottom))!important;padding:8px 10px max(8px,var(--gosom-safe-bottom))!important}
  .rider-bottom-nav button,.driver-bottom-nav button{min-width:44px!important;min-height:44px!important;touch-action:manipulation}
  .rider-account-page>section,.driver-account-backdrop,.driver-app-page{padding-bottom:calc(150px + var(--gosom-safe-bottom))!important}
  .rider-account-page .account-logout,.driver-account-backdrop .driver-logout{bottom:calc(74px + var(--gosom-safe-bottom))!important;left:16px!important;right:16px!important}
  .settings-sheet,.schedule-sheet,.driver-sheet{max-height:calc(100dvh - var(--gosom-safe-top))!important;padding-bottom:calc(24px + var(--gosom-safe-bottom))!important;overflow-y:auto!important}
  table{max-width:100%}.table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* Driver Home: compact iPhone layout. The native WebView already starts at the
   screen edge, therefore this header alone owns the top safe-area inset. */
@media(max-width:760px){
  body:has(.driver-portal:not(.hidden)){height:100dvh!important;overflow:hidden!important;background:#f4f6f8!important}
  .driver-portal{
    position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;min-height:0!important;
    padding:0 0 calc(64px + var(--gosom-safe-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;background:#f4f6f8!important
  }
  .driver-mobile-header{
    height:calc(52px + var(--gosom-safe-top))!important;min-height:0!important;padding:var(--gosom-safe-top) 14px 0!important;
    grid-template-columns:38px 1fr 38px!important;background:#031522!important
  }
  .driver-mobile-header img{width:105px!important;height:40px!important;object-fit:contain!important}
  .driver-mobile-header button{width:36px!important;height:36px!important}
  .driver-top{height:48px!important;min-height:48px!important;padding:5px 14px!important;grid-template-columns:1fr auto!important;background:#031522!important}
  .driver-top .online-toggle{min-width:104px!important;justify-content:flex-end!important;gap:7px!important;padding:4px 5px 4px 10px!important;border:1px solid #f6bd1666!important;border-radius:999px!important;background:#ffffff0b!important}
  .driver-top .online-toggle span{display:block!important;font-size:10px!important;color:#fff!important}
  .driver-top .online-toggle i{width:45px!important;height:27px!important}
  .driver-grid{display:block!important;padding:0!important;background:#f4f6f8!important}
  .driver-map{height:330px!important;min-height:330px!important;border-radius:0 0 20px 20px!important;overflow:hidden!important;background:#dce8eb!important}
  .driver-map>.leaflet-map,.driver-map .leaflet-container{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:0 0 20px 20px!important}
  .driver-map.map-ready>.roads,.driver-map.map-ready>.heat,.driver-map.map-ready>.area,.driver-map.map-ready>.driver-pin,.driver-map.map-ready>.demand{display:none!important}
  .driver-map .leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important;width:256px!important;height:256px!important}
  .driver-map-actions{right:12px!important;bottom:78px!important;gap:7px!important}
  .driver-map-actions button{width:42px!important;height:42px!important}
  .driver-map:after{left:12px!important;right:12px!important;bottom:12px!important;padding:11px 14px 11px 40px!important;border-radius:13px!important;font-size:11px!important;line-height:1.35!important}
  .driver-map:before{left:25px!important;bottom:34px!important}
  .offers{min-height:190px!important;margin:10px 9px 12px!important;padding:13px!important;border-radius:17px!important}
  .offer-head span{font-size:13px!important}.offer-head b{font-size:10px!important}
  .driver-bottom-nav{z-index:3700!important;min-height:calc(62px + var(--gosom-safe-bottom))!important;padding:6px 8px max(6px,var(--gosom-safe-bottom))!important}
  .driver-bottom-nav button{min-height:42px!important}.driver-bottom-nav .ui-icon{width:20px!important;height:20px!important}.driver-bottom-nav span{font-size:9px!important}
  .driver-app-page{padding-bottom:calc(82px + var(--gosom-safe-bottom))!important}
  .driver-app-page>section{position:relative!important;padding-top:calc(22px + var(--gosom-safe-top))!important;padding-bottom:calc(92px + var(--gosom-safe-bottom))!important}
  .driver-app-page .driver-sheet-close{position:fixed!important;z-index:3720!important;display:grid!important;place-items:center!important;right:14px!important;top:calc(10px + var(--gosom-safe-top))!important;width:40px!important;height:40px!important;border:1px solid #dfe4e8!important;border-radius:50%!important;background:#fff!important;color:#101827!important;font-size:24px!important;box-shadow:0 7px 20px #07172724!important}
}

/* Compact Rider experience for real iPhones. Capacitor uses contentInset=never,
   so this layer is the single owner of safe-area spacing. */
@media(max-width:760px){
  body:has(.rider-home-v2:not(.hidden)){height:100dvh!important;overflow:hidden!important}
  .rider-home-v2{
    position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;
    min-height:0!important;padding:0 0 calc(66px + var(--gosom-safe-bottom))!important;
    overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;
    overscroll-behavior-y:contain;background:#f8fafc!important
  }
  .rider-welcome{min-height:0!important;padding:calc(8px + var(--gosom-safe-top)) 16px 30px!important}
  .rider-home-v2 .rider-home-header{min-height:42px!important;padding:0!important}
  .rider-home-v2 .rider-home-header>img{width:108px!important;height:42px!important}
  .rider-home-v2 .rider-home-header>div{gap:8px!important}
  .rider-home-v2 .rider-home-header button{width:38px!important;height:38px!important}
  .rider-greeting{margin-top:7px!important;padding-right:104px!important}
  .rider-greeting h1{margin-bottom:1px!important;font-size:clamp(20px,5.7vw,23px)!important;line-height:1.12!important;letter-spacing:-.45px!important;white-space:nowrap}
  .rider-greeting p{font-size:12px!important;line-height:1.35!important}
  .rider-weather{right:0!important;bottom:-1px!important;min-width:94px!important;padding:7px 9px!important;grid-template-columns:27px 1fr!important}
  .rider-weather i{width:20px!important;height:20px!important}.rider-weather b{font-size:11px!important}.rider-weather small{font-size:7px!important}
  .rider-home-v2 .where-to{width:calc(100% - 24px)!important;min-height:148px!important;margin:0 auto!important;padding:14px 54px 9px 52px!important;gap:5px!important;border-radius:20px!important;touch-action:manipulation!important;cursor:pointer!important}
  .rider-home-v2 .where-to small{font-size:11px!important}.rider-home-v2 .where-to b{font-size:9px!important}.rider-home-v2 .where-to strong{display:flex!important;align-items:center!important;min-height:44px!important;font-size:18px!important;line-height:1.15!important}
  .route-pin{left:22px!important;width:27px!important;height:27px!important}.pickup-pin{top:14px!important}.destination-pin{bottom:17px!important}.route-line{left:35px!important;top:47px!important;height:38px!important}
  .route-swap{right:14px!important;top:16px!important;width:36px!important;height:36px!important}
  .destination-shortcuts{margin:2px -38px -4px!important;padding-top:8px!important}.destination-shortcuts button{font-size:8px!important}
  .rider-map-card{height:245px!important;margin-top:-8px!important}
  .rider-map-card .leaflet-container{width:100%!important;height:100%!important}
  .leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important;width:256px!important;height:256px!important}
  .map-locate{right:14px!important;top:31px!important;width:43px!important;height:43px!important}
  .nearby-cars{right:13px!important;bottom:13px!important;padding:9px 14px 9px 43px!important}
  .rider-home-v2 .service-grid{gap:6px!important;padding:11px 10px 12px!important}
  .rider-home-v2 .service-grid button{min-height:78px!important;padding:6px 2px!important;border-radius:14px!important}
  .rider-home-v2 .service-grid i{width:32px!important;height:32px!important}.rider-home-v2 .service-grid b{font-size:10px!important}.rider-home-v2 .service-grid small{font-size:7px!important}
  .rider-home-v2 .home-section-title{margin:14px 0 8px!important}.popular-places{grid-auto-columns:48%!important}.popular-places button{min-height:112px!important}
  .rider-home-v2 .safety-card{margin-top:16px!important}
  .rider-bottom-nav{z-index:1450!important;min-height:calc(62px + var(--gosom-safe-bottom))!important;padding:6px 8px max(6px,var(--gosom-safe-bottom))!important}
  .rider-bottom-nav button{min-height:42px!important}.rider-bottom-nav .ui-icon{width:20px!important;height:20px!important}.rider-bottom-nav span{font-size:9px!important}

  .rider-account-page{position:fixed!important;inset:0!important;display:block!important;width:100%!important;height:100dvh!important;min-height:0!important;padding:0!important;overflow:hidden!important;background:#f8fafc!important}
  .rider-account-page.hidden{display:none!important}
  .rider-account-page>section{width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0 14px calc(92px + var(--gosom-safe-bottom))!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important}
  .account-page-header{margin:0 -14px!important;padding:calc(10px + var(--gosom-safe-top)) 16px 26px!important}
  .account-page-header img{width:108px!important;height:43px!important}.account-page-header .account-mini-avatar{right:16px!important;top:calc(10px + var(--gosom-safe-top))!important;width:40px!important;height:40px!important}
  .account-page-header h1{margin:13px 0 1px!important;font-size:25px!important}.account-page-header p{font-size:12px!important}
  .account-profile-card{grid-template-columns:54px 1fr 14px!important;gap:11px!important;margin:-15px 0 19px!important;padding:13px!important}.account-profile-card .account-large-avatar{width:50px!important;height:50px!important}.account-profile-card h2{font-size:18px!important}
  .rider-account-page>section>h3{margin:17px 2px 8px!important;font-size:17px!important}
  .rider-account-page .account-group button{min-height:53px!important;padding:10px 13px!important}.rider-account-page .account-group button>span{font-size:13px!important}
  .rider-account-page .account-logout{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;min-height:52px!important;margin:22px 0 8px!important;box-shadow:none!important}

  .customer-map .mobile-route-bar{top:max(calc(var(--gosom-safe-top) + 12px),62px)!important;left:12px!important;right:12px!important;width:auto!important;transform:none!important;min-height:56px!important;padding:9px 11px!important}
  .customer-portal .booking-copy{height:64%!important;min-height:500px!important}
  .customer-map .mobile-route-bar .route-place{min-height:42px!important;padding:4px 3px!important;touch-action:manipulation!important}
  .customer-map .mobile-route-bar .route-place small{font-size:8px!important}.customer-map .mobile-route-bar .route-place b{font-size:12px!important}
  .customer-map .city-switcher{top:max(calc(var(--gosom-safe-top) + 78px),128px)!important}
  .customer-map>.leaflet-map,.customer-map .leaflet-container{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
  .customer-map .leaflet-container img.leaflet-tile{max-width:none!important;max-height:none!important;width:256px!important;height:256px!important}
}

@media(max-width:375px), (max-height:700px) and (max-width:760px){
  .showcase-front .login-visual{min-height:300px!important;padding-bottom:20px!important}
  .showcase-front .front-hero{margin-top:5px!important}
  .showcase-front .front-hero h1{font-size:30px!important}
  .showcase-front .front-hero>p:not(.eyebrow){display:none!important}
  .showcase-benefits{margin-top:8px!important}
  .showcase-front .login-panel{padding-top:15px!important}
  .showcase-proof,.showcase-skyline{display:none!important}
}
