
:root{--bg:#f4f6f8;--card:#fff;--ink:#0f1f2b;--muted:#5b6b78;--line:#e3e8ee;--brand:#0f2a3d;--accent:#1f7fb8;--soft:#e8f3fa;--green:#15916b;--gold:#e9a23b}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.72}.wrap{max-width:1080px;margin:auto;padding:0 20px}.top{background:var(--brand);color:#fff}.top .wrap{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{font-weight:800;font-size:1.1rem}.langs{display:flex;gap:6px;flex-wrap:wrap}.langs a{color:#fff;border:1px solid rgba(255,255,255,.35);padding:5px 9px;border-radius:8px;font-size:.82rem}.langs a.on{background:#fff;color:var(--brand)}.hero{position:relative;background:#000}.hero img{width:100%;height:min(54vw,520px);object-fit:cover;opacity:.74}.hero-in{position:absolute;inset:0;display:flex;align-items:flex-end}.hero-copy{color:#fff;padding:40px 0;text-shadow:0 2px 12px rgba(0,0,0,.45)}h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.12;margin:0 0 12px;max-width:900px}.lead{font-size:1.05rem;max-width:800px;margin:0}.facts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.fact{background:#fff;border:1px solid var(--line);padding:15px;border-radius:12px}.fact b{display:block}.article{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;margin:0 0 24px}.article h2{font-size:1.35rem;color:var(--brand);margin:30px 0 10px}.article h2:first-child{margin-top:0}.article p{color:#334452;margin:0 0 15px}.cta{background:var(--brand);color:#fff;border-radius:14px;padding:28px;margin:24px 0}.cta a{display:inline-block;background:#06c755;color:#fff;padding:12px 18px;border-radius:9px;font-weight:700;text-decoration:none;margin:8px 8px 0 0}.cta a.alt{background:#fff;color:var(--brand)}.note{font-size:.85rem;color:var(--muted)}.related{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.related a{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;color:var(--accent);text-decoration:none}.foot{padding:30px 0 50px;color:var(--muted);font-size:.9rem}.lang-suggest{position:fixed;left:18px;right:18px;bottom:18px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 40px rgba(0,0,0,.18);border-radius:12px;padding:14px;z-index:99;display:none;max-width:650px;margin:auto}.lang-suggest.show{display:flex;align-items:center;justify-content:space-between;gap:12px}.lang-suggest a{background:var(--accent);color:#fff;padding:8px 12px;border-radius:7px;text-decoration:none;font-weight:700}.lang-suggest button{border:0;background:transparent;font-size:1.2rem;cursor:pointer}@media(max-width:700px){.facts{grid-template-columns:1fr 1fr}.related{grid-template-columns:1fr}.top .wrap{align-items:flex-start;padding-top:12px;padding-bottom:12px;flex-direction:column}.hero img{height:460px}}


/* Header language switcher — keep beside booking actions on desktop */
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.top-actions .langs{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;margin-left:2px}
.top-actions .langs a{white-space:nowrap;padding:5px 8px;font-size:.76rem}
@media(max-width:980px){
  .top-actions{gap:6px}
  .top-actions .langs{width:100%;justify-content:flex-end;margin-left:0}
}
@media(max-width:700px){
  .top-actions{width:100%;justify-content:flex-start}
  .top-actions .langs{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}
}


/* Language switcher in booking header */
.top-actions,.actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.top-actions .langs,.actions .langs{display:flex;align-items:center;gap:4px;flex-wrap:nowrap;margin-left:2px}
.top-actions .langs a,.actions .langs a{white-space:nowrap;padding:5px 8px;font-size:.76rem}
@media(max-width:980px){
  .top-actions,.actions{gap:6px}
  .top-actions .langs,.actions .langs{width:100%;justify-content:flex-end;margin-left:0}
}
@media(max-width:700px){
  .top-actions,.actions{width:100%;justify-content:flex-start}
  .top-actions .langs,.actions .langs{width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px}
}


/* Compact Trip-style language selector */
.langs{display:none!important}
.lang-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-height:38px;padding:7px 10px;border:1px solid rgba(255,255,255,.28);
  border-radius:8px;background:#102f44;color:#fff;font:inherit;font-weight:700;
  cursor:pointer;line-height:1
}
.lang-trigger:hover{background:#163d57}
.lang-globe{font-size:1rem}
.lang-current{font-size:.78rem;letter-spacing:.03em}
.lang-modal[hidden]{display:none!important}
.lang-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px}
.lang-modal__backdrop{position:absolute;inset:0;background:rgba(4,18,29,.62);backdrop-filter:blur(2px)}
.lang-modal__panel{
  position:relative;width:min(560px,100%);max-height:min(78vh,720px);overflow:auto;
  background:#fff;color:#10212d;border-radius:16px;padding:18px;
  box-shadow:0 24px 70px rgba(0,0,0,.28)
}
.lang-modal__header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.lang-modal__header h2{margin:0;font-size:1.2rem}
.lang-modal__close{
  width:38px;height:38px;border:0;border-radius:50%;background:#eef3f6;color:#10212d;
  font-size:1.65rem;line-height:1;cursor:pointer
}
.lang-modal__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lang-option{
  display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:10px;
  color:#10212d;text-decoration:none;border:1px solid #e4eaee;background:#fff
}
.lang-option:hover{background:#f4f8fb}
.lang-option--active{background:#eaf4fb;border-color:#9fc8e3}
.lang-option__code{
  display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;
  padding:0 6px;border-radius:6px;background:#102f44;color:#fff;font-size:.72rem;font-weight:800
}
body.lang-modal-open{overflow:hidden}

@media(max-width:700px){
  .top-actions,.actions{width:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;flex-wrap:nowrap!important}
  .top-actions .btn,.actions .btn{padding:7px 9px!important;min-height:36px!important;font-size:.76rem!important}
  .top-actions .btn-phone,.actions .btn-phone{display:none!important}
  .lang-trigger{min-height:36px;padding:6px 8px}
  .lang-current{font-size:.72rem}
  .lang-modal{align-items:flex-end;padding:0}
  .lang-modal__panel{
    width:100%;max-height:78vh;border-radius:18px 18px 0 0;padding:16px 14px 22px
  }
  .lang-modal__grid{grid-template-columns:1fr}
}

/* =========================================================
   FINAL POLISHED HEADER
   Desktop: logo left, phone + LINE + language right.
   Mobile: logo left, compact LINE + language right in ONE row.
   ========================================================= */
.line-short{display:none}
.top .wrap{
  min-height:68px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding-top:10px!important;
  padding-bottom:10px!important;
}
.top .logo,.top .brand{
  flex:1 1 auto!important;
  min-width:0!important;
}
.top-actions,.actions{
  width:auto!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
}
.top-actions .btn,.actions .btn,
.top-actions .lang-trigger,.actions .lang-trigger{
  margin:0!important;
}
.top-actions .btn-line,.actions .btn-line{
  white-space:nowrap!important;
}

@media(max-width:700px){
  .top .wrap{
    min-height:62px!important;
    flex-direction:row!important;
    align-items:center!important;
    padding:8px 12px!important;
    gap:7px!important;
  }
  .top .logo{
    max-width:188px!important;
    flex:1 1 188px!important;
  }
  .top .logo b{
    font-size:1.00rem!important;
    letter-spacing:.05em!important;
    white-space:nowrap!important;
  }
  .top .logo small{
    display:block!important;
    margin-top:3px!important;
    font-size:.49rem!important;
    letter-spacing:.17em!important;
    white-space:nowrap!important;
  }
  .top .brand{
    max-width:190px!important;
    font-size:.80rem!important;
    line-height:1.22!important;
  }
  .top-actions,.actions{
    width:auto!important;
    flex:0 0 auto!important;
    margin-left:auto!important;
    gap:5px!important;
    justify-content:flex-end!important;
    flex-wrap:nowrap!important;
  }
  .top-actions .hide-sm,.actions .hide-sm{
    display:none!important;
  }
  .line-full{display:none!important}
  .line-short{display:inline!important}
  .top-actions .btn-line,.actions .btn-line{
    min-width:50px!important;
    min-height:34px!important;
    padding:6px 8px!important;
    border-radius:7px!important;
    font-size:.70rem!important;
    line-height:1!important;
    text-align:center!important;
  }
  .lang-trigger{
    min-width:47px!important;
    min-height:34px!important;
    height:34px!important;
    padding:5px 7px!important;
    gap:4px!important;
    border-radius:7px!important;
  }
  .lang-globe{font-size:.86rem!important}
  .lang-current{font-size:.65rem!important}
}

/* Very narrow legacy phones: preserve language selector and let LINE live in footer. */
@media(max-width:340px){
  .top-actions .btn-line,.actions .btn-line{display:none!important}
  .top .logo{max-width:210px!important}
}


/* =========================================================
   FINAL MULTILINGUAL UI POLISH
   - balanced header gaps
   - visible LINE chat icon
   - cleaner mobile hero/facts
   - booking CTA in footer on every page
   - mobile sticky booking bar
   ========================================================= */
.line-icon{display:inline-flex;align-items:center;justify-content:center;margin-right:5px;font-size:.9em;line-height:1}
.top-actions,.actions{
  gap:8px!important;
}
.top-actions .btn-line,.actions .btn-line,
.lang-trigger{
  box-shadow:none!important;
}
.top-actions .btn-line,.actions .btn-line{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  color:#fff!important;
  background:#06c755!important;
  border:1px solid #06c755!important;
}
.lang-trigger{
  border-color:rgba(255,255,255,.32)!important;
  background:#12384f!important;
}
.lang-trigger:hover{background:#184861!important}

/* Footer booking CTA */
.footer-booking-cta{
  margin-top:26px;
  background:#0f2a3d;
  color:#fff;
  border-top:1px solid rgba(255,255,255,.08);
}
.footer-booking-cta__inner{
  min-height:116px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  padding-top:22px!important;
  padding-bottom:22px!important;
}
.footer-booking-cta__copy{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.footer-booking-cta__copy strong{
  font-size:1.15rem;
  line-height:1.25;
}
.footer-booking-cta__copy span{
  color:rgba(255,255,255,.78);
  font-size:.9rem;
}
.footer-booking-cta__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.footer-booking-cta__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:42px;
  padding:9px 14px;
  border-radius:9px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.footer-line{background:#06c755;color:#fff}
.footer-call{background:#fff;color:#0f2a3d}
.foot{margin-top:0!important}

/* Mobile sticky booking bar */
.mobile-booking-bar{display:none}

/* Suggestion banner: make close button easy to hit and avoid CTA overlap */
.lang-suggest button{
  flex:0 0 34px!important;
  width:34px!important;
  height:34px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:#eef3f6!important;
  color:#0f2a3d!important;
  margin-left:2px!important;
  padding:0!important;
}

/* International content rhythm */
.article{margin-top:22px}
.article h2{line-height:1.28}
.facts{align-items:stretch}
.fact{min-height:100%;}

@media(max-width:700px){
  body{padding-bottom:68px}
  .top .wrap{
    padding-left:12px!important;
    padding-right:12px!important;
    gap:9px!important;
  }
  .top .brand{
    max-width:186px!important;
    font-size:.78rem!important;
    line-height:1.22!important;
  }
  .top-actions,.actions{
    gap:6px!important;
  }
  .top-actions .btn-line,.actions .btn-line{
    min-width:48px!important;
    height:34px!important;
    min-height:34px!important;
    padding:5px 7px!important;
  }
  .line-icon{
    margin-right:3px;
    font-size:.82rem;
  }
  .lang-trigger{
    min-width:48px!important;
    height:34px!important;
    min-height:34px!important;
  }

  /* Cleaner multilingual hero */
  .hero img{height:390px!important}
  .hero-copy{padding:24px 0!important}
  .hero-copy h1,h1{
    font-size:clamp(1.72rem,8vw,2.15rem)!important;
    line-height:1.08!important;
    margin-bottom:10px!important;
  }
  .hero-copy .lead,.lead{
    font-size:.94rem!important;
    line-height:1.55!important;
  }

  /* Avoid the 2+1 orphaned fact-card layout */
  .facts{
    grid-template-columns:1fr!important;
    gap:8px!important;
    margin:14px 0 18px!important;
  }
  .fact{
    padding:12px 14px!important;
    border-radius:10px!important;
  }
  .article{
    padding:20px 16px!important;
    border-radius:12px!important;
    margin-bottom:18px!important;
  }
  .article h2{
    font-size:1.22rem!important;
    margin:24px 0 8px!important;
  }

  .footer-booking-cta__inner{
    min-height:0;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding-top:20px!important;
    padding-bottom:20px!important;
  }
  .footer-booking-cta__copy strong{font-size:1.06rem}
  .footer-booking-cta__actions{
    width:100%;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:8px;
  }
  .footer-booking-cta__actions a{
    width:100%;
    padding:9px 10px;
    font-size:.82rem;
  }

  .mobile-booking-bar{
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:9980;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:8px;
    padding:8px 10px max(8px,env(safe-area-inset-bottom));
    background:rgba(255,255,255,.97);
    border-top:1px solid #dce4e9;
    box-shadow:0 -8px 28px rgba(0,0,0,.10);
  }
  .mobile-booking-bar a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:42px;
    border-radius:9px;
    text-decoration:none;
    font-weight:800;
    font-size:.84rem;
  }
  .mobile-booking-bar__line{background:#06c755;color:#fff}
  .mobile-booking-bar__call{background:#1f7fb8;color:#fff}

  .lang-suggest{
    left:10px!important;
    right:10px!important;
    bottom:76px!important;
    padding:10px 10px!important;
    gap:8px!important;
  }
  .lang-suggest a{
    padding:7px 10px!important;
    white-space:nowrap!important;
  }
}


/* =========================================================
   WHATSAPP + LINE CONTACT STRATEGY
   TH/JA: LINE primary
   EN/ZH/FR: WhatsApp primary
   ========================================================= */
.btn-whatsapp,
.footer-whatsapp,
.mobile-booking-bar__whatsapp{
  background:#25D366!important;
  color:#fff!important;
  border-color:#25D366!important;
}
.btn-whatsapp{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px;
  padding:7px 10px;
  border:1px solid #25D366;
  border-radius:8px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.wa-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.1em;
  height:1.1em;
  margin-right:5px;
  border:1.5px solid currentColor;
  border-radius:50%;
  font-size:.55em;
  line-height:1;
}
.wa-short{display:none}
.footer-whatsapp-secondary,
.footer-line-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:42px;
  padding:9px 14px;
  border-radius:9px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  background:#eef4f7;
  color:#0f2a3d;
}
.footer-booking-cta__actions{
  display:grid!important;
  grid-template-columns:auto auto auto;
  gap:8px!important;
}

@media(max-width:700px){
  .wa-full{display:none!important}
  .wa-short{display:inline!important}
  .btn-whatsapp{
    min-width:48px!important;
    height:34px!important;
    min-height:34px!important;
    padding:5px 7px!important;
    font-size:.70rem!important;
  }
  .btn-whatsapp .wa-icon{margin-right:3px}
  .footer-booking-cta__actions{
    grid-template-columns:1fr 1fr!important;
  }
  .footer-booking-cta__actions .footer-call{
    grid-column:1 / -1;
  }
  .mobile-booking-bar{
    grid-template-columns:1.2fr .8fr!important;
  }
  .mobile-booking-bar a{
    min-width:0;
    padding:8px 10px;
  }
}


/* =========================================================
   HERO GAP / MOBILE READABILITY — FINAL
   Applies to EN / JA / ZH / FR hero pages.
   Keep text inset like the cards below instead of touching edges.
   ========================================================= */
.hero-in .hero-copy{
  width:100%;
  max-width:1080px;
  margin:0 auto;
  box-sizing:border-box;
}
.hero-copy h1,
.hero-copy .lead{
  max-width:760px;
}

@media(max-width:700px){
  .hero-in{
    align-items:flex-end!important;
  }
  .hero-in .hero-copy{
    width:100%!important;
    margin:0 auto!important;
    padding-top:24px!important;
    padding-bottom:24px!important;
    padding-left:18px!important;
    padding-right:18px!important;
    box-sizing:border-box!important;
  }
  .hero-copy h1{
    max-width:100%!important;
    margin:0 0 10px 0!important;
    font-size:clamp(1.58rem,7.1vw,2rem)!important;
    line-height:1.13!important;
    letter-spacing:-.01em!important;
    overflow-wrap:anywhere;
  }
  .hero-copy .lead{
    max-width:100%!important;
    margin:0!important;
    font-size:.92rem!important;
    line-height:1.58!important;
    overflow-wrap:anywhere;
  }
}

@media(max-width:390px){
  .hero-in .hero-copy{
    padding-left:16px!important;
    padding-right:16px!important;
  }
  .hero-copy h1{
    font-size:1.54rem!important;
    line-height:1.14!important;
  }
  .hero-copy .lead{
    font-size:.89rem!important;
    line-height:1.56!important;
  }
}


/* =========================================================
   UNIFIED WHITE PALM LOGO — same presentation on every page
   ========================================================= */
.top .logo{
  color:#fff!important;
  text-decoration:none!important;
  line-height:1.05!important;
  display:block!important;
  flex:1 1 auto!important;
  min-width:0!important;
}
.top .logo b{
  font-family:'Cormorant Garamond',Georgia,'Times New Roman',serif!important;
  font-size:1.35rem!important;
  font-weight:700!important;
  letter-spacing:.06em!important;
  display:block!important;
  color:#fff!important;
  white-space:nowrap!important;
}
.top .logo small{
  display:block!important;
  margin-top:3px!important;
  font-size:.60rem!important;
  font-weight:500!important;
  letter-spacing:.28em!important;
  line-height:1.15!important;
  opacity:.82!important;
  color:#fff!important;
  white-space:nowrap!important;
}

@media(max-width:700px){
  .top .logo{
    max-width:190px!important;
    flex:1 1 190px!important;
  }
  .top .logo b{
    font-size:1.00rem!important;
    letter-spacing:.05em!important;
  }
  .top .logo small{
    margin-top:3px!important;
    font-size:.49rem!important;
    letter-spacing:.17em!important;
  }
}

@media(max-width:390px){
  .top .logo{
    max-width:184px!important;
  }
  .top .logo b{
    font-size:.96rem!important;
  }
  .top .logo small{
    font-size:.47rem!important;
    letter-spacing:.15em!important;
  }
}


/* =========================================================
   THAI 7 LANDING PAGES — HERO / FOOTER COLLISION FIX
   Thai SEO pages use <article class="hero">, while translated
   pages use <section class="hero">. Keep Thai cards white.
   ========================================================= */
main.wrap article.hero{
  position:relative!important;
  background:#fff!important;
  color:#0f1f2b!important;
  border:1px solid #e3e8ee!important;
  border-radius:18px!important;
  overflow:hidden!important;
  margin:8px 0 20px!important;
}
main.wrap article.hero > img{
  width:100%!important;
  height:430px!important;
  object-fit:cover!important;
  opacity:1!important;
}
main.wrap article.hero .hero-body{
  position:static!important;
  background:#fff!important;
  color:#0f1f2b!important;
  padding:28px!important;
}
main.wrap article.hero .hero-body h1{
  color:#0f1f2b!important;
  text-shadow:none!important;
}
main.wrap article.hero .hero-body .lead{
  color:#334452!important;
  text-shadow:none!important;
}
main.wrap article.hero .hero-body .mini{
  color:#5b6b78!important;
}
@media(max-width:880px){
  main.wrap article.hero > img{height:300px!important}
}
@media(max-width:600px){
  main.wrap article.hero > img{height:240px!important}
  main.wrap article.hero .hero-body{
    padding:20px!important;
  }
  main.wrap article.hero .hero-body h1{
    font-size:clamp(1.62rem,7.2vw,2rem)!important;
    line-height:1.18!important;
    margin-bottom:10px!important;
  }
  main.wrap article.hero .hero-body .lead{
    font-size:.96rem!important;
    line-height:1.6!important;
  }
}
