/* SA2030 v2.2.2 | Isolated visual fixes. Booking/checkout PHP is unchanged. */
/* 1. Sõprade sõidu form: original page lacks .sae-page so previous form padding rules never applied. */
body.sa2030-page-soprade-soit #registreerimine .sae-ride-form{
  width:100%;max-width:1120px;margin:34px auto 0;padding:0 clamp(12px,3vw,32px);box-sizing:border-box;
}
body.sa2030-page-soprade-soit #registreerimine .sae-ride-form .sae-form{
  display:block;box-sizing:border-box;width:100%;max-width:1020px;margin:0 auto!important;
  padding:clamp(25px,3.5vw,50px)!important;border:1px solid #dce7e9;
  border-radius:20px;box-shadow:0 12px 32px rgba(8,27,46,.14);
  background:#fff!important;color:#163a3b!important;text-align:left;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-cols{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form label:not(.sae-check){
  display:block;margin:0 0 17px;font-size:15px;font-weight:740;line-height:1.5;color:#203d46;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form input:not([type="checkbox"]),
body.sa2030-page-soprade-soit .sae-ride-form .sae-form select,
body.sa2030-page-soprade-soit .sae-ride-form .sae-form textarea{
  display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;
  margin:8px 0 0!important;padding:11px 14px!important;border:1px solid #aebfc8!important;
  border-radius:10px!important;background:#fff!important;color:#183b40!important;
  font:inherit!important;line-height:1.4!important;box-shadow:none!important;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form input[type="radio"],
body.sa2030-page-soprade-soit .sae-ride-form .sae-form input[type="checkbox"]{
  display:inline-block!important;width:19px!important;height:19px!important;min-height:19px!important;
  margin:3px 9px 0 0!important;padding:0!important;flex:0 0 19px!important;vertical-align:middle;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form .sae-check{
  display:flex;align-items:flex-start;gap:9px;margin:18px 0;color:#2b4850;line-height:1.6;text-align:left;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form .sae-sum{
  box-sizing:border-box;width:100%;padding:18px 22px;border-radius:13px;
  background:#e5f3e9;color:#123d30;margin:22px 0;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form .sae-button{
  min-height:46px;margin-top:14px;padding:13px 28px;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form .sae-error{
  border-color:#d32839!important;background:#fff4f4!important;
}
body.sa2030-page-soprade-soit .sae-ride-form .sae-form :is(input,select,textarea):focus-visible{
  outline:3px solid #3994a0!important;outline-offset:2px;
}
@media(max-width:700px){
  body.sa2030-page-soprade-soit #registreerimine .sae-ride-form{padding:0 3px;margin-top:24px;}
  body.sa2030-page-soprade-soit #registreerimine .sae-ride-form .sae-form{padding:22px 18px!important;border-radius:15px;}
  body.sa2030-page-soprade-soit .sae-ride-form .sae-cols{grid-template-columns:minmax(0,1fr)}
}
/* 2. Host hero: genuine photograph in a prominent wide portrait frame. */
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero{min-height:630px;padding:74px 0 68px}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-grid{
  grid-template-columns:minmax(0,1.02fr) minmax(0,0.98fr);gap:clamp(25px,4.5vw,75px);
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-art{
  min-height:490px;max-width:none;width:100%;margin:0;align-self:stretch;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-art img{
  display:block;width:100%!important;height:100%!important;min-height:490px;max-width:none!important;
  max-height:570px!important;object-fit:cover!important;object-position:center 40%;
  border-radius:24px;box-shadow:0 25px 70px rgba(0,9,16,.45);filter:none!important;
}
/* 3. Tatra: a restrained typography-led interim design, editable logo stays a small supporting mark. */
body.sa2030-page-tatra-gravel .sae-page .sae-hero{
  min-height:560px;padding:80px 0 82px;
  background:
    radial-gradient(ellipse at 93% 20%,rgba(129,183,137,.22),transparent 55%),
    radial-gradient(ellipse at 12% 95%,rgba(9,86,76,.7),transparent 58%),
    linear-gradient(118deg,#092931,#103f3a 66%,#102f35 100%)!important;
}
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero{
  grid-template-columns:minmax(0,1.4fr) minmax(200px,.6fr);gap:clamp(20px,5vw,76px);
}
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero h1,
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero h1 *{
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  text-shadow:0 2px 14px rgba(0,0,0,.2)!important;
}
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero h1 span{
  color:#f6d37c!important;-webkit-text-fill-color:#f6d37c!important;
}
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero .sae-hero-art{
  min-height:150px;align-items:center;justify-content:center;
}
body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero .sae-hero-art img{
  width:min(300px,100%);max-width:300px;max-height:190px;object-fit:contain;
  opacity:.92;filter:drop-shadow(0 10px 24px rgba(0,0,0,.25));
}
body.sa2030-page-tatra-gravel .sae-page .sae-facts{gap:17px 26px}
/* 4. Three common event links in the secondary menu, current item indicated. */
#sa2030-sticky .sa2030-event-local-nav{gap:clamp(13px,2.6vw,30px);min-width:0}
#sa2030-sticky .sa2030-event-local-nav a{
  position:relative;white-space:nowrap;font-weight:700!important;
}
#sa2030-sticky .sa2030-event-local-nav a.is-active{
  color:var(--sa-nav-accent,#16768b)!important;
}
#sa2030-sticky .sa2030-event-local-nav a.is-active:after{
  content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:currentColor;
}
/* 5. Gallery arrows shared with old Limpa lightboxes: fixed circles + CSS chevrons, never oval glyphs. */
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-logo-rail-btn{
  box-sizing:border-box!important;flex:0 0 44px!important;display:grid!important;place-items:center!important;
  width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;
  min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;
  aspect-ratio:1/1;border:1px solid #b5d2c7!important;border-radius:50%!important;
  background:#fff!important;font-size:0!important;line-height:1!important;color:#173e39!important;
  box-shadow:0 5px 17px #092d2422;cursor:pointer;transition:background .15s;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-logo-rail-btn:before{
  content:"";display:block;width:12px;height:12px;
  border-right:3px solid #173e39;border-bottom:3px solid #173e39;transform:rotate(-45deg);margin-right:5px;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-logo-rail-btn[data-scroll="-1"]:before{
  transform:rotate(135deg);margin-left:5px;margin-right:0;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-logo-rail-btn:hover{background:#def1d3!important}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-logo-rail-btn:focus-visible{outline:3px solid #0a987d!important;outline-offset:3px}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox[hidden]{display:none!important}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox{
  position:fixed!important;inset:0!important;z-index:2147482000!important;display:flex!important;
  justify-content:center!important;align-items:center!important;background:rgba(4,17,26,.96)!important;
  box-sizing:border-box!important;margin:0!important;padding:68px 82px 42px!important;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#fff!important;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lb-figure{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:100%;max-width:1280px;min-width:0;margin:0;padding:0;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lb-figure img{
  display:block;width:auto;height:auto;max-width:100%!important;
  max-height:calc(100dvh - 158px)!important;object-fit:contain!important;border-radius:6px;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lb-figure figcaption{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:16px;
  margin:14px 0 0;color:#fff;font-size:13px;text-align:center;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lb-count{
  display:inline-block;border-radius:30px;padding:5px 13px;background:#ffffff25;
  font-variant-numeric:tabular-nums;font-weight:800;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox :is(.sae-host-lb-prev,.sae-host-lb-next){
  box-sizing:border-box!important;position:absolute!important;top:50%!important;bottom:auto!important;
  transform:translateY(-50%)!important;display:flex!important;justify-content:center!important;align-items:center!important;
  width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;
  min-height:48px!important;max-height:48px!important;margin:0!important;padding:0!important;
  border:1px solid #ffffff44!important;border-radius:50%!important;
  background:#f8fcff!important;color:#153547!important;font-size:0!important;line-height:1!important;
  box-shadow:0 5px 24px #0008!important;cursor:pointer;z-index:2!important;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox :is(.sae-host-lb-prev,.sae-host-lb-next):before{
  content:"";display:block;width:12px;height:12px;flex:0 0 12px;
  border-right:3px solid #153547;border-bottom:3px solid #153547;transform:rotate(-45deg);margin-right:5px;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-prev:before{
  transform:rotate(135deg);margin-right:0;margin-left:5px;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-prev{left:18px!important;right:auto!important}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-next{right:18px!important;left:auto!important}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox :is(.sae-host-lb-prev,.sae-host-lb-next):hover{
  background:#d6f18b!important;
}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox :is(button):focus-visible{outline:3px solid #d6f18b!important;outline-offset:3px}
body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-close{
  position:absolute!important;top:15px!important;right:22px!important;z-index:3!important;
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
  border:1px solid #ffffff99!important;border-radius:50%!important;background:#193440!important;
  color:white!important;font:34px/1 sans-serif!important;padding:0!important;cursor:pointer;
}
@media(max-width:860px){
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-grid,
  body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero{grid-template-columns:1fr}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-art{height:auto;min-height:0}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-page .sae-hero-art img{
    height:auto!important;min-height:0;max-height:480px!important;aspect-ratio:4/3;object-fit:cover!important;
  }
  body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero .sae-hero-art{justify-content:flex-start;min-height:0}
  body.sa2030-page-tatra-gravel .sae-page .sae-tatra-temp-hero .sae-hero-art img{width:min(250px,70vw)}
}
@media(max-width:780px){
  #sa2030-sticky[data-page="tatra-gravel"] .sa2030-local-title,
  #sa2030-sticky[data-page="soprade-soit"] .sa2030-local-title,
  #sa2030-sticky[data-page="paeva-ja-ohtujuhtimine"] .sa2030-local-title{display:none!important}
  #sa2030-sticky .sa2030-event-local-nav{gap:16px!important}
  #sa2030-sticky .sa2030-event-local-nav a{font-size:12px!important}
}
@media(max-width:600px){
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox{padding:65px 54px 35px!important}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lb-figure img{max-height:calc(100dvh - 160px)!important}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox :is(.sae-host-lb-prev,.sae-host-lb-next){width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;min-height:42px!important;max-height:42px!important}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-prev{left:5px!important}
  body.sa2030-page-paeva-ja-ohtujuhtimine .sae-host-lightbox .sae-host-lb-next{right:5px!important}
  #sa2030-sticky .sa2030-event-local-nav a{font-size:11px!important}
}
