@import url('https://liveby-cdn-bucket.s3.amazonaws.com/brokerages/extended-theme.css');

div.liveby-embed {
  --color-primary:  #670038;
  --color-tertiary: #C299AF;

  --color-cta: #FFFFFF;
  --cta-border-radius: 0;
  --cta-text-transform: uppercase;
}

div.liveby-embed {
  margin: 0 auto;
  max-width: 1400px;
}

/* Stretch to container width */
div.liveby-embed > article > section {
  max-width: none;
}

/* Do not constrain the width inside the hero/header component */
#community-detail-hero-component div.liveby-embed {
  max-width: none;
}

/* Match width for the the nearby properties component */
#community-detail-primary-component div.liveby-embed .lb-component-wrapper-inner,
#community-detail-secondary-component div.liveby-embed .lb-component-wrapper-inner {
  max-width: 1136px;
}

/* Style hero image on community pages */
div.liveby-embed .styles_hero__kNr17 {
  position: relative;
  padding-bottom: 234px;
}

/* Hero customizations for community detail page */
div.liveby-embed .styles_address__39Bjq {
  display: none;
}
div.liveby-embed .styles_hero__kNr17 .styles_name__11qCq {
  text-transform: uppercase;
  letter-spacing: 3.6px;
  font-size: 36px;
  line-height: 1;
}

/* CTAs */
div.liveby-embed .styles_name-container__27HJT .liveby-theme-call-to-action {
  background: var(--color-primary);
  font-size: 12px;
}

/* Fix line-height inside tooltips */
div.styles_info-icon__WFg3K:hover .styles_info-content__gVOQ9 {
  line-height: 1.25;
}


div.liveby-embed #directory-listing {
  border-top: 0;
}
/* Additional directory listing details to remove */
div.liveby-embed #directory-listing .profile-list_item-no-properties__3iVTK,
/* Counts */
div.liveby-embed #directory-listing .profile-list_item-listings__3adfx,
/* Price ranges */
div.liveby-embed #directory-listing .profile-list_item-range__3tndt {
  display: none;
}

div.liveby-embed .profile-list_item-link__1SplV {
  padding: 0;
  display: block;
  color: inherit;
}

div.liveby-embed .profile-list_item-label__36m1A::before {
  content: 'Explore ';
}

div.liveby-embed #schools .schools_school_title__2eFUe {
  line-height: 1.5;
}

div.liveby-embed #schools .jpTtTq select {
  padding: 6px 15px 6px 10px;
}

/* Featured Communities List */
div.liveby-embed #directory-listing .profile-list_profile-list__2nxqp {
  justify-content: flex-start;
}

div.liveby-embed #directory-listing .lb-profile-list-item {
  padding: 0;
  max-height: 183px;
  width: calc(25% - 20px);
  text-align: center;
  margin: 10px;
  color: #fff;
}

/* Brighten directory listing cards on hover */
div.liveby-embed .lb-profile-list-item:hover,
div.liveby-embed .lb-profile-list-item:hover .profile-list_item-link__1SplV {
  box-shadow: none;
}

/* CTA Styles */
div.liveby-embed .lb-button {
  background-color: var(--color-primary);
  background:  var(--color-primary);
  font-family: Manrope;
  font-size: 16px;
  color: #fff;
  border: 2px solid var(--color-primary);
  font-weight: 800;
  margin-right: 11px;
  transition: all .3s ease-in;
  margin-left: 0;
  letter-spacing: 2.56px;
  border-radius: 4px;
}
div.liveby-embed .lb-button:focus,
div.liveby-embed .lb-button:hover {
  color: var(--color-primary);
  background-color: var(--color-tertiary);
  border: 2px solid var(--color-tertiary);
}
 div.liveby-embed #amenities .button_btn-primary-outlined__2Egsa {
  color: var(--color-primary);
  background-color: #fff;
  
}
div.liveby-embed #amenities .button_btn-primary-outlined__2Egsa:hover {
  color: var(--color-primary);
  background-color: #F5F1F2;
}

/* Amenity selection buttons */
div.liveby-embed #amenities .liveby-theme-amenity-category-button {
  /* Use "compact" button styles */
  padding: 6px 25px;
  font-size: 12px;
}
div.liveby-embed #amenities .liveby-theme-amenity-category-button.active,
div.liveby-embed #amenities .liveby-theme-amenity-category-button:hover {
  color: #fff;
}


div.liveby-embed .profile-list_item-link__1SplV {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5em;
}

div.liveby-embed .profile-list_grid__1M4Da .profile-list_item-label__36m1A {
  line-height: 1.5;
}

div.liveby-embed .profile-list_grid__1M4Da .lb-profile-list-item {
  display: block;
  text-align: center;
}

/* CTA hover styles */
div.liveby-embed #map .map_info-window__ZU_JC .map_cta-link__GeEyW,
div.liveby-embed #map .map_info-window__ZU_JC .map_cta-link__GeEyW:hover,
div.liveby-embed #map .map_info-window__ZU_JC .map_cta-link__GeEyW:focus,
div.liveby-embed .styles_name-container__27HJT .liveby-theme-call-to-action,
div.liveby-embed .styles_name-container__27HJT .liveby-theme-call-to-action:hover,
div.liveby-embed .styles_name-container__27HJT .liveby-theme-call-to-action:focus {
  color: #fff;
}

/* Supress property markers from the map */
div.liveby-embed #map .map_header__2xazU,
div.liveby-embed #map .cluster,
div.liveby-embed #map .map_marker__12vOb {
  display: none !important;
}

/* Restore map icons */
div.liveby-embed #map .button.gm-ui-hover-effect,
div.liveby-embed #map button[draggable] {
  opacity: 1;
}

/**
 * Custom styles for the "Explore More Communities" search
 */

/* Match BHHS brand colors and layout */
#directory-search {
  border-top: 0;
  margin: 0em auto 26px;
  font-size: 16px;
  line-height: 1.35;
}

#directory-search .directory-search_search-select__32-IW {
  max-width: none;
}

/* Directory Search and Directory Listing Search */
/* Remove border radiuses and set colors */
div.liveby-embed .css-yk16xz-control,
div.liveby-embed .css-1pahdxg-control {
  border-radius: var(--cta-border-radius);
  border: 1px solid var(--color-primary) !important;
  min-height: auto;
}
div.liveby-embed .css-yk16xz-control:focus {
  border: 0;
}
div.liveby-embed .css-1hwfws3 {
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 1.09px;
  padding: 3px 19px;
}


div.liveby-embed .css-1wa3eu0-placeholder {
  text-transform: uppercase;
}

/* Remove the bar next to the chevron arrow */
div.liveby-embed .css-1okebmr-indicatorSeparator {
  display: none;
}

/* Rotate the chevron arrow */
div.liveby-embed .css-tlfecz-indicatorContainer,
div.liveby-embed .css-1gtu0rj-indicatorContainer {
  transform: rotate(-90deg);
  padding: 4px;
}

/* Highlighted search option */
div.liveby-embed .css-1n7v3ny-option {
  background: var(--color-tertiary);
}

/* Auto-complete drop-down menu */
div.liveby-embed .css-26l3qy-menu {
  border-radius: 0;
}


/**
 * Nav Bar Styles
 */
#community-detail-primary-component div.liveby-embed article > nav {
  border-top: 1px solid #e7e7e7;
  border-bottom: 1px solid #e7e7e7;
}
#community-detail-primary-component div.liveby-embed article > nav ul,
#community-detail-primary-component div.liveby-embed article > nav ul li {
  padding: 0;
  margin: 0;
}
#community-detail-primary-component div.liveby-embed article > nav ul {
  margin: 0 auto;
}

/* Consistent padding for nav items */
#community-detail-primary-component div.liveby-embed .styles_nav__1NTZ_ .styles_nav-list__36sLd {
  align-items: center;
  justify-content: center;
}
#community-detail-primary-component div.liveby-embed article > nav ul li a {
  display: inline-block;
  padding: 6px 15px;
}
#community-detail-primary-component div.liveby-embed article > nav ul li a {
  color: #3a3a3a;
  font-size: 14px;
  font-weight: normal;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
#community-detail-primary-component #demographics-separator {
  display: none;
}
.liveby-embed .bubble-icon_bubble-icon-primary__B3Jh6 {
  background-color: #F5F1F2;
}

/* XL */
@media(max-width: 1200px) {

}

/* Tablet and smaller */
@media (max-width: 992px) {
  /* Style hero image on community pages */
  #community-detail-hero-component div.liveby-embed .styles_hero__kNr17 {
    padding-bottom: 0
  }

  div.liveby-embed #directory-listing .lb-profile-list-item {
    width: calc(50% - 20px);  
  }
}

/* Small screen styles */
@media (max-width: 600px) {
  div.liveby-embed #directory-listing .lb-profile-list-item {
    width: calc(100% - 20px);
  }

  /* Community navigation styles on mobile */
  div.liveby-embed .profile-list_profile-list__2nxqp {
    flex-flow: column;
    align-items: stretch;
  }

  /* Decrease button size for Yelp Amenities */
  div.liveby-embed #amenities .liveby-theme-amenity-category-button {
    font-size: 12px;
    padding-bottom: .5em;
    color: var(--color-cta);
  }

  /* Override the default hidden nav behavior */
  #community-detail-primary-component div.liveby-embed .styles_nav__1NTZ_ {
    display: block;
  }

  /* Remove nav border and scootch up a bit */
  #community-detail-primary-component div.liveby-embed article > nav.styles_nav__1NTZ_ {
    margin-top: -14px;
    border-top: 0;
    border-bottom: 0;
  }

  /* Add "Jump To" Placeholder that matches CTA styles */
  #community-detail-primary-component div.liveby-embed article > nav.styles_nav__1NTZ_::before {
    content: 'Jump To';
    display: block;
    border: 1px solid #3a3a3a;
    color: #000;
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 6px 15px;
    text-align: center;
  }

  /* Stack nav items vertically */
  #community-detail-primary-component div.liveby-embed nav.styles_nav__1NTZ_ ul.styles_nav-list__36sLd {
    /* display: flex; collapse initially */
    display: none;
    flex-flow: column;
    align-items: stretch
  }

  #community-detail-primary-component div.liveby-embed nav.styles_nav__1NTZ_ ul.styles_nav-list__36sLd li {
    border-bottom: 1px solid #aaa;
    text-align: center;
  }

  #community-detail-primary-component div.liveby-embed nav.styles_nav__1NTZ_ ul.styles_nav-list__36sLd li a {
    display: block;
  }

  /* Expand on hover (click on mobile) */
  #community-detail-primary-component div.liveby-embed nav.styles_nav__1NTZ_:hover ul.styles_nav-list__36sLd {
    display: flex;
    border-top: 1px solid #aaa;
  }

  /* Hide the "Jump To" Placeholder button */
  #community-detail-primary-component div.liveby-embed nav.styles_nav__1NTZ_:hover::before {
    font-weight: bold;
    border: 1px solid #fff;
  }
}
