/* =========================================================
   THS FOOTER
   Giữ form cũ, patch nhẹ để self-boot stable
   ========================================================= */

.ths-footer5{
  --ths-footer-text:#f5f2ef;
  --ths-footer-muted:rgba(245,242,239,.82);
  --ths-footer-line:rgba(255,255,255,.10);
  --ths-footer-card:rgba(8,8,10,.34);
  --ths-footer-card-border:rgba(255,255,255,.09);
  --ths-footer-shadow:0 16px 40px rgba(0,0,0,.32);
  --ths-footer-primary:#d8b06d;
  --ths-footer-dark:#0f1012;

  --ths-vc-title:#2c2622;
  --ths-vc-accent:#f04e3e;
  --ths-vc-accent-strong:#dd3d2c;
  --ths-vc-surface:#f7f4ef;
  --ths-vc-border:#ddd5cb;

  position:relative;
  overflow:hidden;
  color:var(--ths-footer-text);
  margin:0;
  padding:0;
  isolation:isolate;
}

.ths-footer5,
.ths-footer5 *{
  box-sizing:border-box;
}

.ths-footer5 *::before,
.ths-footer5 *::after{
  box-sizing:border-box;
}

.ths-footer5 a{
  text-decoration:none;
}

.ths-footer5 img{
  max-width:100%;
  height:auto;
}

.ths-footer5__bg{
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at top left, rgba(216,176,109,.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,.03), transparent 20%),
    linear-gradient(135deg, rgba(8,10,12,var(--thsFooterTint,.68)), rgba(20,22,26,var(--thsFooterTint,.64))),
    linear-gradient(180deg, rgba(255,255,255,var(--thsFooterLight,.05)), rgba(255,255,255,0)),
    var(--thsFooterBg, linear-gradient(135deg, #131416, #1b1d22));
  background-size:cover;
  background-position:center;
}

.ths-footer5__bg::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.16));
}

.ths-footer5__wrap{
  width:100%;
  max-width:1220px;
  margin:0 auto;
  padding:34px 20px 18px;
}

/* hero */

.ths-footer5__hero{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) auto;
  gap:24px;
  align-items:start;
  padding-bottom:22px;
  border-bottom:1px solid var(--ths-footer-line);
}

.ths-footer5__brand{
  display:flex;
  gap:18px;
  min-width:0;
}

.ths-footer5__logoBox{
  flex:0 0 auto;
}

.ths-footer5__logo,
.ths-footer5__logoFallback{
  width:104px;
  height:104px;
  border-radius:22px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:var(--ths-footer-shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  object-fit:contain;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.ths-footer5__logoFallback{
  font-weight:800;
  font-size:32px;
}

.ths-footer5__brandContent{
  min-width:0;
}

.ths-footer5__name{
  margin:0;
  font-size:46px;
  line-height:1.05;
  font-weight:900;
  color:#fffaf2 !important;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
  text-shadow:0 3px 18px rgba(0,0,0,.46), 0 1px 0 rgba(0,0,0,.35);
}

.ths-footer5__tagline{
  margin-top:10px;
  font-size:16px;
  line-height:1.55;
  color:rgba(255,255,255,.92);
  font-weight:700;
  overflow-wrap:anywhere;
}

.ths-footer5__desc{
  margin-top:18px;
  max-width:900px;
  font-size:16px;
  line-height:1.82;
  color:var(--ths-footer-muted);
  overflow-wrap:anywhere;
}

/* CTA */

.ths-footer5__ctaRow{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:16px;
  margin-top:22px;
}

.ths-footer5__btn{
  position:relative;
  min-width:228px;
  width:auto;
  height:60px;
  padding:0 24px;
  border-radius:999px;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px;
  border:1px solid transparent;
  text-decoration:none !important;
  line-height:1 !important;
  font-size:18px !important;
  font-weight:900 !important;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease,
    color .18s ease;
  overflow:hidden;
  white-space:nowrap;
}

.ths-footer5__btn:hover{
  transform:translateY(-2px);
}

.ths-footer5__btn:active{
  transform:translateY(0);
}

.ths-footer5__btnIcon{
  position:relative;
  z-index:2;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:22px;
  min-width:22px;
  height:22px;
  font-size:18px;
  line-height:1;
  flex:0 0 22px;
}

.ths-footer5__btnText{
  position:relative;
  z-index:2;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1.1;
  min-width:0;
}

.ths-footer5__btn--primary{
  color:#111 !important;
  background:linear-gradient(180deg, #ff8a1f 0%, #ff6a00 100%) !important;
  box-shadow:0 16px 28px rgba(255,106,0,.26);
}

.ths-footer5__btn--primary,
.ths-footer5__btn--primary:link,
.ths-footer5__btn--primary:visited,
.ths-footer5__btn--primary:hover,
.ths-footer5__btn--primary:focus{
  color:#111 !important;
}

.ths-footer5__btn--primary::before{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  pointer-events:none;
}

.ths-footer5__btn--primary:hover{
  box-shadow:0 18px 34px rgba(255,106,0,.32);
}

.ths-footer5__btn--ghost{
  color:var(--ths-vc-title) !important;
  background:#f7f5f1 !important;
  border:1px solid rgba(214,206,196,.85) !important;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.ths-footer5__btn--ghost,
.ths-footer5__btn--ghost:link,
.ths-footer5__btn--ghost:visited,
.ths-footer5__btn--ghost:hover,
.ths-footer5__btn--ghost:focus{
  color:var(--ths-vc-title) !important;
}

.ths-footer5__btn--ghost:hover{
  border-color:rgba(228,68,50,.24) !important;
  color:var(--ths-vc-accent) !important;
}

/* badges */

.ths-footer5__badges{
  display:grid;
  grid-template-columns:repeat(3,92px);
  gap:12px;
}

.ths-footer5__badge{
  width:92px;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:18px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:var(--ths-footer-shadow);
}

.ths-footer5__badge img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* middle */

.ths-footer5__middle{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr) minmax(0,.9fr);
  gap:16px;
  padding-top:24px;
}

.ths-footer5__card{
  min-width:0;
  padding:20px 20px 18px;
  border-radius:24px;
  background:var(--ths-footer-card);
  border:1px solid var(--ths-footer-card-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 30px rgba(0,0,0,.10);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.ths-footer5__card--info{
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)),
    rgba(8,8,10,.36);
}

.ths-footer5__heading{
  margin:0 0 16px;
  font-size:13px;
  line-height:1.3;
  font-weight:900;
  letter-spacing:.14em;
  color:rgba(255,255,255,.92);
}

.ths-footer5__infoList{
  display:grid;
  gap:14px;
}

.ths-footer5__infoItem{
  display:grid;
  grid-template-columns:116px 1fr;
  gap:12px;
  align-items:start;
}

.ths-footer5__infoKey{
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,.68);
}

.ths-footer5__infoVal{
  font-size:15px;
  line-height:1.72;
  color:rgba(255,255,255,.96);
  font-weight:500;
  min-width:0;
  overflow-wrap:anywhere;
}

.ths-footer5__infoVal a{
  font-weight:800;
  color:rgba(255,255,255,.96);
  overflow-wrap:anywhere;
}

.ths-footer5__list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:13px;
}

.ths-footer5__list li{
  margin:0;
  padding:0;
}

.ths-footer5__list a{
  display:inline-flex;
  align-items:flex-start;
  gap:9px;
  font-size:15px;
  line-height:1.6;
  color:rgba(255,255,255,.90);
  transition:color .18s ease, transform .18s ease;
  overflow-wrap:anywhere;
}

.ths-footer5__list a::before{
  content:"";
  width:7px;
  height:7px;
  margin-top:.5em;
  border-radius:999px;
  background:var(--ths-footer-primary);
  box-shadow:0 0 0 4px rgba(216,176,109,.12);
  flex:0 0 auto;
}

.ths-footer5__list a:hover{
  color:#fff;
  transform:translateX(2px);
}

/* apps */

.ths-footer5__appsSection{
  margin-top:18px;
  padding:18px 20px 20px;
  border-radius:24px;
  background:rgba(8,8,10,.30);
  border:1px solid rgba(255,255,255,.09);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 10px 30px rgba(0,0,0,.10);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.ths-footer5__appsSection .ths-footer5__heading{
  margin-bottom:14px;
}

.ths-footer5__apps{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px 20px;
  max-width:760px;
}

.ths-footer5__app{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 4px;
  border-radius:18px;
  transition:transform .18s ease, background .18s ease;
}

.ths-footer5__app:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.03);
}

.ths-footer5__appIco{
  width:56px;
  height:56px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  box-shadow:0 10px 18px rgba(0,0,0,.14);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  flex:0 0 56px;
  overflow:hidden;
}

.ths-footer5__app:hover .ths-footer5__appIco{
  transform:translateY(-1px);
  border-color:rgba(216,176,109,.28);
  box-shadow:0 14px 24px rgba(0,0,0,.18);
}

.ths-footer5__appIco svg,
.ths-footer5__appIco img{
  width:24px;
  height:24px;
  display:block;
  object-fit:contain;
}

.ths-footer5__appFallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:999px;
  background:#ece9e4;
  color:#2c2622;
  font-size:12px;
  font-weight:900;
}

.ths-footer5__appLabel{
  color:#fff;
  font-size:14px;
  line-height:1.3;
  font-weight:800;
  letter-spacing:-.01em;
  word-break:break-word;
}

.ths-footer5__bottom{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid var(--ths-footer-line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:13px;
  line-height:1.6;
  color:rgba(255,255,255,.72);
}

.ths-footer5__copy,
.ths-footer5__site{
  overflow-wrap:anywhere;
}

.ths-footer5__site{
  color:rgba(255,255,255,.92);
}

/* hide default footer - patch nhẹ */

.footer-wrapper .absolute-footer,
#footer .absolute-footer,
.footer-wrapper .footer-secondary,
#footer .footer-secondary{
  display:none !important;
}

.footer-wrapper,
#footer{
  background:transparent !important;
  border-top:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* responsive */

@media (max-width:1100px){
  .ths-footer5__hero{
    grid-template-columns:1fr;
  }

  .ths-footer5__middle{
    grid-template-columns:1fr 1fr;
  }

  .ths-footer5__apps{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    max-width:none;
  }
}

@media (max-width:767px){
  .ths-footer5__wrap{
    padding:28px 14px 16px;
  }

  .ths-footer5__name{
    font-size:40px;
  }

  .ths-footer5__tagline{
    font-size:15px;
  }

  .ths-footer5__desc{
    font-size:15px;
    line-height:1.72;
  }

  .ths-footer5__ctaRow{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    width:100%;
  }

  .ths-footer5__btn{
    width:100%;
    min-width:0;
    height:56px;
    padding:0 14px;
    font-size:15px !important;
    gap:8px;
  }

  .ths-footer5__btnIcon{
    width:18px;
    min-width:18px;
    height:18px;
    font-size:15px;
    flex-basis:18px;
  }

  .ths-footer5__btnText{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .ths-footer5__middle{
    grid-template-columns:1fr;
  }

  .ths-footer5__infoItem{
    grid-template-columns:1fr;
    gap:4px;
  }

  .ths-footer5__apps{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .ths-footer5__bottom{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:480px){
  .ths-footer5__brand{
    flex-direction:column;
    gap:14px;
  }

  .ths-footer5__logo,
  .ths-footer5__logoFallback{
    width:92px;
    height:92px;
    border-radius:20px;
  }

  .ths-footer5__name{
    font-size:31px;
    line-height:1.08;
  }

  .ths-footer5__tagline{
    font-size:12px;
    line-height:1.5;
  }

  .ths-footer5__desc{
    margin-top:14px;
    font-size:14px;
    line-height:1.75;
  }

  .ths-footer5__ctaRow{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .ths-footer5__btn{
    height:52px;
    padding:0 10px;
    font-size:13px !important;
    border-radius:999px;
  }

  .ths-footer5__btnIcon{
    width:16px;
    min-width:16px;
    height:16px;
    font-size:13px;
    flex-basis:16px;
  }

  .ths-footer5__btnText{
    font-size:13px;
    line-height:1.1;
  }

  .ths-footer5__appsSection{
    padding:18px 14px 18px;
  }
}

/* L4 footer CTA cleanup */
.ths-footer5__btnText{white-space:nowrap;}
@media (max-width: 767px){
  .ths-footer5__btnText{overflow:visible;text-overflow:clip;white-space:nowrap;}
}
@media (max-width: 480px){
  .ths-footer5__btnText{font-size:12px;letter-spacing:-.01em;}
}


/* ===== DESIGN CONSISTENCY LOCK ===== */
.ths-footer5__card{border-radius:24px;box-shadow:0 16px 36px rgba(0,0,0,.28);}
.ths-footer5__btn{border-radius:18px;min-height:52px;}


/* ===== TYPOGRAPHY LOCK ===== */
.ths-footer5__title{font-size:16px;font-weight:600;}
.ths-footer5__text{font-size:14px;line-height:1.6;}


/* ===== TEXT SYSTEM LOCK ===== */
.ths-footer5{--ths-text-heading:var(--ths-font-heading, "Playfair Display", Georgia, serif);--ths-text-body:var(--ths-font-body, "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);}
.ths-footer5__brand{font-family:var(--ths-text-heading);font-size:clamp(28px,2.4vw,40px);line-height:1.08;font-weight:700;}
.ths-footer5__intro,.ths-footer5__metaValue,.ths-footer5__text{font-family:var(--ths-text-body);font-size:14px;line-height:1.68;font-weight:500;}
.ths-footer5__metaLabel,.ths-footer5__title{font-family:var(--ths-text-body);font-size:13px;line-height:1.35;font-weight:700;}
.ths-footer5__btn,.ths-footer5__btnText{font-family:var(--ths-text-body);font-size:13px !important;line-height:1;font-weight:700;}


/* ===== LUXURY SPACING PHASE A ===== */
.ths-footer5{padding-top:36px;}
.ths-footer5__hero{margin-bottom:18px;}
.ths-footer5__ctaRow{gap:12px;margin-top:16px;}
.ths-footer5__cards{gap:16px;}
.ths-footer5__apps{gap:12px;}
.ths-footer5__bottom{margin-top:18px;padding-top:14px;}
@media (max-width: 991px){.ths-footer5{padding-top:24px;}}

/* PHASE 1 MOBILE PATCH */
@media(max-width:768px){
  .booking-layout{display:flex!important;flex-direction:column!important;}
  .booking-right{position:relative!important;top:auto!important;}
  .summary-footer{position:fixed;bottom:0;left:0;right:0;background:#fff;z-index:999;padding:12px;}
  .service-chip{font-size:16px!important;padding:10px 14px!important;margin:4px;}
}

/* THERA FOOTER F4 — title contrast lock
   Giữ tiêu đề Footer rõ như banner, tránh bị global heading color xanh đè trên nền tối. */
.ths-footer5 .ths-footer5__name,
.ths-footer5 h1.ths-footer5__name,
.ths-footer5 h2.ths-footer5__name,
.ths-footer5 h3.ths-footer5__name{
  color:#fffaf2 !important;
  -webkit-text-fill-color:#fffaf2;
  text-shadow:0 3px 18px rgba(0,0,0,.50), 0 1px 0 rgba(0,0,0,.35) !important;
  opacity:1 !important;
  filter:none !important;
}
.ths-footer5 .ths-footer5__tagline,
.ths-footer5 .ths-footer5__desc{
  color:rgba(255,250,242,.94) !important;
  text-shadow:0 2px 10px rgba(0,0,0,.38);
}
