@font-face {
  font-family: "Montserrat";
  src: url("https://storage.googleapis.com/resd_lib/fonts/Montserrat-VariableFont_wght.ttf") format("ttf"),
}

@font-face {
  font-family: "MateSC";
  src: url("https://storage.googleapis.com/resd_lib/fonts/MateSC-Regular.ttf") format("ttf"),
}

body {
  --p-font: "Montserrat", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
  --h-font: "MateSC", Georgia, serif;

  --primary: #c32032;
  --primaryRGB: 195, 32, 50;

  --secondary: #000000;
  --secondaryRGB: 0, 0, 0;



  --third: #666666;
  --thirdRGB: 102, 102, 102;
}



/* hide home sections */

/* live hide */
#anna-modern-fold {
  display: none;
}

.home section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* dev hide */
.home #search-tabs,
.home>section[aria-label="property search hero"] {
  display: none;
}

.home section[data-cy="footer-valuation"] {
  display: none;
}

/* miranda banner hide */
#quicksearch-section {
  display: none;
}

/* Page Resets */
.home #content {
  width: 100%;
  padding: 0;
}

.home .section-width-wrapper {
  padding: 0 !important;
  max-width: 100% !important;
}

.home #sidebar {
  display: none;
}

.home>div.lg\:px-40 {
  padding: 0 !important;
}

.home #content>section {
  margin: 0 !important;
}

.home header {
  position: fixed;
}

.home #banner + header:not(.custom-scroll) {
  top: 280px;

  @media (width>635px) {
    top: 217px;
  }

  @media (width>1000px) {
    top: 150px;
  }
}

/* modern fixes */

#rg-valuation-iframe-0 {
  min-height: 25rem !important;
}

.property-detail-listing-vertical:hover {
  outline: none !important;
}

/*  */

/* Fonts */
body *:is(p, li, a, label, legend, button, option) {
  font-family: var(--p-font) !important;
}


body *:is(h1, h2, h3, h4, h5, h6, .text-hero) {
  font-family: var(--h-font) !important;
  font-weight: 400;
  text-transform: uppercase;
}

body h1,
body.home h2,
body .text-hero {
  font-weight: 400;
}

body h1,
body h2,
body h3 {
  text-transform: uppercase !important;
}



/* navigation */

.home header.custom-scroll,
.pages header,
nav.top-nav {
  box-shadow: 0 1px 8px rgb(0, 0, 0, 0.15);
  border-bottom: none;
}

body>header>nav.relative>div.mx-0.pr-2.pl-6.lg\:px-8>div {
  height: 6rem;
}

body header #nav-logo {
  height: 3rem;
}

@media (min-width: 768px) {
  body header #nav-logo {
    height: 3rem;
  }
}

body.home header:not(.custom-scroll) img {
  filter: brightness(0) invert(1);
}

body.home header>nav>div:first-child {
  transition: 300ms ease;
}

body.home header:not(.custom-scroll)>nav:not(#mobile-menu)>div:first-child {
  opacity: 1;
  background-color: rgb(255, 255, 255, 0);
}

body.home header {
  background: transparent;
}

#nav-links>div {
  justify-content: flex-end;
  align-items: center;
}

body.home:not(.agent) header:not(.custom-scroll) #nav-links a {
  color: #fff;
}

body.home:not(.agent) header:not(.custom-scroll) #nav-links a:hover {
  color: #f8f8f8;
}

/* scrolled and pages nav links */
body.home header.custom-scroll #nav-links a,
body.agent header #nav-links a,
body.pages header #nav-links a {
  color: var(--secondary);
}

body.home header.custom-scroll #nav-links a:hover,
body.agent header #nav-links a:hover,
body.pages header #nav-links a:hover {
  color: var(--primary);
}

/* fix ugly border */

header #nav-links a {
  border: none;
  padding-bottom: 0.5rem;
  font-size: 0.85em;
  font-weight: bold;
}

header #nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  /* transform: translateX(-50%); */
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 300ms ease;
}

body.home:not(.agent) header #nav-links a::after {
  background: var(--primary);
}

header #nav-links a:hover::after {
  width: 100%;
}

/* custom banner nav links */
body.home:not(.agent) header:not(.custom-scroll) #nav-links a:hover::after {
  background: #f8f8f8;
}

header #nav-links a:hover::after {
  width: 100%;
}

/* icons */

#nav-icons svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: 300ms ease;
}

body.home header #nav-icons svg {
  fill: #fff;
  color: #fff;
}

body.home header.custom-scroll #nav-icons svg,
body.pages header #nav-icons svg {
  fill: var(--primary);
  color: var(--primary);
}

#nav-menu-button svg path {
  transition: d 300ms ease;
}

#nav-menu-button svg:hover path {
  d: path("M 4 8 h 16 M 4 12 h 16 M 4 16 h 16");
}

@media (min-width: 451px) {
  .user-contact-icons ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

.user-contact-icons .svg-inline--fa:not(.fa-bars) {
  display: none;
}

.user-contact-icons ul li a {
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover svg {
  transition: 300ms ease;
}

.user-contact-icons ul li a:hover,
.user-contact-icons ul li a:hover svg {
  fill: var(--primary);
}

.user-contact-icons ul li a svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--primary);
}

nav.top-nav a {
  transition: 300ms ease;
}

nav.top-nav a:hover {
  color: var(--primary);
}

/* mobile menu */

#mobile-menu .text-palette-navigationLink-color {
  color: var(--secondary);
  transition: 300ms ease;
  border-bottom: none;
  padding-bottom: 0.25rem;
  position: relative;
  font-family: var(--h-font) !important;
  font-size: 1.5em !important;
}

#mobile-menu .text-palette-navigationLink-color:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: var(--primary);
  transition: 300ms ease;
}

#mobile-menu .text-palette-navigationLink-color:hover:before {
  width: 100%;
}

/* #mobile-menu>div>div.pl-12.pr-32.pt-16.pb-8.flex.flex-col.h-mobile-nav-inner.sm\:h-screen.overflow-y-auto>div.sm\:hidden.pt-9.border-t.border-medium-gray,
#mobile-menu>div>div.sm\:hidden.p-4.absolute.bottom-0.p-11.text-white.bg-dark-gray.w-full {
  display: block;
} */

#mobile-menu .bg-dark-gray {
  background-color: var(--secondary);
}

#mobile-menu .bg-dark-gray>a {
  color: #fff;
}

.user-popup-mobile {
  z-index: 999;
}




/* nav social */
#navSocialMedia {
  gap: 1rem;
}

#navSocialMedia a.social-icon-footer {
  line-height: 1;
  color: var(--primary);
  font-size: .75em;
  display: block;
  transition: 300ms ease;
}

#navSocialMedia a.social-icon-footer:hover {
  color: var(--secondary);
}

/* Hero */

#custom-hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  display: grid;
  background-position: center;
  background-size: cover;
  padding-top: 6rem;
  padding-bottom: 2rem;
}

.custom__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#custom-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background-image: linear-gradient(45deg, rgb(0, 0, 0, 0.3), rgb(0, 0, 0, .5), rgb(0, 0, 0, 0.3));
}

#custom-hero .custom-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
  padding-inline: 2rem;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
}

#custom-hero h1 {
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  margin: 0;
  padding: 0;
  border: none;
  text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.35);
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}

#custom-hero h1 span.--sub {
  display: block;
  font-size: 0.45em;
  margin-top: 1rem;
  font-weight: 400;
  font-family: var(--p-font) !important;
}

#custom-hero h1 span.--sub.top {
  margin-top: 0;
  margin-bottom: 1rem;
}


#custom-hero h2 {
  text-align: center;
  color: #fff;
  line-height: 1;
  margin: 0;
  padding: 0;
  margin-top: 1em;
}

#custom-hero #custom-search-tabs {
  display: grid;
  margin-top: 1rem;
  gap: 1rem;
  position: relative;
  z-index: 3;
  width: min(600px, 100%);
}

#custom-hero #custom-search-tabs a {
  display: inline-block;
  line-height: 1;
  letter-spacing: 1px;
  transition: 300ms ease;
  padding: 1em 3em;
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
  text-transform: uppercase;

  &:first-child {
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;

    &:hover {
      background-color: #fff;
      color: var(--primary);
    }
  }

  &:nth-child(2) {
    color: var(--primary);
    background-color: #fff;
    border: 2px solid #fff;

    &:hover {
      color: #fff;
      background-color: transparent;
    }
  }
}


@media (min-width: 768px) {

  #custom-hero:after {
    /* background-image: linear-gradient(rgb(0, 0, 0, 0.3), rgb(0, 0, 0, .15), rgb(0, 0, 0, 0.3)); */
  }

  #custom-hero h1 {
    font-size: calc(3rem + 1vw);
  }

  #custom-hero h1 span.--sub {
    font-size: .35em;
  }

  #custom-hero #custom-search-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

}

.home #custom-hero #react-typeahead {
  width: 100%;
  /* margin-top: 1rem; */
  max-width: 100%;
}

/* page updates */

/* body .h-hero-image {
  height: 50vh;
  height: 50svh;
} */

.text-hero {
  text-shadow: 1px 1px 0.25rem rgb(0, 0, 0, 0.5);
}

.h-hero-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.2);
  z-index: 2;
}

#rgsb-custom>section.mb-16>div>div.relative.h-full.flex.flex-col.justify-center.items-center {
  position: relative;
  z-index: 3;
}