/* RC5.1 · Travel tabs only. Marga owns the content; Core only stabilises state. */
.vmon-marga-page .h-tabs .h-tabs-item-content.hide{display:none!important}
.vmon-marga-page .h-tabs .h-tabs-item-content[hidden]{display:none!important}
.vmon-marga-page .h-tabs .h-tabs-item-content.h-tabs-content-active:not(.hide){display:block!important}
.vmon-marga-page .h-tabs-navigation-item[aria-selected="true"]{position:relative}
.vmon-marga-page #itinerario,
.vmon-marga-page #imagenes,
.vmon-marga-page #alojamiento,
.vmon-marga-page #precioIncluye{scroll-margin-top:110px!important}

/* Native-hash safety net: even if an optimiser delays JS, a direct URL such
   as /viaje/#imagenes or /viaje/#alojamiento must reveal that real panel. */
@supports selector(.h-tabs:has(#imagenes:target)){
  .vmon-marga-page .h-tabs:has(#itinerario:target,#imagenes:target,#alojamiento:target,#precioIncluye:target)>.h-tabs-item-content{display:none!important}
  .vmon-marga-page .h-tabs>#itinerario:target,
  .vmon-marga-page .h-tabs>#imagenes:target,
  .vmon-marga-page .h-tabs>#alojamiento:target,
  .vmon-marga-page .h-tabs>#precioIncluye:target{display:block!important}
}


/* VCTF4.0 / CORE: geometry contract for the whole trip-tabs component. */
.vmon-marga-page .md-template :where(.cth-trip-tabs-shell,.cth-trip-tabs,.cth-trip-tab-panel){width:100%!important;max-width:none!important;min-width:0!important;float:none!important;box-sizing:border-box!important}
.vmon-marga-page .md-template :where(.h-column,.h-column-container).cth-trip-tabs-shell{flex:0 0 100%!important;flex-basis:100%!important}
.vmon-marga-page .md-template .h-row.cth-trip-tabs-shell{display:block!important;margin-left:0!important;margin-right:0!important}
@supports selector(.md-template:has(#imagenes)){
  .vmon-marga-page .md-template :where(.h-row-container,.h-row,.h-column,.h-column-container,.h-column__inner,.h-column__content):has(:is(#itinerario,#imagenes,#alojamiento,#precioIncluye)){width:100%!important;max-width:none!important;min-width:0!important;float:none!important;box-sizing:border-box!important}
  .vmon-marga-page .md-template :where(.h-column,.h-column-container):has(:is(#itinerario,#imagenes,#alojamiento,#precioIncluye)){flex:0 0 100%!important;flex-basis:100%!important}
  .vmon-marga-page .md-template .h-row:has(:is(#itinerario,#imagenes,#alojamiento,#precioIncluye)){display:block!important;margin-left:0!important;margin-right:0!important}
}
.vmon-marga-page .md-template :where(.h-tabs,.h-tabs-navigation,.h-tabs-content,.h-tabs-item-content,#itinerario,#imagenes,#alojamiento,#precioIncluye){width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important}
