/* BeliTech 4.17.25. Presentation only, after the 4.17.23 wide canvas.
   Keep existing navigation, column counts, visibility rules and booking flow. */
:root {
  --bt-refine-page-gutter: var(--bst-redesign-gutter, 24px);
  --bt-refine-gap: clamp(16px, 1.5vw, 24px);
  --bt-refine-panel-padding: clamp(16px, 1.7vw, 24px);
}
/* Category surfaces follow the content edges, including the wider desktop cap.
   The 1640px canvas and its existing breakpoint remain owned by v41723. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root.bst-role-tourist .bst-home-category-rail > .bst-home-category-track,
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-shortcuts > .bt-od-shortcuts__inner {
  width:calc(100% - 2 * var(--bt-refine-page-gutter))!important;
  max-width:calc(var(--bst-redesign-container, 1320px) - 2 * var(--bt-refine-page-gutter))!important;
  gap:16px!important;
  padding:12px 20px!important;
}
/* Stretch only the outer directory canvas, preserving its sidebar and grid. */
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-discovery__inner {
  width:calc(100% - 2 * var(--bt-refine-page-gutter))!important;
  max-width:calc(var(--bst-redesign-container, 1320px) - 2 * var(--bt-refine-page-gutter))!important;
  gap:var(--bt-refine-gap)!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-belitec-results-head,.bst-airbnb-section-head),
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-results__heading {
  gap:12px 20px!important;
  flex-wrap:wrap!important;
  margin-bottom:18px!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-belitec-result-controls,
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-results__tools {
  display:flex;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;min-width:0;
}
/* Preserve media ratios and title limits. Let long metadata and prices wrap
   inside their card instead of pushing adjacent actions out of the column. */
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-listing-card__body,.bst-listing-card__price-row,.bst-listing-card__title-row),
body:not(.wp-admin) #bt-editorial-directory.bt-od :is(.bt-od-card__body,.bt-od-card__footer) {box-sizing:border-box!important;min-width:0!important;}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-listing-card__price-row {flex-wrap:wrap!important;row-gap:6px!important;}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-listing-card__host,.bst-listing-card__availability),
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-card__body {overflow-wrap:anywhere;}
body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-card__view {margin-top:auto!important;}
/* Match the existing control and card tokens across checkout and workspaces. */
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart {
  padding-inline:0!important;margin-top:0!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-cart-item,.bst-cart-schedule,.bst-cart-contact,.bst-cart-summary) {
  border-radius:var(--bt-ds-card-radius,18px)!important;
  padding:var(--bt-refine-panel-padding)!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-cart-main,.bst-cart-items,.bst-cart-layout) {gap:var(--bt-refine-gap)!important;min-width:0!important;}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-cart-fields input,.bst-cart-note textarea,.bst-cart-trip-inputs input,.bst-cart-item-actions select) {
  box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
  border-radius:var(--bt-ds-control-radius,13px)!important;font-family:inherit!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-cart-header,.bst-workspace-heading) {gap:12px 20px!important;}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-workspace-heading__actions,.bst-overview-actions) {flex-wrap:wrap!important;gap:10px!important;min-width:0!important;}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-workspace-main,.bst-explorer-workspace__main) :is(.bst-stat-card,.bt-admin-kpi) {min-width:0!important;overflow-wrap:anywhere;}
/* Cart needs enough remaining main-panel width for two readable columns.
   At 901–1100 the Explorer sidebar leaves a cramped checkout main panel. */
@media (min-width:901px) and (max-width:1100px) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-layout {grid-template-columns:minmax(0,1fr)!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-summary {position:static!important;}
}
@media (min-width:768px) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-listing-grid,.bst-airbnb-listing-grid) {gap:var(--bt-refine-gap)!important;}
}
@media (max-width:767px) {
  body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-marketplace-root.bst-role-tourist .bst-home-category-rail > .bst-home-category-track,
  body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-shortcuts > .bt-od-shortcuts__inner {padding:12px!important;gap:10px!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-belitec-result-controls,
  body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-results__tools {width:100%!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-sort-control {min-width:0!important;max-width:100%!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-sort-control select,
  body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-results__tools select {min-width:0!important;max-width:100%!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-cart-fields input,.bst-cart-note textarea,.bst-cart-trip-inputs input,.bst-cart-item-actions select),
  body:not(.wp-admin) .bst-auth-card :is(input[type=text],input[type=email],input[type=password]) {font-size:16px!important;}
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-empty {padding:32px 18px!important;}
}
/* Use the established glass fill. Supply an opaque fallback when blur is
   unsupported, and honor reduced transparency at every viewport width. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-search-v2,
  body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-hero-search {background:#ffffff!important;}
}
@media (prefers-reduced-transparency:reduce) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root :is(.bst-search-v2,.bst-bottom-nav),
  body:not(.wp-admin) #bt-editorial-directory.bt-od .bt-od-hero-search,
  body:is(body,#belitec-desktop-scope):not(.wp-admin) :is(.bst-php-header,#bst-marketplace-root#bst-marketplace-root .bst-app-header--marketplace) {
    background:#ffffff!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  }
}
/* Live booking dialog: the demo status was flush to the panel edge and its
   strong label ran directly into its copy. No change to demo behavior. */
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-demo-preview-note {
  display:flex!important;flex-direction:column!important;gap:4px!important;
  margin:16px 24px!important;padding:12px 14px!important;
  border:1px solid #dde1e5!important;border-radius:var(--bt-ds-control-radius,13px)!important;
  background:#f7f8f9!important;color:#0d2b48!important;
  font-size:13px!important;line-height:1.5!important;overflow-wrap:anywhere;
}
@media (max-width:767px) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-demo-preview-note {margin:12px 16px!important;}
}

@media (min-width:768px) and (max-width:1279px) {
  :root {--bt-refine-page-gutter:20px;}
}
/* Recording follow-up: remove nested workspace padding around checkout only.
   Keep the existing outer page gutters and sidebar proportions. */
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-explorer-workspace__main:has(> .bst-cart) {
  padding:0!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-explorer-workspace__main > .bst-cart {
  margin-bottom:0!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-header {
  margin-bottom:20px!important;
}
/* The cart notice sits inside its header, unlike the modal notice. */
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-header .bst-demo-preview-note {
  margin:12px 0 0!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart {
  --bt-refine-gap:16px;
  --bt-refine-panel-padding:20px;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-trip-inputs {
  margin-top:12px!important;padding:12px!important;gap:10px!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-item-actions {
  margin-top:14px!important;padding-top:12px!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-summary-row {
  margin-top:14px!important;gap:12px!important;
}
body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-summary-total {
  padding-top:14px!important;
}
@media (max-width:767px) {
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart {
    --bt-refine-panel-padding:16px;
    --bt-refine-gap:14px;
  }
  body:not(.wp-admin) #bst-marketplace-root#bst-marketplace-root .bst-cart-header {margin-bottom:16px!important;}
}
