/* v1.99 – mobile app dock, without changing tablet/desktop navigation. */
.at199-mobile-dock,.at199-search-panel,.at199-search-backdrop,.at-share-rail__mobile-links{display:none}
@media (max-width:767px){
 html.at199-nav-ready body{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 /* Remove hamburger only after the functional bottom navigation has initialized. */
 html.at199-nav-ready body .at-header .at-primary-menu{display:none!important}
 html.at199-nav-ready body .at-header .at-utility-menu{display:none!important}
 html.at199-nav-ready body .at-header .at-logo-line{min-width:0!important}
 html.at199-nav-ready body .at199-mobile-dock{
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;
   position:fixed!important;z-index:2147483010!important;
   bottom:calc(9px + env(safe-area-inset-bottom,0px));left:12px;right:12px;
   padding:7px 5px 8px;margin:0!important;min-height:67px;
   border:1px solid #d5e6e3;border-radius:22px;
   background:rgba(255,255,255,.97);color:#637e81;
   box-shadow:0 6px 26px rgba(5,57,62,.17),0 1px 5px rgba(5,57,62,.06);
   -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
   transform:translate3d(0,0,0);transition:transform .23s ease,opacity .23s ease;
   font:500 10px/1.2 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
 }
 /* Keep the dock visible during scrolling; hidden controls previously caused inconsistent page navigation. */
 html.at199-nav-ready body .at199-mobile-dock.at199-mobile-dock--hidden{transform:none;opacity:1;pointer-events:auto}
 html.at199-nav-ready body .at199-mobile-dock__item{
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;
  min-width:0;min-height:51px;margin:0;padding:2px 0;
  border:0;border-radius:13px;background:transparent;color:#60777a;
  text-decoration:none!important;cursor:pointer;font:inherit;white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
 }
 html.at199-nav-ready body .at199-mobile-dock__item svg{display:block;width:23px;height:23px;flex-shrink:0;stroke:currentColor}
 html.at199-nav-ready body .at199-mobile-dock__item span{font-size:clamp(9px,2.4vw,11px);font-weight:550;letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 html.at199-nav-ready body .at199-mobile-dock__item:is(.is-active,[aria-expanded="true"]){color:#087c84;background:#e6f4f1}
 html.at199-nav-ready body .at199-mobile-dock__item:is(:hover,:focus-visible){color:#087c84;background:#e6f4f1}
 html.at199-nav-ready body .at199-mobile-dock__item:focus-visible{outline:2px solid #087c84;outline-offset:1px}
 /* Replace old mobile-floating Več restore button with dock item. Existing control panel is reused. */
 html.at199-nav-ready body .at-share-rail__restore{display:none!important}
 html.at199-nav-ready body .at-share-rail{
  z-index:2147483011!important;left:auto!important;right:12px!important;
  top:auto!important;bottom:calc(94px + env(safe-area-inset-bottom,0px))!important;
  max-height:calc(100dvh - 118px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  width:260px!important;max-width:calc(100vw - 24px)!important;
  box-shadow:0 10px 38px rgba(4,42,49,.24)!important;
 }
 html.at199-nav-ready body .at-share-rail[hidden]{display:none!important}
 html.at199-nav-ready body .at-share-rail__mobile-links{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;padding-top:8px;border-top:1px solid #d5e6e3;width:100%}
 html.at199-nav-ready body .at-share-rail__mobile-links a{font:600 11px/1.3 system-ui,sans-serif;color:#07515a;text-decoration:none;padding:7px 8px;border-radius:9px;background:#edf6f5}
 html.at199-nav-ready body .at199-search-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:2147483012!important;background:rgba(3,25,30,.4);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
 html.at199-nav-ready body .at199-search-panel:not([hidden]){display:block;position:fixed;z-index:2147483013!important;left:12px;right:12px;bottom:calc(92px + env(safe-area-inset-bottom,0px));max-width:500px;margin:0 auto;padding:18px;border:1px solid #cfe0df;border-radius:20px;background:#fff;box-shadow:0 14px 40px rgba(4,42,49,.28);color:#123c40;font:14px/1.5 system-ui,sans-serif}
 .at199-search-panel__heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
 .at199-search-panel__heading strong{font-size:17px}
 .at199-search-panel__heading button{border:0;background:#e9f3f1;color:#07515a;font-size:23px;line-height:1;width:36px;height:36px;border-radius:50%;cursor:pointer}
 .at199-search-panel label{display:block;font-size:12px;margin-bottom:7px}
 .at199-search-panel__fields{display:flex;align-items:stretch;gap:8px}
 .at199-search-panel input{min-width:0;flex:1;background:#f6faf9;color:#123c40;border:1px solid #b9d1cf;border-radius:10px;padding:12px 10px;font:inherit;font-size:16px}
 .at199-search-panel__fields button{border:0;border-radius:10px;background:#087c84;color:#fff;padding:0 16px;font-weight:650;cursor:pointer}
 html[data-at-theme="dark"].at199-nav-ready body .at199-mobile-dock{background:rgba(27,43,49,.97);border-color:#45616a;color:#bdd1d2;box-shadow:0 8px 26px rgba(0,0,0,.4)}
 html[data-at-theme="dark"].at199-nav-ready body .at199-mobile-dock__item{color:#bdcfd2}
 html[data-at-theme="dark"].at199-nav-ready body .at199-mobile-dock__item:is(.is-active,[aria-expanded="true"],:hover,:focus-visible){color:#95e3e4;background:#27434a}
 html[data-at-theme="dark"].at199-nav-ready body .at199-search-panel{color:#edf5f6;background:#1b2b31;border-color:#45616a}
 html[data-at-theme="dark"].at199-nav-ready body .at199-search-panel input{background:#263f46;color:#edf5f6;border-color:#45616a}
 html[data-at-theme="dark"].at199-nav-ready body .at199-search-panel__heading button{background:#29434a;color:#95e3e4}
 html[data-at-theme="dark"].at199-nav-ready body .at-share-rail__mobile-links a{color:#95e3e4;background:#264149}
 html[data-at-theme="dark"].at199-nav-ready body .at-share-rail__mobile-links{border-color:#45616a}
}
@media(max-width:350px){html.at199-nav-ready body .at199-mobile-dock{left:6px;right:6px;border-radius:18px;padding-left:2px;padding-right:2px}html.at199-nav-ready body .at199-mobile-dock__item svg{width:21px;height:21px}}
@media(prefers-reduced-motion:reduce){.at199-mobile-dock{transition:none!important}}

/* v2.00: viewport-safe mobile dock on all WordPress templates. */
@media (max-width:767px) {
 html.at199-nav-ready body .at199-mobile-dock{box-sizing:border-box!important; width:auto!important; max-width:none!important; isolation:isolate;}
 html.at199-nav-ready body .at199-mobile-dock__item{box-sizing:border-box!important; text-align:center; min-width:0!important; max-width:100%; overflow:hidden;}
 html.at199-nav-ready body .at199-mobile-dock__item span{display:block; line-height:1.3;}
 html.at199-nav-ready body .at199-search-panel{box-sizing:border-box!important; max-height:calc(100dvh - 120px); overflow-y:auto;}
 html.at199-nav-ready body .at-share-rail{box-sizing:border-box!important; overscroll-behavior:contain;}
 html.at199-nav-ready body .at199-mobile-dock,html.at199-nav-ready body .at199-search-panel{direction:ltr;}
 html.at199-nav-ready body .at199-mobile-dock{bottom:calc(8px + env(safe-area-inset-bottom,0px));}
}
@media (max-width:767px) and (orientation:landscape) and (max-height:430px){
 html.at199-nav-ready body .at199-mobile-dock{min-height:54px;padding-block:3px;bottom:3px;border-radius:15px;}
 html.at199-nav-ready body .at199-mobile-dock__item{min-height:47px;}
 html.at199-nav-ready body .at199-search-panel{bottom:65px;max-height:calc(100dvh - 75px);}
 html.at199-nav-ready body .at-share-rail{bottom:65px!important;max-height:calc(100dvh - 75px)!important;}
}

/* v2.01 – destination page and all FSE templates: no JavaScript readiness dependency.
   WP may serve a customised header template from the database, so support both
   the theme's .at-header and the generic template-part navigation. */
@media (max-width:767px) {
  body .at199-mobile-dock {
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;
    position:fixed!important;z-index:2147483010!important;
    left:12px!important;right:12px!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;margin:0!important;min-height:67px;padding:7px 5px 8px;
    border:1px solid #d5e6e3;border-radius:22px;background:rgba(255,255,255,.97);
    color:#637e81;box-shadow:0 6px 26px rgba(5,57,62,.17);
    -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);
    box-sizing:border-box;
  }
  body .at199-mobile-dock__item {
    display:flex!important;flex-direction:column;align-items:center;justify-content:center;
    gap:3px;min-width:0;min-height:51px;overflow:hidden;padding:2px 0;
    border:0;border-radius:13px;background:transparent;color:#60777a;
    text-decoration:none!important;font:500 10px/1.2 system-ui,sans-serif;
  }
  body .at199-mobile-dock__item svg {width:23px;height:23px;display:block;flex-shrink:0;}
  body .at199-mobile-dock__item span {display:block;font-size:clamp(9px,2.4vw,11px);font-weight:550;white-space:nowrap;}
  body .at199-mobile-dock__item:is(.is-active,[aria-expanded="true"]) {color:#087c84;background:#e6f4f1;}
  body {padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;}
  /* Header navigation only: never hide filters inside the destination explorer. */
  body .at-header .at-primary-menu,
  body .at-header .at-utility-menu,
  body .wp-site-blocks > header .wp-block-navigation,
  body .wp-site-blocks > .wp-block-template-part:has(.at-header) .at-primary-menu,
  body .wp-site-blocks > .wp-block-template-part:has(.at-header) .at-utility-menu {display:none!important;}
  /* Also cover page-specific navigation markup generated by block editor. */
  body.page .at-destinations-page ~ .at199-mobile-dock {display:grid!important;}
  body .at-share-rail__restore {display:none!important;}
  html[data-at-theme="dark"] body .at199-mobile-dock {background:rgba(27,43,49,.97);border-color:#45616a;}
  html[data-at-theme="dark"] body .at199-mobile-dock__item {color:#bdcfd2;}
  html[data-at-theme="dark"] body .at199-mobile-dock__item:is(.is-active,[aria-expanded="true"]) {color:#95e3e4;background:#27434a;}
}
@media(max-width:350px){body .at199-mobile-dock{left:6px!important;right:6px!important;padding-left:2px;padding-right:2px;}body .at199-mobile-dock__item svg{width:21px;height:21px;}}
