/* Palace on Wheels sidebar — scoped integration of Palace-On-Wheels-Sidebar package.
   Only selectors actually used by the integrated markup are kept; demo-only
   hero/header/#page rules and bare element selectors (*, body, svg, button, a)
   from the source package were deliberately dropped to avoid affecting the
   rest of the site. Everything is scoped under #menu, #veil or .pow-sidebar-trigger. */

.pow-sidebar-symbols{position:absolute;width:0;height:0}

/* .pow-sidebar-trigger reuses the site's existing .navbar-toggler class (public/css/style.css)
   for position/size/circle styling, matching the button it replaces exactly. Only the inner
   hamburger icon is ours, since we don't use Bootstrap's own .navbar-toggler-icon. */
.pow-sidebar-trigger{display:grid;place-items:center;cursor:pointer}
.pow-sidebar-trigger:focus-visible{outline:2px solid #947343;outline-offset:5px}
.pow-sidebar-hamburger{display:grid;gap:5px}
.pow-sidebar-hamburger i{display:block;height:2px;width:20px;background:#2c313b;border-radius:1px}
.pow-sidebar-dots{display:flex;gap:5px;align-items:center;height:24px}
.pow-sidebar-dots i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor}

#veil{position:fixed;inset:0;background:#19120c60;z-index:1200;opacity:0;visibility:hidden;transition:opacity .7s,visibility .7s}

#menu{--paper:#f7f4ee;--ink:#30241f;--wine:#692d35;--gold:#947343;--line:#d9cdbb;--ease:cubic-bezier(.22,1,.36,1);position:fixed;z-index:1201;right:0;top:0;width:min(430px,94vw);height:100dvh;background:var(--paper);color:var(--ink);display:block;transform:translateX(103%);visibility:hidden;transition:transform .85s var(--ease),visibility .85s;box-shadow:-20px 0 90px #0003}

#menu *{box-sizing:border-box}
#menu svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#menu button{font:inherit;cursor:pointer;color:inherit;border:0;background:none; padding: 0px}
#menu a{color:inherit;text-decoration:none}
#menu button:focus-visible,#menu a:focus-visible{outline:2px solid var(--gold);outline-offset:5px}

#menu .menu-pane{height:100%;width:100%;min-height:0;display:flex;flex-direction:column;position:relative}
#menu .menu-header{height:99px;min-height:99px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;border-bottom:1px solid var(--line);background:var(--paper);z-index:2}
#menu .menu-logo img{width:108px;height:88px;object-fit:contain}
#menu .icon-button{height:44px;width:44px;display:grid;place-items:center;color:var(--gold)}
#menu .cross{width:24px;height:24px;position:relative;transition:transform .5s var(--ease)}
#menu .cross:before,#menu .cross:after{content:'';width:26px;height:1px;background:currentColor;position:absolute;top:12px;left:0;transform:rotate(45deg)}
#menu .cross:after{transform:rotate(-45deg)}
#menu .icon-button:hover .cross{transform:rotate(90deg)}

#menu .menu-body{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c3b299 transparent;flex:1;min-height:0;padding:22px 29px 28px}
#menu .menu-label{color:var(--gold);margin:0 0 12px;font-size:8px;letter-spacing:1.5px}

#menu .nav-row{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:13px 0;border-bottom:1px solid var(--line);font:22px/1.2 Georgia,serif;transition:color .25s,transform .4s var(--ease)}
#menu .nav-row>span{display:flex;align-items:center;gap:16px}
#menu .nav-row svg{width:20px;color:var(--gold);transition:transform .35s}
#menu .nav-row:hover{color:var(--wine)}
#menu .nav-row:hover svg{transform:translateX(5px)}

#menu .compact-gallery{position:relative;overflow:hidden;background:#32291e;color:#fff9ee;isolation:isolate;display:block;height:145px;width:100%;margin:24px 0 0}
#menu .slide{position:absolute;inset:0;opacity:0;transform:translateX(3%);transition:opacity 1.2s ease,transform 1.6s var(--ease);pointer-events:none}
#menu .slide.active{opacity:1;transform:translateX(0);z-index:1}
#menu .slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.045);transition:transform 6s linear}
#menu .slide.active img{transform:scale(1)}
#menu .slide:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 35%,#19110bcf)}
#menu .compact-gallery .slide-caption{position:absolute;left:15px;right:15px;bottom:43px;z-index:1}
#menu .compact-gallery .slide-caption .eyebrow{display:none}
#menu .compact-gallery .slide-caption h2{font:normal 22px/1.1 Georgia;margin:0}
#menu .compact-gallery .slide-controls{position:absolute;z-index:2;bottom:5px;left:10px;right:12px;display:flex;align-items:center;gap:5px}
#menu .dots{display:flex;align-items:center;gap:2px}
#menu .dot{height:32px;width:25px;padding:0;position:relative}
#menu .dot:after{content:'';height:4px;width:13px;background:#ffffff70;position:absolute;left:6px;top:14px;border-radius:3px;transition:background .4s,width .4s}
#menu .dot.selected:after{background:#fff3d9;width:20px}
#menu .compact-gallery .pause{margin-left:auto;font-size:17px;width:35px;height:35px;border:1px solid #fff7;border-radius:50%;color:white}
#menu .compact-gallery .slide-count{font-size:9px;letter-spacing:1px;margin-left:7px}
#menu .compact-gallery .slide-next{position:absolute;right:12px;top:50%;transform:translateY(-50%);z-index:3;width:44px;height:44px;border-radius:50%;border:1px solid #fff9;background:#21180c85;color:#fff;display:grid;place-items:center;box-shadow:0 2px 8px #0002;transition:background .2s; padding: 0px}
#menu .compact-gallery .slide-next:hover{background:#692d35}
#menu .compact-gallery .slide-next:active{background:#42232a}
#menu .compact-gallery .slide-next svg{width:22px;height:22px;stroke-width:1.8}
#menu .compact-gallery .slide-caption{right:65px}

#menu .all-contacts{border-top:1px solid var(--line);margin-top:20px;padding-top:19px}
#menu .all-contacts p{color:var(--gold);font-size:9px;letter-spacing:1.5px;margin:0 0 12px}
#menu .all-contacts a{display:flex;gap:15px;align-items:center;font-size:22px;letter-spacing:.4px;padding:10px 0;color:var(--wine)}
#menu .all-contacts a:first-of-type{font-size:24px}
#menu .all-contacts svg{width:19px;color:var(--gold);flex-shrink:0}
#menu .all-contacts a>span{display:flex;flex-direction:column;line-height:1.3}
#menu .all-contacts small{font-size:11px;color:var(--gold);letter-spacing:.5px}

#menu .social-footer{margin-top:22px;border-top:1px solid var(--line);padding-top:22px;text-align:center;background: none;}
#menu .social-footer>.eyebrow{color:var(--gold);font-size:9px;letter-spacing:1.5px}
#menu .social-icons{display:flex;justify-content:center;gap:13px;margin:17px 0 20px}
#menu .social{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;box-shadow:0 3px 9px #0000000d;transition:transform .25s,box-shadow .25s;color:white}
#menu .social:hover{transform:translateY(-4px);box-shadow:0 7px 14px #0002}
#menu .social svg{width:24px;height:24px;stroke-width:1.7}
#menu .social.fb{background:#1877f2}
#menu .social.ig{background:radial-gradient(circle at 30% 100%,#feda75 0%,#fa7e1e 24%,#d62976 52%,#962fbf 76%,#4f5bd5 100%)}
#menu .social.yt{background:#ff0000}
#menu .social.ta{background:#34e0a1;color:#061e14}
#menu .social.wa{background:#25d366}
#menu .signoff{font:italic 16px Georgia;color:var(--gold);margin:0 0 5px}

body.pow-sidebar-open #menu{transform:translateX(0);visibility:visible}
body.pow-sidebar-open #veil{opacity:1;visibility:visible}
body.pow-sidebar-open{overflow:hidden}
body.pow-sidebar-open #menu .nav-row{animation:pow-sidebar-rise .6s var(--ease) both;animation-delay:calc(120ms + var(--i,0)*45ms)}

@keyframes pow-sidebar-rise{from{opacity:0;transform:translateY(17px)}to{opacity:1;transform:translateY(0)}}

@media(max-width:760px){
  #menu{width:min(410px,94vw)}
  #menu .menu-header{padding:0 15px;height:90px;min-height:90px}
  #menu .menu-body{padding:19px 23px 25px}
  #menu .nav-row{font-size:21px;padding:14px 0}
  #menu .compact-gallery{height:140px}
  #menu .all-contacts a{font-size:21px}
  #menu .all-contacts a:first-of-type{font-size:23px}
  #menu .social-icons{gap:10px}
  #menu .social{width:42px;height:42px}
}

@media(max-width:350px){
  #menu .menu-body{padding-left:18px;padding-right:18px}
  #menu .nav-row{font-size:19px}
  #menu .social-icons{gap:8px}
  #menu .social{width:39px;height:39px}
}

@media(prefers-reduced-motion:reduce){
  #menu *,#menu *:before,#menu *:after,#veil{animation:none!important;transition:none!important}
}
