/* ================================================================
   หน้าหลัก — ส่วนบนแบบเรียบหรู (มือถือ)
   - ตัดกล่องทักทาย → ปุ่มเข้าสู่ระบบ/รูปโปรไฟล์ มุมขวาบน
   - แถบขั้นตอนการจอง ลอยแบบเดิม ย้ายมากลางจอใต้โลโก้
   - 3 ปุ่ม จองทริป/เช่าของ/รีวิว กล่องเล็ก ไอคอนเส้นด้านบน (ปุ่มจองเด่นด้วยสีทอง)
   - กล่องค้นหา + ทริปประจำเดือน/ภาพรวม รวมเป็นแผงเดียว
   ================================================================ */

/* ---------- หัวเว็บ: ปุ่มมุมขวาบน ---------- */
#hdrGreet{display:none!important}
.home-banner-actions{top:12px;right:12px;gap:6px;align-items:center}
.home-banner-actions .hdr-btn{padding:6px 10px;font-size:10.5px;font-weight:700;border-radius:999px}
.home-banner-actions .hdr-btn-info,
.home-banner-actions .hdr-btn-contact{background:rgba(6,11,19,.5);border:1px solid rgba(255,255,255,.16);color:#e2ecf3;box-shadow:none}
.home-banner-actions .hdr-btn-auth{background:linear-gradient(135deg,#5eead4,#22c3c9);color:#05232a;border:0;font-weight:800;box-shadow:0 4px 14px rgba(34,195,201,.35)}
.home-banner-actions .hdr-btn-auth.is-user{padding:3px 11px 3px 3px;gap:6px;background:rgba(6,11,19,.55);color:#fff;border:1px solid rgba(94,234,212,.55);box-shadow:none}
.hdr-btn-auth img,.hdr-auth-initial{width:24px;height:24px;border-radius:50%;object-fit:cover;flex:none}
.hdr-auth-initial{display:grid;place-items:center;background:linear-gradient(135deg,#5eead4,#0e7490);color:#05232a;font-weight:800;font-size:12px}
.hdr-auth-name{max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media (max-width:899px){
  /* ---------- แถบขั้นตอน: ลอยแบบเดิม (ไม่มีกล่อง) ย้ายมากลางจอ ---------- */
  .hdr{padding-bottom:60px}
  .hdr.no-greet{padding-bottom:60px}
  .home-banner{overflow:visible}
  .home-booking-steps{
    left:50%;right:auto;bottom:-50px;transform:translateX(-50%);
    width:min(300px,calc(100% - 60px));max-width:300px;
    grid-template-columns:1fr 18px 1fr 18px 1fr 18px 1fr;
  }
  .home-booking-steps .home-step-label{font-size:9px}
  .home-booking-steps .home-step-line{margin-top:15px}

  /* ---------- 3 ปุ่มหลัก ---------- */
  .home-quick-actions.qa-lux{gap:10px;margin:2px 0 12px}
  .qa-lux .qa-mini{
    animation:none!important;position:relative;height:76px;min-height:0;padding:10px 6px 8px;gap:0;
    border-radius:16px;justify-content:center;
    background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02));
    border:1px solid rgba(255,255,255,.09);
    box-shadow:0 8px 20px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  }
  .qa-lux .qa-mini:active{transform:scale(.97)}
  .qa-lux .qa-mini-ico{
    width:34px;height:34px;border-radius:50%;display:grid;place-items:center;margin-bottom:6px;
    background:rgba(94,234,212,.08);border:1px solid rgba(94,234,212,.35);color:#7ff0dc;
  }
  .qa-lux .qa-mini-ico svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .qa-lux .qa-mini-label,.qa-lux .qa-mytrips-mini .qa-mini-label{color:#f4f8fa;font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap}
  /* ปุ่มจองทริป: ทองเรียบหรู */
  .qa-lux .qa-trip-mini{border-color:rgba(232,196,120,.42);background:linear-gradient(180deg,rgba(232,196,120,.13),rgba(232,196,120,.03))}
  .qa-lux .qa-trip-mini .qa-mini-ico{background:linear-gradient(145deg,#f3d48a,#c08a35);border:0;color:#2a1c05;box-shadow:0 6px 16px rgba(192,138,53,.35)}
  .qa-lux .qa-mytrips-mini .qa-mini-ico{background:rgba(125,211,252,.08);border-color:rgba(125,211,252,.35);color:#9adcff}

  /* ---------- แผงค้นหา ---------- */
  .hte{margin:0 0 22px;padding:12px;border-radius:22px;
    background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
    border:1px solid rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
  .hte-search{height:46px;border-radius:14px;background:rgba(3,10,16,.6);border-color:rgba(255,255,255,.1)}
  .hte-search>span{font-size:24px;color:#7ff0dc}
  .hte-search input{font-size:13.5px}
  .hte-actions{gap:8px;margin-top:8px}
  .hte .hte-tile{aspect-ratio:auto;height:62px;border-radius:14px;border-color:rgba(255,255,255,.08)}
  .hte .hte-tile::after{background:linear-gradient(90deg,rgba(6,11,19,.92) 30%,rgba(6,11,19,.45))}
  .hte .hte-tile::before{top:50%;right:10px;transform:translateY(-50%);font-size:20px}
  .hte-tile-body{flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:0 24px 0 10px}
  .hte-tile-icon{position:static;flex:none;width:32px;height:32px;font-size:16px;border-radius:10px;color:#7ff0dc}
  .hte-tile-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .hte-tile-text{display:flex;flex-direction:column;min-width:0}
  .hte-tile-body strong{font-size:13px;white-space:nowrap}
  .hte-tile-body small{font-size:10.5px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hte .hte-tile.active{border-color:#5eead4}
}
@media (max-width:899px) and (prefers-reduced-motion:reduce){.qa-lux .qa-mini{transition:none}}
/* จอคอม: ไอคอนเส้นขนาดพอดีกับปุ่มแคปซูลของจอคอม */
@media (min-width:900px){.qa-lux .qa-mini-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}}

/* ---------- สไลด์รูปหัวเว็บ 3 รูป (ทุกขนาดจอ) ---------- */
.home-banner .hb-extra{position:absolute;inset:0;z-index:0;cursor:pointer}
.home-banner .hb-extra img{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .9s ease;border-radius:inherit}
.home-banner .hb-extra img.on{opacity:1}
.home-banner .home-banner-fade{z-index:1}
.hb-dots{position:absolute;z-index:3;right:14px;bottom:12px;display:flex;gap:5px}
.hb-dots button{width:6px;height:6px;padding:0;border:0;border-radius:99px;background:rgba(255,255,255,.35);cursor:pointer;transition:width .3s,background .3s}
.hb-dots button.on{width:16px;background:#5eead4}
@media (prefers-reduced-motion:reduce){.home-banner .hb-extra img,.hb-dots button{transition:none}}
/* รูปที่ 2–3 เฟดขอบล่างให้กลืนพื้นหลังเหมือนรูปแรก (รูปแรกเฟดอยู่แล้วใน 97-forest-page-theme.css) */
@media(max-width:767px){
  #appShell .home-banner .hb-extra{
    -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 70%,rgba(0,0,0,.96) 76%,rgba(0,0,0,.78) 84%,rgba(0,0,0,.42) 93%,transparent 100%);
    mask-image:linear-gradient(180deg,#000 0%,#000 70%,rgba(0,0,0,.96) 76%,rgba(0,0,0,.78) 84%,rgba(0,0,0,.42) 93%,transparent 100%);
  }
}
/* ซ่อนรูปแรกตอนโชว์รูปอื่น ขอบล่างที่เฟดจะได้ไม่เห็นรูปแรกซ้อนอยู่ข้างใต้ */
.home-banner>img{transition:opacity .9s ease}
.home-banner.hb-alt>img{opacity:0;transition-delay:.9s}

/* ---------- เมนูล่าง: แถบลอย มุมมน (มือถือ) ---------- */
@media (max-width:899px){
  #appShell .bnav,.bnav{
    left:12px;right:12px;width:auto;bottom:calc(10px + env(safe-area-inset-bottom,0px));
    padding:0 4px;border-radius:24px;
    background:linear-gradient(180deg,rgba(18,30,40,.82),rgba(8,15,22,.9))!important;
    border:1px solid rgba(255,255,255,.1)!important;
    box-shadow:0 14px 34px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.07);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
  }
  .bnav-item{padding:8px 0 9px;gap:3px}
  .bnav-item .ico{width:46px;height:28px;border-radius:14px;transition:background .25s,color .25s}
  .bnav-item .ico svg{width:21px;height:21px}
  .bnav-item .lbl{font-size:10px;color:#7f93a0}
  .bnav-item.active .ico{background:rgba(94,234,212,.14);color:#5eead4;filter:none}
  .bnav-item.active .lbl{color:#5eead4;font-weight:800}
  .bnav-checkin-action .checkin-fab{
    width:52px;height:52px;flex-basis:52px;margin-top:-26px;color:#05232a;
    background:linear-gradient(145deg,#7ff0dc,#22c3c9)!important;border:0!important;
    box-shadow:0 0 0 5px rgba(6,13,20,.95),0 10px 24px rgba(34,195,201,.35)!important;
  }
  .bnav-checkin-action .checkin-fab::before{border-color:rgba(255,255,255,.35)}
  .bnav-checkin-action .checkin-fab-scanline{background:linear-gradient(90deg,transparent,#fff 50%,transparent)}
  .bnav-checkin-action .lbl{color:#5eead4!important;font-weight:800}
}
@media (max-width:899px){#nav-notif .ann-dot{right:26%;top:5px;box-shadow:0 0 0 2px #0b1620}}

/* แก้บัค: หน้าเข้าสู่ระบบต้องอยู่บนสุด (เดิม 9999 เท่ากับป๊อปอัพทริปรายเดือน/ปฏิทิน เลยไปอยู่ข้างหลัง)
   สูงกว่าหน้ารายละเอียดทริป (20000) หน้าเช่าของ (22000) แต่ต่ำกว่ากล่องแจ้งเตือน (40000) */
#loginPage{z-index:30000}
