/* CONTUHIJO CORE · VCTF 5.8 CORE MASTER READY
   Final VCTF-only presentation safeguards. Protected Marga assets untouched. */

/* 1 · /buscador/ owns the real centred canvas. JS marks every legacy Colibri
   ancestor up to #content, so a forgotten h-col-lg-* can no longer trap the
   search in the left half of a wide screen. */
body.cth-brand--vctf.vmon-search-route .cth-vctf58-search-ancestor{
  width:100%!important;max-width:none!important;min-width:0!important;
  flex:0 0 100%!important;flex-basis:100%!important;float:none!important;
  margin-left:0!important;margin-right:0!important;box-sizing:border-box!important
}
body.cth-brand--vctf.vmon-search-route #content,
body.cth-brand--vctf.vmon-search-route #content.page-content{
  width:100%!important;max-width:none!important;min-width:0!important;margin-left:auto!important;margin-right:auto!important
}
body.cth-brand--vctf.vmon-search-route #buscador.md-template,
body.cth-brand--vctf.vmon-search-route #buscador{
  display:block!important;width:min(calc(100% - 32px),1240px)!important;max-width:1240px!important;
  min-width:0!important;margin-left:auto!important;margin-right:auto!important;float:none!important;box-sizing:border-box!important
}
body.cth-brand--vctf.vmon-search-route #buscador :where(form.h-px-2,.h-section-grid-container){width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
body.cth-brand--vctf.vmon-search-route #buscador form.h-px-2>.h-row>.h-column.h-col{width:100%!important;max-width:none!important;min-width:0!important;flex:0 0 100%!important}
body.cth-brand--vctf.vmon-search-route #buscador form.h-px-2>.h-row>.h-column.h-col>.h-row.gutters-col-2{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}

/* Search count sits on the navy results canvas. */
@media (min-width:981px){
  body.cth-brand--vctf.vmon-search-route #buscador form.h-px-2>.h-row>.h-column.h-col>.h-row:first-child{color:#fff!important;text-shadow:0 1px 1px rgba(0,0,0,.08)!important}
}

/* 2 · Search card facts: source values already exist; never let old dark-skin
   inheritance make them white on a white card again. */
body.cth-brand--vctf.vmon-search-route #buscador .travel-card :where(dt,dd),
body.cth-brand--vctf.vmon-search-route #buscador .travel-card :where(dt,dd) *,
body.cth-brand--vctf.vmon-search-route #buscador .md-trip-card :where(dt,dd),
body.cth-brand--vctf.vmon-search-route #buscador .md-trip-card :where(dt,dd) *{
  color:#26364b!important;opacity:1!important;text-shadow:none!important
}
body.cth-brand--vctf.vmon-search-route #buscador .travel-card dd,
body.cth-brand--vctf.vmon-search-route #buscador .md-trip-card dd{font-weight:900!important}
body.cth-brand--vctf.vmon-search-route #buscador .cth-vctf58-consult-value{color:#0b74d1!important;font-style:normal!important}

/* Available/complete/incomplete presentation remains subtle: source records are
   not deleted; cards are only ordered by usefulness in the browser. */
body.cth-brand--vctf.vmon-search-route #buscador .cth-vctf58-card-soldout{opacity:.82}
body.cth-brand--vctf.vmon-search-route #buscador .cth-vctf58-card-incomplete{outline:1px solid rgba(11,116,209,.12);outline-offset:-1px}

/* 3 · Sold-out trip contract: no reserve CTA. The server converts its href and
   label; this CSS is a second guard in case a cached fragment contains another
   reserve anchor. */
body.cth-brand--vctf.cth-vctf58-trip-soldout a[href*="/reserva"]{display:none!important}
body.cth-brand--vctf .cth-vctf58-alternative-cta{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:48px!important;
  padding:0 18px!important;border-radius:12px!important;background:#0b74d1!important;color:#fff!important;
  border:0!important;text-decoration:none!important;font-weight:950!important;box-shadow:0 10px 26px rgba(11,116,209,.22)!important
}

/* 4 · An empty price composition table is worse than no table. JS hides only a
   table whose price column has no numeric amount and inserts this explanation. */
body.cth-brand--vctf .cth-vctf58-empty-price-table{display:none!important}
body.cth-brand--vctf .cth-vctf58-price-note{
  width:100%!important;max-width:900px!important;margin:18px auto!important;padding:16px 18px!important;
  border:1px solid rgba(11,116,209,.18)!important;border-radius:14px!important;background:#f5f9ff!important;
  color:#26364b!important;font-size:.96rem!important;line-height:1.55!important;box-sizing:border-box!important
}
body.cth-brand--vctf .cth-vctf58-price-note strong{color:#092f57!important}

@media (max-width:980px){
  body.cth-brand--vctf.vmon-search-route #buscador.md-template,
  body.cth-brand--vctf.vmon-search-route #buscador{width:min(calc(100% - 24px),1240px)!important}
}
