/* ==========================================================================
   SkyTravel Hotel - Tablet Compatibility Patch (769px ~ 1199px)
   Scope: Hotel Search List (search_list.html) & Common Header/Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Universal Container & Header/Footer Tablet Rules (769px ~ 1199px)
   -------------------------------------------------------------------------- */
@media screen and (min-width: 769px) and (max-width: 1199px) {

  /* Prevent page-level horizontal overflow */
  html, body {
    overflow-x: hidden;
  }

  /* 消除列表页头部下方脱落的白底白字业务导航栏与大片空白 */
  #service_nav-placeholder {
    display: none !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 头部深蓝栏整体容器 */
  .header {
    position: relative !important;
    background-color: #03205a !important;
    height: 60px !important;
  }

  .header-box {
    max-width: 100% !important;
    height: 60px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* 隐藏桌面版 Logo，按照要求在平板显示 smart 版（手写体）Logo */
  .header-logo {
    display: none !important;
  }

  .header-logo-smart {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-right: auto !important;
    flex-shrink: 0 !important;
  }

  /* 隐藏桌面端右侧操作区，避免与中间业务导航栏（航空券等）在平板上水平空间冲突 */
  .header-desktop-actions {
    display: none !important;
  }


  /* 新版 Footer adjustments (防止文字被挤压换行) */
  .new-footer {
    padding: 30px 0 20px 0 !important;
  }

  .new-footer-container {
    flex-wrap: wrap !important;
    padding: 0 30px !important;
    gap: 30px 20px !important;
    justify-content: space-between !important;
  }

  /* 品牌在第一排左侧 */
  .new-footer-left {
    flex: 0 0 240px !important;
    order: 1 !important;
  }

  /* 导航链接在第一排右侧，与品牌并排 */
  .new-footer-nav {
    flex: 1 1 450px !important;
    order: 2 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  /* 支付与认证挪到第二排，占据 100% 宽度并居中，增加顶部分割线 */
  .new-footer-right {
    flex: 1 1 100% !important;
    order: 3 !important;
    border-left: none !important;
    padding-left: 0 !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .new-footer-payments {
    justify-content: center !important;
  }

  .new-footer-certs {
    justify-content: center !important;
    margin-top: 15px !important;
  }

  .footer-box-policy-links {
    flex-wrap: wrap !important;
    gap: 12px 20px !important;
  }

  .footer-box-policy-sns {
    justify-content: flex-start !important;
    margin-top: 10px !important;
  }



  /* --- Inserted Mobile Menu Styles for Tablet --- */
  .header-service-nav-slot {
    display: none !important;
  }
  /* 手机版登菜单按钮 */
  .tcp-h5-header-switch {
    -webkit-tap-highlight-color: transparent;
    color: var(--smtcColorTextPrimary, #fff);
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    height: 48px;
    position: relative;
    text-align: center;
    vertical-align: top;
    width: 40px;
  }

  .tcp-h5-header-switch-icon {
    height: 12px;
    left: 12px;
    position: absolute;
    top: 18px;
    width: 16px;
  }

  .tcp-h5-header-switch-icon div {
    position: absolute;
    left: 0;
    width: 16px;
    height: 2px;
    background: var(--smtcColorTextPrimary, #fff);
    border-radius: 2px;

    /* 关键：用 transition，不用 animation 更简单稳 */
    transition:
      transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.2s ease,
      top 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      bottom 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .tcp-h5-header-switch-icon-top {
    top: 0;
    transform-origin: center center;
  }

  .tcp-h5-header-switch-icon-middle {
    top: 5px;
    transform-origin: center center;
  }

  .tcp-h5-header-switch-icon-bottom {
    bottom: 0;
    transform-origin: center center;
  }

  /* 点击后变成 X */
  .tcp-h5-header-switch-icon.is-active .tcp-h5-header-switch-icon-top {
    top: 5px;
    transform: rotate(45deg);
  }

  .tcp-h5-header-switch-icon.is-active .tcp-h5-header-switch-icon-middle {
    opacity: 0;
    transform: scaleX(0);
  }

  .tcp-h5-header-switch-icon.is-active .tcp-h5-header-switch-icon-bottom {
    bottom: 5px;
    transform: rotate(-45deg);
  }

  /* 手机版登录按钮 */
  .header-user-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }

    /* 手机版菜单 */
  .header-content-result-tab-smart-pulldown{
    display: block;
    position: fixed;
    left: 0;
    top: 60px;
    z-index: 10000;
    width: 100%;
    height: calc( 100dvh - 60px );
    background-color: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .header-content-result-tab-smart-pulldown.show{
    opacity: 1;
    visibility: visible;
  }

  .header-content-result-tab-smart-pulldown-box{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    overflow-y: scroll;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    height: 100%;
    padding: 20px;
  }

  .header-content-result-tab-smart-pulldown.show .header-content-result-tab-smart-pulldown-box{
    transform: translateY(0);
  }

  .header-h5-menu-login-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
  }

  .header-h5-menu-login-card-lang{
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 0;
  }

  .header-h5-menu-login-card-lang-title{
    color: #667085;
    font-size: 12px;
  }

  .header-h5-menu-login-card-lang-list-node{
    font-size: 14px;
    line-height: 22px;
    color: black;
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
  }

  .header-h5-menu-login-card-lang-list-node img{
    height: 14px;
    margin-right: 10px;
  }  

  .header-h5-menu-login-card-lang-list-node i{
    height: 14px;
    margin-right: 10px;
    color: #03205a; /* 新版 Footer/酒店同款深蓝 */
  }  

  .header-h5-menu-login-card-btn .booking{
    width: 48%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 13px;
    background-color: #2C61FE;
    color: white;
    border: none;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 1px 1px 12px #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-h5-menu-login-card-btn .signin{
    width: 48%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 13px;
    background-color: #fff;
    color: black;
    border: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 1px 1px 12px #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-h5-menu-login-card-btn img{
    width: 30px;
    margin-right: 10px;
  }

  .header-h5-menu-login-card-btn .booking i,
  .header-h5-menu-login-card-btn .signin i {
    flex: 0 0 30px;
    width: 30px;
    margin-right: 10px;
    color: currentColor;
    font-size: 18px;
    line-height: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .login-title-sub {
    font-size: 12px;
    color: rgb(115, 115, 115);
    text-align: center;
    margin-bottom: 20px;
  }

    
  .header-notice-member {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(232, 241, 250);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.15);
    border-radius: 12px;
  }

  .header-notice-member-rank {
    padding: 20px;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid #ffffff;
  }

  .header-notice-member-rank-desc {
    margin: 0 10px;
  }

  .header-notice-member-rank-desc-name {
    font-size: 14px;
    font-weight: bold;
  }

  .header-notice-member-rank-desc-title {
    font-size: 12px;
    color: #667085;
  }

  .header-notice-member-point {
    padding: 20px;
    width: 50%;
  }

  .header-notice-member-point-title {
    font-size: 14px;
    font-weight: bold;
  }

  .header-notice-member-point-num {
    color: #2C61FE;
    font-weight: bold;
  }

  .header-notice-member-point-num span {
    color: #2C61FE;
    font-weight: bold;
  }


  /* 修复平板模式下未登录时错误显示会员信息面板的问题 */
  #header-member-info {
    display: none;
  }
}


