/*
Theme Name: EcoSapa Bus Child
Theme URI: https://ecosapabus.net/
Description: Production-oriented EcoSapa child theme built on Travel Monster. Custom EcoSapa templates remain isolated from parent-theme updates.
Author: EcoSapa Bus
Author URI: https://ecosapabus.net/
Template: travel-monster
Version: 1.7.3
Text Domain: ecosapa-child
Requires PHP: 7.4
*/

/* Keep this file intentionally small. Homepage styles live in assets/css/ecosapa.css. */

/* ============================================================
   ECOSAPA GLOBAL TYPOGRAPHY — v1.5.1
   One readable type system across parent-theme pages, WP Travel Engine,
   posts, pages and EcoSapa templates. Avoid universal selectors so icon
   fonts and third-party controls keep working.
   ============================================================ */
:root{
  --ecosapa-font:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --ecosapa-text:#211d19;
  --ecosapa-muted:#514b45;
  --ecosapa-red:#ed1c24;
}
html{font-size:17px;}
body,
button,input,select,textarea,
.site,.site-content,.entry-content,.entry-summary,
.wp-travel-engine,.wpte-trip,.wpte-trip-content,.wte-trip-content,
.wte-booking,.wte-search-form{
  font-family:var(--ecosapa-font)!important;
}
body{
  color:var(--ecosapa-text);
  font-size:18px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5,h6,
.entry-title,.page-title,.site-title,
.wp-travel-engine h1,.wp-travel-engine h2,.wp-travel-engine h3,
.wpte-trip h1,.wpte-trip h2,.wpte-trip h3{
  font-family:var(--ecosapa-font)!important;
  font-weight:750;
  letter-spacing:-.025em;
  line-height:1.18;
}
p,li,td,th,label,button,input,select,textarea{font-size:inherit;}
button,.button,input[type="submit"],input[type="button"],a.button{
  font-family:var(--ecosapa-font)!important;
  font-weight:700;
}
@media(max-width:767px){
  html{font-size:16px;}
  body{font-size:17px;line-height:1.62;}
}

/* ============================================================
   ECOSAPA GLOBAL FRAME — v1.4.0
   Shared WordPress header/footer system. Footer copy is managed in Customizer;
   footer link columns are managed in Appearance > Menus.
   ============================================================ */
:root{
  --ecosapa-green:#083f34;
  --ecosapa-green-2:#0d5848;
  --ecosapa-red:#ed1c24;
  --ecosapa-cream:#fbf8f3;
  --ecosapa-line:rgba(255,255,255,.14);
}

/* The same two-line visual brand can be reused by future WordPress templates. */
nav.sitenav .nav-logo-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  line-height:1.08;
}
nav.sitenav .nav-logo-text strong{font-family:var(--ecosapa-font)!important;font-weight:800;}
nav.sitenav .nav-logo-text .nav-brand-tagline{font-family:var(--ecosapa-font)!important;}

.ecosapa-footer-shell{
  width:min(1440px,calc(100% - 48px));
  margin:0 auto;
}
.ecosapa-prefooter{
  padding:56px 0 0;
  background:#fff;
  font-family:var(--ecosapa-font);
}
.ecosapa-prefooter-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding:34px 38px;
  border:1px solid #eadfd5;
  border-radius:22px 22px 0 0;
  background:linear-gradient(120deg,#fff9f6 0%,#fff 55%,#f5fbf8 100%);
  box-shadow:0 12px 34px rgba(43,31,20,.06);
}
.ecosapa-prefooter-copy{max-width:770px;}
.ecosapa-prefooter-eyebrow{
  display:block;
  margin-bottom:7px;
  color:var(--ecosapa-red);
  font-size:.78rem;
  line-height:1;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ecosapa-prefooter h2{
  margin:0 0 8px;
  color:#171411;
  font-family:var(--ecosapa-font)!important;
  font-size:clamp(1.9rem,2.6vw,2.7rem);
  line-height:1.08;
  font-weight:850;
  letter-spacing:-.035em;
}
.ecosapa-prefooter p{
  margin:0;
  color:#4b443e;
  font-size:1.02rem;
  line-height:1.6;
}
.ecosapa-prefooter-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
}
.ecosapa-prefooter-primary,
.ecosapa-prefooter-secondary{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 20px;
  border-radius:12px;
  font-family:var(--ecosapa-font)!important;
  font-size:.94rem;
  font-weight:800;
  text-decoration:none!important;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.ecosapa-prefooter-primary{
  border:1px solid #d9141c;
  background:var(--ecosapa-red);
  color:#fff!important;
  box-shadow:0 8px 20px rgba(237,28,36,.18);
}
.ecosapa-prefooter-secondary{
  border:1px solid #0b5545;
  background:#fff;
  color:#0b5545!important;
}
.ecosapa-prefooter-primary:hover,
.ecosapa-prefooter-secondary:hover{transform:translateY(-1px);opacity:1;}

footer.ecosapa-global-footer{
  margin:0!important;
  padding:54px 0 0!important;
  background:#063b31!important;
  color:rgba(255,255,255,.82)!important;
  font-family:var(--ecosapa-font)!important;
}
.ecosapa-footer-grid{
  display:grid;
  grid-template-columns:minmax(280px,1.7fr) repeat(5,minmax(130px,1fr));
  gap:32px;
  align-items:start;
}
.ecosapa-footer-brand-link{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff!important;
  text-decoration:none!important;
}
.ecosapa-footer-brand-link img{
  width:52px!important;
  height:52px!important;
  flex:0 0 52px;
  object-fit:contain!important;
  filter:none!important;
}
.ecosapa-footer-brand-link span{display:flex;flex-direction:column;gap:3px;min-width:0;}
.ecosapa-footer-brand-link strong{
  color:#fff!important;
  font-family:var(--ecosapa-font)!important;
  font-size:1.16rem;
  line-height:1.1;
  font-weight:800;
}
.ecosapa-footer-brand-link small{
  color:rgba(255,255,255,.68);
  font-size:.78rem;
  line-height:1.35;
  font-weight:650;
}
.ecosapa-footer-about{
  max-width:390px;
  margin:17px 0 18px!important;
  color:rgba(255,255,255,.72)!important;
  font-size:.94rem!important;
  line-height:1.68!important;
}
.ecosapa-footer-contact{display:grid;gap:8px;}
.ecosapa-footer-contact a{
  display:flex;
  align-items:center;
  gap:9px;
  color:rgba(255,255,255,.88)!important;
  font-size:.88rem!important;
  font-weight:650;
  text-decoration:none!important;
  overflow-wrap:anywhere;
}
.footer-contact-icon{
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  flex:0 0 27px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:8px;
  background:rgba(255,255,255,.07);
  color:#fff;
  font-size:.67rem;
  font-style:normal;
  font-weight:850;
}
.ecosapa-footer-social{display:flex;gap:8px;margin-top:18px;}
.ecosapa-footer-social a{
  width:35px;
  height:35px;
  display:grid!important;
  place-items:center;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:rgba(255,255,255,.07);
  color:#fff!important;
  font-family:var(--ecosapa-font)!important;
  font-size:.72rem!important;
  line-height:1!important;
  font-weight:850!important;
  text-decoration:none!important;
}
.ecosapa-footer-social a:hover{background:rgba(255,255,255,.14);opacity:1;}
.ecosapa-footer-col h3{
  margin:4px 0 16px!important;
  padding:0 0 10px!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  color:#fff!important;
  font-family:var(--ecosapa-font)!important;
  font-size:.84rem!important;
  line-height:1.2!important;
  font-weight:850!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
}
.ecosapa-footer-menu{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
.ecosapa-footer-menu li{margin:0 0 9px!important;padding:0!important;}
.ecosapa-footer-menu a{
  display:inline!important;
  margin:0!important;
  padding:0!important;
  color:rgba(255,255,255,.72)!important;
  font-family:var(--ecosapa-font)!important;
  font-size:.88rem!important;
  line-height:1.45!important;
  font-weight:550!important;
  text-decoration:none!important;
}
.ecosapa-footer-menu a:hover{color:#fff!important;opacity:1;}
.footer-menu-note{
  color:rgba(255,255,255,.46)!important;
  font-size:.86rem!important;
  line-height:1.45!important;
}
.ecosapa-footer-trust{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  margin-top:42px;
  border-top:1px solid rgba(255,255,255,.13);
  border-bottom:1px solid rgba(255,255,255,.13);
}
.ecosapa-footer-trust span{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:66px;
  padding:10px 18px;
  border-right:1px solid rgba(255,255,255,.13);
  color:rgba(255,255,255,.82);
  font-size:.88rem;
  font-weight:700;
  text-align:center;
}
.ecosapa-footer-trust span:last-child{border-right:0;}
.ecosapa-footer-trust i{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  border-radius:50%;
  background:rgba(255,255,255,.11);
  color:#8ce1b9;
  font-size:.75rem;
  font-style:normal;
  font-weight:900;
}
.ecosapa-footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:72px;
  padding:18px 0 22px;
  color:rgba(255,255,255,.46);
  font-size:.8rem;
}
.ecosapa-footer-bottom nav{display:flex;gap:18px;flex-wrap:wrap;}
.ecosapa-footer-bottom a{
  color:rgba(255,255,255,.58)!important;
  font-size:inherit!important;
  text-decoration:none!important;
}
.ecosapa-footer-bottom a:hover{color:#fff!important;opacity:1;}

@media(max-width:1260px){
  .ecosapa-footer-grid{grid-template-columns:1.5fr repeat(3,1fr);}
  .ecosapa-footer-brand{grid-row:span 2;}
}
@media(max-width:900px){
  .ecosapa-prefooter-card{align-items:flex-start;flex-direction:column;padding:30px;}
  .ecosapa-prefooter-actions{width:100%;}
  .ecosapa-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .ecosapa-footer-brand{grid-column:1/-1;grid-row:auto;}
  .ecosapa-footer-about{max-width:680px;}
}
@media(max-width:600px){
  .ecosapa-footer-shell{width:min(100% - 28px,1440px);}
  .ecosapa-prefooter{padding-top:38px;}
  .ecosapa-prefooter-card{padding:24px 20px;border-radius:18px 18px 0 0;gap:22px;}
  .ecosapa-prefooter-actions{flex-direction:column;align-items:stretch;}
  .ecosapa-prefooter-primary,.ecosapa-prefooter-secondary{width:100%;}
  footer.ecosapa-global-footer{padding-top:38px!important;}
  .ecosapa-footer-grid{grid-template-columns:1fr;gap:28px;}
  .ecosapa-footer-brand{grid-column:auto;}
  .ecosapa-footer-trust{grid-template-columns:1fr 1fr;margin-top:34px;}
  .ecosapa-footer-trust span{min-height:58px;border-bottom:1px solid rgba(255,255,255,.13);}
  .ecosapa-footer-trust span:nth-child(2n){border-right:0;}
  .ecosapa-footer-trust span:nth-last-child(-n+2){border-bottom:0;}
  .ecosapa-footer-bottom{align-items:flex-start;flex-direction:column;gap:9px;padding:18px 0 24px;}
}

/* --- Global EcoSapa header / WordPress frame --- */
#prog{
  position:fixed;
  top:0;
  left:0;
  width:0;
  height:3px;
  z-index:100000;
  background:linear-gradient(90deg,var(--ecosapa-red),#ff7378);
  transition:width .08s linear;
}
.topbar{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:6px 18px;
  background:#063b31;
  color:rgba(255,255,255,.78);
  font-family:var(--ecosapa-font)!important;
  font-size:.76rem;
  line-height:1.2;
}
.topbar a{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:rgba(255,255,255,.9)!important;
  font-size:inherit!important;
  font-weight:650;
  text-decoration:none!important;
}
.topbar svg{width:13px;height:13px;fill:currentColor;}
.tb-div{width:1px;height:13px;background:rgba(255,255,255,.22);}
nav.sitenav{
  position:sticky!important;
  top:0!important;
  z-index:9990!important;
  width:100%!important;
  background:#fff!important;
  border:0!important;
  border-bottom:1px solid #ece6df!important;
  box-shadow:0 3px 15px rgba(30,23,16,.045)!important;
}
nav.sitenav.is-scrolled{box-shadow:0 8px 24px rgba(30,23,16,.09)!important;}
nav.sitenav .nav-inner{
  width:min(1440px,100% - 36px)!important;
  max-width:1440px!important;
  min-height:68px!important;
  height:68px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
}
nav.sitenav .nav-logo{
  min-width:210px!important;
  max-width:245px!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
  color:inherit!important;
  text-decoration:none!important;
}
nav.sitenav .nav-logo img{
  width:42px!important;
  height:42px!important;
  flex:0 0 42px!important;
  object-fit:contain!important;
}
nav.sitenav .nav-logo-text{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:3px!important;
  line-height:1.08!important;
}
nav.sitenav .nav-logo-text strong{
  color:#0b493c!important;
  font-size:16.5px!important;
  line-height:1.05!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
nav.sitenav .nav-brand-tagline{
  color:#655e57!important;
  font-size:12.5px!important;
  line-height:1.15!important;
  font-weight:650!important;
  white-space:nowrap!important;
}
.ecosapa-primary-menu,
.ecosapa-primary-menu ul,
.ecosapa-mobile-menu,
.ecosapa-mobile-menu ul{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
}
.ecosapa-primary-menu.pro-nav-links{
  min-width:0!important;
  flex:1 1 auto!important;
  height:68px!important;
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:18px!important;
  margin:0!important;
}
.ecosapa-primary-menu > li{
  position:relative!important;
  height:68px!important;
  display:flex!important;
  align-items:stretch!important;
  margin:0!important;
}
.ecosapa-primary-menu > li > a{
  position:relative!important;
  height:68px!important;
  display:flex!important;
  align-items:center!important;
  padding:0!important;
  color:#29241f!important;
  background:none!important;
  border:0!important;
  font-family:var(--ecosapa-font)!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:750!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.ecosapa-primary-menu > li > a::after{
  content:'';
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3px;
  border-radius:3px 3px 0 0;
  background:var(--ecosapa-red);
  transform:scaleX(0);
  transition:transform .18s ease;
}
.ecosapa-primary-menu > li:hover > a,
.ecosapa-primary-menu > li:focus-within > a,
.ecosapa-primary-menu > .current-menu-item > a,
.ecosapa-primary-menu > .current-menu-parent > a,
.ecosapa-primary-menu > .current-menu-ancestor > a{color:var(--ecosapa-red)!important;}
.ecosapa-primary-menu > li:hover > a::after,
.ecosapa-primary-menu > li:focus-within > a::after,
.ecosapa-primary-menu > .current-menu-item > a::after,
.ecosapa-primary-menu > .current-menu-parent > a::after,
.ecosapa-primary-menu > .current-menu-ancestor > a::after{transform:scaleX(1);}
.ecosapa-primary-menu > li.menu-item-has-children > a{padding-right:16px!important;}
.ecosapa-primary-menu > li.menu-item-has-children > a::before{
  content:'⌄';
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-55%);
  color:#746d66;
  font-size:10px;
  font-weight:800;
}
.ecosapa-primary-menu .sub-menu{
  display:none!important;
  position:absolute!important;
  top:62px!important;
  left:-18px!important;
  z-index:10000!important;
  min-width:250px!important;
  padding:9px!important;
  border:1px solid #e8e1da!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 18px 46px rgba(7,46,38,.14)!important;
}
.ecosapa-primary-menu li:hover > .sub-menu,
.ecosapa-primary-menu li:focus-within > .sub-menu{display:block!important;}
.ecosapa-primary-menu .sub-menu li{position:relative!important;margin:0!important;}
.ecosapa-primary-menu .sub-menu a{
  display:block!important;
  padding:10px 12px!important;
  border-radius:9px!important;
  color:#2d2823!important;
  font-family:var(--ecosapa-font)!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.ecosapa-primary-menu .sub-menu a:hover,
.ecosapa-primary-menu .sub-menu .current-menu-item > a{background:#fff1f2!important;color:var(--ecosapa-red)!important;}
.ecosapa-primary-menu .sub-menu .sub-menu{top:-9px!important;left:calc(100% + 8px)!important;}
.ecosapa-submenu-toggle{display:none!important;}
.pro-nav-actions{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}
.pro-book-cta{
  min-height:42px!important;
  height:42px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 16px!important;
  border:1px solid #d9151d!important;
  border-radius:11px!important;
  background:var(--ecosapa-red)!important;
  color:#fff!important;
  box-shadow:0 7px 18px rgba(237,28,36,.17)!important;
  font-family:var(--ecosapa-font)!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.pro-book-cta svg{width:16px!important;height:16px!important;fill:currentColor!important;}
.nav-ham{
  display:none;
  width:42px;
  height:42px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
  border:1px solid #e8e1da;
  border-radius:11px;
  background:#fff;
}
.nav-ham span{display:block;width:20px;height:2px;border-radius:2px;background:#27221d;}
.mob-menu{
  display:none;
  position:fixed;
  inset:0;
  z-index:10050;
  padding:20px;
  overflow:auto;
  background:#fff;
}
.mob-menu.open{display:block!important;}
.pro-mobile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:1px solid #ece5de;
}
.pro-mobile-head > div{display:flex;flex-direction:column;gap:4px;}
.pro-mobile-head strong{color:#0b493c;font-size:1.08rem;font-weight:800;}
.pro-mobile-head span{color:#655e57;font-size:.82rem;font-weight:650;}
.mob-close{
  width:40px;
  height:40px;
  border:1px solid #e8e1da;
  border-radius:10px;
  background:#fff;
  color:#2a2520;
  font-size:18px;
}
.ecosapa-mobile-menu > li{position:relative;border-bottom:1px solid #eee9e2;}
.ecosapa-mobile-menu li > a{
  display:block!important;
  padding:14px 44px 14px 4px!important;
  color:#28231f!important;
  font-size:16px!important;
  line-height:1.35!important;
  font-weight:750!important;
  text-decoration:none!important;
}
.ecosapa-mobile-menu .ecosapa-submenu-toggle{
  display:grid!important;
  place-items:center!important;
  position:absolute!important;
  top:8px!important;
  right:0!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  border:1px solid #e8e1da!important;
  border-radius:10px!important;
  background:#fff!important;
}
.ecosapa-mobile-menu .sub-menu{
  display:none!important;
  margin:0 0 10px!important;
  padding:7px!important;
  border:1px solid #eee4df!important;
  border-radius:12px!important;
  background:#faf8f5!important;
}
.ecosapa-mobile-menu .submenu-open > .sub-menu{display:block!important;}
.ecosapa-mobile-menu .sub-menu a{padding:10px 11px!important;font-size:14px!important;}
.mob-wa.pro-mobile-cta{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:50px!important;
  margin-top:18px!important;
  border-radius:12px!important;
  background:var(--ecosapa-red)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.ecosapa-wp-site,
.ecosapa-wp-content{width:100%;max-width:none;}
.ecosapa-wp-content{min-height:52vh;}

@media(max-width:1320px){
  nav.sitenav .nav-logo{min-width:190px!important;max-width:215px!important;}
  .ecosapa-primary-menu.pro-nav-links{gap:14px!important;}
  .ecosapa-primary-menu > li > a{font-size:14px!important;}
  nav.sitenav .nav-brand-tagline{font-size:11.8px!important;}
}
@media(max-width:1140px){
  nav.sitenav .nav-brand-tagline{display:none!important;}
  nav.sitenav .nav-logo{min-width:auto!important;}
  .ecosapa-primary-menu.pro-nav-links{gap:11px!important;}
}
@media(max-width:1040px){
  .topbar{display:none!important;}
  nav.sitenav .nav-inner{width:min(100% - 28px,1440px)!important;min-height:62px!important;height:62px!important;}
  nav.sitenav .nav-logo img{width:38px!important;height:38px!important;flex-basis:38px!important;}
  .ecosapa-primary-menu.pro-nav-links,.pro-nav-actions{display:none!important;}
  .nav-ham{display:flex!important;margin-left:auto;}
}
