/* AVTOTRIP V148: aligned search controls, larger maps, compact cards and auth contrast. */
html body .av136-dates{position:relative!important;display:flex!important;justify-content:center!important;align-items:center!important}
html body .av136-dates>strong{position:absolute;left:0;top:50%;transform:translateY(-50%)}
html body .av136-dates .av139-range{width:min(600px,100%)!important;max-width:100%!important;justify-content:space-between!important}
@media(min-width:851px){
html body .av136-bar{display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:7px!important;overflow-x:auto!important;scrollbar-width:thin}
html body .av136-bar>.av136-group{flex:0 0 118px!important;width:118px!important;min-width:118px!important;margin:0!important}
html body .av136-bar>.av136-group>summary,html body .av136-bar>.av136-reset{box-sizing:border-box!important;width:100%!important;height:42px!important;min-height:42px!important;margin:0!important;padding:7px 10px!important;border-radius:9px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;font:600 12px/1.15 Arial,sans-serif!important}
html body .av136-bar>.av136-reset{flex:0 0 88px!important;width:88px!important;justify-content:center!important}
html body .av136-bar>.av76-view-switch{position:static!important;inset:auto!important;flex:0 0 auto!important;align-self:stretch!important;margin:0 0 0 auto!important;width:auto!important;height:42px!important;min-height:42px!important;padding:3px!important;border-radius:9px!important}
html body .av136-bar>.av76-view-switch button{height:36px!important;min-height:36px!important;padding:5px 12px!important;border-radius:7px!important}
}
@media(min-width:1101px){html body .av76-catalog[data-view=map] .av76-split{grid-template-columns:minmax(520px,66.4%) minmax(280px,33.6%)!important}}

.av145-driver-layout{display:block;min-height:420px}.av145-driver-layout[data-view=map]{display:grid;grid-template-columns:minmax(520px,66.4%) minmax(280px,33.6%);gap:16px;align-items:start}.av145-driver-layout[data-view=map] #driverResults120{grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100vh - 245px);overflow:auto;padding-right:8px}.av145-driver-map{display:none;position:relative;min-height:540px;height:calc(100vh - 245px);border:1px solid #d5e2ec;border-radius:16px;overflow:hidden;background:#e5ece7;position:sticky;top:170px}.av145-driver-layout[data-view=map] .av145-driver-map{display:block}.av145-driver-canvas{position:absolute;inset:0}.av145-driver-status{position:absolute;left:12px;right:12px;bottom:12px;z-index:500;margin:0;padding:9px 12px;border-radius:9px;background:#fff;color:#172b4d;box-shadow:0 4px 18px #0002}.av145-driver-status:empty{display:none}

.av145-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:28px;border:1px solid #d5e2ec;border-radius:20px;background:#fff;color:#172b4d;box-shadow:0 24px 80px #0005;overflow:auto;z-index:2147483647}.av145-dialog::backdrop{background:#071729a8}.av145-dialog h2{margin:0 42px 22px 0;font-size:26px;color:#172b4d}.av145-x{position:absolute;right:18px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:#eef4f8;color:#172b4d;font-size:25px;cursor:pointer}.av145-dialog-body form{display:grid;gap:14px}.av145-field{display:grid;gap:7px;font-weight:700}.av145-field input{width:100%;min-height:48px;padding:10px 12px;border:1px solid #b9cad8;border-radius:10px;background:#fff;color:#172b4d;-webkit-text-fill-color:#172b4d}.av145-dialog small{color:#60748b;line-height:1.45}.av145-primary{min-height:46px;padding:11px 18px;border:0;border-radius:11px;background:#2586d9;color:#fff;font-weight:700;cursor:pointer}.av145-primary:disabled{opacity:.55}.av145-role-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.av145-message{min-height:22px;margin:0;color:#234d6e}.av145-forgot{margin-left:auto!important}.auth-bottom:has(.av145-forgot){display:flex!important;align-items:center;gap:10px;flex-wrap:wrap}.av145-password-button{display:block;width:100%;padding:12px 16px;border:1px solid #c8d9e7;border-radius:11px;background:#eef6fd;color:#164f80;text-align:left;font:inherit;font-weight:650;cursor:pointer;margin-top:10px}.av145-role-button{border-top:1px solid #d7e0e8!important;border-bottom:1px solid #d7e0e8!important;border-radius:0!important;font-weight:700!important}
#loginForm .av103-role{display:none!important}
html.av145-anon [data-av145-private="1"]{display:none!important}

html:is([data-theme=dark],[data-theme=premium]) body .av76-view-switch{background:#365267!important}html:is([data-theme=dark],[data-theme=premium]) body .av76-view-switch button{color:#edf4fc!important;-webkit-text-fill-color:#edf4fc!important}html:is([data-theme=dark],[data-theme=premium]) body .av76-view-switch button[aria-pressed=true]{background:#1677e8!important;color:#fff!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av145-driver-status,.av145-password-button){background:#17364c!important;color:#f4f8fc!important;-webkit-text-fill-color:#f4f8fc!important;border-color:#5c7c94!important}

/* Authentication stays high-contrast even while the rest of the site is dark. */
html:is([data-theme=dark],[data-theme=premium]) body #login :is(.auth-shell,.auth-panel,.auth-switch,.auth-field,.auth-bottom){background:#fff!important;color:#172b4d!important;border-color:#dce6ee!important;opacity:1!important;filter:none!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(h1,h2,h3,p,label,span,small,.auth-link,.auth-consent){color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(input:not([type=checkbox]),select,textarea){background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;border-color:#7890a3!important;caret-color:#172b4d!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login input::placeholder{color:#718294!important;-webkit-text-fill-color:#718294!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login .auth-consent input{opacity:1!important;filter:none!important;accent-color:#2586d9}
html:is([data-theme=dark],[data-theme=premium]) body #login .auth-switch button{color:#52677a!important;-webkit-text-fill-color:#52677a!important;opacity:1!important}html:is([data-theme=dark],[data-theme=premium]) body #login .auth-switch button.active{color:#4b31c9!important;-webkit-text-fill-color:#4b31c9!important}

/* Notices and upload feedback must never inherit dimmed dark-theme text. */
html:is([data-theme=dark],[data-theme=premium]) body #avto-notice-v48{background:#fff!important;color:#142d40!important;-webkit-text-fill-color:#142d40!important;opacity:1!important;filter:none!important}
html:is([data-theme=dark],[data-theme=premium]) body #avto-notice-v48 :is(.avto-notice-title,.avto-notice-text){color:#142d40!important;-webkit-text-fill-color:#142d40!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #avto-notice-v48 button{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}html:is([data-theme=dark],[data-theme=premium]) body #avto-notice-v48 button.avto-notice-cancel{color:#243f54!important;-webkit-text-fill-color:#243f54!important}
html:is([data-theme=dark],[data-theme=premium]) body :is(.formcard,.paycard,.upload,.av69-files,.av70-file) :is(label,legend,p,small,span,strong){color:#eaf2fb!important;-webkit-text-fill-color:#eaf2fb!important;opacity:1!important}

@media(max-width:1200px){.av145-driver-layout[data-view=map]{grid-template-columns:minmax(420px,66.4%) minmax(250px,33.6%)}.av145-driver-layout[data-view=map] #driverResults120{grid-template-columns:1fr}}
@media(max-width:850px){html body .av136-dates{display:grid!important;grid-template-columns:1fr!important}html body .av136-dates>strong{position:static;transform:none;width:100%;text-align:center}.av145-driver-layout[data-view=map]{display:block}.av145-driver-layout[data-view=map] #driverResults120{display:none}.av145-driver-map{position:relative;top:auto;height:65dvh;min-height:420px}.av76-catalog[data-view=map] .av76-split{display:block!important;padding:0!important}.av76-catalog[data-view=map] .av76-list{display:none}.av76-catalog[data-view=map] .av76-map-panel{display:block;height:65dvh}.av145-role-actions{grid-template-columns:1fr}}
@media(max-width:850px){html body .av136-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}html body .av136-bar>:is(.av136-group,.av136-reset){min-height:42px!important}html body .av136-bar>.av136-group>summary,html body .av136-bar>.av136-reset{box-sizing:border-box!important;height:42px!important;min-height:42px!important;margin:0!important;display:flex!important;align-items:center!important}html body .av136-bar>.av76-view-switch{grid-column:2;justify-self:stretch!important;min-height:42px!important;margin:0!important}html body .av136-bar>.av76-view-switch button{flex:1;min-height:36px!important}}
@media(max-width:700px){
.av145-dialog{padding:22px 18px}
html body header.top{display:flex!important;visibility:visible!important;flex-wrap:wrap!important;height:auto!important;min-height:68px!important;overflow:visible!important}
html body header.top>nav,html body>header>nav{display:flex!important;visibility:visible!important;opacity:1!important;position:static!important;transform:none!important;order:3!important;width:100%!important;max-width:100%!important;min-height:44px!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;padding:5px 2px!important;white-space:nowrap!important;scrollbar-width:none!important}
html body header.top>nav::-webkit-scrollbar,html body>header>nav::-webkit-scrollbar{display:none!important}
html body header.top>nav>a,html body>header>nav>a{display:inline-flex!important;visibility:visible!important;opacity:1!important;flex:0 0 auto!important;align-items:center!important;min-height:34px!important;margin:0!important;padding:6px 9px!important;font-size:12px!important;line-height:1.15!important}
html.av145-anon body header.top>nav>a[data-av145-private="1"],html.av145-anon body>header>nav>a[data-av145-private="1"]{display:none!important}
}

/* Every catalogue control uses the same geometry. The view toggle alone occupies the far-right edge. */
@media(min-width:851px){
html body .av136-bar{display:flex!important;grid-template-columns:none!important;flex-flow:row nowrap!important;align-items:stretch!important;width:100%!important;overflow-x:auto!important;gap:7px!important}
html body .av136-bar>.av136-group{flex:0 0 138px!important;width:138px!important;min-width:138px!important}
html body .av136-bar>.av136-group>summary,html body .av136-bar>.av136-reset{box-sizing:border-box!important;height:46px!important;min-height:46px!important;padding:10px 12px!important;border:1px solid #cbd9e7!important;border-radius:10px!important;background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;white-space:nowrap!important;font:600 12px/1.2 Arial,sans-serif!important}
html body .av136-bar>.av136-reset{flex:0 0 88px!important;width:88px!important;justify-content:center!important}
html body .av136-bar>.av76-view-switch{position:sticky!important;right:0!important;inset-block:auto!important;flex:0 0 112px!important;width:112px!important;height:46px!important;min-height:46px!important;margin-left:auto!important;padding:3px!important;align-self:stretch!important;z-index:3!important;box-shadow:-16px 0 18px -14px rgba(11,34,51,.5)}
html body .av136-bar>.av76-view-switch button{height:40px!important;min-height:40px!important;flex:1!important;padding:6px 10px!important}
}

/* The current map was 33.6%; add ten percent without returning to the oversized 56% layout. */
@media(min-width:1101px){html body .av76-catalog[data-view=map] .av76-split{grid-template-columns:minmax(500px,63%) minmax(320px,37%)!important}.av145-driver-layout[data-view=map]{grid-template-columns:minmax(500px,63%) minmax(320px,37%)!important}}
@media(min-width:851px) and (max-width:1100px){html body .av76-catalog[data-view=map] .av76-split{grid-template-columns:minmax(430px,63%) minmax(280px,37%)!important}.av145-driver-layout[data-view=map]{grid-template-columns:minmax(430px,63%) minmax(280px,37%)!important}}

/* Compact result cards by roughly twenty percent while keeping all booking data visible. */
@media(min-width:851px){
html body .av76-catalog[data-view=map] .av76-result-card{height:144px!important;min-height:144px!important}
html body .av76-catalog[data-view=map] .av76-result-card>img{height:144px!important;aspect-ratio:auto!important}
html body .av76-result-content{padding:10px 12px!important}
html body .av76-result-content h2{margin-bottom:4px!important;font-size:18px!important}
html body .av76-result-content p{margin-bottom:3px!important;line-height:1.25!important}
html body .av76-car-price{padding-top:5px!important}
html body .av76-catalog[data-view=grid] .av76-result-card>img{aspect-ratio:1.85!important}
.av120-card{padding:13px!important}.av120-card img{height:152px!important}.av120-card h2{margin:9px 0 5px!important}.av120-card p{margin:4px 0!important}.av120-card h3{margin:8px 0!important}
}

/* The login/registration modal stays readable even when the site uses the dark theme. */
html:is([data-theme=dark],[data-theme=premium]) body #login .auth-promo{background:linear-gradient(145deg,#593be2,#3421a7)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login .auth-promo :is(h1,h2,h3,p,b,span,small,a){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;text-shadow:none!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm,.auth-panel){background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm) :is(label,legend,p,span,small,strong){color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm) :is(input:not([type=checkbox]),select,textarea){background:#fff!important;color:#172b4d!important;-webkit-text-fill-color:#172b4d!important;border-color:#7890a3!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm) option{background:#fff!important;color:#172b4d!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm) .auth-submit{background:#2586d9!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
html:is([data-theme=dark],[data-theme=premium]) body #login :is(#loginForm,#registerForm) .auth-submit *{color:#fff!important;-webkit-text-fill-color:#fff!important}

@media(max-width:850px){
html body .av136-bar>.av136-group>summary,html body .av136-bar>.av136-reset{height:46px!important;min-height:46px!important;border-radius:10px!important}
html body .av136-bar>.av76-view-switch{min-height:46px!important}
}

/* AVTOTRIP V149: result cards are 10% taller and every photo remains fully visible. */
@media(min-width:851px){
html body .av76-catalog[data-view=map] .av76-result-card{height:160px!important;min-height:160px!important}
html body .av76-catalog[data-view=map] .av76-result-card>img{height:160px!important;aspect-ratio:auto!important;object-fit:contain!important;background:#eef3f7!important}
html body .av76-catalog[data-view=grid] .av76-result-card>img{aspect-ratio:1.68!important;object-fit:contain!important;background:#eef3f7!important}
html body .av120-card img{height:168px!important;object-fit:contain!important;background:#eef3f7!important}
}
@media(max-width:850px){
html body .av76-result-card>img,html body .av76-catalog[data-view=grid] .av76-result-card>img{object-fit:contain!important;background:#eef3f7!important}
html body .av120-card img{object-fit:contain!important;background:#eef3f7!important}
}

/* V148 light-control rules were more specific than the dark theme. Restore the intended contrast last. */
html:is([data-theme=dark],[data-theme=premium]) body .av136-bar>.av136-group>summary,
html:is([data-theme=dark],[data-theme=premium]) body .av136-bar>.av136-reset{
 background:#17364c!important;color:#f6f9fc!important;-webkit-text-fill-color:#f6f9fc!important;
 border-color:#64849c!important;opacity:1!important;text-shadow:none!important;color-scheme:dark!important
}
html:is([data-theme=dark],[data-theme=premium]) body .av136-bar>.av136-group[open]>summary,
html:is([data-theme=dark],[data-theme=premium]) body .av136-bar>.av136-group.av136-selected>summary{
 background:#18527b!important;border-color:#77bdff!important;color:#fff!important;-webkit-text-fill-color:#fff!important
}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av136-panel,.av120-options,.av100-select-pop){
 background:#102b3d!important;color:#f6f9fc!important;-webkit-text-fill-color:#f6f9fc!important;border-color:#64849c!important;color-scheme:dark!important
}
html:is([data-theme=dark],[data-theme=premium]) body :is(.av136-form,.av136-panel,.av76-list,.av76-result-card,.av120-page,.av120-card,.formcard,.paycard,.client-side,.av79-owner-nav)
 :is(h1,h2,h3,h4,p,label,legend,summary,small,strong,span,button,a){
 color:#f3f8fd!important;-webkit-text-fill-color:#f3f8fd!important;opacity:1!important;text-shadow:none
}
html:is([data-theme=dark],[data-theme=premium]) body .av76-result-card>img,
html:is([data-theme=dark],[data-theme=premium]) body .av120-card img{background:#17364c!important}

/* Account type is a light native control inside the light authentication panel. */
html body #login #registerForm #regRole,
html:is([data-theme=dark],[data-theme=premium]) body #login #registerForm #regRole{
 appearance:auto!important;-webkit-appearance:menulist!important;background:#fff!important;background-color:#fff!important;
 color:#102a43!important;-webkit-text-fill-color:#102a43!important;border-color:#7890a3!important;
 color-scheme:light!important;forced-color-adjust:none!important;opacity:1!important;text-shadow:none!important;font-weight:600!important
}
html body #login #registerForm #regRole option,
html:is([data-theme=dark],[data-theme=premium]) body #login #registerForm #regRole option{
 background:#fff!important;color:#102a43!important;-webkit-text-fill-color:#102a43!important;opacity:1!important
}
