/*
 * Blue Water Boat Pages, template neutraliser.
 *
 * Loaded last, and only on plugin templates. Its whole job is to undo the
 * wrappers, padding, max widths and typography that themes apply to single
 * posts, so the boat design renders on a clean full width canvas.
 *
 * Anything here can be overridden from
 * Boat Charters > Settings > Template > Extra template CSS.
 */

/* --------------------------------------------------------------- canvas */

body.bwc-template #bwc-main,
body.bwc-template .bwc-canvas{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  float:none;
  border:0;
  background:transparent;
}

/* Themes love adding horizontal padding to the body or a page wrapper. */
body.bwc-template{
  overflow-x:hidden;
}

/*
 * Common theme content wrappers. If the canvas ends up inside one of these
 * we flatten it rather than fight it. Kept to layout properties only, so
 * the theme's header and footer are untouched.
 */
body.bwc-template #bwc-main > *,
body.bwc-template .bwc-canvas > *{
  max-width:none;
}

/* ------------------------------------------------- theme wrapper flatten */

body.bwc-template #content,
body.bwc-template #primary,
body.bwc-template #main,
body.bwc-template .site-content,
body.bwc-template .site-main,
body.bwc-template .content-area,
body.bwc-template .entry-content,
body.bwc-template .page-content,
body.bwc-template .ast-container,
body.bwc-template .elementor-section-wrap,
body.bwc-template .et_pb_section,
body.bwc-template .fl-page-content,
body.bwc-template .container,
body.bwc-template .wrapper,
body.bwc-template .inner-wrap{
  max-width:none !important;
  width:100% !important;
  padding-left:0 !important;
  padding-right:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  float:none !important;
  background:transparent;
}

/* Sidebars have no place on these pages. */
body.bwc-template #secondary,
body.bwc-template .widget-area,
body.bwc-template .sidebar,
body.bwc-template .ast-separate-container .ast-sidebar{
  display:none !important;
}

/* Theme page titles duplicate the plugin hero. Boat, destination, itinerary and blog post pages only, never anywhere else. */
body.single-bwc_boat .traveltour-page-title-wrap,
body.single-bwc_boat .entry-header,
body.single-bwc_boat .page-header,
body.single-bwc_boat .entry-title,
body.single-bwc_boat .page-title,
body.single-bwc_destination .traveltour-page-title-wrap,
body.single-bwc_destination .entry-header,
body.single-bwc_destination .page-header,
body.single-bwc_destination .entry-title,
body.single-bwc_destination .page-title,
body.single-bwc_itinerary .traveltour-page-title-wrap,
body.single-bwc_itinerary .entry-header,
body.single-bwc_itinerary .page-header,
body.single-bwc_itinerary .entry-title,
body.single-bwc_itinerary .page-title,
body.bwc-blog-single .traveltour-page-title-wrap,
body.bwc-blog-single .entry-header,
body.bwc-blog-single .page-header,
body.bwc-blog-single .entry-title,
body.bwc-blog-single .page-title{
  display:none !important;
}

/* Post meta and navigation. */
body.bwc-template .entry-meta,
body.bwc-template .post-navigation,
body.bwc-template .posts-navigation,
body.bwc-template .comments-area,
body.bwc-template #comments,
body.bwc-template .ast-single-post-navigation{
  display:none !important;
}

/* Some themes box the article. */
body.bwc-template article,
body.bwc-template .hentry,
body.bwc-template .post,
body.bwc-template .type-bwc_boat,
body.bwc-template .type-bwc_destination,
body.bwc-template .type-bwc_itinerary{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* -------------------------------------------------- typography isolation */

/*
 * The plugin design sets its own type inside .bwc-boat. This stops theme
 * rules leaking in through descendant selectors on headings and links.
 */
body.bwc-template .bwc-boat h1,
body.bwc-template .bwc-boat h2,
body.bwc-template .bwc-boat h3,
body.bwc-template .bwc-boat h4{
  padding:0;
  border:0;
  text-transform:none;
  clear:none;
}

body.bwc-template .bwc-boat a{
  box-shadow:none;
  text-decoration:none;
}

body.bwc-template .bwc-boat ul,
body.bwc-template .bwc-boat ol{
  margin-left:0;
  padding-left:0;
}

body.bwc-template .bwc-boat table{
  margin:0;
  border:0;
}

body.bwc-template .bwc-boat table th,
body.bwc-template .bwc-boat table td{
  border-left:0;
  border-right:0;
  border-top:0;
}

body.bwc-template .bwc-boat img{
  border-radius:0;
  box-shadow:none;
}

/* --------------------------------------------------- editor content tail */

/*
 * Anything typed into the normal editor on a boat renders under the design,
 * inside the same wrapper width, on the same dark background.
 */
body.bwc-template .bwc-editor-content{
  background:var(--bwc-bg,#060F1C);
  color:var(--bwc-muted,rgba(255,255,255,.72));
  padding-top:clamp(32px,6vw,64px);
  padding-bottom:clamp(48px,8vw,88px);
}

body.bwc-template .bwc-editor-content .bwc-wrap{
  max-width:var(--bwc-max,1180px);
  margin:0 auto;
  padding-left:var(--bwc-gutter,clamp(20px,5vw,64px));
  padding-right:var(--bwc-gutter,clamp(20px,5vw,64px));
}

body.bwc-template .bwc-editor-content h2,
body.bwc-template .bwc-editor-content h3{
  color:var(--bwc-text,#fff);
  font-family:var(--bwc-display,Georgia,serif);
}

body.bwc-template .bwc-editor-content a{
  color:var(--bwc-accent-light,#E3C67E);
}

/* ------------------------------------------------------- bare mode extras */

body.bwc-bare-body{
  margin:0;
  padding:0;
  background:var(--bwc-bg,#060F1C);
}

body.bwc-bare-body .bwc-custom-header,
body.bwc-bare-body .bwc-custom-footer{
  background:var(--bwc-surface,#0A1626);
  color:var(--bwc-text,#fff);
}

/* The admin bar still needs its offset in bare mode. */
body.bwc-bare-body.admin-bar{
  padding-top:32px;
}

@media screen and (max-width:782px){
  body.bwc-bare-body.admin-bar{
    padding-top:46px;
  }
}
