/* AntalyaMate v104: mobile collision fixes, accessible on-page tourist tools */
:root{--am104-safe-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-padding-top:110px}
body{max-width:100%;overflow-x:clip}
@media(max-width:850px){
 .am61-header,.site-header{position:sticky!important;top:0!important;z-index:790!important;width:100%;max-width:100vw!important;min-height:0!important}
 .am61-header .am61-headrow{height:auto!important;min-height:0!important;padding:10px 0 8px!important;gap:5px 12px!important;display:flex!important;flex-wrap:wrap!important}
 .am61-header .am61-brand,.site-header .brand-mark{flex:0 0 auto!important;margin:0!important;max-width:55%!important;min-height:38px!important;display:flex;align-items:center}
 .am61-header .am61-brand img,.site-header .brand-mark img{max-height:42px!important;max-width:155px!important;width:auto!important;object-fit:contain}
 .am61-header .am61-nav,.site-header .desktop-nav{display:flex!important;order:5!important;flex:0 0 100%!important;min-width:0!important;width:100%!important;max-width:100%!important;gap:17px!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;white-space:nowrap!important;padding:9px 1px 7px!important;margin:0!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
 .am61-header .am61-nav::-webkit-scrollbar,.site-header .desktop-nav::-webkit-scrollbar{display:none}
 .am61-header .am61-nav a,.site-header .desktop-nav a{flex-shrink:0!important;white-space:nowrap!important;min-height:34px!important;display:inline-flex;align-items:center;padding:5px 7px!important}
 .am61-header .am61-lang,.site-header .am61-lang{display:none!important}
 main,section,article{min-width:0}
 .am61-wrap,.am65-wrap,.lab-shell{max-width:calc(100vw - 24px)}
 .stay-v6-filters,.stay-search-dock,.am65-search{max-width:100%!important}
 .stay-v6-filters input,.stay-v6-filters select,.stay-search-dock input,.stay-search-dock select{min-width:0!important;max-width:100%!important}
 .stay-v6-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .stay-v6-field{min-width:0!important}
 .am-mobile-nav,.am-mobilebar,.am-pwa-nav,.am-bottom-nav,.am-mobile-bottom,.bottom-nav,.mobile-bottom-nav,#am-mobile-nav,nav.mobilebar{
   left:max(8px,env(safe-area-inset-left,8px))!important;right:max(8px,env(safe-area-inset-right,8px))!important;
   bottom:max(8px,var(--am104-safe-bottom))!important;width:auto!important;max-width:calc(100vw - 16px)!important;
   border-radius:21px!important;z-index:820!important;box-sizing:border-box!important}
 body{padding-bottom:calc(100px + var(--am104-safe-bottom))!important}
}
@media(max-width:500px){
 .stay-v6-filters .stay-v6-amenities{grid-column:1/-1!important}
 .am61-header .am61-nav a{font-size:13px!important}
 .am61-header .am61-headrow{padding-bottom:4px!important}
}
body.am104-tools-open{overflow:hidden!important}
#am104-tourist[hidden]{display:none!important}
#am104-tourist{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:end center;font:400 15px/1.55 Inter,system-ui,Arial,sans-serif;color:#192c28;overscroll-behavior:contain}
#am104-tourist *{box-sizing:border-box}
#am104-tourist .am104-backdrop{position:absolute;inset:0;background:rgba(10,20,20,.58);border:0}
#am104-tourist .am104-sheet{position:relative;isolation:isolate;width:min(780px,calc(100vw - 20px));max-height:min(90dvh,870px);background:#fff;border-radius:26px 26px 0 0;box-shadow:0 20px 70px #0003;display:flex;flex-direction:column;overflow:hidden}
#am104-tourist .am104-top{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e0e8e4}
#am104-tourist h2{font:750 clamp(20px,3.5vw,28px)/1.2 Inter,system-ui,Arial,sans-serif!important;letter-spacing:-.03em;color:#172e2b!important;margin:0!important}
#am104-tourist .am104-close{display:grid;place-items:center;border:0;background:#edf3f0;border-radius:50%;width:42px;height:42px;flex-shrink:0;color:#125e62;font-size:23px}
#am104-tourist .am104-body{padding:17px 24px calc(24px + var(--am104-safe-bottom));overflow-y:auto;overscroll-behavior:contain}
#am104-tourist .am104-tabs{display:flex;gap:7px;margin-bottom:16px}
#am104-tourist .am104-tabs button{border:1px solid #d5e4dc;border-radius:50px;padding:7px 13px;background:#fff;color:#205648;font-weight:800}
#am104-tourist .am104-tabs button[aria-pressed=true]{background:#143d35;color:#fff;border-color:#143d35}
#am104-tourist .am104-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#am104-tourist .am104-tile{text-align:left;display:grid;gap:5px;padding:17px;min-height:135px;background:#f6f9f7;border:1px solid #dce9e3;border-radius:17px;color:#172d29}
#am104-tourist .am104-tile[aria-pressed=true]{border-color:#087f79;background:#e7f4ed}
#am104-tourist .am104-tile-icon{font-size:25px}
#am104-tourist .am104-tile strong{font-size:14px;line-height:1.3}
#am104-tourist .am104-tile small{font-size:12px;color:#63766f}
#am104-tourist .am104-info{margin-top:16px;padding:22px;border:1px solid #dce9e3;border-radius:18px;background:white}
#am104-tourist .am104-info h3{margin:0 0 10px;font:750 20px/1.3 Inter,system-ui!important;color:#172d29}
#am104-tourist .am104-info p{margin:0 0 10px;color:#42554f;line-height:1.65}
#am104-tourist .am104-info ul{margin:0;padding-left:21px}
#am104-tourist .am104-info li{margin-bottom:8px}
#am104-tourist .am104-info a{display:inline-flex;margin-top:13px;border-radius:12px;padding:10px 16px;background:#0d746d;color:white!important;font-weight:800;text-decoration:none}
#am-lang-modal{z-index:2147483500!important}
#am-lang-modal .amf-dialog{max-height:calc(100dvh - env(safe-area-inset-bottom,0px))!important}
#am-lang-modal .amf-dialog-body{overscroll-behavior:contain}
#am-lang-modal .amf-dialog-header{flex-shrink:0}
@media(max-width:600px){
 #am104-tourist .am104-sheet{width:100%;max-height:calc(100dvh - 60px);border-radius:25px 25px 0 0}
 #am104-tourist .am104-top{padding:17px 18px}
 #am104-tourist .am104-body{padding:15px 15px calc(22px + var(--am104-safe-bottom))}
 #am104-tourist .am104-grid{gap:8px}
 #am104-tourist .am104-tile{padding:12px;min-height:118px}
 #am104-tourist .am104-info{padding:15px}
 #am-lang-modal .amf-dialog{height:calc(100dvh - env(safe-area-inset-bottom,0px))!important;max-height:calc(100dvh - env(safe-area-inset-bottom,0px))!important}
}

/* Distinct planner imagery, without altering the assistant image */
html body .am65-service[href="/plans.html"]{position:relative;isolation:isolate;overflow:hidden}
html body .am65-service[href="/plans.html"] .am104-plan-photo{position:absolute!important;inset:0;width:100%;height:100%;object-fit:cover;opacity:.20;z-index:-1;display:block!important;pointer-events:none}
@media(max-width:720px){html body .am65-service[href="/plans.html"] .am104-plan-photo{opacity:.16}}

/* v105 mobile-first overlay and navigation regression guard */
@media(max-width:850px){
 .am61-header,.site-header{position:relative!important;top:auto!important}
 .am61-nav,.site-header .desktop-nav{overscroll-behavior-x:contain}
 .am61-wrap,.am65-wrap,.stay-v6-wrap{width:calc(100% - 30px)!important;max-width:100%!important}
 .am-mobile-nav,.am-mobilebar,.am-pwa-nav,.am-bottom-nav,.am-mobile-bottom,.bottom-nav,.mobile-bottom-nav,#am-mobile-nav,nav.mobilebar{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
 #am104-tourist .am104-sheet{max-height:calc(100dvh - 14px)!important}
 #am104-tourist .am104-body{min-height:0;overflow-y:auto!important;-webkit-overflow-scrolling:touch;padding-bottom:calc(30px + env(safe-area-inset-bottom,0px))!important}
 #am104-tourist .am104-top{position:sticky;top:0;z-index:5;background:#fff}
 #am104-tourist .am104-info{scroll-margin-top:16px}
 #am-lang-modal .amf-dialog{max-height:calc(100dvh - 12px)!important;height:auto!important;overflow:hidden}
 #am-lang-modal .amf-dialog-body{min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(25px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:470px){#am104-tourist .am104-tile{min-height:100px!important;padding:11px!important}#am104-tourist .am104-info{padding:14px!important}}

/* v106: one navigation on phones, prevent duplicated header and bottom tabs */
@media(max-width:760px){
 html body .am61-header,html body .site-header{position:relative!important;top:auto!important;min-height:58px!important;height:auto!important;padding:0!important;box-shadow:none!important}
 html body .am61-header .am61-headrow{min-height:58px!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;justify-content:space-between!important;padding:8px 0!important}
 html body .am61-header .am61-nav,html body .site-header .desktop-nav{display:none!important}
 html body .am61-header .am61-brand,html body .site-header .brand-mark{margin:0!important;max-width:180px!important;height:auto!important;min-height:36px!important}
 html body #am-mobile-nav{bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100% - 16px)!important}
 html body .am86-tools-fab{bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;right:12px!important}
 html body{padding-bottom:calc(118px + env(safe-area-inset-bottom,0px))!important}
 #am104-tourist .am104-sheet{max-height:calc(100dvh - 10px)!important}
 #am104-tourist .am104-top{flex-shrink:0!important}
}
