:root {
  /* Base tokens */
  --brand-red: #EF4444;
  --brand-dark: #1D293E;
  --brand-light-gray: #F9FAFB;
  --brand-border: #E5E7EB;
  --background: #F7F7F7;
  --text-color: #484848;
  --text-secondary: #777777;

  /* Bootstrap overrides */
  --bs-body-color: var(--text-color);
  --bs-secondary-color: #484848;
  --bs-body-font-family: 'Nunito', sans-serif;
  --bs-body-font-size: calc(14 / 16 * 1rem);
  --bs-body-line-height: calc(24 / 16 * 1rem);
  --bs-body-font-weight: 400;

  --cap-widget-width: 100%;


  --header-height: calc(100 / 16 * 1rem);
}



html {
  font-size: 16px;
  color: var(--text-color);
  scroll-padding-top: var(--header-height);
}

/* TYPOGRAPHY */
body,
.text-base {
  font-size: var(--bs-body-font-size);
  line-height: var(--bs-body-line-height);
  font-weight: var(--bs-body-font-weight);
}
a {
  color: var(--text-color);
}

.h1, h1, .h2, h2, .h3, h3, .h4, h4, .h5, h5, .h6, h6 {
  line-height: 1.2;
  font-style: normal;
  margin-bottom: 0;
  color: var(--text-color);
}

.h1, h1 {
  font-size: calc(45 / 16 * 1rem);
  line-height: calc(55 / 16 * 1rem);
  font-weight: normal;
}
.h2, h2 {
  font-size: calc(30 / 16 * 1rem);
  line-height: calc(36 / 16 * 1rem);
  font-weight: bold;
}
.h3, h3 {
  font-size: calc(18 / 16 * 1rem);
  line-height: calc(22 / 16 * 1rem);
  font-weight: 700;
}

.h4, h4 {
  font-size: 18px;
  font-weight: 500;
}

.h5, h5 {
  font-size: calc(22 / 16 * 1rem);
  line-height: calc(32 / 16 * 1rem);
  font-weight: bold;
}
.h6, h6 {
  font-size: calc(16 / 16 * 1rem);
  line-height: calc(20 / 16 * 1rem);
  font-weight: regular;
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-secondary) !important;
}

/* Preserve Font Awesome icons */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}
i {
  display: inline-flex;
  align-items: center;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  --bs-btn-padding-x: 1rem;
  --bs-btn-padding-y: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

.btn-nav-link {
  line-height: var(--nav-link-line-height);
  font-size: var(--bs-nav-link-font-size);
}

.btn-main {
  --bs-btn-bg: var(--main-color);
  --bs-btn-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--main-color);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 66,70,73;
  --bs-btn-active-bg: var(--main-color);
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-dark {
  --bs-btn-bg: var(--brand-dark);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0f141c;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 66,70,73;
  --bs-btn-active-bg: #2b3a54;
  --bs-btn-active-border-color: transparent;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn-light {
  --bs-btn-color: var(--text-color);
}

/* Nav */
.navbar {
  min-height: var(--header-height);

  & .navbar-brand {
    flex: 0;
    height: calc(56 / 16 * 1rem);
    min-width: fit-content;
    display: flex;
    align-items: center;
    padding: 0;

    & > .logo {
      max-height: 100%;
      max-width: 100%;
      object-fit: contain;
    }
    &:has(.logo) {
      line-height: 0;
    }
  }
}
.navbar-nav {
  --bs-nav-link-color: var(--text-secondary);
  --bs-nav-link-hover-color: var(--text-color);
  --bs-nav-link-font-weight: light;
  --bs-nav-link-font-size: 1rem;
  --nav-link-line-height: 1.25rem;
}
.nav-link {
  line-height: var(--nav-link-line-height);
  font-weight: var(--bs-nav-link-font-weight);
}
.nav-link.active {
  font-weight: 500;
}


/* Layout */
.content-container, .content-wrapper {
  --content-wrapper-padding-x: 10rem;
  padding-inline: var(--content-wrapper-padding-x);
  flex: 1;

  @media (max-width: 991.98px) {
    & {
      --content-wrapper-padding-x: 5rem;
    }
  }
  @media (max-width: 575.98px) {
    & {
      --content-wrapper-padding-x: 1rem;
    }
  }

  & > * {
    width: 100%;
    max-width: 100rem;
    margin-inline: auto;
  }
}

.ignore-container {
  width: 100%;
  padding: 0 var(--content-wrapper-padding-x);
  box-sizing: content-box;
  margin: 0 calc(-1 * var(--content-wrapper-padding-x));
  max-width: 100%;
}

.content-wrapper {
  background-color: var(--background);
  padding-bottom: 4.5rem;
}


.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Home page */

.home-banner {
  --border-radius: 9px;
  border-radius: var(--border-radius);
  position: relative;
  height: 600px;

  @media (max-width: 575.98px) {
    --border-radius: 0;
    margin-inline: calc(-1 * var(--content-wrapper-padding-x));
    box-sizing: border-box;
    height: auto;
  }

  & > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: var(--border-radius);
    position: absolute;
    inset: 0;
    z-index: 0;
  }

}


.home-banner-content {
  --search-block-form-border-width: 8px;

  position: absolute;
  top: 50%;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  z-index: 2;
  gap: 40px;

  @media (max-width: 575.98px) {
    position: relative;
    top: auto;
    justify-content: space-between;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  & > .home-banner-content-text {
    padding-inline: var(--search-block-form-border-width);
  }

  & > .home-banner-content-search {
    margin-top: auto;
    transform: translateY(50%);

    @media (max-width: 575.98px) {
      transform: translateY(0);
      width: 100%;
    }
  }
}

.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1D293EB2;
  border-radius: var(--border-radius);
  z-index: 1;
}



.search-block {
  width: 100%;
  max-width: calc(692 / 16 * 1rem);

  .search-block-buttons {
    height: 0;

    @media (max-width: 575.98px) {
      height: auto;
    }

    & > .btn {
      position: relative;

      min-height: 38px; /* fit-content does not work as expected on firefox, so I hardcoded the value :/ */
      transform: translateY(-100%);

      @media (max-width: 575.98px) {
        transform: translateY(0);
      }

      &.-active::after {
        content: '';
        position: absolute;
        bottom: 0;
        display: block;
        width: 1rem;
        height: 1rem;
        transform: translateY(50%) rotate(45deg);
        background-color: var(--main-color);
      }
    }
  }

  .search-block-form {
    border:rgba(255, 255, 255, 0.15) var(--search-block-form-border-width) solid;
    background-clip: padding-box;
    display: flex;
    flex-direction: row;

    & > form > .form-group {
      flex: 1;
    }
    & > form > .btn {
      flex: 1;
      max-width: calc(172 / 16 * 1rem);
    }
  }

}


.home-container, .home-block {
  display: flex;
  flex-direction: column;
}

/* Footer */
.syndic-logo {
  object-fit: contain;
  max-width: 60px;
}
#footer-main {
  padding: 110px 0;
}

@media (max-width: 575.98px) {
  #footer-main {
    padding: 20px;
  }
}


/* Forms */
.form-floating > label {
  color: var(--text-secondary) !important;
  background-color: transparent;
}

.toast {
  --bs-toast-font-size: 1rem;
}

/* List */
.list-header {
  background-color: #FFFFFF;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 575.98px) {
  .list-header {
    flex-direction: column;
    justify-content: flex-start;
    gap: 25px;
  }
}

/* Pagination */
.pagination {
  --bs-pagination-color: var(--bs-text-color);
  --bs-pagination-border-radius: 99px;
  --bs-pagination-active-color: #fff;
  --bs-pagination-active-bg: var(--main-color);
  --bs-pagination-active-border-color: var(--main-color);
  gap: 0.5rem;
}

.page-link {
  border-radius: 99rem !important;
  height: 45px;
  width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.service-card {
  background-color: #FFFFFF;
}

#social-media > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--background);
}

/* Detail Page */
.detail-list-item {
  height: 2.5rem;
}

.note-diagnostic {
  height: 38px;
  width: 38px;
}
.note-diagnostic.active {
  height: 45px;
  width: 45px;
}

.small-property-photos {
  --bs-aspect-ratio: 60%;
}
@media (min-width: 768px) {
  .small-property-photos {
    --bs-aspect-ratio: 78%;
  }
}

/** React-sheet-slide (bottom sheet) **/

.rss-content {
  min-width: 0;
}
@media (min-width: 376px) {
  .rss-content {
    min-width: 20rem;
  }
}

.rss-header {
  pointer-events: none;
}

/* prevent flash of content while mounting filtered results page */
#requires-javascript:target + *:not([data-x-widget-mounted]) {
  display: none;
}

/* FORMS */
.form-group > .form-select {
  height: 100%;
}


/* User defined text coming from website config */
.realty-agency-text {
  white-space: pre-wrap;
}
