/* Landscape phones/tablets only: compact two-column calculator, never affect desktop laptops. */
@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px) {
  body:has(.btc-home-reference) .booking-section {position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;margin:0!important;transform:none!important;min-height:0!important;background:#061b2a!important;color:#fff!important;z-index:2!important;}
  body:has(.btc-home-reference) .booking-section>.auto-container {max-width:1180px!important;width:100%!important;margin:0 auto!important;padding:14px 20px 24px!important;}
  body:has(.btc-home-reference) #calcForm>.row {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:auto!important;gap:12px!important;align-items:stretch!important;}
  body:has(.btc-home-reference) #calcForm>.row>.form-group,body:has(.btc-home-reference) #calcForm>.row>.btc-desktop-total {grid-column:auto!important;grid-row:auto!important;position:static!important;min-width:0!important;width:100%!important;max-width:none!important;height:auto!important;}
  body:has(.btc-home-reference) #calcForm>.row>.form-group:has(.btc-tariff-option) {grid-column:1/-1!important;grid-row:auto!important;}
  body:has(.btc-home-reference) #calcForm>.row>.btc-map-toggle,body:has(.btc-home-reference) #calcForm>.row>.btc-quote-result {grid-column:1/-1!important;grid-row:auto!important;}
  body:has(.btc-home-reference) #calcForm>.row>.btc-stops {grid-column:1/-1!important;grid-row:auto!important;}
  body:has(.btc-home-reference) #calcForm .btc-tariff-option {min-width:0!important;}
  body:has(.btc-home-reference) .booking-section #getResults {width:100%!important;max-width:none!important;}
}
@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){html body:has(.btc-home-reference) section.booking-section #calcForm > .row{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto!important;grid-auto-flow:row!important;}html body:has(.btc-home-reference) section.booking-section #calcForm > .row > *{grid-column:auto!important;grid-row:auto!important;}html body:has(.btc-home-reference) section.booking-section #calcForm > .row > .form-group:has(.btc-tariff-option){grid-column:1/-1!important;}}

@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){body:has(.btc-home-reference) #calcForm>.row>.btc-map-toggle{grid-column:1/-1!important;grid-row:auto!important;}body:has(.btc-home-reference) #calcForm>.row>.btc-tariff-modal-enabled{grid-column:1/-1!important;grid-row:auto!important;}body:has(.btc-home-reference) #calcForm>.row>.btc-stops{grid-column:1/-1!important;grid-row:auto!important;}body:has(.btc-home-reference) #calcForm>.row{grid-auto-columns:minmax(0,1fr)!important;}}

@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){body:has(.btc-home-reference) #calcForm>.row>.btc-stops{display:block!important;grid-column:1/-1!important;}body:has(.btc-home-reference) #calcForm>.row>.form-group:has(.btc-tariff-option){display:block!important;grid-column:1/-1!important;}body:has(.btc-home-reference) #calcForm>.row>.btc-map-toggle{grid-column:1/-1!important;}}
/* Landscape touch final: flex composition prevents implicit grid tracks */
@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){
html body:has(.btc-home-reference) #calcForm > .row{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:12px!important;align-items:stretch!important;}
html body:has(.btc-home-reference) #calcForm > .row > *{box-sizing:border-box!important;order:50!important;grid-area:auto!important;min-width:0!important;max-width:100%!important;}
html body:has(.btc-home-reference) #calcForm > .row > .form-group{display:block!important;flex:0 0 calc(50% - 6px)!important;width:calc(50% - 6px)!important;margin:0!important;}
html body:has(.btc-home-reference) #calcForm > .row > .form-group.col-lg-6{order:1!important;}
html body:has(.btc-home-reference) #calcForm > .row > .btc-date-time-group{order:2!important;}
html body:has(.btc-home-reference) #calcForm > .row > .btc-stops{display:block!important;order:3!important;flex:0 0 calc(50% - 6px)!important;width:calc(50% - 6px)!important;}
html body:has(.btc-home-reference) #calcForm > .row > .form-group:has(.btc-tariff-option){order:5!important;flex:0 0 100%!important;width:100%!important;}
html body:has(.btc-home-reference) #calcForm > .row > .btc-map-toggle{order:6!important;flex:0 0 100%!important;width:100%!important;}
html body:has(.btc-home-reference) #calcForm > .row > .btc-desktop-total{order:7!important;flex:0 0 calc(50% - 6px)!important;width:calc(50% - 6px)!important;}
html body:has(.btc-home-reference) #calcForm > .row > .form-group:has(#getResults){order:8!important;flex:0 0 calc(50% - 6px)!important;width:calc(50% - 6px)!important;}
html body:has(.btc-home-reference) #calcForm > .row > .btc-extras{order:6!important;flex:0 0 100%!important;width:100%!important;}
}
/* Landscape touchscreen: tariff header before cards 20261009 */ @media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){body:has(.btc-home-reference) #calcForm .form-group:has(.btc-tariff-option)>.row>.col-md-12:first-child{display:flex!important;flex-direction:column!important;}body:has(.btc-home-reference) #calcForm .form-group:has(.btc-tariff-option) .input-outer:first-child{order:-2!important;margin:0 0 10px!important;display:flex!important;}body:has(.btc-home-reference) #calcForm .form-group:has(.btc-tariff-option) .dop-services{order:0!important;}body:has(.btc-home-reference) #calcForm .form-group:has(.btc-tariff-option) .input-outer:first-child label{color:#fff!important;background:transparent!important;}}

/* Landscape touch: opaque calculator surface, no white canvas 20261009 */
@media (orientation:landscape) and (pointer:coarse) and (min-width:1000px) and (max-height:900px){html body:has(.btc-home-reference) section.booking-section{background:#061b2a!important;background-color:#061b2a!important;background-image:none!important;}html body:has(.btc-home-reference) section.booking-section .auto-container{background:transparent!important;}}
