/*
Theme Name: Tàu Xe – Hải Trình
Description: Giao diện tuyến tàu, limousine và dịch vụ vận chuyển cho Tauxe.com.vn.
Version: 1.2.0
Text Domain: tauxe-hai-trinh
*/
body.tx-site{--ink:#102f3e;--sea:#086c74;--line:#cbdadb;--sun:#ffad55;background:white;color:var(--ink);font:17px/1.6 system-ui,Arial,sans-serif;margin:0}
.tx-site *{box-sizing:border-box}
.tx-site :focus-visible{outline:3px solid #e75c14;outline-offset:4px}
.tx-wrap{width:min(1180px,calc(100% - 48px));margin-inline:auto}
.tx-site :is(h1,h2,h3){font-family:inherit;color:inherit;line-height:1.16;font-weight:750;margin:0 0 .55em;letter-spacing:-.035em}
.tx-site h1{font-size:clamp(2.2rem,5vw,4.8rem)}
.tx-site h2{font-size:clamp(1.55rem,3vw,2.55rem)}
.tx-site h3{font-size:1.4rem}
.tx-header{background:white;border-bottom:1px solid var(--line);position:relative;z-index:5}
.tx-bar,.tx-brand,.tx-nav,.tx-actions,.tx-service-links,.tx-route-box{display:flex;align-items:center}
.tx-bar{min-height:78px;gap:24px;justify-content:space-between}
.tx-site a.tx-brand,.tx-site .tx-brand:hover{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none}
.tx-word{font-size:1.9rem;line-height:1;font-weight:850;letter-spacing:-.09em}.tx-word span{color:var(--sea)}
.tx-mark{position:relative;width:47px;height:40px;display:inline-block;background:var(--ink);border-radius:12px 3px 12px 3px}
.tx-mark i,.tx-mark b{position:absolute;background:white;transform:skewX(-23deg)}
.tx-mark i{width:19px;height:8px;left:15px;top:9px;border-radius:1px 5px 0 0}
.tx-mark b{width:31px;height:7px;left:8px;top:19px;background:var(--sun);border-radius:0 0 6px 4px}
.tx-mark:after{content:'';position:absolute;width:19px;height:2px;left:9px;top:30px;background:white;box-shadow:7px 4px 0 -0.3px white}
.tx-nav{gap:clamp(10px,2vw,26px)}.tx-nav a,.tx-phone,.tx-menu a,.tx-crumb a{color:var(--ink);text-decoration:none}.tx-nav a,.tx-phone,.tx-menu summary{font-weight:650;font-size:.94rem}.tx-phone{border:1px solid var(--line);border-radius:30px;padding:6px 15px;white-space:nowrap}
.tx-menu{display:none}.tx-skip{position:absolute;left:-9999px}.tx-skip:focus{left:10px;top:0;z-index:10;background:white}
.tx-hero,.tx-feature{position:relative;isolation:isolate;overflow:hidden;background:#114454;color:white}
.tx-hero{display:grid;align-items:end;min-height:clamp(350px,46vw,560px);padding:4rem 0}
.tx-hero>img,.tx-feature>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.tx-hero:before,.tx-feature:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#092331df,#09233172 55%,transparent);z-index:-1}
.tx-site .tx-hero h1{color:white;font-size:clamp(3rem,6.25vw,6rem);letter-spacing:-.045em;line-height:1.02;text-shadow:0 2px 14px #102d3440}
.tx-hero h1 span{color:var(--sun)}.tx-actions,.tx-service-links{flex-wrap:wrap;gap:12px}
.tx-site a.tx-button,.tx-search button{display:inline-block;background:var(--sun);color:var(--ink);font-weight:700;border:0;border-radius:9px;text-decoration:none;padding:12px 20px}.tx-site .tx-button.tx-light{background:white}
.tx-section{padding-block:clamp(32px,4vw,64px)}.tx-section+.tx-section{padding-top:0}
.tx-dest{display:grid;grid-template-columns:1fr 1fr;gap:22px}.tx-feature{min-height:260px;display:flex;align-items:end;padding:26px;border-radius:18px}.tx-feature:before{background:linear-gradient(0deg,#092331f4,transparent)}
.tx-site .tx-feature h3{font-size:2.4rem;color:white}.tx-site .tx-feature,.tx-site .tx-feature:hover{color:white;text-decoration:none}
.tx-other{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tx-other a,.tx-service-links a{border:1px solid var(--line);color:var(--ink);border-radius:12px;padding:18px;text-decoration:none;background:#f4f8f7}
.tx-other a{display:flex;flex-direction:column;justify-content:end}.tx-other span,.tx-feature small,.tx-route-box small{font-size:.95rem}.tx-other span{color:var(--sea)}
.tx-site :is(.tx-other,.tx-service-links) a:hover{border-color:var(--sea);background:#e4f2ef}
.tx-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:24px}
.tx-cards article{border:1px solid var(--line);border-radius:14px;overflow:hidden;max-width:620px}.tx-cards a{display:block;color:var(--ink);text-decoration:none}.tx-cards img{width:100%;aspect-ratio:1.9;object-fit:cover}.tx-cards h2{font-size:1.35rem;padding:18px;margin:0}
.tx-copy{max-width:900px;margin:auto;overflow-wrap:anywhere}.tx-copy h1{font-size:clamp(2.2rem,4vw,3.7rem)}.tx-copy :is(h2,h3){margin-top:1.4em}.tx-copy img,.tx-copy iframe,.tx-copy figure{max-width:100%}.tx-copy img{height:auto}.tx-copy table{display:block;max-width:100%;overflow-x:auto}.tx-copy a,.tx-crumb a{text-decoration:underline}
.tx-route-box{justify-content:space-between;flex-wrap:wrap;gap:15px;background:#e6f2f0;padding:24px;border-radius:16px;margin:22px 0}.tx-route-box h2{font-size:1.7rem;margin:0}
.tx-search input{max-width:100%;border:1px solid var(--line);padding:10px}.tx-footer{margin-top:32px;background:#102f3e;color:#fff;padding:44px 0}.tx-footgrid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px}.tx-footer h2{font-size:1.15rem}.tx-footer nav a,.tx-footer p{display:block;color:#dce9e8;margin:4px 0}.tx-footer .tx-word span{color:var(--sun)}.tx-footer .tx-mark{outline:1px solid #74909b}
@media(max-width:960px){.tx-nav{display:none}.tx-menu{display:block}.tx-menu summary{cursor:pointer}.tx-menu nav{position:absolute;right:16px;top:90%;background:white;padding:16px 24px;box-shadow:0 8px 22px #102f3e28;border-radius:12px}.tx-menu a{display:block;padding:7px}.tx-phone{margin-left:auto}}
@media(max-width:680px){.tx-wrap{width:calc(100% - 32px)}.tx-bar{min-height:64px;gap:12px}.tx-phone{font-size:.84rem;padding:5px 8px}.tx-brand .tx-word{font-size:1.55rem}.tx-hero{padding:36px 0;min-height:360px}.tx-dest,.tx-footgrid{grid-template-columns:1fr}.tx-feature{min-height:210px}.tx-other a{padding:13px}.tx-other h3{font-size:1.25rem}.tx-footer{padding:30px 0}}
.tx-site .aligncenter{display:block;margin-inline:auto}.tx-site .alignleft{float:left;margin:0 1rem 1rem 0}.tx-site .alignright{float:right;margin:0 0 1rem 1rem}.tx-copy:after{content:'';display:block;clear:both}.tx-site iframe{border:0}.tx-copy p{margin:0 0 1em}.tx-copy figure{margin-inline:0}.tx-site .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.tx-site .nav-links{display:flex;flex-wrap:wrap;gap:12px;margin:1.5rem 0}.tx-site .nav-links a{color:var(--sea)}

/* Inner pages */
.tx-inner{padding-block:24px 40px}
.tx-inner .tx-crumb{display:flex;flex-wrap:wrap;align-items:baseline;gap:.5em;margin:0 0 22px;font-size:.875rem;color:#486671}
.tx-inner .tx-crumb a{color:#155d67;text-underline-offset:3px}
.tx-inner h1{font-size:clamp(1.9rem,3.7vw,3.1rem);line-height:1.13;letter-spacing:-.035em;text-wrap:balance}
.tx-inner .tx-copy{max-width:810px}
.tx-inner .tx-copy h2{font-size:clamp(1.45rem,2.6vw,2rem)}
.tx-inner .tx-archive-head{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:0 0 1.5rem;border-bottom:1px solid var(--line);margin-bottom:1.5rem}
.tx-archive-head h1{margin:0}
.tx-archive-head p,.tx-hub-lead{max-width:72ch;color:#405e68;margin:.65rem 0 0}
.tx-archive-head .tx-button{flex:none}
.tx-listing,.tx-destinations,.tx-choices{display:grid;gap:clamp(14px,2vw,24px);grid-template-columns:repeat(3,minmax(0,1fr))}
.tx-listing-compact,.tx-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.tx-result,.tx-location,.tx-choice{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff}
.tx-result a,.tx-location,.tx-choice{color:var(--ink);text-decoration:none}
.tx-result a,.tx-location{display:flex;flex-direction:column;height:100%}
.tx-result-photo,.tx-location-photo{width:100%;aspect-ratio:16/9;overflow:hidden;background:#edf3f2}
.tx-result-photo img,.tx-location-photo img{display:block;width:100%;height:100%;object-fit:cover}
.tx-inner .tx-result h2,.tx-inner .tx-location h2,.tx-inner .tx-choice h2{font-size:clamp(1.1rem,1.5vw,1.35rem);line-height:1.38;letter-spacing:-.018em;margin:0}
.tx-inner .tx-result h2{padding:16px 18px}
.tx-listing-compact .tx-result a{flex-direction:row;align-items:center;min-height:106px}
.tx-listing-compact .tx-result-photo{width:clamp(100px,12vw,145px);min-height:106px;align-self:stretch;flex-shrink:0;position:relative;aspect-ratio:auto}
.tx-listing-compact .tx-result-photo img{position:absolute;inset:0}
.tx-text-result a{justify-content:center;background:#f1f6f5;border-inline-start:4px solid #84b9b8}
.tx-listing-compact .tx-text-result a{justify-content:flex-start}
.tx-result:hover,.tx-location:hover,.tx-choice:hover{border-color:var(--sea)}
.tx-result a:hover h2,.tx-location:hover h2,.tx-choice:hover strong{text-decoration:underline;text-underline-offset:3px}
.tx-result:focus-within,.tx-location:focus-visible,.tx-choice:focus-visible{outline:3px solid var(--sea);outline-offset:2px}
.tx-hub-page>h1{margin-bottom:.3em}
.tx-hub-page h2{font-size:clamp(1.45rem,2.6vw,2rem)}
.tx-hub-page .tx-hub-lead{font-size:1.1rem;margin:0 0 1.35rem}
.tx-hub-page .tx-destinations,.tx-hub-page .tx-choices{margin:1rem 0 1.85rem}
.tx-location-copy,.tx-choice{padding:17px 19px}
.tx-location-copy p,.tx-hub-page .tx-choice span{margin:.4em 0 0;color:#486671;font-size:.97rem}
.tx-hub-page a.tx-choice{display:flex;flex-direction:column;justify-content:center}
.tx-hub-page .tx-choice strong{font-size:1.15rem}
.tx-hub-page .tx-choice span{color:#14636a}
.tx-hub-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin:1rem 0 1.65rem}
.tx-hub-actions>a:not(.tx-button){color:var(--sea);text-underline-offset:3px}
.tx-hub-note{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#e9f3f0;border-radius:14px;padding:16px 20px;margin:1.7rem 0}
.tx-hub-note p{margin:0}
.tx-hub-page .wp-block-latest-posts,.tx-hub-page ul.tx-story-links{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding:0;margin:.7rem 0 1.4rem}
.tx-hub-page .wp-block-latest-posts li,.tx-story-links li{border-bottom:1px solid var(--line);margin:0}
.tx-hub-page .wp-block-latest-posts li>a,.tx-story-links li>a{display:block;padding:12px 0;color:#184f5c;text-decoration:none;font-weight:610}
.tx-hub-page .wp-block-latest-posts li>a:hover,.tx-story-links li>a:hover{text-decoration:underline}
.tx-hub-page .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tx-hub-page .gallery .gallery-item{float:none;width:100%;max-width:none;margin:0}
.tx-hub-page .gallery img{width:100%;height:auto;display:block;border-radius:10px}
.tx-hub-page .gallery br{display:none}
.tx-booking-page{min-width:0}
.tx-site .txb-hero h1{color:white;font-size:clamp(1.9rem,4vw,3.25rem)}
.tx-site .txb-site iframe{max-width:100%}
@media (max-width:940px){.tx-listing:not(.tx-listing-compact){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:720px){.tx-listing-compact{grid-template-columns:1fr}.tx-destinations{grid-template-columns:1fr}.tx-location{display:grid;grid-template-columns:minmax(96px,30%) 1fr}.tx-location-photo{height:100%;min-height:125px;position:relative;aspect-ratio:auto}.tx-location-photo img{position:absolute;inset:0}.tx-archive-head{align-items:flex-start!important;flex-direction:column}.tx-hub-page .wp-block-latest-posts,.tx-hub-page ul.tx-story-links{grid-template-columns:1fr}}
@media (max-width:600px){.tx-inner{padding-top:16px}.tx-inner .tx-crumb{margin-bottom:16px}.tx-listing,.tx-listing:not(.tx-listing-compact),.tx-choices{grid-template-columns:1fr}.tx-listing-compact .tx-result a,.tx-listing-compact .tx-result-photo{min-height:88px}.tx-inner .tx-result h2{padding:13px 15px}.tx-hub-page .gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

.tx-service-toolbar{display:flex;flex-wrap:wrap;gap:16px;align-items:end;background:#edf5f3;border:1px solid var(--line);border-radius:14px;padding:18px 20px;margin:16px 0 22px}
.tx-service-toolbar label{display:grid;gap:6px;color:var(--ink);font-weight:650}
.tx-service-toolbar select,.tx-service-toolbar button{border:1px solid #a3b9bd;border-radius:8px;background:#fff;color:var(--ink);font:inherit;padding:9px 12px;min-height:45px}
.tx-service-toolbar button.tx-button{border-color:transparent;background:var(--sun);font-weight:700;cursor:pointer}
.tx-service-toolbar p{margin:0;font-size:.94rem}.tx-service-toolbar small,.tx-flight-help{color:#405e68}
.tx-flight-help a{color:var(--sea)}
.tx-prices-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.tx-price-item{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.tx-hub-page .tx-price-item h2{margin:0;background:#edf5f3;padding:13px 15px;font-size:1.18rem}
.tx-table-scroll{overflow:auto}.tx-price-item table{border-collapse:collapse;width:100%;font-size:.94rem}
.tx-price-item th,.tx-price-item td{text-align:left;padding:8px 12px;border-top:1px solid var(--line)}
.tx-price-item tbody th{font-weight:520}.tx-price-item td{text-align:right;white-space:nowrap}
.tx-price-item thead th:not(:first-child){text-align:right}
.tx-data-frame{background:#fff;display:block;width:100%;border:0}.tx-site [data-price-route][hidden]{display:none}
@media(max-width:720px){.tx-prices-list{grid-template-columns:1fr}.tx-service-toolbar{padding:14px}.tx-service-toolbar label{flex:1 1 155px}.tx-service-toolbar select{width:100%}.tx-price-item td,.tx-price-item th{padding:8px}}
