/* Bo sung rieng cua site (khong co o trang goc): video vao trang phan khu */
#tgc-intro{position:fixed;inset:0;z-index:2147483000;background:#000;display:flex;align-items:center;justify-content:center;transition:opacity .7s ease}
#tgc-intro video{width:100%;height:100%;object-fit:cover}
#tgc-intro.is-done{opacity:0;pointer-events:none}
.tgc-intro__skip{position:absolute;right:24px;bottom:24px;background:rgba(0,0,0,.35);color:#fff;border:1px solid rgba(255,255,255,.6);padding:8px 18px;border-radius:999px;font:500 14px/1.2 system-ui,sans-serif;letter-spacing:.04em;cursor:pointer}
.tgc-intro__skip:hover{background:rgba(255,255,255,.15)}
html.tgc-intro-on body{overflow:hidden}

/* Drupal TGC: form dang ky - trang goc co o reCAPTCHA (78px) giua email va nut Gui; site nay khong nhung reCAPTCHA
   (sitekey cua masterisehomes.com khong chay tren domain khac) -> giu cho trong de bo cuc giong goc */
.contact-form .g-recaptcha:empty::before{content:"";display:block;height:78px}

/* Drupal TGC (fullPage): truoc khi trang tai xong khung noi dung cao 100vh, sau do fullPage tru di thanh header
   -> khoi dau trang nhay (CLS). Dat san chieu cao cuoi cung ngay tu dau. */
body:not(.body-load-done) .fullpage-content{min-height:calc(100vh - 4.6875rem)}
@media (min-width:768px){body:not(.body-load-done) .fullpage-content{min-height:calc(100vh - 5rem)}}
@media (min-width:1700px){body:not(.body-load-done) .fullpage-content{min-height:calc(100vh - 5.3125rem)}}
/* heroJs (all_page.js) doi tai xong trang moi noi khung video cho phu kin chieu cao (rong = cao / 0.555)
   -> dien thoai nhay tu 100% len ~1350px. Tinh san bang CSS cung cong thuc. */
.hero__video{width:max(100%,calc((100vh - 4.6875rem) * 1.8018))}
@media (min-width:768px){.hero__video{width:max(100%,calc((100vh - 5rem) * 1.8018))}}
@media (min-width:1700px){.hero__video{width:max(100%,calc((100vh - 5.3125rem) * 1.8018))}}

/* Nut "Xem layout can" + "Danh sach ban - cho thue" o cac phan khu (zone-extra.js) */
.tgc-zx{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.tgc-zx template{display:none}
.tgc-zx--center{justify-content:center}
.tgc-zx a,.tgc-zx button{text-decoration:none}
html.tgc-lay-on,html.tgc-lay-on body{overflow:hidden!important}
.tgc-lay{position:fixed;inset:0;z-index:2147483600;background:rgba(10,12,14,.94);display:none;flex-direction:column;color:#fff;font:400 15px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.tgc-lay.is-open{display:flex}
.tgc-lay__bar{display:flex;align-items:center;gap:16px;padding:14px 16px 10px 24px}
.tgc-lay__title{font-weight:600;letter-spacing:.08em;text-transform:uppercase;font-size:15px}
.tgc-lay__count{opacity:.7;font-size:13px;margin-right:auto}
.tgc-lay__x{width:44px;height:44px;display:grid;place-items:center;background:none;border:0;color:#fff;cursor:pointer;border-radius:50%}
.tgc-lay__x:hover{background:rgba(255,255,255,.12)}
.tgc-lay__x svg{width:24px;height:24px}
.tgc-lay__stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 12px}
.tgc-lay__fig{margin:0;flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto}
.tgc-lay__fig img{max-width:100%;max-height:calc(100% - 36px);object-fit:contain;background:#fff;cursor:zoom-in;border-radius:2px}
.tgc-lay.is-zoom .tgc-lay__fig{display:block;text-align:center}
.tgc-lay.is-zoom .tgc-lay__fig img{max-width:none;max-height:none;width:min(2000px,200%);cursor:zoom-out}
.tgc-lay__fig figcaption{padding-top:12px;opacity:.85;text-align:center}
.tgc-lay__nav{flex:0 0 auto;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:none;color:#fff;display:grid;place-items:center;cursor:pointer}
.tgc-lay__nav:hover{background:rgba(255,255,255,.12)}
.tgc-lay__nav svg{width:22px;height:22px}
.tgc-lay__next svg{transform:scaleX(-1)}
.tgc-lay.is-single .tgc-lay__nav{visibility:hidden}
.tgc-lay__thumbs{display:flex;gap:8px;justify-content:center;padding:10px 16px 18px;overflow-x:auto}
.tgc-lay__thumbs:empty{display:none}
.tgc-lay__thumbs button{flex:0 0 auto;width:72px;height:52px;padding:0;border:2px solid transparent;background:#fff;cursor:pointer;opacity:.6}
.tgc-lay__thumbs button.is-on{border-color:#fff;opacity:1}
.tgc-lay__thumbs img{width:100%;height:100%;object-fit:cover}
@media (max-width:767px){.tgc-lay__nav{position:absolute;bottom:84px;width:40px;height:40px;background:rgba(0,0,0,.4)}.tgc-lay__prev{left:12px}.tgc-lay__next{right:12px}.tgc-lay__stage{padding:0 8px}}
.tgc-zx--col{flex-direction:column;align-items:flex-start;gap:14px}
.tgc-zx-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 22px;border:1px solid var(--zx,#893113);color:var(--zx,#893113)!important;background:transparent;font-family:inherit;font-size:14px;font-weight:500;line-height:1.2;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;border-radius:var(--zx-r,0);transition:background .25s,color .25s;text-align:center}
.tgc-zx-btn:hover{background:var(--zx,#893113);color:var(--zx-on,#fff)!important}
.tgc-zx--soho{--zx:#893113}
.tgc-zx--sola{--zx:#fff;--zx-on:#043b59;--zx-r:999px}

/* Khoi "Mat bang" them cho phan khu chua co (Cosmo, SOLA, SOHO) - mau theo tung phan khu */
.tgc-mb{--mb-bg:#26317D;--mb-fg:#fff;--mb-muted:rgba(255,255,255,.78);--mb-acc:#fff;--mb-on:#26317D;--mb-media:#f4f4f1;--mb-r:0;
  position:relative;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);min-height:min(88vh,860px);background:var(--mb-bg);color:var(--mb-fg);overflow:hidden}
.tgc-mb__panel{display:flex;flex-direction:column;justify-content:center;gap:18px;padding:clamp(40px,6vw,96px) clamp(24px,4.5vw,72px)}
.tgc-mb__kick{display:flex;align-items:center;gap:14px;font-size:13px;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--mb-muted)}
.tgc-mb__kick::before{content:"";width:36px;border-top:1px solid currentColor}
.tgc-mb .tgc-mb__title{margin:0;font-size:clamp(34px,4.2vw,64px);line-height:1.05;text-transform:uppercase;color:var(--mb-fg);font-weight:500}
.tgc-mb__desc{margin:0;max-width:44ch;font-size:16px;line-height:1.7;color:var(--mb-muted)}
.tgc-mb__btns{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:14px}
.tgc-mb__btns template{display:none}
.tgc-mb__btn{display:inline-flex;align-items:center;gap:12px;min-height:50px;padding:0 26px;border:1px solid var(--mb-acc);border-radius:var(--mb-r);background:transparent;color:var(--mb-acc)!important;font:inherit;font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;text-decoration:none!important;cursor:pointer;transition:background .25s,color .25s}
.tgc-mb__btn::after{content:"→";font-size:16px;transition:transform .25s}
.tgc-mb__btn:hover::after{transform:translateX(4px)}
.tgc-mb__btn:hover,.tgc-mb__btn--solid{background:var(--mb-acc);color:var(--mb-on)!important}
.tgc-mb__btn--solid:hover{opacity:.9}
.tgc-mb__media{position:relative;display:block;margin:0;padding:clamp(20px,3vw,48px);border:0;background:var(--mb-media);cursor:zoom-in;min-height:320px}
.tgc-mb__media img{position:absolute;inset:clamp(20px,3vw,48px);width:calc(100% - 2*clamp(20px,3vw,48px));height:calc(100% - 2*clamp(20px,3vw,48px));object-fit:contain;transition:transform .6s cubic-bezier(.2,.7,.1,1)}
.tgc-mb__media:hover img{transform:scale(1.03)}
.tgc-mb__zoom{position:absolute;right:20px;bottom:20px;display:inline-flex;align-items:center;gap:8px;padding:8px 14px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;letter-spacing:.06em;text-transform:uppercase;border-radius:999px}
.tgc-mb__media--cover{padding:0}
.tgc-mb__media--cover img{inset:0;width:100%;height:100%;object-fit:cover}
.tgc-mb--cosmo{--mb-bg:linear-gradient(199.49deg,#0E73BA -2.96%,#26317D 113.02%);--mb-on:#26317D}
.tgc-mb--sola{--mb-bg:#043b59;--mb-on:#043b59;--mb-r:999px}
.tgc-mb--soho{--mb-bg:#FBF1E4;--mb-fg:#893113;--mb-muted:#6b4a3c;--mb-acc:#893113;--mb-on:#fff;--mb-media:#fff}
@media (max-width:900px){
  .tgc-mb{grid-template-columns:1fr;min-height:0}
  .tgc-mb__media{min-height:0;aspect-ratio:4/3}
  .tgc-mb__btns{align-items:stretch}
  .tgc-mb__btn{justify-content:space-between}
  .tgc-mb__zoom{left:12px;right:auto;bottom:12px}
}

/* Form "Dang ky nhan tin" (Contact Form 7) LUMIERE Midtown / Masteri Park Place: dong thong bao sau khi gui
   mang mau chu trung mau nen (xanh reu / cam) -> dung mau kem giong nhan cua form */
.wpcf7-form .wpcf7-response-output{color:#eef6e7!important;-webkit-text-fill-color:#eef6e7!important;font-size:14px!important;line-height:1.5!important}
