/* Master-trip geometry only. Keep the approved DOM, palette, typography families
   and native booking states. Studio's two-ID edits share this retained layer. */
@layer aawara-version-one {
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553){
  --tm-gallery-height:320px;--tm-title-size:34px;--tm-control-min:40px;
  --tm-nav-link-min:36px;--tm-nav-pad:3px;--tm-sidebar-width:320px;
 }
 /* The existing header is inside the hero widget. Fixed placement escapes that
    sticky boundary; matching top padding preserves the original document flow. */
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .aw-header{
  position:fixed!important;left:0!important;right:0!important;top:var(--aw-admin-height,0px)!important;
  width:100%!important;max-width:none!important;margin:0!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-trip-top{padding-top:var(--aw-header-height,64px)!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(#nc-trip-top .nc-shell,#wp-travel-trip-wrapper){
  box-sizing:border-box!important;width:min(var(--aw-content-max,1360px),calc(100% - 2 * var(--aw-gutter,24px)))!important;max-width:var(--aw-content-max,1360px)!important;
  padding-inline:0!important;margin-inline:auto!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #wp-travel-trip-wrapper>.row{
  display:grid!important;grid-template-columns:minmax(0,1fr) var(--tm-sidebar-width)!important;
  gap:20px!important;margin:0!important;align-items:start!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #primary{min-width:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-gallery{
  height:var(--tm-gallery-height)!important;min-height:0!important;gap:7px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-hero-wrap{margin-block:0 10px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title{
  height:auto!important;min-height:0!important;padding:8px 0 9px!important;margin:0!important;gap:14px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title>div{column-gap:18px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title h1{
  height:auto!important;min-height:0!important;font-size:var(--tm-title-size)!important;line-height:1.16!important;
  letter-spacing:-.035em!important;margin:0 0 6px!important;max-width:none!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title p{
  font-size:13px!important;line-height:1.4!important;margin:0!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title .cp-actions{margin-top:8px!important;gap:7px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.cp-actions>a,.cp-actions>button,.wpte-bf-btn,.wte-fsd__booknow-btn,.wte-fsd__availability-show-more,.wte-fsd__availability-show-less,.wpte-fsd-departures__more button,.wte-process-btn-next,.wte-process-btn-prev){
  box-sizing:border-box!important;height:auto!important;min-height:var(--tm-control-min)!important;max-height:none!important;
  padding:8px 12px!important;font-size:13px!important;line-height:1.3!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.wte-fsd__button,.ajs-read-more){
  box-sizing:border-box!important;height:auto!important;min-height:var(--tm-control-min)!important;padding:8px 12px!important;line-height:1.3!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .aib-button-label:not([hidden]){
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;min-width:44px!important;min-height:44px!important;height:auto!important;gap:8px!important;margin:0!important;padding:4px 0!important;line-height:1.3!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .wp-travel-engine-itinerary-header{align-items:center!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-hero-controls button,#nc-gallery .nc-close){
  box-sizing:border-box!important;width:var(--tm-control-min)!important;height:var(--tm-control-min)!important;
  min-width:var(--tm-control-min)!important;min-height:var(--tm-control-min)!important;padding:9px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-hero-controls{
  height:auto!important;gap:2px!important;padding:3px!important;right:9px!important;bottom:9px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-hero-controls .ajs-view-photos{
  width:auto!important;min-width:0!important;padding:8px 10px!important;font-size:12px!important;line-height:1.3!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-hero-controls svg{width:16px!important;height:16px!important;flex:none!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats{
  margin-top:0!important;height:auto!important;min-height:0!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats>div{padding:9px 12px!important;min-width:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats small{font-size:9.5px!important;line-height:1.3!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats strong{font-size:13px!important;line-height:1.35!important;margin-top:3px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-nav{
  box-sizing:border-box!important;height:auto!important;min-height:44px!important;padding:var(--tm-nav-pad)!important;
  gap:4px!important;margin-block:7px 8px!important;scroll-padding-inline:5px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-nav a{
  box-sizing:border-box!important;height:auto!important;min-height:var(--tm-nav-link-min)!important;
  padding:7px 11px!important;font-size:13px!important;line-height:1.3!important;white-space:nowrap!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(section[id],h2[id],h3[id],.nc-anchor,.nc-panel,.tab-content,#aa-before-go,#nc-faq,#nc-prepare){
  /* The document's measured scroll-padding supplies this offset once. */
  scroll-margin-top:0!important;
 }
 /* The booking and enquiry panel stays within the usable desktop viewport. */
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary{
  box-sizing:border-box!important;position:sticky!important;
  top:calc(var(--aw-top-offset,var(--aw-header-height,64px)) + var(--aw-section-nav-height,0px) + 16px)!important;
  width:var(--tm-sidebar-width)!important;max-width:100%!important;min-width:0!important;
  margin:16px 0 0!important;padding:0 3px 3px 0!important;align-self:start!important;
  max-height:calc(var(--aw-viewport-height,100dvh) - var(--aw-top-offset,var(--aw-header-height,64px)) - var(--aw-section-nav-height,0px) - var(--aw-bottom-clearance,0px) - 28px)!important;
  overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;scrollbar-gutter:stable;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .wpte-booking-area{padding:15px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary :is(.aw-trip-enquiry-inline,.nc-inline-enquiry){padding:16px!important;margin-top:12px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary :is(.nc-booktitle,.aw-trip-enquiry-inline h2){font-size:21px!important;line-height:1.2!important;margin-bottom:7px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary :is(.nc-booksub,.aw-trip-enquiry-inline>p){font-size:12px!important;line-height:1.45!important;margin-bottom:12px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-enquiry-form{padding:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid label{min-width:0!important;grid-column:auto!important;gap:4px!important;font-size:12px!important;line-height:1.35!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;
  min-height:var(--tm-control-min)!important;padding:9px 10px!important;font-size:14px!important;line-height:1.4!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-actions{gap:7px!important;flex-wrap:wrap!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-actions button.aw-button,
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary #enquiry_submit_button{
  box-sizing:border-box!important;height:auto!important;min-height:var(--tm-control-min)!important;max-width:100%!important;
  padding:8px 11px!important;font-size:12px!important;line-height:1.35!important;
 }
 /* Short rows retain natural wrapping for long routes, meals and notes. */
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.itinerary-row.ajs-day-v2,.itinerary-row.ajs-notes-v3){padding:0!important;margin-bottom:8px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .wte-itinerary-head-wrap{padding:0!important;margin:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .accordion-tabs-toggle{
  box-sizing:border-box!important;grid-template-columns:auto minmax(0,1fr) 28px!important;
  width:100%!important;min-width:0!important;min-height:46px!important;height:auto!important;padding:8px 10px!important;gap:7px 9px!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-day-v2 .ajs-day-kicker{padding:5px 8px!important;font-size:12px!important;line-height:1.3!important;align-self:center!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-day-v2 .ajs-day-title{font-size:16px!important;line-height:1.3!important;min-width:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .rotator{
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:7px!important;align-self:center!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .itinerary-content{padding:0 12px 11px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .itinerary-content :is(p,li){font-size:14px!important;line-height:1.55!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .itinerary-content p{margin-bottom:7px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #tabs-container .tab-content h2{font-size:24px!important;line-height:1.22!important;margin-bottom:12px!important}
 /* Natural image dimensions remove the fixed-height green letterbox. */
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery{
  box-sizing:border-box!important;width:min(960px,calc(100% - 24px))!important;min-width:0!important;max-width:calc(100% - 24px)!important;
  /* Auto height stretches between the native modal's opposing insets. */
  height:fit-content!important;min-height:0!important;max-height:calc(var(--aw-viewport-height,100dvh) - 24px)!important;
  margin:auto!important;padding:12px!important;overflow:auto!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-dialog-head{
  position:sticky!important;top:0!important;z-index:2!important;background:inherit!important;
  gap:12px!important;min-height:var(--tm-control-min)!important;margin:0 0 8px!important;padding:0!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-dialog-head h2{font-size:19px!important;line-height:1.25!important;margin:0!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-gallery-full{
  display:block!important;width:auto!important;height:auto!important;min-height:0!important;
  max-width:100%!important;max-height:calc(var(--aw-viewport-height,100dvh) - 156px)!important;
  object-fit:contain!important;margin:0 auto!important;background:transparent!important;
 }
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-close{flex-shrink:0!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-gallery-controls{gap:8px!important;margin-top:10px!important}
 html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-gallery-controls button{height:auto!important;min-height:var(--tm-control-min)!important;padding:8px 12px!important;font-size:13px!important;line-height:1.3!important}
 @media(max-width:1024px){
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553){--tm-gallery-height:250px;--tm-title-size:32px}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #wp-travel-trip-wrapper>.row{gap:16px!important}
 }
 @media(max-width:800px){
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553){--tm-control-min:44px;--tm-nav-link-min:44px;--tm-nav-pad:1px}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #wp-travel-trip-wrapper>.row{display:flex!important;flex-direction:column!important;gap:0!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary{position:static!important;width:100%!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto;margin:12px 0 16px!important;padding:0!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-nav{min-height:48px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title .cp-actions{margin-top:9px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
 @media(max-width:700px){
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553){--tm-gallery-height:230px;--tm-title-size:26px}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title{padding:6px 0 8px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-title p{font-size:12px!important;line-height:1.4!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats>div{padding:9px 10px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-stats strong{font-size:12px!important;line-height:1.4!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-nav a{padding:8px 10px!important;font-size:12px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .accordion-tabs-toggle{min-height:54px!important;padding:9px!important;grid-template-columns:auto minmax(0,1fr) 30px!important;gap:6px 8px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-day-v2 .ajs-day-kicker{padding:5px 7px!important;font-size:11px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .ajs-day-v2 .ajs-day-title{font-size:15px!important;line-height:1.35!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) :is(.ajs-day-v2,.ajs-notes-v3) .rotator{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:8px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid{grid-template-columns:minmax(0,1fr)!important}
  /* Preserve the phone input size that avoids automatic iPhone focus zoom. */
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary .aw-form-grid :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #tabs-container .tab-content h2{font-size:22px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery{padding:10px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-dialog-head h2{font-size:17px!important}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #nc-gallery .nc-gallery-full{max-height:calc(var(--aw-viewport-height,100dvh) - 156px)!important}
 }
 @media(pointer:coarse){
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553){--tm-control-min:44px;--tm-nav-link-min:44px;--tm-nav-pad:1px}
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) .nc-trip-nav{min-height:48px!important}
 }
 @media(max-height:500px) and (min-width:801px){
  html body.aw-crafted.ajs-master-trip.aa-master:not(.nc-export):not(.aw-template-553) #secondary{position:static!important;max-height:none!important;overflow:visible!important;scrollbar-gutter:auto}
 }
}
