/* BeliTech 4.16.26 | Shared component rules and spacing.
 * Consolidated from the consecutive final-spacing and UI consistency layers.
 * Existing selector order is preserved.
 */
/* BeliTech v4.15.05 – approved hybrid header controls and spacing refinements.
   Scope changes to real header buttons, operator card chevrons, Explorer filter help,
   and Operator listing calendars. Utility, dangerous, and tab controls stay distinct. */

/* The account pill and notification bell are owned by
 * header-account-controls.css (4.16.22–4.16.23). Do not reintroduce
 * the superseded solid-blue button styling here.
 * Only keep the non-interactive Admin role indicator's neutral surface. */
body:not(.wp-admin) :is(
 .bst-php-header .bst-php-admin-indicator,
 #bst-marketplace-root .bst-app-header--marketplace .bst-marketplace-admin-indicator
){
 background:var(--bt-ds-surface)!important;
 border:1px solid var(--bt-ds-line)!important;
 border-radius:var(--bt-ds-control-radius)!important;
 color:var(--bt-ds-ink)!important;
 box-shadow:none!important;
}
/* Admin shield is a status indicator, never a button or destination. */

/* Thin chevron (Option 2) on call-to-action links, no arrow glyph or circular capsule. */
body:not(.wp-admin) :is(
 #bt-editorial-directory .bt-od-card__view,
 .bst-ui-button,
 .bst-exp-booking__button,
 .bst-exp-booking__details-link,
 .bst-v3-view-all-operators,
 .bt-guideq__permalink,
 .bst-listing-card__cta
) > .bt-chevron{
 --bt-chevron-width:1.5px;
 --bt-chevron-size:7px;
 width:14px!important;
 min-width:14px!important;
 flex-basis:14px!important;
 height:16px!important;
 margin-left:3px!important;
 line-height:1!important;
}
body:not(.wp-admin) #bt-editorial-directory .bt-od-card__view > .bt-chevron{
 margin-left:1px!important;
}

/* Explorer filter sidebar: predictable minimum gap after checkboxes, with flexible
   empty space above the private-trip card retained when the rail grows. */
/* Pickup included is a sibling AFTER the filter grid, not a child of it.
   Its bottom margin guarantees breathing room even when the flex rail has no free height. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-sidebar-filter__checks.bst-airbnb-filter-checks{
 margin-bottom:28px!important;
 flex-shrink:0!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-sidebar-filter__checks.bst-airbnb-filter-checks + .bst-private-help{
 margin-top:auto!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help{
 margin-top:auto!important;
 padding:18px 16px 16px!important;
 display:flex!important;
 flex-direction:column!important;
 gap:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help h3{margin:0 0 8px!important;line-height:1.4!important}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help p{margin:0 0 16px!important;line-height:1.55!important}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help a{margin-top:0!important;min-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important}

/* Operator calendar: separate title/action row and date chip rows instead of
   relying on adjacent inline elements and unrelated utility margins. */
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar{
 min-width:0;
 padding:20px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__heading{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 justify-content:space-between!important;
 column-gap:24px!important;
 row-gap:14px!important;
 min-width:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__name{
 font-size:14px!important;
 line-height:1.5!important;
 font-weight:750!important;
 flex:1 1 220px!important;
 min-width:0!important;
 overflow-wrap:anywhere!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar .bst-availability-edit{
 display:inline-flex!important;
 align-items:center!important;
 justify-content:center!important;
 flex:0 0 auto!important;
 min-height:40px!important;
 margin:0!important;
 padding:9px 16px!important;
 white-space:nowrap!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__dates{
 display:flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 gap:10px 12px!important;
 margin-top:20px!important;
 padding-top:16px!important;
 border-top:1px solid #edeff1!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__date{
 display:inline-flex!important;
 align-items:center!important;
 min-height:30px!important;
 padding:6px 10px!important;
 border:1px solid #cad0d7!important;
 border-radius:999px!important;
 background:#f7f8f9!important;
 color:#0d2b48!important;
 font-size:12px!important;
 font-weight:600!important;
 line-height:1.3!important;
 white-space:nowrap!important;
 box-sizing:border-box!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__date.is-full{
 border-color:#cad0d7!important;
 background:#f7f8f9!important;
 color:#0d2b48!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__note{
 margin-top:20px!important;
 padding-top:14px!important;
 border-top:1px solid #edeff1!important;
 font-size:12px!important;
 color:#4e6479!important;
 line-height:1.55!important;
}
@media(max-width:767px){
 body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar{padding:16px!important}
 body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__heading{gap:12px!important}
 body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__name{flex-basis:100%!important}
 body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__dates{margin-top:16px!important;gap:8px!important}
}
@media(prefers-reduced-motion:reduce){
 body:is(body,#belitec-desktop-scope):not(.wp-admin) .bt-header-account>summary{transition:none!important}
}


/* v4.15.06 — Inline filter header: match compact Filters/Clear all row. */
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-airbnb-filter-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 16px!important;
  padding:0!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-airbnb-filter-head h2{
  margin:0!important;
  font-size:18px!important;
  line-height:1.2!important;
}
body:is(body,#belitec-desktop-scope):not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-airbnb-filter-clear{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  align-self:center!important;
  flex:0 0 auto!important;
}


/* BeliTech v4.16.00 – unified public & workspace UI rules.
 * Shared visual tokens, consistent rhythm, and narrowly scoped component rules.
 * Specific categories, deliberate destructive states, map widgets, headers and
 * booking/payment behaviors must not be overridden by this cosmetic layer.
 */
/* Legibility, box safety, and predictable input sizing in the application. */
body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory,.bst-auth-page,.bst-v2-page) :is(input,select,textarea,button){box-sizing:border-box;}
body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory,.bst-auth-page,.bst-v2-page) :is(h1,h2,h3,h4,p,strong,small){overflow-wrap:break-word;}
body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory,.bst-auth-page,.bst-v2-page) :is(input[type="text"],input[type="email"],input[type="number"],input[type="date"],input[type="tel"],input[type="password"],select,textarea){max-width:100%;}
/* Common form controls use the 44px design-system standard; excludes toolbar icons, checkboxes, and radios. */
body:not(.wp-admin) #bst-marketplace-root :is(.bst-input,.bst-sidebar-filter__group input:not([type="checkbox"]):not([type="radio"]),.bst-sidebar-filter__group select,.bst-sort-control select,.bst-shuttle-search__form input,.bst-shuttle-search__form select){
  min-height:var(--bt-ds-control-height);
  border:1px solid var(--bt-ui-line);
  border-radius:var(--bt-ui-radius-control);
  line-height:1.4;
  background-color:var(--bt-ds-field-bg);
  color:var(--bt-ui-ink);
  box-sizing:border-box;
}
body:not(.wp-admin) #bst-marketplace-root :is(.bst-sidebar-filter__group,.bst-sort-control) > span{font-weight:700;color:var(--bt-ui-ink);line-height:1.45;}
body:not(.wp-admin) #bst-marketplace-root :is(.bst-input,.bst-sidebar-filter__group input,.bst-sidebar-filter__group select,.bst-shuttle-search__form input):focus-visible,
body:not(.wp-admin) #bt-editorial-directory :is(.bt-od-field input,.bt-od-field select):focus-visible{
  outline:2px solid var(--bt-ds-focus)!important;
  outline-offset:2px!important;
  box-shadow:var(--bt-ds-focus-ring)!important;
}
/* Horizontal sidebar heading: this is now real shared markup instead of sibling elements. */
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-head{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  min-width:0!important;
  margin:0 0 22px!important;
  padding:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-head > h2{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:1.3!important;
  color:var(--bt-ui-ink)!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-head > .bst-airbnb-filter-clear{
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
  padding:4px 0!important;
  min-height:28px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--bt-ui-accent)!important;
  font-size:12px!important;
  line-height:1.4!important;
  font-weight:700!important;
  text-decoration:none!important;
}
/* Filter rail: remove ad hoc stacking, keep deliberate whitespace below checkboxes. */
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-grid{row-gap:20px!important;min-width:0;}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters :is(.bt-filter-options label,.bst-airbnb-filter-checks label){
  min-width:0;
  line-height:1.55!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-checks{margin-bottom:28px!important;}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help{border-radius:10px!important;min-width:0!important;}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help :is(h3,p){overflow-wrap:anywhere;}
/* Standardize component frames; do not change the cards' image aspect ratios. */
body:not(.wp-admin) #bst-marketplace-root :is(.bst-data-card,.bst-admin-settings-card,.bst-trip-details__panel,.bst-listing-calendar){
  background:var(--bt-ui-surface);
  border:1px solid var(--bt-ui-line);
  border-radius:var(--bt-ui-radius-card)!important;
  box-shadow:var(--bt-ui-shadow);
  min-width:0;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar{padding:20px!important;}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__heading{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:12px 24px!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__name{min-width:0;flex:1 1 180px;overflow-wrap:anywhere;line-height:1.5!important;}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__dates{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px 12px!important;
  padding-top:16px!important;
  margin-top:18px!important;
  border-top:1px solid #edeff1!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__date{white-space:normal;max-width:100%;}
/* Unify interactive focus feedback without affecting active-state navigation. */
body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory,.bst-auth-page,.bst-v2-page) :is(a,button,summary,select,input,textarea):focus-visible{
  outline:2px solid var(--bt-ds-focus)!important;
  outline-offset:3px!important;
}
/* Readable utility rows, tags and consistent typography in both directory types. */
body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory) :is(.bst-listing-card__price-row,.bt-od-results__heading,.bst-belitec-results-head,.bst-data-card__head){min-width:0;column-gap:16px;row-gap:10px;}
body:not(.wp-admin) #bt-editorial-directory .bt-od-card__tags{gap:6px!important;}
body:not(.wp-admin) #bt-editorial-directory .bt-od-sidebar__title{gap:12px!important;margin-bottom:20px!important;}
body:not(.wp-admin) #bt-editorial-directory .bt-od-field{margin-bottom:20px!important;}
/* Dashboard-only rhythm. Scope to real React workspace to avoid public page changes. */
body:not(.wp-admin) #bst-marketplace-root .bst-data-card__head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;}
body:not(.wp-admin) #bst-marketplace-root :is(.bst-admin-review-section,.bst-admin-settings-card){min-width:0;}
body:not(.wp-admin) #bst-marketplace-root :is(.bst-admin-review-fields,.bst-data-grid){min-width:0;}
body:not(.wp-admin) #bst-marketplace-root :is(.bst-admin-settings-card,.bst-admin-review-section) :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){max-width:100%;}
/* Narrow viewport: no forced horizontal overflow in cards or filter controls. */
@media(max-width:767px){
  body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar{padding:16px!important;}
  body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__heading{align-items:flex-start;gap:12px!important;}
  body:not(.wp-admin) #bst-marketplace-root .bst-listing-calendar__heading .bst-availability-edit{max-width:100%;}
  body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters > .bst-airbnb-filter-head{margin-bottom:18px!important;}
  body:not(.wp-admin) #bt-editorial-directory .bt-od-card__tags{gap:5px!important;}
}
@media(prefers-reduced-motion:reduce){
  body:not(.wp-admin) :is(#bst-marketplace-root,#bt-editorial-directory) :is(button,a,input,select,.bst-listing-card,.bt-od-card){scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;}
}
/* Narrow filter content follows the same natural case and padding as the directory. */
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-sidebar-filter__group > span,
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters fieldset > legend{
  text-transform:none!important;
  letter-spacing:normal!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.45!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help a.bst-ui-button{
  width:100%!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  font-size:12px!important;
  padding:9px 6px!important;
  letter-spacing:0!important;
}
body:not(.wp-admin) #bst-marketplace-root .bst-belitec-filters .bst-private-help h3{
  font-size:clamp(13px,1vw,15px)!important;
  line-height:1.4!important;
}
