/* Keep language choices and the approved four-column footer on medium screens. */
@media(min-width:761px){body .masthead .right>.lang{display:block;white-space:nowrap;flex-shrink:0}}
@media(min-width:761px) and (max-width:1100px){
 body .masthead .nav-list{gap:8px}body .masthead .site-nav{font-size:12px;letter-spacing:0}
 body .masthead .nav-toggle,body .masthead .nav-link{font-size:12px;gap:5px;white-space:nowrap}
 body .masthead .masthead-inner{gap:12px}body .masthead .right{gap:8px;flex-shrink:0}
 body .masthead .right .btn{padding:10px 12px;font-size:12px;letter-spacing:0}
 body .masthead .right .header-search span{display:none}body .masthead .right .header-search{min-width:40px;padding:8px}
 body .masthead img.logo{height:38px!important}
 body footer .footer-navigation.directory-footer{grid-template-columns:1.2fr 1fr 1fr 1fr;gap:20px}
 body footer .footer-navigation h4{font-size:15px}body footer .footer-navigation a{font-size:14px}
}

/* A single compact header row; collapse navigation before it gets crowded. */
@media(max-width:760px){
 body .masthead .masthead-inner{flex-wrap:nowrap;gap:12px}
 body .masthead .site-nav{display:none}
 body .masthead .right{margin-left:auto;gap:10px;align-items:center}
 body .masthead .right>.lang{display:block;white-space:nowrap;font-size:12px}
 body .masthead .hamburger{display:flex;min-width:44px;min-height:44px;padding:9px;background:none;border:0;flex-direction:column;justify-content:center;gap:6px}
 body .masthead .hamburger span{width:24px;height:2px;background:var(--cream-tx)}
 body.menu-open{overflow:hidden}
 body.menu-open .masthead{transform:none}
 body.menu-open .masthead .site-nav{display:flex;position:fixed;inset:0;z-index:111;flex-direction:column;align-items:stretch;padding:92px 24px 24px;height:100dvh;overflow-y:auto;background:var(--navy)}
 body.menu-open .masthead .nav-list{display:block;width:100%}
 body.menu-open .masthead .nav-list>li{border-bottom:1px solid var(--hair-dark)}
 body.menu-open .masthead .nav-link,body.menu-open .masthead .nav-toggle{min-height:52px;width:100%;font-size:18px;padding:10px 0;justify-content:space-between}
 body.menu-open .masthead .submenu{position:static;box-shadow:none;border:0;padding:0 0 12px 20px;min-width:0}
 body.menu-open .masthead .submenu a{min-height:44px;font-size:16px}
 body.menu-open .masthead .hamburger{position:fixed;top:16px;right:24px;z-index:113}
 body.menu-open .hamburger span:nth-child(1){transform:translateY(8px) rotate(45deg)}
 body.menu-open .hamburger span:nth-child(2){opacity:0}
 body.menu-open .hamburger span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
 body.menu-open .masthead .mobile-language{display:none}
 body.menu-open .mobile-booking-bar{visibility:hidden}
}
@media(max-width:760px){
 body .masthead .masthead-inner{gap:8px}
 body .masthead .right{gap:6px}
 body .masthead img.logo{width:80px!important;height:auto!important}
 body .masthead .right .header-search{min-width:36px;padding:6px}
 body .masthead .right>.lang{font-size:11px}
 body.menu-open .masthead .right>.lang{position:fixed;top:30px;right:82px;z-index:113}
}

@media(min-width:761px){
 body .masthead .calculator-group>.submenu{top:0;left:auto;right:100%;min-width:260px;max-height:75vh;overflow-y:auto}
 body .masthead .calculator-group>.nav-toggle{width:100%;justify-content:space-between}
 body .masthead .calculator-group>.nav-toggle[aria-expanded=true] .nav-chevron{transform:none}
}
@media(max-width:760px){body.menu-open .masthead .calculator-group>.submenu{padding-left:16px}}
@media(min-width:761px){body .masthead #knowledge-submenu{overflow:visible;max-height:none}body .masthead .calculator-group>.submenu{min-width:260px}}
@media(max-width:760px){body.menu-open .masthead .header-search{visibility:hidden}}
@media(min-width:761px){body .masthead .nav-list{gap:clamp(16px,2vw,28px)}}
