/* V29: same Design 03 inner styles, also supports the working V28 inner.php without a body class. Load ONLY on inner pages. */
/* HiDEAL shared Design 03 chrome — inner pages only, isolated from legacy modules. */
body{padding-top:82px!important;background:var(--hd-page-bg)!important;min-height:100vh}
body > .container-fluid,body > .container-fluid > .container-fluid{background:transparent!important}
body header.top,body header.top *{box-sizing:border-box}
body header.top{position:fixed!important;inset:0 0 auto!important;width:100%!important;z-index:99990!important;background:#fff!important;border-bottom:1px solid var(--hd-border)!important;font:13px Arial,sans-serif!important;box-shadow:0 3px 12px #1232470b}
body .top .wrap{max-width:1100px;width:calc(100% - 30px);margin:auto}
body header.top .top-inner{min-height:68px;display:flex;align-items:center;gap:14px}
body header.top .logo{width:125px;height:auto;max-height:42px;object-fit:contain;display:block}
body header.top .links{display:flex;align-items:center;gap:20px;flex:0 0 auto}
body header.top a{color:#14233e;text-decoration:none;font-weight:750}
body header.top .links a:hover{color:var(--primary)}
body header.top .aihead{height:47px;min-width:180px;display:flex;align-items:center;gap:8px;padding:5px 5px 5px 12px;border-radius:12px;border:1px solid var(--hd-border);background:var(--hd-soft);flex:1;margin:0}
body header.top .aihead>b{color:var(--primary);font-size:16px}
body header.top #ai-input{min-width:0;width:100%;flex:1;height:36px;border:0;background:transparent;outline:none;font-size:12px;color:var(--ink);padding:6px}
body header.top .btn{font-size:12px;border-radius:9px;padding:10px 13px;border:1px solid var(--primary);background:var(--primary);color:white!important;font-weight:800;white-space:nowrap;cursor:pointer;line-height:1.25}
body header.top .lang{border:1px solid var(--hd-border);border-radius:9px;background:#fff;color:var(--ink);padding:11px;font-size:12px;white-space:nowrap;cursor:pointer;font-weight:700}
body header.top .right{display:flex;align-items:center;gap:9px;flex:0 0 auto}
body .hd03-site-menu{position:relative;flex:0 0 auto;z-index:30}
body .hd03-site-menu-items{display:none;position:absolute;right:0;top:calc(100% + 9px);width:225px;padding:7px;background:#fff;border:1px solid var(--hd-border);border-radius:12px;box-shadow:0 18px 35px #10203025;z-index:99994}
body .hd03-site-menu.open .hd03-site-menu-items{display:block}
body .hd03-site-menu-items a{display:block;padding:11px;border-radius:8px;font-size:13px}
body .hd03-site-menu-items a:hover{background:var(--hd-soft);color:var(--primary)}
body .hd03-account{position:relative}
body .hd03-account-menu{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:205px;padding:8px;background:#fff;border:1px solid var(--hd-border);border-radius:12px;box-shadow:0 18px 45px #15253530;z-index:99995}
body .hd03-account.open .hd03-account-menu{display:block}
body .hd03-account-menu button{display:block;width:100%;border:0;text-align:left;background:transparent;padding:11px 12px;border-radius:8px;cursor:pointer;color:var(--ink);font-size:13px}
body .hd03-account-menu button:hover{background:var(--hd-soft);color:var(--primary)}
#hd16RoleOverlay{display:none;position:fixed;inset:0;background:#0818338c;z-index:9999998;padding:18px;align-items:center;justify-content:center}
#hd16RoleOverlay.is-open{display:flex}
#hd16RoleDialog{max-width:470px;width:100%;background:#fff;color:#14233e;padding:24px;border-radius:17px;box-shadow:0 20px 60px #0005;position:relative}
#hd16RoleDialog h2{font-size:23px;margin:0 35px 7px 0;color:#14233e}
#hd16RoleDialog p{font-size:13px;margin:0 0 16px;color:#69778d}
.hd16-roles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hd16-roles button{border:1px solid var(--hd-border);border-radius:11px;padding:15px 10px;background:var(--hd-soft);text-align:left;cursor:pointer;color:var(--ink);font-weight:700}
.hd16-roles button:hover{border-color:var(--primary)}
#hd16RoleClose{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:28px;cursor:pointer}
body .hd03-footer,body .hd03-footer *{box-sizing:border-box}
body .hd03-footer{clear:both;display:block;width:100%;background:var(--hd-dark)!important;color:#e1e7ef;margin-top:42px;padding:0;font-family:Arial,sans-serif}
body .hd03-footer .hd03-footer-grid{max-width:1100px;margin:0 auto;padding:44px 15px 36px;display:grid;grid-template-columns:minmax(240px,1.8fr) repeat(3,minmax(140px,1fr));gap:30px}
body .hd03-footer .hd03-footer-logo{display:block;color:#fff;font-size:24px;font-weight:800;margin-bottom:10px}
body .hd03-footer-about p{color:#d3dbe9;font-size:14px;line-height:1.7;max-width:320px}
body .hd03-footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:11px}
body .hd03-footer-column h3{color:#fff;font-size:15px;font-weight:800;margin:0 0 7px}
body .hd03-footer-column a,body .hd03-footer-column button{font-size:14px;color:#e1e7ef;background:transparent;border:0;cursor:pointer;text-decoration:none;padding:0}
body .hd03-footer-column a:hover,body .hd03-footer-column button:hover{color:#fff;text-decoration:underline}
body .hd03-footer-bottom{max-width:1100px;margin:auto;border-top:1px solid #ffffff30;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:17px 15px 26px;font-size:12px;color:#d3dbe9}
body .hd03-footer-bottom strong{color:white}
body .mobilebar{display:none}
/* Hide legacy appearance but do not remove its JS handlers or profile actions. */
.hd03-legacy-header > .header, .hd03-legacy-header .header{display:none!important}
.hd03-legacy-header #myNav{display:none!important}
.hd03-legacy-footer .footer-new{display:none!important}
/* Inner page's breadcrumb only is saturated; content stays on the light selected background. */
body .hd-inner-breadcrumb{background:var(--primary)!important}
body .hd-inner-breadcrumb~*{background-color:transparent}
@media(max-width:950px){body header.top .links{display:none}body .top .wrap{width:calc(100% - 20px)}body .hd03-footer .hd03-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){body{padding-top:115px!important;padding-bottom:56px!important}body header.top .top-inner{min-height:95px;flex-wrap:wrap;gap:7px;padding:7px 0}body header.top .logo{width:104px}body header.top .aihead{order:5;flex:1 0 100%;height:38px}body header.top .aihead .btn{padding:7px 10px}body header.top .lang{padding:8px}body .hd03-footer .hd03-footer-grid{padding:30px 18px;gap:22px}body .mobilebar{display:flex;position:fixed;bottom:0;left:0;right:0;height:54px;background:#fff;border-top:1px solid var(--hd-border);justify-content:space-around;align-items:center;z-index:99980}body .mobilebar a{font-size:11px;color:var(--ink);display:flex;flex-direction:column;align-items:center;gap:2px;text-decoration:none}body .mobilebar span{font-size:20px}}
@media(max-width:430px){body .hd03-footer .hd03-footer-grid{grid-template-columns:1fr}.hd16-roles{grid-template-columns:1fr}}

/* V30: targeted fallback when shared header/footer missing; do not blank the legacy page. */
body:not(:has(header.top)) .hd03-legacy-header .header{display:block!important}
body:not(:has(footer.hd03-footer)) .hd03-legacy-footer .footer-new{display:block!important}

/* V31: restore the visible shared elements and prevent legacy wrappers from obscuring them. */
body.hd03-inner-page header.top {
 display:block!important; visibility:visible!important; opacity:1!important;
 position:fixed!important; top:0!important; left:0!important; right:0!important;
 height:auto!important; min-height:68px!important; transform:none!important;
 z-index:2147480000!important;
}
body.hd03-inner-page footer.hd03-footer {display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:2!important}
body.hd03-inner-page:has(header.top) .hd03-legacy-header .header,
body.hd03-inner-page:has(header.top) .hd03-legacy-header #myNav {display:none!important}
body.hd03-inner-page:has(footer.hd03-footer) .hd03-legacy-footer .footer-new {display:none!important}

/* V32: full-bleed footer even though legacy inner.php nests it in sitewidth. */
body.hd03-inner-page footer.hd03-footer{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;}
/* V32: theme vars are provided by theme_head.php, not redefined by this sheet. */
body.hd03-inner-page header.top{display:block!important;visibility:visible!important;opacity:1!important;}
body.hd03-inner-page footer.hd03-footer{display:block!important;visibility:visible!important;opacity:1!important;}

/* HiDEAL V33 — Unified horizontal alignment on all inner routes.
   Header inner row, breadcrumbs, details and footer inner columns use the
   same shared max width. Full-width header/footer backgrounds remain intact. */
body.hd03-inner-page{--hd03-content-width:1230px;background-color:var(--hd-page-bg,#f3f7fe)!important;overflow-x:clip}
body.hd03-inner-page header.top .wrap,
body.hd03-inner-page .hd03-footer .hd03-footer-grid,
body.hd03-inner-page .hd03-footer .hd03-footer-bottom{
  max-width:var(--hd03-content-width)!important;
  width:calc(100% - 32px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  box-sizing:border-box!important;
}
body.hd03-inner-page #sitewidth,
body.hd03-inner-page #hidealRouteContent{
  width:calc(100% - 32px)!important;
  max-width:var(--hd03-content-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
body.hd03-inner-page header.top .top-inner{width:100%!important;max-width:none!important;margin:0!important}
body.hd03-inner-page #sitewidth #sitewidth{
  width:100%!important;
  max-width:100%!important;
}
body.hd03-inner-page .hd-inner-breadcrumb{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  background:var(--primary,#1668D2)!important;
}
body.hd03-inner-page #hidealRouteContent > .container-fluid,
body.hd03-inner-page #hidealRouteContent .container-main{
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
}
body.hd03-inner-page #hidealRouteContent .boxmiddle:not(.hd-inner-breadcrumb){
  background-color:var(--hd-surface-tint,rgba(255,255,255,.7))!important;
  border-color:var(--hd-border,#dce6f1)!important;
}
body.hd03-inner-page .hd03-footer{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  background:var(--hd-dark,#102348)!important;
}
body.hd03-inner-page .hd03-footer .hd03-footer-grid{padding:44px 0 36px!important}
body.hd03-inner-page .hd03-footer .hd03-footer-bottom{padding:17px 0 26px!important}
body.hd03-inner-page .agent-card{border:1px solid var(--hd-border,#dce6f1)}
body.hd03-inner-page .agent-card .agent-round-btn:hover,
body.hd03-inner-page .amenity-box:hover,
body.hd03-inner-page .slider-btn,
body.hd03-inner-page .view-all-btn,
body.hd03-inner-page .tab-btn.active,
body.hd03-inner-page .tab-btn:hover{background-color:var(--primary,#1668D2)!important;color:#fff!important}
body.hd03-inner-page .amenity-box{border-color:var(--primary,#1668D2)!important;background:var(--hd-soft,#eff8ff)!important;color:var(--hd-text,#17243b)!important}
body.hd03-inner-page .amenity-box:hover{color:#fff!important}
body.hd03-inner-page .latest-title,
body.hd03-inner-page .latest-price{color:var(--primary,#1668D2)!important}
@media(max-width:700px){
 body.hd03-inner-page header.top .wrap,
 body.hd03-inner-page #sitewidth,
 body.hd03-inner-page #hidealRouteContent,
 body.hd03-inner-page .hd03-footer .hd03-footer-grid,
 body.hd03-inner-page .hd03-footer .hd03-footer-bottom{width:calc(100% - 20px)!important}
 body.hd03-inner-page .hd03-footer .hd03-footer-grid{padding:30px 0!important}
}


/* HiDEAL V34: one visible homepage-identical header, retaining legacy account
   JS/account modal elements without showing the legacy header/navigation. */
body.hd03-inner-page .hd34-legacy-runtime > .header,
body.hd03-inner-page .hd34-legacy-runtime .header,
body.hd03-inner-page .hd34-legacy-runtime #myNav,
body.hd03-inner-page .hd34-legacy-runtime #hideformobile,
body.hd03-inner-page .hd34-legacy-runtime .header-switch {display:none!important}
body.hd03-inner-page header.top{
  width:100%!important;max-width:none!important;left:0!important;right:0!important;
  background:#fff!important;
}
body.hd03-inner-page header.top .wrap.top-inner{
  width:calc(100% - 32px)!important;
  max-width:1100px!important;
  margin-left:auto!important;margin-right:auto!important;
  display:flex!important;align-items:center!important;
}
body.hd03-inner-page header.top .top-inner .aihead{min-width:0!important}
body.hd03-inner-page header.top .top-inner .links{white-space:nowrap!important}
@media(max-width:1100px){
 body.hd03-inner-page header.top .wrap.top-inner{width:calc(100% - 24px)!important}
}
