/* Phương Hằng BĐS V5.6 — hero polish + conditional carousel controls */
:root{--ph56-gold:#c9a227;--ph56-gold-light:#e7c85c;--ph56-navy:#062d61}

/* HERO: keep the real-estate image visible, restore a premium navy tone and rebalance typography. */
body.ph39-site .ph39-hero{
  background:
    linear-gradient(90deg,rgba(3,25,58,.74) 0%,rgba(5,40,84,.58) 48%,rgba(3,28,64,.48) 100%),
    url('/assets/v51/home-hero-final.jpg') center center/cover no-repeat!important;
  box-shadow:inset 0 -34px 76px rgba(1,18,43,.28)!important;
}
body.ph39-site .ph39-hero:before{
  display:block!important;
  background:linear-gradient(180deg,rgba(2,20,48,.10) 0%,rgba(2,24,55,.18) 100%)!important;
}
body.ph39-site .ph39-admin-hero-media{opacity:.88!important}
body.ph39-site .ph39-admin-hero-media:after{
  background:linear-gradient(90deg,rgba(2,25,59,.66) 0%,rgba(4,38,82,.43) 50%,rgba(2,25,59,.34) 100%)!important;
}
body.ph39-site .ph39-admin-hero-media video{filter:brightness(.72) saturate(1.03) contrast(1.04)!important}

body.ph39-site .ph39-hero-center{
  padding-top:24px!important;
  gap:0!important;
}
body.ph39-site .ph53-hero-brand{
  width:auto!important;
  max-width:100%!important;
  margin:0 auto 14px!important;
  white-space:nowrap!important;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:clamp(34px,3.9vw,58px)!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:.035em!important;
  color:var(--ph56-gold)!important;
  background:linear-gradient(180deg,var(--ph56-gold-light) 0%,var(--ph56-gold) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
}
body.ph39-site .ph39-kicker{
  margin:0 auto 12px!important;
  color:var(--ph56-gold-light)!important;
  font-size:clamp(15px,1.25vw,19px)!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:.055em!important;
  text-shadow:0 2px 8px rgba(0,0,0,.34)!important;
}
body.ph39-site .ph46-home-hero-title{
  gap:5px!important;
  margin:0 auto 14px!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(40px,4.1vw,58px)!important;
  color:var(--ph56-gold)!important;
  background:linear-gradient(180deg,var(--ph56-gold-light) 0%,var(--ph56-gold) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(36px,3.6vw,52px)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 3px 12px rgba(0,0,0,.52)!important;
}
body.ph39-site .ph39-subtitle{
  margin:0 auto 18px!important;
  color:#fff!important;
  font-size:clamp(15px,1.35vw,19px)!important;
  line-height:1.35!important;
  font-weight:800!important;
  text-shadow:0 2px 7px rgba(0,0,0,.62)!important;
}

/* HOME CAROUSELS: one row, max 4 cards per view. Controls only appear when there is another page. */
body.ph39-site .ph47-grid-shell{position:relative!important;overflow:visible!important}
body.ph39-site .ph47-home-grid,
body.ph39-site .ph47-home-grid[data-count="1"],
body.ph39-site .ph47-home-grid[data-count="2"],
body.ph39-site .ph47-home-grid[data-count="3"],
body.ph39-site .ph47-home-grid[data-count="4"]{
  display:flex!important;
  flex-wrap:nowrap!important;
  gap:14px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  scroll-behavior:smooth!important;
  scrollbar-width:none!important;
  overscroll-behavior-inline:contain!important;
}
body.ph39-site .ph47-home-grid::-webkit-scrollbar{display:none!important}
body.ph39-site .ph47-home-card{
  flex:0 0 calc((100% - 42px)/4)!important;
  width:calc((100% - 42px)/4)!important;
  min-width:0!important;
  scroll-snap-align:start!important;
}
body.ph39-site .ph47-grid-shell .nav-next[hidden],
body.ph39-site .ph47-dots[hidden]{display:none!important}
body.ph39-site .ph47-dots{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:18px!important;
  padding-top:10px!important;
  gap:8px!important;
}
body.ph39-site .ph47-dots span{cursor:pointer!important;transition:transform .18s ease,background .18s ease!important}
body.ph39-site .ph47-dots span.active{background:var(--ph56-gold)!important;transform:scale(1.08)!important}

@media(max-width:900px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(27px,4.5vw,36px)!important;letter-spacing:.025em!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(36px,7vw,48px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(31px,6vw,42px)!important}
  body.ph39-site .ph47-home-card{flex-basis:calc((100% - 14px)/2)!important;width:calc((100% - 14px)/2)!important}
}
@media(max-width:620px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(20px,6.2vw,28px)!important;white-space:nowrap!important;letter-spacing:.012em!important}
  body.ph39-site .ph39-kicker{font-size:14px!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(31px,10vw,42px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(28px,9vw,38px)!important}
  body.ph39-site .ph39-subtitle{font-size:14px!important}
  body.ph39-site .ph47-home-card{flex-basis:100%!important;width:100%!important}
  body.ph39-site .ph47-grid-shell .nav-next{display:flex!important}
  body.ph39-site .ph47-grid-shell .nav-next[hidden]{display:none!important}
}

/* =========================================================
   V5.6.1 — HEADER / HERO / PROMO collision fix
   Loaded last on index.html so these rules intentionally
   override conflicting !important declarations in v52/v55.
   ========================================================= */

/* HEADER — reserve realistic widths so menu and hotline never overlap. */
body.ph39-site .ph39-header,
body.ph39-catalog .ph39-header,
body.ph44-detail .ph39-header{
  height:92px!important;
  min-height:92px!important;
}
body.ph39-site .ph39-nav,
body.ph39-catalog .ph39-nav,
body.ph44-detail .ph39-nav{
  min-height:92px!important;
  grid-template-columns:260px minmax(0,1fr) 168px 82px!important;
  column-gap:14px!important;
}
body.ph39-site .ph39-brand.ph51-brand,
body.ph39-catalog .ph39-brand.ph51-brand,
body.ph44-detail .ph39-brand.ph51-brand{
  min-width:0!important;
  width:260px!important;
  height:72px!important;
  overflow:visible!important;
}
body.ph39-site .ph39-brand.ph51-brand img,
body.ph39-catalog .ph39-brand.ph51-brand img,
body.ph44-detail .ph39-brand.ph51-brand img{
  display:block!important;
  width:258px!important;
  height:68px!important;
  max-width:100%!important;
  max-height:68px!important;
  object-fit:contain!important;
  object-position:left center!important;
  filter:none!important;
}
body.ph39-site .ph39-menu,
body.ph39-catalog .ph39-menu,
body.ph44-detail .ph39-menu{
  min-width:0!important;
  width:100%!important;
  gap:14px!important;
  padding:0!important;
  margin:0!important;
  justify-content:center!important;
}
body.ph39-site .ph39-menu a,
body.ph39-catalog .ph39-menu a,
body.ph44-detail .ph39-menu a{
  flex:0 0 auto!important;
  font-size:14px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
body.ph39-site .ph39-hotline,
body.ph39-catalog .ph39-hotline,
body.ph44-detail .ph39-hotline{
  box-sizing:border-box!important;
  width:168px!important;
  min-width:168px!important;
  min-height:54px!important;
  margin-left:0!important;
  padding:8px 12px!important;
  gap:8px!important;
  justify-self:end!important;
  white-space:nowrap!important;
}
body.ph39-site .ph39-hotline span,
body.ph39-catalog .ph39-hotline span,
body.ph44-detail .ph39-hotline span{font-size:19px!important}
body.ph39-site .ph39-hotline small,
body.ph39-catalog .ph39-hotline small,
body.ph44-detail .ph39-hotline small{font-size:9.5px!important;line-height:1.05!important}
body.ph39-site .ph39-hotline b,
body.ph39-catalog .ph39-hotline b,
body.ph44-detail .ph39-hotline b{font-size:15px!important;line-height:1.15!important}
body.ph39-site .ph40-admin-entry,
body.ph39-catalog .ph40-admin-entry,
body.ph44-detail .ph40-admin-entry{
  box-sizing:border-box!important;
  min-width:82px!important;
  min-height:48px!important;
  padding:0 12px!important;
  font-size:13px!important;
}

/* HERO — keep the brand the largest heading, but prevent edge-to-edge scaling. */
body.ph39-site .ph53-hero-brand{
  box-sizing:border-box!important;
  width:auto!important;
  max-width:calc(100% - 48px)!important;
  padding:0!important;
  margin:0 auto 13px!important;
  font-size:clamp(30px,3.4vw,46px)!important;
  line-height:1.08!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
}
body.ph39-site .ph39-kicker{
  margin-bottom:13px!important;
  font-size:clamp(15px,1.2vw,18px)!important;
}
body.ph39-site .ph46-home-hero-title{
  gap:6px!important;
  margin-bottom:15px!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(38px,3.8vw,54px)!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(34px,3.25vw,46px)!important;
  text-shadow:0 3px 10px rgba(0,0,0,.68)!important;
}
body.ph39-site .ph39-subtitle{
  font-size:clamp(15px,1.25vw,18px)!important;
  text-shadow:0 2px 6px rgba(0,0,0,.72)!important;
}

/* PROMO CARDS — v52 fixed them to 286px, which clipped the CTA. */
body.ph39-site .ph47-promo-card,
body.ph39-site .ph47-promo-card.rent,
body.ph39-site .ph47-promo-card.sale{
  box-sizing:border-box!important;
  height:316px!important;
  min-height:316px!important;
  max-height:none!important;
  padding:18px 18px 18px!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
}
body.ph39-site .ph47-promo-card > div{
  flex:0 0 auto!important;
}
body.ph39-site .ph47-promo-list{
  margin:0 0 12px!important;
}
body.ph39-site .ph47-promo-card .cta{
  flex:0 0 auto!important;
  align-self:flex-start!important;
  margin-top:auto!important;
  margin-bottom:0!important;
}

/* Mid-size desktop: keep the menu readable and sacrifice the admin shortcut first. */
@media (max-width:1260px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    grid-template-columns:235px minmax(0,1fr) 164px!important;
    column-gap:12px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{width:235px!important;height:68px!important}
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{width:232px!important;height:64px!important;max-height:64px!important}
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{gap:11px!important}
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{font-size:13px!important}
  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{width:164px!important;min-width:164px!important}
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{display:none!important}
}

/* Tablet/mobile: use the existing hamburger instead of squeezing desktop links. */
@media (max-width:980px){
  body.ph39-site .ph39-header,
  body.ph39-catalog .ph39-header,
  body.ph44-detail .ph39-header{height:82px!important;min-height:82px!important}
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    min-height:82px!important;
    grid-template-columns:1fr auto auto!important;
    gap:10px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{width:220px!important;height:64px!important}
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{width:216px!important;height:60px!important;max-height:60px!important}
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{display:none!important}
  body.ph39-site.ph39-menu-open .ph39-menu,
  body.ph39-catalog.ph39-menu-open .ph39-menu,
  body.ph44-detail.ph39-menu-open .ph39-menu{display:flex!important;top:82px!important}
  body.ph39-site .ph53-hero-brand{font-size:clamp(25px,4.4vw,34px)!important;max-width:calc(100% - 28px)!important}
}

@media (max-width:620px){
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{width:180px!important;height:58px!important}
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{width:176px!important;height:54px!important;max-height:54px!important}
  body.ph39-site .ph53-hero-brand{
    font-size:clamp(19px,5.9vw,27px)!important;
    max-width:calc(100% - 20px)!important;
    letter-spacing:.01em!important;
  }
  body.ph39-site .ph47-promo-card,
  body.ph39-site .ph47-promo-card.rent,
  body.ph39-site .ph47-promo-card.sale{
    height:auto!important;
    min-height:300px!important;
    max-height:none!important;
  }
}

/* VERIFIED PATCH: 2026-08-09 14:12 +07 */

/* =========================================================
   V5.6.3 — FINAL DESKTOP HEADER + HERO FIX
   Fixes: Liên hệ/hotline collision, missing hero image,
   oversized hero brand, and excessive white-text shadow.
   ========================================================= */

/* Header gets its own wider container on desktop so the menu never has to
   overflow into the hotline. Other page sections keep their existing width. */
@media (min-width:1321px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:min(1400px,calc(100% - 48px))!important;
    grid-template-columns:286px minmax(0,1fr) 182px 106px!important;
    column-gap:18px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:286px!important;
    min-width:0!important;
    height:72px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:282px!important;
    height:66px!important;
    max-width:282px!important;
    max-height:66px!important;
  }
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{
    width:100%!important;
    min-width:0!important;
    justify-content:space-between!important;
    gap:12px!important;
    overflow:visible!important;
  }
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{
    font-size:15px!important;
    flex:0 0 auto!important;
  }
  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{
    width:182px!important;
    min-width:182px!important;
    margin:0!important;
    padding:8px 12px!important;
  }
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{
    width:106px!important;
    min-width:106px!important;
    padding:0 14px!important;
  }
}

/* Medium desktop: hide the admin shortcut before squeezing the navigation. */
@media (min-width:1051px) and (max-width:1320px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 28px)!important;
    grid-template-columns:238px minmax(0,1fr) 172px!important;
    column-gap:12px!important;
  }
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{display:none!important}
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{width:238px!important;height:68px!important}
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{width:234px!important;height:62px!important;max-width:234px!important;max-height:62px!important}
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{justify-content:space-between!important;gap:8px!important}
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{font-size:13px!important}
  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{width:172px!important;min-width:172px!important;margin:0!important}
}

/* Switch to the mobile menu before desktop links can collide. */
@media (max-width:1050px){
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{display:none!important}
  body.ph39-site.ph39-menu-open .ph39-menu,
  body.ph39-catalog.ph39-menu-open .ph39-menu,
  body.ph44-detail.ph39-menu-open .ph39-menu{display:flex!important}
}

/* The previous V5.6 URL pointed to a file that does not exist.
   Use the real V5.1 hero artwork that is already present in /assets/v51/. */
body.ph39-site .ph39-hero{
  background:
    linear-gradient(90deg,rgba(2,20,50,.46) 0%,rgba(4,31,71,.30) 48%,rgba(2,22,55,.30) 100%),
    url('/assets/v51/fb79ba9b-bd09-4f05-a95a-c0d9627f6a5d.png') center center/cover no-repeat!important;
  background-color:#062d61!important;
}
body.ph39-site .ph39-hero:before{
  display:block!important;
  background:linear-gradient(180deg,rgba(2,17,42,.08) 0%,rgba(2,22,52,.18) 100%)!important;
}
body.ph39-site .ph39-admin-hero-media:after{
  background:linear-gradient(90deg,rgba(2,22,52,.38) 0%,rgba(3,31,70,.23) 50%,rgba(2,22,52,.20) 100%)!important;
}

/* Rebalance the hero. The brand remains the largest line, but no longer
   dominates the entire banner. */
body.ph39-site .ph53-hero-brand{
  max-width:calc(100% - 64px)!important;
  font-size:clamp(30px,2.65vw,40px)!important;
  line-height:1.08!important;
  letter-spacing:.024em!important;
  margin:0 auto 12px!important;
}
body.ph39-site .ph39-kicker{
  font-size:clamp(14px,1.05vw,17px)!important;
  margin-bottom:11px!important;
  text-shadow:0 1px 4px rgba(0,0,0,.34)!important;
}
body.ph39-site .ph46-home-hero-title{gap:4px!important;margin-bottom:12px!important}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(34px,2.55vw,39px)!important;
  line-height:1.04!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(31px,2.35vw,36px)!important;
  line-height:1.05!important;
  text-shadow:0 2px 5px rgba(0,0,0,.62)!important;
}
body.ph39-site .ph39-subtitle{
  font-size:clamp(14px,1.05vw,16px)!important;
  line-height:1.35!important;
  text-shadow:0 1px 4px rgba(0,0,0,.60)!important;
}

@media (max-width:1050px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(24px,4vw,32px)!important;max-width:calc(100% - 28px)!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(31px,5vw,37px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(28px,4.6vw,34px)!important}
}
@media (max-width:620px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(18px,5.6vw,25px)!important;white-space:normal!important;max-width:94%!important}
}

/* Complete the 1050px navigation hand-off: show the hamburger at the same
   breakpoint where desktop links are hidden. */
@media (max-width:1050px){
  body.ph39-site .ph39-header,
  body.ph39-catalog .ph39-header,
  body.ph44-detail .ph39-header{height:82px!important;min-height:82px!important}
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 24px)!important;
    min-height:82px!important;
    grid-template-columns:1fr auto auto!important;
    gap:10px!important;
  }
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{display:none!important}
  body.ph39-site .ph39-menu-toggle,
  body.ph39-catalog .ph39-menu-toggle,
  body.ph44-detail .ph39-menu-toggle{display:block!important}
  body.ph39-site.ph39-menu-open .ph39-menu,
  body.ph39-catalog.ph39-menu-open .ph39-menu,
  body.ph44-detail.ph39-menu-open .ph39-menu{
    position:absolute!important;
    left:12px!important;
    right:12px!important;
    top:82px!important;
    width:auto!important;
    padding:10px!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    background:#fff!important;
    border:1px solid #e3e8f1!important;
    border-radius:14px!important;
    box-shadow:0 16px 32px rgba(20,43,82,.14)!important;
    z-index:1000!important;
  }
  body.ph39-site.ph39-menu-open .ph39-menu a,
  body.ph39-catalog.ph39-menu-open .ph39-menu a,
  body.ph44-detail.ph39-menu-open .ph39-menu a{
    padding:12px 10px!important;
    font-size:14px!important;
  }
}


/* =========================================================
   V5.6.4 — HERO TYPE + RENTAL BENEFITS
   - Keep Vietnamese diacritics fully visible.
   - Make “PHƯƠNG HẰNG” slightly larger than “BẤT ĐỘNG SẢN”.
   - Center NHÀ THẬT / GIÁ TRỊ THẬT and remove the leading dash.
   - Repeat the 4 trust benefits directly below KHU NHÀ CHO THUÊ.
   ========================================================= */
body.ph39-site .ph53-hero-brand{
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:.30em!important;
  max-width:calc(100% - 44px)!important;
  margin:0 auto 10px!important;
  padding:.10em 0 .02em!important;
  overflow:visible!important;
  white-space:nowrap!important;
  font-family:Arial,"Segoe UI",Tahoma,sans-serif!important;
  font-size:clamp(34px,2.85vw,42px)!important;
  line-height:1.22!important;
  font-weight:900!important;
  letter-spacing:.018em!important;
  background:none!important;
  -webkit-text-fill-color:initial!important;
  color:var(--ph56-gold)!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-name,
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  display:inline-block!important;
  overflow:visible!important;
  padding-top:.04em!important;
  color:var(--ph56-gold)!important;
  background:linear-gradient(180deg,var(--ph56-gold-light) 0%,var(--ph56-gold) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  text-rendering:geometricPrecision!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-name{
  font-size:1.10em!important;
  letter-spacing:.012em!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  font-size:1em!important;
}

body.ph39-site .ph46-home-hero-title{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:4px!important;
  text-align:center!important;
  margin:0 auto 12px!important;
}
body.ph39-site .ph46-home-hero-title span,
body.ph39-site .ph46-home-hero-title strong{
  display:block!important;
  width:auto!important;
  margin:0 auto!important;
  text-align:center!important;
  font-family:Arial,"Segoe UI",Tahoma,sans-serif!important;
  line-height:1.12!important;
  overflow:visible!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(35px,2.65vw,40px)!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(32px,2.45vw,37px)!important;
}

/* The same reassurance strip is now shown under the rental inventory too. */
body.ph39-site .ph56-rental-benefits{
  margin-top:18px!important;
  margin-bottom:0!important;
}

@media (max-width:1050px){
  body.ph39-site .ph53-hero-brand{
    font-size:clamp(27px,4vw,36px)!important;
    max-width:calc(100% - 24px)!important;
    gap:.24em!important;
  }
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(32px,5vw,38px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(29px,4.6vw,35px)!important}
}

@media (max-width:620px){
  body.ph39-site .ph53-hero-brand{
    flex-wrap:wrap!important;
    gap:0 .28em!important;
    max-width:96%!important;
    white-space:normal!important;
    font-size:clamp(20px,5.8vw,27px)!important;
    line-height:1.18!important;
  }
  body.ph39-site .ph53-hero-brand .ph56-brand-name,
  body.ph39-site .ph53-hero-brand .ph56-brand-sector{
    white-space:nowrap!important;
  }
}


/* =========================================================
   V5.6.5 — HERO TYPOGRAPHY MATCHES APPROVED BANNER IMAGE
   - One-line brand: PHƯƠNG HẰNG BẤT ĐỘNG SẢN
   - Decorative lines around TÌM NHÀ DỄ DÀNG
   - Larger centered NHÀ THẬT / GIÁ TRỊ THẬT
   - Cleaner spacing similar to approved visual
   ========================================================= */
body.ph39-site .ph39-hero-center{
  max-width:1400px!important;
  padding-top:28px!important;
  padding-bottom:18px!important;
}

body.ph39-site .ph53-hero-brand{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:.28em!important;
  width:100%!important;
  max-width:calc(100% - 40px)!important;
  margin:0 auto 18px!important;
  white-space:nowrap!important;
  overflow:visible!important;
  font-family:"Times New Roman",Georgia,serif!important;
  font-size:clamp(44px,4.85vw,80px)!important;
  line-height:1.02!important;
  font-weight:700!important;
  letter-spacing:.028em!important;
  text-transform:uppercase!important;
  background:linear-gradient(180deg,#f4dd87 0%,#dfba48 34%,#be8822 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  text-shadow:0 2px 0 rgba(255,255,255,.08),0 5px 18px rgba(10,7,2,.22)!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-name,
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  display:inline-block!important;
  font-size:1em!important;
  line-height:inherit!important;
  letter-spacing:inherit!important;
  background:inherit!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  padding-top:.02em!important;
}

body.ph39-site .ph39-kicker{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  margin:0 auto 16px!important;
  text-align:center!important;
}
body.ph39-site .ph39-kicker > span{
  position:relative!important;
  display:inline-block!important;
  padding:0 28px!important;
  color:#e2bf53!important;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:clamp(18px,1.8vw,31px)!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  text-shadow:0 2px 8px rgba(0,0,0,.26)!important;
}
body.ph39-site .ph39-kicker > span::before,
body.ph39-site .ph39-kicker > span::after{
  content:"";
  position:absolute;
  top:50%;
  width:min(18vw,210px);
  height:2px;
  background:linear-gradient(90deg,rgba(226,191,83,0) 0%,rgba(226,191,83,.92) 100%);
  transform:translateY(-50%);
}
body.ph39-site .ph39-kicker > span::before{
  right:100%;
  margin-right:18px;
}
body.ph39-site .ph39-kicker > span::after{
  left:100%;
  margin-left:18px;
  transform:translateY(-50%) scaleX(-1);
}

body.ph39-site .ph46-home-hero-title{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  margin:0 auto 16px!important;
  text-align:center!important;
}
body.ph39-site .ph46-home-hero-title span,
body.ph39-site .ph46-home-hero-title strong{
  display:block!important;
  width:100%!important;
  margin:0 auto!important;
  text-align:center!important;
  line-height:.96!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-family:"Arial Black","Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:clamp(58px,6.3vw,110px)!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  background:linear-gradient(180deg,#f4dc7f 0%,#dfb641 42%,#c58d1d 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  text-shadow:0 4px 16px rgba(17,10,0,.22)!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-family:"Arial Black","Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:clamp(54px,5.8vw,102px)!important;
  font-weight:900!important;
  letter-spacing:.005em!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:none!important;
  text-shadow:0 4px 16px rgba(0,0,0,.35)!important;
}

body.ph39-site .ph39-subtitle{
  max-width:1100px!important;
  margin:0 auto 20px!important;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;
  font-size:clamp(16px,1.55vw,25px)!important;
  line-height:1.28!important;
  font-weight:800!important;
  color:#ffffff!important;
  text-align:center!important;
  text-shadow:0 2px 8px rgba(0,0,0,.42)!important;
}

@media (max-width:1190px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(34px,4.25vw,62px)!important;letter-spacing:.02em!important}
  body.ph39-site .ph39-kicker > span{font-size:clamp(16px,1.9vw,24px)!important;padding:0 24px!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{width:min(14vw,150px)!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(46px,5.4vw,84px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(42px,5vw,76px)!important}
}

@media (max-width:820px){
  body.ph39-site .ph39-hero-center{padding-top:20px!important}
  body.ph39-site .ph53-hero-brand{
    flex-wrap:wrap!important;
    max-width:94%!important;
    white-space:normal!important;
    gap:.05em .25em!important;
    font-size:clamp(26px,5.5vw,42px)!important;
    text-align:center!important;
    line-height:1.08!important;
  }
  body.ph39-site .ph53-hero-brand .ph56-brand-name,
  body.ph39-site .ph53-hero-brand .ph56-brand-sector{white-space:nowrap!important}
  body.ph39-site .ph39-kicker{margin-bottom:12px!important}
  body.ph39-site .ph39-kicker > span{font-size:clamp(14px,3vw,18px)!important;letter-spacing:.11em!important;padding:0 14px!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{width:min(9vw,55px)!important;margin:0 10px!important}
  body.ph39-site .ph46-home-hero-title{gap:6px!important;margin-bottom:12px!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(36px,8vw,58px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(34px,7.4vw,52px)!important}
  body.ph39-site .ph39-subtitle{font-size:clamp(14px,2.8vw,18px)!important;max-width:92%!important}
}

@media (max-width:520px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(22px,6vw,32px)!important}
  body.ph39-site .ph39-kicker > span{padding:0 10px!important;letter-spacing:.08em!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{display:none!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(30px,9vw,42px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(29px,8.6vw,40px)!important}
}


/* =========================================================
   V5.6.6 — FIX HERO WRAPPING + VIETNAMESE DIACRITICS
   Approved layout: compact top brand, centered one-line slogans.
   ========================================================= */
body.ph39-site .ph39-hero-center{
  max-width:1360px!important;
  padding-top:26px!important;
  padding-left:24px!important;
  padding-right:24px!important;
}

/* Top brand: keep one line on desktop, equal visual size, more breathing room. */
body.ph39-site .ph53-hero-brand{
  max-width:92%!important;
  margin:0 auto 16px!important;
  gap:.26em!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(38px,4.15vw,66px)!important;
  line-height:1.16!important;
  font-weight:700!important;
  letter-spacing:.018em!important;
  white-space:nowrap!important;
  overflow:visible!important;
  padding:.08em 0 .03em!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-name,
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  font-size:1em!important;
  line-height:1.16!important;
  white-space:nowrap!important;
  padding:.08em 0 .03em!important;
}

/* Kicker: centered, tidy decorative lines. */
body.ph39-site .ph39-kicker{
  margin:0 auto 14px!important;
}
body.ph39-site .ph39-kicker > span{
  padding:0 26px!important;
  font-family:Arial,"Segoe UI",Tahoma,sans-serif!important;
  font-size:clamp(16px,1.45vw,23px)!important;
  line-height:1.25!important;
  font-weight:800!important;
  letter-spacing:.13em!important;
  white-space:nowrap!important;
}
body.ph39-site .ph39-kicker > span::before,
body.ph39-site .ph39-kicker > span::after{
  width:min(15vw,180px)!important;
  height:1.5px!important;
}

/* Main message: both lines are ALWAYS centered and one line. */
body.ph39-site .ph46-home-hero-title{
  width:100%!important;
  max-width:1120px!important;
  gap:2px!important;
  margin:0 auto 12px!important;
  overflow:visible!important;
}
body.ph39-site .ph46-home-hero-title span,
body.ph39-site .ph46-home-hero-title strong{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  overflow:visible!important;
  padding:.08em .04em .05em!important;
  margin:0 auto!important;
  font-family:Arial,"Segoe UI",Tahoma,sans-serif!important;
  font-weight:900!important;
  line-height:1.06!important;
  text-align:center!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(48px,5.15vw,82px)!important;
  letter-spacing:.005em!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(44px,4.72vw,76px)!important;
  letter-spacing:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 3px 10px rgba(0,0,0,.30)!important;
}

body.ph39-site .ph39-subtitle{
  max-width:980px!important;
  margin:0 auto 20px!important;
  font-family:Arial,"Segoe UI",Tahoma,sans-serif!important;
  font-size:clamp(15px,1.35vw,21px)!important;
  line-height:1.35!important;
  font-weight:700!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  text-shadow:0 2px 6px rgba(0,0,0,.38)!important;
}

@media (max-width:1100px){
  body.ph39-site .ph53-hero-brand{
    max-width:96%!important;
    font-size:clamp(31px,4vw,44px)!important;
  }
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(42px,5.6vw,60px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(39px,5.2vw,56px)!important}
  body.ph39-site .ph39-subtitle{font-size:clamp(14px,1.8vw,18px)!important}
}

@media (max-width:820px){
  body.ph39-site .ph53-hero-brand{
    flex-wrap:wrap!important;
    white-space:normal!important;
    max-width:96%!important;
    gap:.02em .24em!important;
    font-family:Georgia,"Times New Roman",serif!important;
    font-size:clamp(25px,5.3vw,36px)!important;
    line-height:1.12!important;
  }
  body.ph39-site .ph39-kicker > span{font-size:clamp(13px,2.8vw,17px)!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{width:min(9vw,58px)!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(34px,8vw,50px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(31px,7.3vw,46px)!important}
  body.ph39-site .ph39-subtitle{
    max-width:94%!important;
    white-space:normal!important;
    font-size:clamp(13px,2.7vw,17px)!important;
  }
}

@media (max-width:520px){
  body.ph39-site .ph39-hero-center{padding-left:12px!important;padding-right:12px!important}
  body.ph39-site .ph53-hero-brand{font-size:clamp(22px,6vw,29px)!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{display:none!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(30px,9vw,40px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(27px,8.1vw,36px)!important}
}


/* =========================================================
   V5.6.7 — CENTER EVERYTHING + SAFE VIETNAMESE TYPE
   ========================================================= */
body.ph39-site .ph39-hero-center{
  width:min(100%,1400px)!important;
  max-width:1400px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:28px 28px 22px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  text-align:center!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* Brand is one continuous text node so Vietnamese accents cannot split. */
body.ph39-site .ph53-hero-brand{
  display:block!important;
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto 16px!important;
  padding:.10em 0 .06em!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(40px,4vw,64px)!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:0!important;
  word-spacing:.10em!important;
  font-kerning:normal!important;
  text-rendering:optimizeLegibility!important;
  color:#e2b83f!important;
  -webkit-text-fill-color:#e2b83f!important;
  background:none!important;
  text-shadow:0 2px 10px rgba(0,0,0,.22)!important;
}

body.ph39-site .ph39-kicker{
  width:100%!important;
  max-width:920px!important;
  margin:0 auto 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
body.ph39-site .ph39-kicker > span{
  display:inline-block!important;
  position:relative!important;
  margin:0 auto!important;
  padding:0 28px!important;
  text-align:center!important;
  white-space:nowrap!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(16px,1.5vw,23px)!important;
  line-height:1.3!important;
  font-weight:800!important;
  letter-spacing:.10em!important;
  color:#e7bc3d!important;
  -webkit-text-fill-color:#e7bc3d!important;
  background:none!important;
}
body.ph39-site .ph39-kicker > span::before,
body.ph39-site .ph39-kicker > span::after{
  content:""!important;
  position:absolute!important;
  top:50%!important;
  width:min(14vw,170px)!important;
  height:1.5px!important;
  background:#c89f2a!important;
  opacity:.9!important;
}
body.ph39-site .ph39-kicker > span::before{
  right:100%!important;
  margin-right:18px!important;
  transform:translateY(-50%)!important;
}
body.ph39-site .ph39-kicker > span::after{
  left:100%!important;
  margin-left:18px!important;
  transform:translateY(-50%)!important;
}

body.ph39-site .ph46-home-hero-title{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:1000px!important;
  margin:0 auto 12px!important;
  padding:0!important;
  gap:4px!important;
  text-align:center!important;
  overflow:visible!important;
}
body.ph39-site .ph46-home-hero-title span,
body.ph39-site .ph46-home-hero-title strong{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 auto!important;
  padding:.05em 0!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-weight:900!important;
  font-kerning:normal!important;
  text-rendering:optimizeLegibility!important;
  letter-spacing:0!important;
}
body.ph39-site .ph46-home-hero-title span{
  font-size:clamp(50px,5.2vw,82px)!important;
  line-height:1.05!important;
  color:#dda928!important;
  -webkit-text-fill-color:#dda928!important;
  background:none!important;
  text-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}
body.ph39-site .ph46-home-hero-title strong{
  font-size:clamp(46px,4.8vw,76px)!important;
  line-height:1.05!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 3px 10px rgba(0,0,0,.30)!important;
}

body.ph39-site .ph39-subtitle{
  display:block!important;
  width:100%!important;
  max-width:980px!important;
  margin:0 auto 20px!important;
  padding:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(15px,1.35vw,21px)!important;
  line-height:1.4!important;
  font-weight:700!important;
  letter-spacing:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 2px 6px rgba(0,0,0,.34)!important;
}

/* Metrics also remain centered under the text block. */
body.ph39-site .ph46-hero-metrics{
  margin-left:auto!important;
  margin-right:auto!important;
  justify-content:center!important;
  text-align:center!important;
}

@media (max-width:1100px){
  body.ph39-site .ph53-hero-brand{
    max-width:96%!important;
    font-size:clamp(31px,4.1vw,45px)!important;
    word-spacing:.06em!important;
  }
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{width:min(11vw,120px)!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(42px,5.6vw,60px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(39px,5.2vw,56px)!important}
}

@media (max-width:820px){
  body.ph39-site .ph39-hero-center{padding:22px 16px 18px!important}
  body.ph39-site .ph53-hero-brand{
    max-width:96%!important;
    white-space:normal!important;
    font-size:clamp(25px,5.2vw,36px)!important;
    line-height:1.16!important;
  }
  body.ph39-site .ph39-kicker > span{font-size:clamp(13px,2.8vw,17px)!important;padding:0 14px!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{width:min(8vw,52px)!important;margin-left:10px!important;margin-right:10px!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(34px,8vw,50px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(31px,7.3vw,46px)!important}
  body.ph39-site .ph39-subtitle{
    max-width:94%!important;
    white-space:normal!important;
    font-size:clamp(13px,2.7vw,17px)!important;
  }
}

@media (max-width:520px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(22px,6vw,29px)!important}
  body.ph39-site .ph39-kicker > span::before,
  body.ph39-site .ph39-kicker > span::after{display:none!important}
  body.ph39-site .ph46-home-hero-title span{font-size:clamp(30px,9vw,40px)!important}
  body.ph39-site .ph46-home-hero-title strong{font-size:clamp(27px,8.1vw,36px)!important}
}


/* =========================================================
   V5.6.8 — ONLY ALIGN "NHÀ THẬT" OVER "GIÁ TRỊ THẬT"
   Keep both lines on one shared visual center axis.
   ========================================================= */
body.ph39-site .ph46-home-hero-title{
  display:grid!important;
  grid-template-columns:max-content!important;
  justify-content:center!important;
  justify-items:center!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
  gap:4px!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
body.ph39-site .ph46-home-hero-title > span,
body.ph39-site .ph46-home-hero-title > strong{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  text-align:center!important;
  justify-self:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  white-space:nowrap!important;
}


/* =========================================================
   V5.6.9 — HERO BACKGROUND CLARITY
   Keep the house and the woman clearly visible while the city remains
   a supporting background. Darken only the center behind the copy.
   ========================================================= */
body.ph39-site .ph39-hero{
  background-image:url('/assets/v51/fb79ba9b-bd09-4f05-a95a-c0d9627f6a5d.png')!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-color:#041f48!important;
  box-shadow:inset 0 -24px 54px rgba(1,15,35,.18)!important;
}

/* No blanket dark wash over the house/person.  The mask is strongest only
   behind the central text so both visual anchors remain crisp. */
body.ph39-site .ph39-hero:before{
  display:block!important;
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:
    linear-gradient(180deg,rgba(2,18,43,.06) 0%,rgba(2,18,43,.01) 46%,rgba(2,18,43,.08) 100%),
    linear-gradient(90deg,
      rgba(1,14,34,.02) 0%,
      rgba(2,20,48,.05) 19%,
      rgba(2,25,60,.30) 31%,
      rgba(2,27,65,.52) 43%,
      rgba(2,27,65,.58) 50%,
      rgba(2,27,65,.50) 58%,
      rgba(2,25,60,.27) 69%,
      rgba(2,20,48,.04) 82%,
      rgba(1,14,34,.01) 100%)!important;
}

/* If an admin-managed hero image/video is active, apply the same center-only
   readability mask instead of dimming the entire visual. */
body.ph39-site .ph39-admin-hero-media{opacity:1!important}
body.ph39-site .ph39-admin-hero-media:after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(90deg,
    rgba(2,20,48,.02) 0%,
    rgba(2,24,58,.06) 20%,
    rgba(2,27,65,.42) 39%,
    rgba(2,27,65,.53) 50%,
    rgba(2,27,65,.40) 62%,
    rgba(2,24,58,.05) 81%,
    rgba(2,20,48,.01) 100%)!important;
}
body.ph39-site .ph39-admin-hero-media video{
  filter:brightness(.94) saturate(1.08) contrast(1.04)!important;
}

/* Subtle central halo: improves text contrast without turning the whole hero
   into a dark blue slab. */
body.ph39-site .ph39-hero-center{
  isolation:isolate!important;
}
body.ph39-site .ph39-hero-center:before{
  content:""!important;
  position:absolute!important;
  z-index:-1!important;
  left:50%!important;
  top:45%!important;
  width:min(980px,76vw)!important;
  height:76%!important;
  transform:translate(-50%,-50%)!important;
  border-radius:50%!important;
  background:radial-gradient(ellipse at center,
    rgba(2,23,56,.38) 0%,
    rgba(2,23,56,.23) 43%,
    rgba(2,23,56,.08) 65%,
    rgba(2,23,56,0) 78%)!important;
  pointer-events:none!important;
}

/* Keep house and woman inside the visible composition as the viewport narrows. */
@media (max-width:1250px){
  body.ph39-site .ph39-hero{
    background-position:center center!important;
  }
  body.ph39-site .ph39-hero:before{
    background:
      linear-gradient(180deg,rgba(2,18,43,.05),rgba(2,18,43,.05)),
      linear-gradient(90deg,
        rgba(2,18,43,.03) 0%,
        rgba(2,24,58,.18) 24%,
        rgba(2,27,65,.48) 40%,
        rgba(2,27,65,.56) 50%,
        rgba(2,27,65,.47) 61%,
        rgba(2,24,58,.15) 77%,
        rgba(2,18,43,.02) 100%)!important;
  }
}

@media (max-width:820px){
  /* On smaller screens prioritize the property image and readable copy;
     the right-side person remains visible where space allows. */
  body.ph39-site .ph39-hero{
    background-position:54% center!important;
  }
  body.ph39-site .ph39-hero:before{
    background:rgba(2,23,56,.32)!important;
  }
  body.ph39-site .ph39-hero-center:before{
    width:96vw!important;
    height:84%!important;
    background:radial-gradient(ellipse at center,rgba(2,23,56,.45),rgba(2,23,56,.16) 70%,transparent 86%)!important;
  }
}


/* =========================================================
   V5.7.3 — FORCE USER-PROVIDED HOME BANNER
   The admin hero media previously covered the CSS background.
   Use the newly supplied banner as the actual homepage hero.
   ========================================================= */
body.ph39-site .ph39-hero{
  background-image:url('/assets/v51/hero-banner-v573.jpg?v=573')!important;
  background-position:center center!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-color:#031b3f!important;
}

/* Prevent database/admin hero media from visually covering the chosen banner. */
body.ph39-site #heroDynamicMedia,
body.ph39-site .ph39-admin-hero-media{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
}

/* Keep the house and woman clear; darken only the middle slightly for copy. */
body.ph39-site .ph39-hero:before{
  display:block!important;
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  pointer-events:none!important;
  background:linear-gradient(90deg,
    rgba(1,13,31,.01) 0%,
    rgba(1,16,38,.03) 20%,
    rgba(2,21,49,.15) 35%,
    rgba(2,23,55,.28) 47%,
    rgba(2,23,55,.30) 53%,
    rgba(2,21,49,.14) 66%,
    rgba(1,16,38,.03) 80%,
    rgba(1,13,31,.01) 100%)!important;
}

/* Remove the older extra halo so the new banner stays crisp. */
body.ph39-site .ph39-hero-center:before{
  display:none!important;
}

@media (max-width:820px){
  body.ph39-site .ph39-hero{
    background-position:center center!important;
  }
}

/* =========================================================
   V5.7.5 — KEEP SAFE VIETNAMESE TYPOGRAPHY + NEW BANNER POSITIONING
   Restores the approved centered hero typography from V5.6.7/V5.6.8.
   Adds admin-controlled x/y positioning without touching text layout.
   ========================================================= */
body.ph39-site .ph39-hero{
  --ph-hero-pos-x:50%;
  --ph-hero-pos-y:50%;
  --ph-hero-mobile-pos-x:50%;
  --ph-hero-mobile-pos-y:50%;
  background-image:url('/assets/v51/hero-banner-v575.jpg?v=575')!important;
  background-position:var(--ph-hero-pos-x) var(--ph-hero-pos-y)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-color:#031b3f!important;
}
body.ph39-site #heroDynamicMedia,
body.ph39-site .ph39-admin-hero-media{
  display:none!important;
  opacity:0!important;
  visibility:hidden!important;
}

/* Final typography lock: do not let older CSS split Vietnamese diacritics. */
body.ph39-site .ph53-hero-brand{
  display:block!important;
  width:100%!important;
  max-width:1280px!important;
  margin:0 auto 16px!important;
  padding:.10em 0 .06em!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(40px,4vw,64px)!important;
  line-height:1.18!important;
  font-weight:800!important;
  letter-spacing:0!important;
  word-spacing:.10em!important;
  font-kerning:normal!important;
  text-rendering:optimizeLegibility!important;
  color:#e2b83f!important;
  -webkit-text-fill-color:#e2b83f!important;
  background:none!important;
  text-shadow:0 2px 10px rgba(0,0,0,.22)!important;
}
body.ph39-site .ph39-kicker{
  width:100%!important;
  max-width:920px!important;
  margin:0 auto 14px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}
body.ph39-site .ph39-kicker > span{
  display:inline-block!important;
  position:relative!important;
  margin:0 auto!important;
  padding:0 28px!important;
  text-align:center!important;
  white-space:nowrap!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(16px,1.5vw,23px)!important;
  line-height:1.3!important;
  font-weight:800!important;
  letter-spacing:.10em!important;
  color:#e7bc3d!important;
  -webkit-text-fill-color:#e7bc3d!important;
  background:none!important;
}
body.ph39-site .ph46-home-hero-title{
  display:grid!important;
  grid-template-columns:max-content!important;
  justify-content:center!important;
  justify-items:center!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 auto 12px!important;
  padding:0!important;
  gap:4px!important;
  text-align:center!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  overflow:visible!important;
}
body.ph39-site .ph46-home-hero-title > span,
body.ph39-site .ph46-home-hero-title > strong{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:.05em 0!important;
  text-align:center!important;
  justify-self:center!important;
  white-space:nowrap!important;
  overflow:visible!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-weight:900!important;
  font-kerning:normal!important;
  text-rendering:optimizeLegibility!important;
  letter-spacing:0!important;
  position:relative!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
}
body.ph39-site .ph46-home-hero-title > span{
  font-size:clamp(50px,5.2vw,82px)!important;
  line-height:1.05!important;
  color:#dda928!important;
  -webkit-text-fill-color:#dda928!important;
  background:none!important;
  text-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}
body.ph39-site .ph46-home-hero-title > strong{
  font-size:clamp(46px,4.8vw,76px)!important;
  line-height:1.05!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 3px 10px rgba(0,0,0,.30)!important;
}
body.ph39-site .ph39-subtitle{
  display:block!important;
  width:100%!important;
  max-width:980px!important;
  margin:0 auto 20px!important;
  padding:0!important;
  text-align:center!important;
  white-space:nowrap!important;
  font-family:"Segoe UI",Arial,Tahoma,sans-serif!important;
  font-size:clamp(15px,1.35vw,21px)!important;
  line-height:1.4!important;
  font-weight:700!important;
  letter-spacing:0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:none!important;
  text-shadow:0 2px 6px rgba(0,0,0,.34)!important;
}
@media(max-width:1100px){
  body.ph39-site .ph53-hero-brand{max-width:96%!important;font-size:clamp(31px,4.1vw,45px)!important;word-spacing:.06em!important}
  body.ph39-site .ph46-home-hero-title > span{font-size:clamp(42px,5.6vw,60px)!important}
  body.ph39-site .ph46-home-hero-title > strong{font-size:clamp(39px,5.2vw,56px)!important}
}
@media(max-width:820px){
  body.ph39-site .ph39-hero{background-position:var(--ph-hero-mobile-pos-x) var(--ph-hero-mobile-pos-y)!important}
  body.ph39-site .ph53-hero-brand{max-width:96%!important;white-space:normal!important;font-size:clamp(25px,5.2vw,36px)!important;line-height:1.16!important}
  body.ph39-site .ph39-kicker > span{font-size:clamp(13px,2.8vw,17px)!important;padding:0 14px!important}
  body.ph39-site .ph46-home-hero-title > span{font-size:clamp(34px,8vw,50px)!important}
  body.ph39-site .ph46-home-hero-title > strong{font-size:clamp(31px,7.3vw,46px)!important}
  body.ph39-site .ph39-subtitle{max-width:94%!important;white-space:normal!important;font-size:clamp(13px,2.7vw,17px)!important}
}
@media(max-width:520px){
  body.ph39-site .ph53-hero-brand{font-size:clamp(22px,6vw,29px)!important}
  body.ph39-site .ph46-home-hero-title > span{font-size:clamp(30px,9vw,40px)!important}
  body.ph39-site .ph46-home-hero-title > strong{font-size:clamp(27px,8.1vw,36px)!important}
}

/* =========================================================
   V5.7.6 — LINK ADMIN BANNER SETTINGS TO THE REAL HOMEPAGE
   The uploaded desktop/mobile images and x/y settings now drive
   the actual .ph39-hero instead of only the small admin preview.
   ========================================================= */
body.ph39-site .ph39-hero{
  --ph-hero-desktop-image:url('/assets/v51/hero-banner-v575.jpg?v=575');
  --ph-hero-mobile-image:var(--ph-hero-desktop-image);
  --ph-hero-pos-x:50%;
  --ph-hero-pos-y:50%;
  --ph-hero-mobile-pos-x:50%;
  --ph-hero-mobile-pos-y:50%;
  background-image:var(--ph-hero-desktop-image)!important;
  background-position:var(--ph-hero-pos-x) var(--ph-hero-pos-y)!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-color:#031b3f!important;
}

/* Admin-selected video is allowed again. Images are applied directly
   to .ph39-hero by app.js so they never fight with the CSS fallback. */
body.ph39-site #heroDynamicMedia.ph56-video-active,
body.ph39-site .ph39-admin-hero-media.ph56-video-active{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
body.ph39-site #heroDynamicMedia.ph56-video-active video,
body.ph39-site .ph39-admin-hero-media.ph56-video-active video{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:var(--ph-hero-pos-x) var(--ph-hero-pos-y)!important;
}

@media(max-width:700px){
  body.ph39-site .ph39-hero{
    background-image:var(--ph-hero-mobile-image)!important;
    background-position:var(--ph-hero-mobile-pos-x) var(--ph-hero-mobile-pos-y)!important;
  }
  body.ph39-site #heroDynamicMedia.ph56-video-active video,
  body.ph39-site .ph39-admin-hero-media.ph56-video-active video{
    object-position:var(--ph-hero-mobile-pos-x) var(--ph-hero-mobile-pos-y)!important;
  }
}


/* =========================================================
   V5.7.7 — HERO TEXT SHADOW + SUBTITLE SPACING
   Chỉ tăng chiều sâu cho chữ và hạ slogan xuống nhẹ.
   ========================================================= */
body.ph39-site .ph53-hero-brand{
  text-shadow:
    0 2px 2px rgba(0,0,0,.42),
    0 7px 16px rgba(0,0,0,.34)!important;
}
body.ph39-site .ph39-kicker > span{
  text-shadow:
    0 2px 2px rgba(0,0,0,.48),
    0 5px 12px rgba(0,0,0,.30)!important;
}
body.ph39-site .ph46-home-hero-title > span{
  text-shadow:
    0 3px 2px rgba(0,0,0,.38),
    0 8px 18px rgba(0,0,0,.34)!important;
}
body.ph39-site .ph46-home-hero-title > strong{
  text-shadow:
    0 3px 2px rgba(0,0,0,.58),
    0 8px 18px rgba(0,0,0,.40)!important;
}
body.ph39-site .ph39-subtitle{
  margin:10px auto 18px!important;
  text-shadow:
    0 2px 2px rgba(0,0,0,.72),
    0 5px 12px rgba(0,0,0,.42)!important;
}
@media(max-width:820px){
  body.ph39-site .ph39-subtitle{margin-top:8px!important}
}


/* =========================================================
   V5.7.8 — PROMO CTA CLIP FIX + MOBILE LOGO NUDGE
   Chỉ sửa nút CTA bị cắt đáy và nhích logo mobile lên nhẹ.
   ========================================================= */
body.ph39-site .ph47-promo-card,
body.ph39-site .ph47-promo-card.rent,
body.ph39-site .ph47-promo-card.sale{
  display:flex!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
  height:auto!important;
  min-height:330px!important;
  max-height:none!important;
  padding:18px 18px 24px!important;
  overflow:hidden!important;
  justify-content:flex-start!important;
}
body.ph39-site .ph47-promo-card > div{
  flex:0 0 auto!important;
  min-height:0!important;
}
body.ph39-site .ph47-promo-card .cta{
  position:relative!important;
  flex:0 0 auto!important;
  align-self:flex-start!important;
  margin-top:auto!important;
  margin-bottom:0!important;
  transform:none!important;
  bottom:auto!important;
  top:auto!important;
  z-index:2!important;
}

@media (max-width:620px){
  body.ph39-site .ph47-promo-card,
  body.ph39-site .ph47-promo-card.rent,
  body.ph39-site .ph47-promo-card.sale{
    height:auto!important;
    min-height:290px!important;
    max-height:none!important;
    padding-bottom:22px!important;
  }

  /* Nhích logo trên header điện thoại lên nhẹ, không đổi kích thước. */
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    position:relative!important;
    top:-5px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    transform:none!important;
  }
}


/* V5.7.9 — mobile hero brand 2 lines + larger mobile header logo */
body.ph39-site .ph53-hero-brand{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:.2em!important;
}
body.ph39-site .ph53-hero-brand .ph56-brand-name,
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  display:inline-block!important;
  text-align:center!important;
}

@media (max-width:700px){
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:208px!important;
    height:66px!important;
    margin-top:-8px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:204px!important;
    height:62px!important;
    max-width:204px!important;
    max-height:62px!important;
    object-fit:contain!important;
  }

  body.ph39-site .ph53-hero-brand{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:center!important;
    gap:4px!important;
    width:100%!important;
    max-width:94%!important;
    margin:0 auto 16px!important;
    font-size:clamp(31px,8.1vw,43px)!important;
    line-height:.94!important;
    letter-spacing:.02em!important;
    word-spacing:0!important;
    white-space:normal!important;
    text-align:center!important;
  }
  body.ph39-site .ph53-hero-brand .ph56-brand-name,
  body.ph39-site .ph53-hero-brand .ph56-brand-sector{
    display:block!important;
    width:100%!important;
    margin:0 auto!important;
    line-height:inherit!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  body.ph39-site .ph53-hero-brand .ph56-brand-name{font-size:1em!important;}
  body.ph39-site .ph53-hero-brand .ph56-brand-sector{font-size:.96em!important;}
}

@media (max-width:420px){
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:196px!important;
    height:62px!important;
    margin-top:-6px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:192px!important;
    height:58px!important;
    max-width:192px!important;
    max-height:58px!important;
  }
  body.ph39-site .ph53-hero-brand{
    font-size:clamp(29px,8.6vw,39px)!important;
    line-height:.95!important;
  }
}


/* V5.8.0 — restore gold color for split mobile hero brand */
body.ph39-site .ph53-hero-brand .ph56-brand-name,
body.ph39-site .ph53-hero-brand .ph56-brand-sector{
  background:linear-gradient(180deg,var(--ph56-gold-light) 0%,var(--ph56-gold) 100%)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  -webkit-text-fill-color:transparent!important;
  color:transparent!important;
  text-shadow:0 3px 10px rgba(0,0,0,.24)!important;
}
@media (max-width:700px){
  body.ph39-site .ph53-hero-brand .ph56-brand-name,
  body.ph39-site .ph53-hero-brand .ph56-brand-sector{
    background:linear-gradient(180deg,var(--ph56-gold-light) 0%,var(--ph56-gold) 100%)!important;
    -webkit-background-clip:text!important;
    background-clip:text!important;
    -webkit-text-fill-color:transparent!important;
    color:transparent!important;
  }
}

/* =========================================================
   V5.8.1 — CỘNG TÁC VIÊN ENTRY + SAFE HEADER FIT
   ========================================================= */
body.ph39-site .ph39-menu .ph-ctv-nav{position:relative!important;white-space:nowrap!important}
body.ph39-site .ph39-menu .ph-ctv-nav>span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  margin-left:4px!important;padding:2px 5px!important;border-radius:999px!important;
  background:linear-gradient(145deg,#efc44f,#c99618)!important;color:#072c5f!important;
  font-size:8px!important;line-height:1!important;font-weight:950!important;vertical-align:2px!important;
}
@media (min-width:901px) and (max-width:1480px){
  body.ph39-site .ph39-menu{gap:clamp(8px,1vw,17px)!important}
  body.ph39-site .ph39-menu a{font-size:clamp(11px,.92vw,13px)!important}
  body.ph39-site .ph39-menu .ph-ctv-nav>span{display:none!important}
}

body.ph39-site .ph-ctv-home-callout{padding:18px 0;background:#f4f7fb;border-bottom:1px solid #e4eaf2}
body.ph39-site .ph-ctv-home-callout-inner{
  display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;align-items:center!important;
  gap:16px!important;padding:18px 22px!important;border:1px solid rgba(201,162,39,.38)!important;
  border-radius:17px!important;background:linear-gradient(115deg,#062f67 0%,#073d7e 67%,#0b4e98 100%)!important;
  box-shadow:0 12px 30px rgba(10,47,93,.13)!important;overflow:hidden!important;position:relative!important;
}
body.ph39-site .ph-ctv-home-callout-inner:after{content:"";position:absolute;right:-80px;top:-120px;width:280px;height:280px;border:1px solid rgba(232,190,75,.25);border-radius:50%;box-shadow:0 0 0 25px rgba(232,190,75,.04),0 0 0 55px rgba(232,190,75,.025);pointer-events:none}
body.ph39-site .ph-ctv-callout-icon{width:52px;height:52px;border:1.5px solid #e6ba42;border-radius:14px;display:grid;place-items:center;color:#f0c34d;font-size:25px;font-weight:900;background:rgba(255,255,255,.03)}
body.ph39-site .ph-ctv-callout-copy{position:relative;z-index:1}
body.ph39-site .ph-ctv-callout-copy small{display:block;color:#e7c85c;font-weight:900;font-size:10px;letter-spacing:.12em;margin-bottom:3px}
body.ph39-site .ph-ctv-callout-copy h2{margin:0;color:#fff;font-size:clamp(18px,1.8vw,25px);line-height:1.15}
body.ph39-site .ph-ctv-callout-copy p{margin:5px 0 0;color:#cfe0f5;font-size:13px;line-height:1.4}
body.ph39-site .ph-ctv-callout-btn{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 20px;border-radius:13px;background:linear-gradient(145deg,#efc44f,#c99618);color:#0a3266;font-weight:950;text-decoration:none;box-shadow:0 8px 20px rgba(201,150,25,.24);white-space:nowrap}
body.ph39-site .ph-ctv-callout-btn:hover{transform:translateY(-1px)}
@media(max-width:760px){
  body.ph39-site .ph-ctv-home-callout{padding:12px 0}
  body.ph39-site .ph-ctv-home-callout-inner{grid-template-columns:46px 1fr!important;padding:15px!important;gap:12px!important}
  body.ph39-site .ph-ctv-callout-icon{width:44px;height:44px;font-size:21px}
  body.ph39-site .ph-ctv-callout-copy h2{font-size:17px}
  body.ph39-site .ph-ctv-callout-copy p{font-size:12px}
  body.ph39-site .ph-ctv-callout-btn{grid-column:1/-1!important;width:100%!important;min-height:45px!important}
}

/* V5.8.3 — public Messenger-style chat */
body.ph39-site .rental-chat.ph-chat-v583 .chat-launch{position:relative!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-launch>b{position:absolute!important;right:-7px!important;top:-8px!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;background:#e21d2f!important;color:#fff!important;border:2px solid #fff!important;font-size:11px!important;line-height:18px!important;text-align:center!important;box-shadow:0 5px 12px rgba(0,0,0,.16)!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-panel{width:min(390px,calc(100vw - 24px))!important;max-height:min(650px,calc(100vh - 110px))!important;padding:0!important;overflow:hidden!important;border-radius:18px!important;display:none!important;grid-template-rows:auto minmax(180px,1fr) auto!important;background:#fff!important;box-shadow:0 22px 60px rgba(4,32,70,.28)!important}
body.ph39-site .rental-chat.ph-chat-v583.open .chat-panel{display:grid!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-head{padding:14px 16px!important;background:linear-gradient(135deg,#0755b6,#073d87)!important;color:#fff!important;border:0!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-head b{color:#fff!important;font-size:15px!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-head small{display:block!important;margin-top:2px!important;color:#dceaff!important;font-size:11px!important}
body.ph39-site .rental-chat.ph-chat-v583 .chat-head>button{color:#fff!important;background:rgba(255,255,255,.13)!important;border:0!important;border-radius:50%!important;width:32px!important;height:32px!important}
body.ph39-site .public-chat-messages{min-height:240px!important;max-height:410px!important;overflow:auto!important;padding:14px!important;background:#f4f7fb!important;scroll-behavior:smooth!important}
body.ph39-site .public-chat-system{width:92%!important;margin:0 auto 12px!important;padding:9px 12px!important;border-radius:12px!important;background:#e8eef7!important;color:#526a88!important;text-align:center!important;font-size:11px!important;line-height:1.45!important}
body.ph39-site .public-chat-row{display:flex!important;margin:7px 0!important}
body.ph39-site .public-chat-row.from-customer{justify-content:flex-end!important}
body.ph39-site .public-chat-row.from-admin{justify-content:flex-start!important}
body.ph39-site .public-chat-bubble{max-width:82%!important;padding:9px 11px 6px!important;border-radius:15px!important;box-shadow:0 3px 9px rgba(13,42,78,.06)!important}
body.ph39-site .from-customer .public-chat-bubble{background:linear-gradient(145deg,#1687ff,#0759c8)!important;color:#fff!important;border-bottom-right-radius:5px!important}
body.ph39-site .from-admin .public-chat-bubble{background:#fff!important;color:#213d61!important;border:1px solid #dce5ef!important;border-bottom-left-radius:5px!important}
body.ph39-site .public-chat-bubble span{display:block!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;font-size:13px!important;line-height:1.45!important}
body.ph39-site .public-chat-bubble small{display:block!important;margin-top:3px!important;text-align:right!important;font-size:9px!important;opacity:.72!important;color:inherit!important}
body.ph39-site .public-chat-composer{display:grid!important;gap:7px!important;padding:10px!important;background:#fff!important;border-top:1px solid #e4eaf2!important}
body.ph39-site .public-chat-profile{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
body.ph39-site .public-chat-profile[hidden]{display:none!important}
body.ph39-site .public-chat-profile input{min-width:0!important;height:38px!important;border:1px solid #dbe4ef!important;border-radius:10px!important;padding:0 10px!important;background:#f8fafc!important;color:#183b65!important;font-size:12px!important}
body.ph39-site .public-chat-send-row{display:grid!important;grid-template-columns:1fr 44px!important;gap:7px!important;align-items:end!important}
body.ph39-site .public-chat-send-row textarea{min-height:42px!important;max-height:105px!important;resize:vertical!important;border:1px solid #dbe4ef!important;border-radius:20px!important;padding:11px 14px!important;background:#f3f6fa!important;color:#17395f!important;font-size:13px!important;line-height:1.35!important;outline:none!important}
body.ph39-site .public-chat-send-row textarea:focus{border-color:#3d84dc!important;box-shadow:0 0 0 3px rgba(61,132,220,.11)!important}
body.ph39-site .public-chat-send-row button{width:42px!important;height:42px!important;border:0!important;border-radius:50%!important;background:linear-gradient(145deg,#1687ff,#0759c8)!important;color:#fff!important;font-size:18px!important;display:grid!important;place-items:center!important;cursor:pointer!important}
body.ph39-site .public-chat-send-row button:disabled{opacity:.55!important;cursor:wait!important}
body.ph39-site #chatMsg{min-height:14px!important;color:#607792!important;font-size:10px!important;padding-left:6px!important}
@media(max-width:620px){body.ph39-site .rental-chat.ph-chat-v583 .chat-panel{width:calc(100vw - 18px)!important;right:9px!important;bottom:74px!important;max-height:68vh!important}.public-chat-profile{grid-template-columns:1fr!important}}

/* =========================================================
   V5.8.4 — HOME INVENTORY: 3 cards / row + previous/next
   ========================================================= */
body.ph39-site .ph47-home-grid,
body.ph39-site .ph47-home-grid[data-count="1"],
body.ph39-site .ph47-home-grid[data-count="2"],
body.ph39-site .ph47-home-grid[data-count="3"],
body.ph39-site .ph47-home-grid[data-count="4"]{
  gap:16px!important;
}
body.ph39-site .ph47-home-card{
  flex:0 0 calc((100% - 32px)/3)!important;
  width:calc((100% - 32px)/3)!important;
  height:330px!important;
  min-height:330px!important;
  max-height:330px!important;
  display:grid!important;
  grid-template-rows:178px 152px!important;
  overflow:hidden!important;
}
body.ph39-site .ph47-home-card .image{
  height:178px!important;
  min-height:178px!important;
  max-height:178px!important;
  aspect-ratio:auto!important;
}
body.ph39-site .ph47-home-card .body{
  height:152px!important;
  min-height:152px!important;
  max-height:152px!important;
  padding:12px 14px 13px!important;
  overflow:hidden!important;
}
body.ph39-site .ph47-home-card h3{
  min-height:38px!important;
  max-height:38px!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}
body.ph39-site .ph47-promo-card,
body.ph39-site .ph47-promo-card.rent,
body.ph39-site .ph47-promo-card.sale{
  height:330px!important;
  min-height:330px!important;
  max-height:330px!important;
}
body.ph39-site .ph47-grid-shell .nav-prev,
body.ph39-site .ph47-grid-shell .nav-next{
  position:absolute!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:58px!important;
  height:58px!important;
  border:none!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 12px 28px rgba(17,41,85,.18)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:34px!important;
  line-height:1!important;
  color:#1d3d78!important;
  cursor:pointer!important;
  z-index:4!important;
}
body.ph39-site .ph47-grid-shell.sale .nav-prev,
body.ph39-site .ph47-grid-shell.sale .nav-next{color:#b47d09!important}
body.ph39-site .ph47-grid-shell .nav-prev{left:-24px!important}
body.ph39-site .ph47-grid-shell .nav-next{right:-24px!important}
body.ph39-site .ph47-grid-shell .nav-prev[hidden],
body.ph39-site .ph47-grid-shell .nav-next[hidden]{display:none!important}

@media(max-width:900px){
  body.ph39-site .ph47-home-card{
    flex-basis:calc((100% - 14px)/2)!important;
    width:calc((100% - 14px)/2)!important;
  }
}
@media(max-width:620px){
  body.ph39-site .ph47-home-card{
    flex-basis:100%!important;
    width:100%!important;
    height:330px!important;
  }
  body.ph39-site .ph47-grid-shell .nav-prev{left:-10px!important}
  body.ph39-site .ph47-grid-shell .nav-next{right:-10px!important}
}


/* =========================================================
   V5.8.5 — ONLY FIX: desktop header + 3-card home carousel
   Không thay đổi hero, cộng tác viên, CRM, catalog hay dữ liệu.
   ========================================================= */

/* 1) HEADER: prevent menu / hotline collision on medium desktop. */
@media (min-width:1051px) and (max-width:1320px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 24px)!important;
    max-width:none!important;
    grid-template-columns:210px minmax(0,1fr) 158px!important;
    column-gap:8px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:210px!important;
    height:66px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:206px!important;
    height:60px!important;
    max-width:206px!important;
    max-height:60px!important;
  }
  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    overflow:visible!important;
  }
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{
    min-width:0!important;
    flex:0 0 auto!important;
    padding-left:2px!important;
    padding-right:2px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{
    width:158px!important;
    min-width:158px!important;
    max-width:158px!important;
    padding:7px 10px!important;
    gap:7px!important;
    overflow:hidden!important;
  }
  body.ph39-site .ph39-hotline>span,
  body.ph39-catalog .ph39-hotline>span,
  body.ph44-detail .ph39-hotline>span{
    flex:0 0 auto!important;
    font-size:18px!important;
  }
  body.ph39-site .ph39-hotline small,
  body.ph39-catalog .ph39-hotline small,
  body.ph44-detail .ph39-hotline small{
    min-width:0!important;
    flex:1 1 auto!important;
    font-size:8.5px!important;
    line-height:1!important;
    overflow:hidden!important;
  }
  body.ph39-site .ph39-hotline b,
  body.ph39-catalog .ph39-hotline b,
  body.ph44-detail .ph39-hotline b{
    display:block!important;
    font-size:14px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
  }
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{display:none!important}
}

/* 2) HOME RENT / SALE: exactly 3 visible cards on desktop. */
@media (min-width:901px){
  body.ph39-site .ph47-home-layout{
    grid-template-columns:228px minmax(0,1fr)!important;
    gap:16px!important;
    align-items:stretch!important;
  }
  body.ph39-site .ph47-grid-shell{
    position:relative!important;
    display:block!important;
    min-width:0!important;
    width:100%!important;
    height:340px!important;
    min-height:340px!important;
    max-height:340px!important;
    overflow:visible!important;
  }
  body.ph39-site .ph47-home-grid,
  body.ph39-site .ph47-home-grid[data-count="1"],
  body.ph39-site .ph47-home-grid[data-count="2"],
  body.ph39-site .ph47-home-grid[data-count="3"],
  body.ph39-site .ph47-home-grid[data-count="4"]{
    box-sizing:border-box!important;
    display:flex!important;
    flex-wrap:nowrap!important;
    width:100%!important;
    height:340px!important;
    min-height:340px!important;
    max-height:340px!important;
    gap:16px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    scroll-snap-type:x mandatory!important;
    scroll-behavior:smooth!important;
  }
  body.ph39-site .ph47-home-grid::-webkit-scrollbar{display:none!important}
  body.ph39-site .ph47-home-card{
    box-sizing:border-box!important;
    flex:0 0 calc((100% - 32px)/3)!important;
    width:calc((100% - 32px)/3)!important;
    min-width:calc((100% - 32px)/3)!important;
    max-width:calc((100% - 32px)/3)!important;
    height:340px!important;
    min-height:340px!important;
    max-height:340px!important;
    grid-template-rows:188px 152px!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:always!important;
  }
  body.ph39-site .ph47-home-card .image{
    height:188px!important;
    min-height:188px!important;
    max-height:188px!important;
  }
  body.ph39-site .ph47-home-card .body{
    box-sizing:border-box!important;
    height:152px!important;
    min-height:152px!important;
    max-height:152px!important;
    padding:11px 13px 12px!important;
    overflow:hidden!important;
  }
  body.ph39-site .ph47-promo-card,
  body.ph39-site .ph47-promo-card.rent,
  body.ph39-site .ph47-promo-card.sale{
    box-sizing:border-box!important;
    height:340px!important;
    min-height:340px!important;
    max-height:340px!important;
    padding:18px 18px 20px!important;
  }
  /* Old dot pagination is removed; navigation uses arrows only. */
  body.ph39-site .ph47-dots{display:none!important}
  body.ph39-site .ph47-grid-shell .nav-prev,
  body.ph39-site .ph47-grid-shell .nav-next{
    top:50%!important;
    width:54px!important;
    height:54px!important;
    z-index:8!important;
  }
  body.ph39-site .ph47-grid-shell .nav-prev{left:8px!important}
  body.ph39-site .ph47-grid-shell .nav-next{right:8px!important}
  body.ph39-site .ph47-grid-shell .nav-prev[hidden],
  body.ph39-site .ph47-grid-shell .nav-next[hidden]{display:none!important}
}


/* =========================================================
   V5.8.6 — ONLY FIX 2 ISSUES
   1) Header: Liên hệ không chồng lên Hotline
   2) Không thay đổi bất kỳ phần giao diện nào khác
   ========================================================= */

/* Màn hình desktop vừa: thu gọn khoảng cách menu để Liên hệ nằm gọn trước Hotline */
@media (min-width:1051px) and (max-width:1320px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    grid-template-columns:240px minmax(0,1fr) 150px!important;
    column-gap:7px!important;
  }

  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:240px!important;
    min-width:240px!important;
  }

  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:236px!important;
    max-width:236px!important;
    object-fit:contain!important;
  }

  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{
    min-width:0!important;
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow:visible!important;
  }

  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{
    flex:0 0 auto!important;
    min-width:0!important;
    padding-left:3px!important;
    padding-right:3px!important;
    font-size:11.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
  }

  body.ph39-site .ph39-menu .ph-ctv-nav>span,
  body.ph39-catalog .ph39-menu .ph-ctv-nav>span,
  body.ph44-detail .ph39-menu .ph-ctv-nav>span{
    display:none!important;
  }

  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{
    position:relative!important;
    z-index:5!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    margin-left:0!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }

  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{
    display:none!important;
  }
}

/* Desktop lớn hơn: vẫn chừa khoảng cách an toàn trước Hotline */
@media (min-width:1321px) and (max-width:1500px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    grid-template-columns:250px minmax(0,1fr) 160px 92px!important;
    column-gap:8px!important;
  }

  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{
    min-width:0!important;
    justify-content:flex-start!important;
    gap:7px!important;
  }

  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{
    flex:0 0 auto!important;
    padding-left:3px!important;
    padding-right:3px!important;
    font-size:12px!important;
    white-space:nowrap!important;
  }

  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{
    position:relative!important;
    z-index:5!important;
    width:160px!important;
    min-width:160px!important;
    margin-left:0!important;
  }
}

/* =========================================================
   V5.8.7 FINAL HEADER HOTFIX — ONLY HEADER SPACING
   Keeps Liên hệ physically before Hotline at all desktop widths.
   ========================================================= */
@media (min-width:1051px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    width:calc(100% - 18px)!important;
    max-width:none!important;
    grid-template-columns:270px minmax(0,1fr) 150px 88px!important;
    column-gap:7px!important;
    align-items:center!important;
  }

  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{
    width:270px!important;
    min-width:270px!important;
    max-width:270px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{
    width:266px!important;
    max-width:266px!important;
    object-fit:contain!important;
  }

  body.ph39-site .ph39-menu,
  body.ph39-catalog .ph39-menu,
  body.ph44-detail .ph39-menu{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:4px!important;
    overflow:hidden!important;
    padding:0 2px!important;
    box-sizing:border-box!important;
  }
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{
    flex:0 0 auto!important;
    min-width:0!important;
    padding:0 2px!important;
    margin:0!important;
    font-size:clamp(11px,.82vw,13px)!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }
  body.ph39-site .ph39-menu .ph-ctv-nav>span,
  body.ph39-catalog .ph39-menu .ph-ctv-nav>span,
  body.ph44-detail .ph39-menu .ph-ctv-nav>span{
    display:none!important;
  }

  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{
    position:relative!important;
    z-index:20!important;
    grid-column:auto!important;
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    margin:0!important;
    transform:none!important;
    box-sizing:border-box!important;
  }
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{
    position:relative!important;
    z-index:20!important;
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    margin:0!important;
    transform:none!important;
    box-sizing:border-box!important;
  }
}

/* Slightly tighter only on narrower desktop, without changing other page sections. */
@media (min-width:1051px) and (max-width:1220px){
  body.ph39-site .ph39-nav,
  body.ph39-catalog .ph39-nav,
  body.ph44-detail .ph39-nav{
    grid-template-columns:250px minmax(0,1fr) 145px 82px!important;
    column-gap:5px!important;
  }
  body.ph39-site .ph39-brand.ph51-brand,
  body.ph39-catalog .ph39-brand.ph51-brand,
  body.ph44-detail .ph39-brand.ph51-brand{width:250px!important;min-width:250px!important;max-width:250px!important}
  body.ph39-site .ph39-brand.ph51-brand img,
  body.ph39-catalog .ph39-brand.ph51-brand img,
  body.ph44-detail .ph39-brand.ph51-brand img{width:246px!important;max-width:246px!important}
  body.ph39-site .ph39-menu a,
  body.ph39-catalog .ph39-menu a,
  body.ph44-detail .ph39-menu a{font-size:10.8px!important;padding:0 1px!important}
  body.ph39-site .ph39-hotline,
  body.ph39-catalog .ph39-hotline,
  body.ph44-detail .ph39-hotline{width:145px!important;min-width:145px!important;max-width:145px!important}
  body.ph39-site .ph40-admin-entry,
  body.ph39-catalog .ph40-admin-entry,
  body.ph44-detail .ph40-admin-entry{width:82px!important;min-width:82px!important;max-width:82px!important}
}

/* V5.8.8 cache-bust marker — no additional layout changes. */


/* =========================================================
   V5.9.1 — HOMEPAGE HEADER ONLY
   Scope: body.ph39-site only.
   Purpose: compact the desktop menu so it no longer stretches
   across the entire header. Does NOT affect catalog/detail pages.
   ========================================================= */

@media (min-width:1250px){
  body.ph39-site .ph39-nav{
    width:calc(100% - 32px)!important;
    max-width:1480px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    grid-template-columns:260px max-content 150px 88px!important;
    justify-content:center!important;
    column-gap:18px!important;
    align-items:center!important;
  }

  body.ph39-site .ph39-brand.ph51-brand{
    width:260px!important;
    min-width:260px!important;
    max-width:260px!important;
  }

  body.ph39-site .ph39-brand.ph51-brand img{
    width:256px!important;
    max-width:256px!important;
    object-fit:contain!important;
  }

  body.ph39-site .ph39-menu{
    width:max-content!important;
    min-width:0!important;
    max-width:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:clamp(18px,1.35vw,28px)!important;
    overflow:visible!important;
    padding:0!important;
  }

  body.ph39-site .ph39-menu a{
    flex:0 0 auto!important;
    padding:0!important;
    margin:0!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }

  body.ph39-site .ph39-hotline{
    width:150px!important;
    min-width:150px!important;
    max-width:150px!important;
    margin:0!important;
  }

  body.ph39-site .ph40-admin-entry{
    width:88px!important;
    min-width:88px!important;
    max-width:88px!important;
    margin:0!important;
  }
}

/* Narrow desktop: keep the same compact look without touching other pages. */
@media (min-width:1051px) and (max-width:1249px){
  body.ph39-site .ph39-nav{
    width:calc(100% - 18px)!important;
    max-width:none!important;
    grid-template-columns:230px minmax(0,1fr) 140px 80px!important;
    column-gap:7px!important;
    align-items:center!important;
  }

  body.ph39-site .ph39-brand.ph51-brand{
    width:230px!important;
    min-width:230px!important;
    max-width:230px!important;
  }

  body.ph39-site .ph39-brand.ph51-brand img{
    width:226px!important;
    max-width:226px!important;
    object-fit:contain!important;
  }

  body.ph39-site .ph39-menu{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    justify-content:center!important;
    gap:clamp(6px,.8vw,12px)!important;
    overflow:hidden!important;
    padding:0!important;
  }

  body.ph39-site .ph39-menu a{
    padding:0 1px!important;
    margin:0!important;
    font-size:clamp(10.5px,.92vw,12px)!important;
    white-space:nowrap!important;
  }

  body.ph39-site .ph39-hotline{
    width:140px!important;
    min-width:140px!important;
    max-width:140px!important;
  }

  body.ph39-site .ph40-admin-entry{
    width:80px!important;
    min-width:80px!important;
    max-width:80px!important;
  }
}
