/* Only reviewed Yunnan tour and guide additions. No changes to content records. */
#tcyf-yunnan-page [data-ynr-action="line-pending"]{display:none!important}
.tcjy-route-overview{margin:0 0 20px;padding:18px 22px;border:1px solid #e2e6eb;border-radius:8px;background:#f5f7fa;color:#222}
.tcjy-route-overview dl{display:grid;grid-template-columns:1fr 1fr 2fr;gap:18px;margin:0}
.tcjy-route-overview dt{color:#60656b;font-size:13px;margin-bottom:5px}
.tcjy-route-overview dd{margin:0;font-size:16px;line-height:1.55;font-weight:600}
.tcjy-section-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}
.tcjy-section-nav a{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;border:1px solid #e2e6eb;border-radius:6px;color:#0868cf;background:#fff;text-decoration:none;font-size:15px;font-weight:600}
.tcjy-section-nav a:hover{background:#f5f7fa}
.tcjy-route-page #ynr-itinerary,.tcjy-route-page #ynr-hotels,.tcjy-route-page #ynr-costs{scroll-margin-top:24px}
.tcjy-cost-action{margin-top:24px}
.tcjy-guide-actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 28px}
.tcjy-link{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 18px;border:1px solid #0868cf;border-radius:6px;text-decoration:none!important;font-size:15px;line-height:1.5;font-weight:600;text-align:center}
.tcjy-primary{background:#0868cf;color:#fff!important}
.tcjy-secondary{background:#fff;color:#0868cf!important}
.tcjy-primary:hover{background:#0758af}
.tcjy-secondary:hover{background:#f5f7fa}
.tcjy-link:focus-visible,.tcjy-section-nav a:focus-visible,.tcjy-text-link:focus-visible,.tcjy-related-route a:focus-visible{outline:3px solid #0b4b91;outline-offset:4px}
.tcjy-guide-routes h2,.tcjy-related-guides h2{font-size:26px;line-height:1.4;color:#222}
.tcjy-guide-routes>p{max-width:760px;color:#60656b;line-height:1.75}
.tcjy-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.tcjy-related-route{padding:22px;border:1px solid #e2e6eb;border-radius:8px;background:#fff;min-width:0}
.tcjy-related-route .tcjy-meta{color:#60656b;font-size:13px;margin:0 0 10px}
.tcjy-related-route h3{font-size:20px;line-height:1.5;margin:0 0 12px}
.tcjy-related-route h3 a{color:#222;text-decoration:none}
.tcjy-related-route>p:not(.tcjy-meta){font-size:15px;line-height:1.75;color:#60656b}
.tcjy-text-link,.tcjy-related-guides a{color:#0868cf;line-height:1.6;text-underline-offset:3px}
.tcjy-related-guides li{margin:12px 0}
.tcjy-mobile-bar{display:none}
@media(max-width:720px){
 .tcjy-route-overview{padding:16px;margin-bottom:16px}
 .tcjy-route-overview dl{grid-template-columns:1fr 1fr;gap:14px}
 .tcjy-route-overview .tcjy-overview-route{grid-column:1/-1}
 .tcjy-route-overview dd{font-size:15px}
 .tcjy-section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .tcjy-section-nav a{padding:9px 5px;font-size:14px;text-align:center;justify-content:center}
 .tcjy-guide-actions{display:grid;grid-template-columns:1fr;margin:16px 0 24px}
 .tcjy-related-grid{grid-template-columns:1fr}
 .tcjy-related-route{padding:19px}
 .tcjy-guide-routes h2,.tcjy-related-guides h2{font-size:23px}
 .tcjy-cost-action .ynr-button{width:100%;white-space:normal;text-align:center}
 /* Older browsers retain the existing inline controls and generic navigation. */
 @supports selector(body:has(.tcjy-guide-actions)){
  .tcjy-route-page,.tcjy-guide-page{padding-bottom:80px}
  .tcjy-mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:80;display:grid;grid-template-columns:1fr 1.25fr;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e2e6eb;background:#fff;box-shadow:0 -3px 12px #172b4610}
  .tcjy-mobile-bar .tcjy-link{padding:10px 7px;font-size:13px;min-height:46px}
  #tcyf-yunnan-page .tcjy-route-mobile{display:block}
  #tcyf-yunnan-page .tcjy-route-mobile .ynr-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0}
  #tcyf-yunnan-page .tcjy-route-mobile .ynr-contact .ynr-button{font-size:13px;line-height:1.5;min-height:46px;padding:10px 7px;white-space:normal;display:flex;align-items:center;justify-content:center;text-align:center}
  #tcyf-yunnan-page .tcjy-route-mobile .ynr-contact:has(.ynr-line){grid-template-columns:repeat(3,minmax(0,1fr))}
  #tcyf-yunnan-page .tcjy-route-mobile .ynr-contact:not(:has(.ynr-whatsapp)):not(:has(.ynr-line)){grid-template-columns:1fr}
  body:has(.tcjy-guide-actions) .mobilebar{display:none!important}
  body:has(.tcjy-guide-actions) .float-wa{display:none!important}
  body:has(.ynr-privacy) .tcjy-mobile-bar,body:has(.tc-consent-banner) .tcjy-mobile-bar,body:has([role="dialog"][data-state="open"]) .tcjy-mobile-bar,body:has(.english-mobile-nav) .tcjy-mobile-bar{display:none!important}
 }
}

/* On small English screens, expose the existing language links when the menu opens. */
@media (max-width:350px) {
  #tripchina-root .topnav .navinner:has(> .english-mobile-menu[aria-expanded="true"]) {
    height:auto;flex-wrap:wrap;padding-block:12px;gap:8px;
  }
  #tripchina-root .topnav .navinner:has(> .english-mobile-menu[aria-expanded="true"]) > .tc-locale {
    display:block;order:3;flex-basis:100%;width:100%;min-width:0;margin-left:0;
  }
  #tripchina-root .topnav .navinner:has(> .english-mobile-menu[aria-expanded="true"]) .tc-locale-suggestion {display:none;}
  #tripchina-root .topnav .navinner:has(> .english-mobile-menu[aria-expanded="true"]) > .tc-locale > nav {
    display:flex;width:100%;
  }
  #tripchina-root .topnav .navinner:has(> .english-mobile-menu[aria-expanded="true"]) > .tc-locale > nav > :is(a,span) {
    display:flex;flex:1;min-height:44px;font-size:14px;padding:8px 10px;align-items:center;justify-content:center;
  }
}
