/*
 * Crown Bridge Listings: shared styles.
 * Colors, fonts and helper classes the crownbridge.com theme provided
 * globally, scoped to the plugin's own markup (.cbl) so they cannot affect
 * the rest of the site (Avada or any other theme).
 */

.cbl {
  --primary: #000;
  --secondary: #5e5e5e;
  --barlow: "Barlow", sans-serif;
  --font-color-default: #bababa;

  position: relative;
  /* Avada lays page content out with flexbox; without these the wrapper grows
     to its widest child (the old theme's 1404px containers) on small screens. */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 100%;
  background: var(--primary);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 1;
  text-align: left;
}

.cbl.cbl--inherit-font { font-family: inherit; }

.cbl *, .cbl *::before, .cbl *::after { box-sizing: border-box; }
.cbl a { color: inherit; text-decoration: none; box-shadow: none; transition: all ease .4s; }
.cbl a:hover, .cbl a:focus { color: var(--secondary); text-decoration: none; }
.cbl img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
.cbl button { font-family: inherit; transition: all ease .4s; }
.cbl h1, .cbl h2, .cbl h3, .cbl h4, .cbl h5, .cbl h6 { margin: 0; padding: 0; font-family: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; line-height: inherit; color: inherit; }
.cbl p { margin: 0 0 1em; }
.cbl ul { margin: 0; padding: 0; list-style: none; }
.cbl select, .cbl input, .cbl textarea { font-family: inherit; }

/* Helpers that came from Bootstrap / the theme. */
.cbl .hidden { display: none !important; }
.cbl .text-center { text-align: center; }
.cbl .img-responsive { display: block; max-width: 100%; height: auto; }
.cbl .container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.cbl .mw-container { max-width: calc(100% - 30px); margin-left: auto; margin-right: auto; }
.cbl .img-cover { position: relative; display: block; z-index: 0; overflow: hidden; }
.cbl .img-cover > img { position: relative; z-index: 0; display: block; width: 100%; height: auto; object-fit: cover; object-position: center; }
.cbl .embed-responsive { position: relative; display: block; width: 100%; height: 0; padding: 0; overflow: hidden; }
.cbl .embed-responsive-16by9 { padding-bottom: 56.25%; }
.cbl .embed-responsive iframe { position: absolute; top: 0; left: 0; bottom: 0; width: 100%; height: 100%; border: 0; }
.cbl .ease { transition: all ease .4s; }

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .cbl .hidden-md { display: none !important; }
}
@media only screen and (min-width: 992px) {
  .cbl .mw-container { max-width: calc(100% - 60px); }
  .cbl .hidden-lg { display: none !important; }
}

/* Buttons */
.cbl button.globalButton, .cbl a.globalButton, .cbl .globalButton {
  -webkit-appearance: none; appearance: none; border: 0; background: none; position: relative; z-index: 0;
  display: inline-flex; flex-flow: row wrap; align-items: center; justify-content: center; vertical-align: middle;
  font-size: 14px; text-align: center; letter-spacing: .1em; color: #fff; padding: .714em 1.429em;
  text-transform: uppercase; min-width: 11em; cursor: pointer; line-height: 1;
}
.cbl .globalButton::before { content: ''; display: block; position: absolute; z-index: -1; left: 0; top: 0; bottom: 0; background: #2a2a2a; width: 40px; transition: all ease .4s; }
.cbl .globalButton:hover::before { width: 100%; }
.cbl .globalButton:hover { color: #fff; }

.cbl button.siteArrow {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: #6c6c6c; color: #fff; font-size: 12px; width: 4.167em; height: 4.167em;
  border: 1px solid #6c6c6c; border-radius: 50em; padding: 0; line-height: 1;
}
.cbl button.siteArrow:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* Section titles */
.cbl .sectionTitle h2 { color: #fff; text-align: center; font-size: 72px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
.cbl .sectionTitle h2 span { color: var(--secondary); display: block; }
@media only screen and (max-width: 991px) {
  .cbl .sectionTitle h2 { font-size: 45px; }
}

/* Breadcrumbs bar (when Yoast SEO breadcrumbs are on) */
.cbl .customBC { background: linear-gradient(90deg, #262626 0%, #919191 50%, #262626 100%); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 19px 0; }
.cbl .customBC p { margin: 0; }
.cbl .customBC span.breadcrumb_last { font-weight: 700; }
.cbl .customBC a:hover { color: inherit; opacity: .75; }
/* Avada reserves the header's space itself, so the old theme's room for its
   floating header would only leave a gap. */
.fusion-body .cbl .customBC { margin-top: 0; }
/* Listing pages are black, also behind the transparent Avada header. */
body.cbl-page #wrapper, body.cbl-page #main { background-color: #000; }

/* Icons: the old site used the Agent Image icon font; these are SVG masks
   drawn in the text color, so the old markup and sizes work unchanged. */
.cbl [class^="ai-font-"], .cbl [class*=" ai-font-"] { display: inline-block; font-style: normal; line-height: 1; }
.cbl [class^="ai-font-"]::before, .cbl [class*=" ai-font-"]::before {
  content: ''; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em;
  background-color: currentColor;
  -webkit-mask: var(--cbl-icon) no-repeat center / contain; mask: var(--cbl-icon) no-repeat center / contain;
}
.cbl .ai-font-location-c { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.cbl .ai-font-facebook { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M14 8h3V4h-3c-2.76 0-5 2.24-5 5v2H7v4h2v9h4v-9h3l1-4h-4V9c0-.55.45-1 1-1z'/%3E%3C/svg%3E"); }
.cbl .ai-font-linkedin { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4.98 3.5a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5zM3 9h4v12H3zm7 0h3.8v1.7h.05c.53-1 1.83-2.05 3.77-2.05 4.03 0 4.78 2.65 4.78 6.1V21h-4v-5.6c0-1.34-.03-3.06-1.86-3.06-1.87 0-2.15 1.46-2.15 2.96V21h-4z'/%3E%3C/svg%3E"); }
.cbl .ai-font-twitter { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M18.24 2.25h3.31l-7.23 8.26 8.5 11.24h-6.66l-5.21-6.82-5.97 6.82H1.67l7.73-8.84L1.25 2.25h6.83l4.71 6.23zm-1.16 17.52h1.83L7.08 4.13H5.12z'/%3E%3C/svg%3E"); }
.cbl .ai-font-envelope-filled-a { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2 5h20v1.2l-10 6.6L2 6.2zm0 3.6 10 6.6 10-6.6V19H2z'/%3E%3C/svg%3E"); }
.cbl .ai-font-comment-a { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.cbl .ai-font-arrow-g-p { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M15.4 3.4 7 12l8.4 8.6 1.6-1.6L10.2 12 17 5z'/%3E%3C/svg%3E"); }
.cbl .ai-font-arrow-g-n { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M8.6 3.4 7 5l6.8 7L7 19l1.6 1.6L17 12z'/%3E%3C/svg%3E"); }
.cbl .ai-font-arrow-i-p { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M20 11H7.8l5.6-5.6L12 4l-8 8 8 8 1.4-1.4L7.8 13H20z'/%3E%3C/svg%3E"); }
.cbl .ai-font-arrow-i-n { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M4 11h12.2l-5.6-5.6L12 4l8 8-8 8-1.4-1.4 5.6-5.6H4z'/%3E%3C/svg%3E"); }
.cbl .ai-font-car { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6.5 6.5A2 2 0 0 1 8.4 5h7.2a2 2 0 0 1 1.9 1.5L19 11a2 2 0 0 1 2 2v5h-2v2h-2.5v-2h-9v2H5v-2H3v-5a2 2 0 0 1 2-2zm.6 4.5h9.8l-1.2-3.6a.6.6 0 0 0-.6-.4H8.9a.6.6 0 0 0-.6.4zM6.5 15.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm11 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
.cbl .ai-font-magnifying-glass-c { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.42 1.4-5.39-5.38A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E"); }
.cbl .ai-font-magnifying-glass-a { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M10 2a8 8 0 0 1 6.32 12.9l5.39 5.4-1.42 1.4-5.39-5.38A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E"); }
.cbl .ai-font-loading-a { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 4a8 8 0 0 1 7.4 5H17v2h6V5h-2v2.3A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8zm8 8a8 8 0 0 1-15.4 3H7v-2H1v6h2v-2.3A10 10 0 0 0 22 12z'/%3E%3C/svg%3E"); }
.cbl .ai-font-filter-f { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M3 4h18l-7 8.5V19l-4 2v-8.5z'/%3E%3C/svg%3E"); }
.cbl .ai-font-star-fill { --cbl-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E"); }

/* Photo lightbox (Magnific Popup) on the dark design. */
.mfp-bg { background: #000; opacity: .9; }
.mfp-counter { font-family: "Montserrat", sans-serif; }

/* Filter popup and other boxes opened with Magnific Popup. */
.cbl-popup { position: relative; max-width: 720px; margin: 20px auto; }
.cbl-popup .mfp-close { color: #fff; }

/* Amenities filter: the white box of crownbridge.com's filter popup. */
.mfp-bg.cbl-mfp-filter { background: #0b0b0b; opacity: .9; }
.cbl-popup#filterPopup { max-width: 600px; padding: 0; background: #fff; border-radius: 12px; }
.cbl-popup#filterPopup .cbl--popup { background: #fff; color: #000; padding: 60px 15px; border-radius: inherit; }
.cbl-popup#filterPopup .mfp-close { width: 44px; height: 44px; line-height: 44px; top: 0; right: 0; padding: 0; font-size: 40px; font-family: Arial, sans-serif; color: #000; opacity: 1; background: none; border: 0; box-shadow: none; }
.cbl-popup#filterPopup .mfp-close:hover { opacity: .5; }
@media only screen and (min-width: 992px) {
  .cbl-popup#filterPopup { max-width: 1140px; border-radius: 20px; }
  .cbl-popup#filterPopup .cbl--popup { padding: 50px min(5.983vw, 70px) 67px min(3.761vw, 44px); }
}

/* Contact Form 7 messages, from the crownbridge.com theme (global.css): with
   html_class="use-floating-validation-tip" the error floats over its field. */
.cbl .use-floating-validation-tip .wpcf7-not-valid-tip { position: absolute; top: 50%; transform: translateY(-50%); left: 20%; width: auto; font-size: 11px; white-space: nowrap; display: none; }
.cbl .use-floating-validation-tip .wpcf7-not-valid-tip:nth-of-type(1) { display: block; }
.cbl div.wpcf7-response-output { text-align: center; }

/* Shown only to logged-in editors when a page has nothing to show. */
.cbl-notice { padding: 12px 16px; border-left: 4px solid #d63638; background: #fff; color: #1d2327; font-size: 14px; }

/* Listing pages (single pages and pages with a listing shortcode) run edge to
   edge like the old site; Avada adds padding around page content by default. */
body.cbl-page #main { padding-top: 0 !important; padding-bottom: 0 !important; }
body.cbl-edge #main { padding: 0 !important; }
body.cbl-edge #main > .fusion-row { max-width: 100% !important; padding: 0 !important; }

/* Card without photos yet: keep the card's shape. */
.cbl .img.cbl-no-photo { aspect-ratio: 350 / 195; background: #1a1a1a; }

/* Section titles with the accent line, and intro text (homepage sections). */
.cbl .site-default-text { font-size: 14px; line-height: 1.857; letter-spacing: .02em; text-align: center; }
.cbl .site-accent { position: relative; }
.cbl .site-accent::after { content: ''; display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0; margin: auto 0; background: #333; height: 1px; }
.cbl .site-accent .site-accent__icon { width: 14px; opacity: 0; pointer-events: none; }
.cbl .site-accent .site-accent__icon img { display: block; width: 100%; height: auto; }
@media only screen and (min-width: 992px) {
  .cbl .sectionTitle h2 span { display: inline; }
  .cbl .sectionTitle .site-accent { margin: 18px 0 0 -33px; }
  .cbl .sectionTitle .site-accent.to_left { margin: 18px -33px 0 0; }
  .cbl .site-accent { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-start; }
  .cbl .site-accent::after { left: 14px; right: -100vw; }
  .cbl .site-accent.to_left { justify-content: flex-end; }
  .cbl .site-accent::before { content: ''; display: block; position: absolute; z-index: 1; right: 0; bottom: 8px; width: 36px; height: 2px; background: linear-gradient(90deg, #262626 0%, #919191 50%, #262626 100%); }
  .cbl .site-accent.to_left::before { left: 0; right: auto; }
  .cbl .site-accent.to_left::after { right: 14px; left: -100vw; }
  .cbl .site-accent .site-accent__icon { opacity: 1; }
}
