/* Mobile Quick Nav — preserve legacy layout, sync design tokens only */
.ths-mqn {
  display: none;
}

@media (max-width: 849px) {
  .ths-mqn {
    --ths-mobile-surface: #ffffff;
    --ths-mobile-text: #1f1f21;
    --ths-mobile-border: rgba(0, 0, 0, 0.06);
    --ths-mobile-accent: #f26822;
    --ths-mobile-accent-strong: #b67c27;
    --ths-mobile-accent-hover: #ff7a1a;
    --ths-mobile-cta-text: #ffffff;
    --ths-mobile-shadow-soft: none;

    display: block !important;
    position: relative !important;
    z-index: 20;
    left: 50% !important;
    right: 50% !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background: var(--ths-mobile-surface);
    border-top: 1px solid var(--ths-mobile-border);
    border-bottom: 1px solid var(--ths-mobile-border);
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: var(--ths-mobile-shadow-soft);
  }

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

  .ths-mqn__grid {
    display: grid;
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: 42px minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 0.88fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .ths-mqn__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 46px;
    padding: 0 6px;
    background: var(--ths-mobile-surface);
    color: var(--ths-mobile-text);
    text-decoration: none !important;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    border-right: 1px solid var(--ths-mobile-border);
    overflow: hidden;
    transition: background .2s ease, color .2s ease;
  }

  .ths-mqn__item:last-child {
    border-right: 0;
  }

  .ths-mqn__item:hover,
  .ths-mqn__item:focus-visible {
    background: #faf7f4;
    color: var(--ths-mobile-text);
    outline: none;
  }

  .ths-mqn__item.is-active,
  .ths-mqn__item[aria-current="page"] {
    color: var(--ths-mobile-accent-strong);
    background: var(--ths-mobile-surface);
  }

  .ths-mqn__item.is-active::after,
  .ths-mqn__item[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ths-mobile-accent-strong) 0%, var(--ths-mobile-accent) 100%);
    border-radius: 3px 3px 0 0;
  }

  .ths-mqn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--ths-mobile-accent-strong);
  }

  .ths-mqn__label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ths-mqn-home-icon {
    width: 15px;
    height: 15px;
    display: block;
  }

  .ths-mqn__item.is-cta {
    background: var(--ths-mobile-accent) !important;
    color: var(--ths-mobile-cta-text) !important;
    font-weight: 800;
    border-right: 0;
    box-shadow: none;
  }

  .ths-mqn__item.is-cta:hover,
  .ths-mqn__item.is-cta:focus-visible {
    background: var(--ths-mobile-accent-hover) !important;
    color: var(--ths-mobile-cta-text) !important;
  }

  .ths-mqn__item.is-cta::after {
    display: none !important;
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  .ths-mqn__grid {
    grid-template-columns: 42px minmax(0, 1.16fr) minmax(0, 0.98fr) minmax(0, 0.95fr) minmax(0, 0.9fr) minmax(0, 1.06fr);
  }

  .ths-mqn__item {
    min-height: 46px;
    font-size: 10.8px;
    padding: 0 5px;
  }
}

@media (min-width: 391px) and (max-width: 430px) {
  .ths-mqn__grid {
    grid-template-columns: 40px minmax(0, 1.1fr) minmax(0, 0.95fr) minmax(0, 0.92fr) minmax(0, 0.86fr) minmax(0, 1.02fr);
  }

  .ths-mqn__item {
    min-height: 45px;
    font-size: 10px;
    padding: 0 4px;
    gap: 3px;
  }

  .ths-mqn-home-icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 390px) {
  .ths-mqn__grid {
    grid-template-columns: 38px minmax(0, 1.05fr) minmax(0, 0.92fr) minmax(0, 0.9fr) minmax(0, 0.82fr) minmax(0, 0.98fr);
  }

  .ths-mqn__item {
    min-height: 44px;
    font-size: 9.4px;
    padding: 0 3px;
    gap: 2px;
  }

  .ths-mqn-home-icon {
    width: 13px;
    height: 13px;
  }
}

@media (min-width: 850px) {
  .ths-mqn {
    display: none !important;
  }
}

/* ===== PHASE 34 — MOBILE QUICK NAV CONTRAST FIX =====
   Actual mobile bottom/row nav uses ths-mqn, not ths-mobile-nav.
*/
@media (max-width: 849px){
  .ths-mqn{
    --ths-mobile-text:#4a3727 !important;
    --ths-mobile-accent-strong:#a7742f !important;
  }

  .ths-mqn__item{
    color:var(--ths-mobile-text) !important;
    font-weight:700 !important;
    letter-spacing:-0.01em !important;
  }

  .ths-mqn__label{
    color:inherit !important;
  }

  .ths-mqn__item.is-cta{
    color:#3b2718 !important; /* dark brown on orange */
    font-weight:800 !important;
  }

  .ths-mqn__item.is-cta .ths-mqn__label{
    color:#3b2718 !important;
  }

  .ths-mqn__item.is-cta:hover,
  .ths-mqn__item.is-cta:focus-visible{
    color:#2f2116 !important;
  }
}

/* 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;}
}
