@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

/* ===== Desktop top navigation of guide & article pages (fg-* template) ===== */
.fg-top{
  display:block;background:#14120e;border-bottom:none;
  padding:0 max(20px,calc((100vw - 1200px)/2 + 40px));
  font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}
.fg-brand{
  height:66px;display:flex;align-items:center;gap:10px;color:#F4EEDF;text-decoration:none;
  font-family:'Cormorant Garamond','Songti SC',Georgia,'Times New Roman',serif;font-size:20px;font-weight:600;letter-spacing:2px;
}
.fg-brand img{height:26px;width:auto;display:block}
.fg-nav{
  display:flex;align-items:center;gap:40px;flex-wrap:nowrap;height:46px;
  border-top:1px solid rgba(255,255,255,.08);
}
.fg-nav a{color:#C9BFA9;text-decoration:none;font-size:14px;white-space:nowrap}
.fg-nav a:hover,.fg-nav a:focus{color:#F0B429;text-decoration:none}
.fg-nav a[aria-current="page"]{color:#F0B429;font-weight:600}
@media(max-width:899px){
  .fg-top{padding:0 16px}
  .fg-brand{height:52px;font-size:17px;letter-spacing:1px}
  .fg-brand img{height:22px}
  .fg-nav{height:auto;min-height:44px;gap:6px 16px;flex-wrap:wrap;overflow:visible;padding:8px 0}
  .fg-nav a{font-size:12px}
}

/* WUDAI Travel · unified navigation (all pages) · 2026-11-26
 * Two-level header: .ph-head (brand, level 1) + .page-head (title / back / language, level 2)
 * Bottom tab bar: 5 tabs, one line icon set, no emoji.
 * This file is self-contained (no dependency on styles.css variables). */

/* ============ Level 2: page head ============ */
/* Navigation owns its box model so that page-level CSS (e.g. `*{box-sizing:content-box}`) cannot resize it */
.page-head,.page-head *,.tabbar,.tabbar *,.ph-head .wd-brand,.ph-head .wd-brand *,
.wd-lang,.wd-lang *,.wd-lang-pop,.wd-lang-pop *,.wd-lang-mask,.cta-bar{box-sizing:border-box}
.page-head{
  flex:none;display:flex;align-items:center;gap:8px;
  height:44px;min-height:44px;padding:0 10px 0 16px;
  background:#14120e;border-bottom:1px solid rgba(255,255,255,.08);
  font-family:'Inter','PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
.page-head .ph-left,.page-head .ph-right{
  flex:none;width:44px;display:flex;align-items:center;justify-content:center;
}
.ph-back{
  width:36px;height:36px;margin-left:-8px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:#F4EEDF;
}
.ph-back:active{background:rgba(255,255,255,.10)}
.ph-back svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ph-title{
  flex:1;min-width:0;margin:0;
  font-family:'Cormorant Garamond','Songti SC',Georgia,'Times New Roman',serif;
  font-size:20px;font-weight:600;line-height:1.2;letter-spacing:.2px;color:#F4EEDF;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.page-head[data-level="1"] .ph-title{text-align:left}
.page-head[data-level="2"] .ph-title{text-align:center}

/* ============ Language capsule + popover ============ */
.wd-lang{
  display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 9px 0 10px;
  border:1px solid rgba(255,255,255,.22);border-radius:999px;
  background:rgba(255,255,255,.10);color:#F4EEDF;cursor:pointer;
  font:600 12px/1 'Inter','PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  white-space:nowrap;-webkit-appearance:none;appearance:none;
}
.wd-lang:active{background:rgba(255,255,255,.20)}
.wd-lang svg{display:block;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.wd-lang .ic-globe{width:17px;height:17px}
.wd-lang .ic-chev{width:12px;height:12px;opacity:.75;transition:transform .18s}
.wd-lang[aria-expanded="true"] .ic-chev{transform:rotate(180deg)}
.wd-lang-mask{position:fixed;inset:0;z-index:9997;background:rgba(20,18,14,.38);border:none;padding:0;margin:0}
.wd-lang-pop{
  position:fixed;z-index:9998;min-width:168px;max-width:82vw;padding:6px;
  background:#FFFDF9;border:1px solid #E7E1D5;border-radius:14px;
  box-shadow:0 14px 44px rgba(20,18,14,.28);
}
.wd-lang-pop button{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;min-height:42px;padding:0 12px;border:none;border-radius:10px;background:none;
  color:#17130E;font:500 14px/1 'Inter','PingFang SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;text-align:left;cursor:pointer;
}
.wd-lang-pop button:hover,.wd-lang-pop button:focus{background:#F7F4EE;outline:none}
.wd-lang-pop button[aria-current="true"]{color:#96703F;font-weight:700}
.wd-lang-pop button svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

/* ============ Bottom tab bar (5 tabs) ============ */
.tabbar{flex:none}
.tab{min-width:0;text-decoration:none;-webkit-tap-highlight-color:transparent}
.tab .ic svg{fill:none;stroke:#A8A199;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:899px){
  .tabbar{
    display:flex;align-items:stretch;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom,0px));
    background:#FFFDF9;border-top:1px solid #E7E1D5;
  }
  .tab{
    flex:1 1 0;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    padding:8px 2px;font-size:10px;line-height:1;letter-spacing:.2px;font-weight:500;
    color:#A8A199;white-space:nowrap;
  }
  .tab .ic{display:block;width:22px;height:22px;margin:0;opacity:1;filter:none}
  .tab .ic svg{display:block;width:22px;height:22px}
  .tab.on{color:#96703F;font-weight:700}
  /* selected: highlight colour + tinted fill (icon keeps its inner lines) */
  .tab.on .ic svg{fill:currentColor;fill-opacity:.2;stroke:currentColor;stroke-width:2}
}

/* ============ Phone-shell pages (index / trips / guide / services / about / account / articles / trip detail) ============ */
@media(max-width:899px){
  .phone .ph-head{
    position:relative;top:auto;left:auto;right:auto;flex:none;z-index:15;
    padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;
  }
  .phone .ph-body{flex:1;min-height:0}
}
@media(min-width:900px){
  /* Desktop: page title / back live in the content; only the language capsule stays, parked at the right end of the top nav row */
  .phone .page-head{
    order:2;height:0;min-height:0;padding:0;align-items:flex-start;overflow:visible;border-bottom:none;background:transparent;
    position:sticky;top:66px;z-index:101;justify-content:flex-end;
  }
  .phone .page-head .ph-left,.phone .page-head .ph-title{display:none}
  .phone .page-head .ph-right{width:auto;margin:8px max(40px,calc((100vw - 1200px)/2 + 40px)) 0 auto}
}

/* Slot between the scrolling body and the tab bar: holds .cta-bar on phones */
#cta{flex:none;position:relative;z-index:21}
#cta:empty{display:none}

/* Sticky enquiry bar on trip detail pages, sits flush on top of the tab bar */
.cta-bar{
  position:sticky;bottom:0;z-index:20;display:flex;gap:10px;align-items:center;
  padding:10px 16px 12px;background:#FFFDF9;border-top:1px solid #E7E1D5;
}
.cta-bar .btn{padding:12px 16px}
.cta-bar .btn.whats{flex:none}
.cta-bar .btn-main{flex:1;min-width:0;font-size:13px}
.btn.is-disabled{background:#E7E1D5;color:#A8A199;pointer-events:none;cursor:not-allowed;border-color:#E7E1D5}

/* ============ Guide & article pages (fg-* template: food / health guides and city pages) ============ */
@media(max-width:899px){
  body.wd-fg .fg-top{display:none}
  /* these pages keep the browser's default 8px body margin; turn it into padding so the sticky header spans the full width */
  body.wd-fg{margin:0;padding:0 8px calc(68px + env(safe-area-inset-bottom,0px))}
  body.wd-fg.wd-flush{padding-left:0;padding-right:0}
  body.wd-fg > .ph-head,body.wd-fg > .page-head{margin-left:-8px;margin-right:-8px}
  body.wd-fg.wd-flush > .ph-head,body.wd-fg.wd-flush > .page-head{margin-left:0;margin-right:0}
  body.wd-fg > .ph-head{
    position:sticky;top:0;left:0;right:0;z-index:80;display:flex;align-items:center;justify-content:space-between;
    padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;background:#14120e;
  }
  body.wd-fg > .page-head{position:sticky;top:calc(env(safe-area-inset-top,0px) + 46px);z-index:80}
  body.wd-fg > .tabbar{position:fixed;left:0;right:0;bottom:0;z-index:80;margin:0}
}
@media(min-width:900px){
  body.wd-fg > .ph-head,body.wd-fg > .tabbar,body.wd-fg > .page-head{display:none}
  /* the language capsule is moved into .fg-top by site-nav.js; park it at the right end of the nav row */
  .fg-top{position:relative}
  .fg-top .wd-lang{position:absolute;right:max(20px,calc((100vw - 1200px)/2 + 40px));top:73px;z-index:5}
}

/* Shared brand link (pages that do not load styles.css) */
.ph-head .wd-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#F4EEDF;font-family:'Cormorant Garamond','Songti SC',Georgia,'Times New Roman',serif;font-weight:600;letter-spacing:2px}
.ph-head .wd-brand img{height:22px;width:auto;display:block}
.ph-head .wd-brand span{font-size:17px;letter-spacing:1px;line-height:1}
@media(min-width:900px){
  .ph-head .wd-brand img{height:26px}
  .ph-head .wd-brand span{font-size:20px;letter-spacing:2px}
}
