/* Andes VIP - mobile-first layout correction for journey choices. */
@media (max-width: 767px) {
  html,body,#root {max-width:100%;overflow-x:clip}
  .av-galapagos-section,.av-galapagos-shell {box-sizing:border-box;width:100%;max-width:100%;min-width:0}
  .av-galapagos-section {padding:44px 16px!important}
  .av-journey-options {display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:100%!important;margin:0 0 38px!important}
  .av-journey-option,.av-journey-option.is-featured {position:relative!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;min-height:0!important;padding:25px 22px!important;margin:0!important;overflow:visible!important;transform:none!important}
  .av-journey-option strong {position:static!important;display:block!important;max-width:100%!important;margin:0 0 12px!important;padding:0!important;font-size:clamp(23px,6.3vw,30px)!important;line-height:1.18!important;overflow-wrap:break-word!important;word-break:normal!important}
  .av-journey-option span {position:static!important;display:block!important;margin:0!important;padding:0!important;font-size:clamp(16px,4.25vw,19px)!important;line-height:1.55!important;overflow-wrap:anywhere!important}
  .av-journey-option svg,.av-journey-option .icon {position:static!important;display:block!important;float:none!important;transform:none!important;margin:0 0 16px!important;width:36px!important;height:36px!important;max-width:100%!important}
  .av-journey-option.is-featured span {color:rgba(255,255,255,.88)!important}
  .av-yacht-grid {grid-template-columns:minmax(0,1fr)!important}
  .av-yacht-card,.av-yacht-body,.av-yacht-price,.av-yacht-links {min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .av-yacht-price strong {overflow-wrap:anywhere}
  .journey-strip {display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .journey-strip>div {min-width:0!important;min-height:0!important;padding:22px 20px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  .journey-strip strong,.journey-strip span {overflow-wrap:anywhere}
}
@media (min-width:768px) and (max-width:1024px) {
  .av-journey-options {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .av-journey-option {min-width:0!important}
}

/* Final mobile override: remove square aspect ratios and position the decorative
   yacht/mountain icon above the text, never on top of a heading. */
@media (max-width: 767px) {
  .av-journey-options {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
    align-items:stretch!important;
  }
  .av-journey-option,
  .av-journey-option.is-featured,
  .av-journey-option:nth-child(3) {
    aspect-ratio:auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    grid-column:auto!important;
    justify-self:stretch!important;
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:flex-start!important;
    padding:22px 20px 24px!important;
    overflow:visible!important;
  }
  .av-journey-option::before,
  .av-journey-option.is-featured::before {
    content:""!important;
    display:block!important;
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    top:auto!important;
    flex:0 0 34px!important;
    width:34px!important;
    height:34px!important;
    margin:0 0 15px!important;
    transform:none!important;
  }
  .av-journey-option strong {
    position:relative!important;
    z-index:1!important;
    width:100%!important;
    margin:0 0 10px!important;
    font-size:clamp(22px,6vw,30px)!important;
    line-height:1.2!important;
    overflow-wrap:break-word!important;
  }
  .av-journey-option span {
    width:100%!important;
    font-size:clamp(16px,4.25vw,19px)!important;
    line-height:1.45!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
}
