.main-page-big-photo{
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 15%), url("../images/02-V1b820g.jpg");
  background-color: rgba(0, 0, 0, 0);
  background-position: 0 0, center center;
  background-repeat: repeat, no-repeat;
  background-attachment: scroll, scroll;
  background-origin: padding-box, padding-box;
  background-clip: border-box, border-box;
  background-size: cover;
  height: 528px;
}

.search-main-page-wrapper{
  width: 100%!important;
  position: absolute;
  /* the image under the header (.nav-wrapper-main-menu, 50px, over the image): the search in its middle */
  top: var(--main-header-height, 50px);
  bottom: 0;
  z-index: 997;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
  padding: 0 23%;
}

.carousel-control-prev.with-gradient,
.carousel-control-next.with-gradient{
  z-index: 1;
}

.main-page-carousel .carousel-control-prev,
.main-page-carousel .carousel-control-next{
  top: var(--carousel-control-top, 35%);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.main-page-carousel:hover .carousel-control-prev,
.main-page-carousel:hover .carousel-control-next,
.main-page-carousel .carousel-control-prev:focus-visible,
.main-page-carousel .carousel-control-next:focus-visible{
  opacity: 0.7;
}

.main-page-carousel .carousel-control-prev:hover,
.main-page-carousel .carousel-control-next:hover{
  opacity: 0.9;
}

@media (max-width: 767.98px), (hover: none){
  .main-page-carousel .carousel-control-prev,
  .main-page-carousel .carousel-control-next{
    display: none;
  }
}

.photo-under-main-search .carousel-item{
  max-height: 600px;
  overflow: hidden!important;
  width: 100%;
}

.col-services-main-page{
  position:relative;
  height: 370px;
  max-width: 370px;
}

.photo-services-main-page{
  position: absolute;
  overflow: hidden;
  height: 200px;
  width: 100%;
  box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.1);
}

.col-services-main-page img{
  position: absolute;
  z-index: -2;
}

.text-services-main-page{
  margin-top: 220px;
}

.title-obj-list-main-page{
  text-align: center;
  margin-bottom: 20px;
}

.homepage-property-links .btn-link {
  color: #337ab7;
}

.col-obj-main-page{
  position: relative;
  margin-left: 15px;
  margin-bottom: 25px;
}

.col-obj-main-page .caption{
  position: absolute;
  color: white;
  left: 0;
  bottom: 7px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  padding-left: 7px;
  padding-right: 7px;
}

.col-obj-main-page .caption p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.col-obj-main-page .caption .lead{
  font-size: 28px;
  margin: 0;
  padding: 0;
  line-height: 28px;
}

.photo-obj-main-page{
  display: block;
  position: absolute;
  margin-top: -60%;
  background-color: #d8d8d8;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-size: cover;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  z-index: 1;
  border-radius: 1%;
  box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.5);
}

.photo-obj-main-page img{
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 100%;
  width: 100%;
  height: auto;
  transform: translate3d(-50%, -50%, 0);
  z-index: -2;
}

.col-obj-main-page .under-caption-shadow{
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 77px;
  background: rgba(0, 0, 0, 0) linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6)) repeat scroll 0 0;
  z-index: -1;
}

/* the main page search card (templates/main/searchForm.html.twig) */
.main-search{
  --main-search-pill-bg: #f7f4f0;
  background: #fff;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.main-search-row{
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* input + clear button as one item of the row */
.main-search-input-wrap{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.main-search .main-search-input{
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--main-search-pill-bg);
  box-shadow: none;
  font-size: 16px;
  color: #212529;
}

.main-search .main-search-input:focus{
  background: var(--main-search-pill-bg);
  box-shadow: 0 0 0 3px rgba(0, 116, 228, 0.25);
}

.main-search-input-wrap .main-search-input.suggest-clearable{
  padding-right: 48px;
}

.main-search .main-search-clear{
  position: absolute;
  top: 0;
  right: 4px;
  z-index: 6;
  width: 44px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(134, 144, 153);
}

.main-search .main-search-clear[hidden]{
  display: none;
}

.main-search .main-search-clear svg{
  fill: currentColor;
}

.main-search .main-search-clear:hover{
  color: #333;
}

.main-search .main-search-submit{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
}

.main-search-options{
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.main-search .main-search-select{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #212529;
  font-size: 16px; /* as the input */
  font-weight: 400;
}

.main-search .main-search-select:hover,
.main-search .main-search-select[aria-expanded="true"]{
  background: var(--main-search-pill-bg);
}

/* outline icons: base.css gives every svg a gray fill and 24px */
.main-search .main-search-submit svg,
.main-search .main-search-select svg{
  fill: none;
}

.main-search .main-search-submit svg{
  width: 20px;
  height: 20px;
}

.main-search .main-search-select svg{
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.main-search .main-search-select[aria-expanded="true"] svg{
  transform: rotate(180deg);
}

/* the place suggestions under the input (suggest.css): rounded like the input, no border */
.main-search .suggest-menu{
  margin-top: 8px !important;
  padding: 10px 0;
  border: 0;
  border-radius: 24px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* the type panel: action segment + property kind pills */
.main-search .dropdown .main-search-panel{ /* beats search.css .dropdown .dropdown-menu */
  width: 400px;
  max-width: calc(100vw - 32px);
  margin-top: 16px !important;
  padding: 16px 16px 20px;
  border: 0;
  border-radius: 24px !important; /* navigation.css squares every .dropdown-menu */
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.main-search-panel-title{
  margin: 4px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #212529;
}

.main-search-segment{
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--main-search-pill-bg);
}

.main-search-segment-item{
  flex: 1 1 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.main-search-segment-item:hover{
  color: #212529;
}

.main-search-segment-item[aria-pressed="true"]{
  background: #fff;
  color: #212529;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.main-search-tabs{
  display: flex;
  gap: 20px;
  margin: 0 0 14px;
}

.main-search-tab{
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #767676;
  font-size: 14px;
  font-weight: 500;
}

.main-search-tab[hidden],
.main-search-kinds[hidden]{
  display: none;
}

.main-search-tab:hover{
  color: #212529;
}

.main-search-tab[aria-selected="true"]{
  color: #212529;
  border-bottom-color: #212529;
}

.main-search-tab:focus-visible{
  outline: 2px solid #0074e4;
  outline-offset: 2px;
}

.main-search-kinds{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.main-search-kind{
  padding: 8px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  background: #fff;
  color: #212529;
  font-size: 14px;
  transition: border-color 0.15s, background-color 0.15s;
}

.main-search-kind[hidden]{
  display: none;
}

.main-search-kind:hover{
  border-color: #212529;
}

.main-search-kind[aria-pressed="true"]{
  border-color: #212529;
  background: var(--main-search-pill-bg);
  box-shadow: inset 0 0 0 1px #212529;
  font-weight: 500;
}

.main-search-segment-item:focus-visible,
.main-search-kind:focus-visible{
  outline: 2px solid #0074e4;
  outline-offset: 2px;
}


/* phones (main_search.js): the card is a summary + submit; the summary opens the form as a full-screen sheet */
.main-search-summary-row,
.main-search-sheet-head,
.main-search-sheet-foot{
  display: none;
}

@media (max-width: 767.98px) {
  /* collapsed: the summary card */
  .main-search:not(.is-sheet-open) .main-search-row,
  .main-search:not(.is-sheet-open) .main-search-options{
    display: none;
  }

  .main-search:not(.is-sheet-open){
    padding: 8px 8px 8px 20px;
    border-radius: 32px;
  }

  .main-search-summary-row{
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .main-search-summary{
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-size: 15px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-search .main-search-summary-submit{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
  }

  .main-search .main-search-summary-submit svg{
    width: 20px;
    height: 20px;
    fill: none;
  }

  /* the sheet */
  body.main-search-sheet-open{
    overflow: hidden;
  }

  /* the hero wrapper (z-index 997) would keep the sheet under the fixed header */
  body.main-search-sheet-open .search-main-page-wrapper{
    z-index: 1070;
  }

  .main-search.is-sheet-open{
    position: fixed;
    inset: 0;
    z-index: 1070;
    margin: 0;
    padding: 16px 16px calc(92px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .main-search.is-sheet-open .main-search-summary-row{
    display: none;
  }

  .main-search.is-sheet-open .main-search-sheet-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  .main-search-sheet-title{
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: #212529;
    outline: none;
  }

  .main-search-sheet-close{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #212529;
  }

  .main-search .main-search-sheet-close svg{
    fill: none;
  }

  .main-search.is-sheet-open .main-search-submit{
    display: none;
  }

  .main-search.is-sheet-open .main-search-input,
  .main-search.is-sheet-open .main-search-input:focus{
    height: 52px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #212529;
    font-size: 16px; /* iOS zooms into smaller inputs */
  }

  .main-search.is-sheet-open .main-search-clear{
    height: 52px;
  }

  /* the type panel inline */
  .main-search.is-sheet-open .main-search-options{
    display: block;
    margin-top: 28px;
  }

  .main-search.is-sheet-open .main-search-select{
    display: none;
  }

  .main-search.is-sheet-open .dropdown .main-search-panel{
    position: static !important;
    display: block;
    width: auto;
    max-width: none;
    margin: 0 !important;
    padding: 0;
    border-radius: 0 !important;
    box-shadow: none;
    transform: none !important;
  }

  .main-search.is-sheet-open .main-search-panel-title{
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 500;
  }

  .main-search.is-sheet-open .main-search-segment{
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .main-search.is-sheet-open .main-search-segment-item{
    flex: 0 1 auto;
    padding: 10px 18px;
    font-size: 14px;
  }

  .main-search.is-sheet-open .main-search-segment-item[aria-pressed="true"]{
    font-weight: 500;
  }

  .main-search.is-sheet-open .main-search-kinds{
    gap: 10px;
  }

  .main-search.is-sheet-open .main-search-kind{
    padding: 12px 20px;
    font-size: 14px;
  }

  /* typing: the suggestions take the place of the type options */
  .main-search.is-sheet-open.is-suggest-open .main-search-options{
    display: none;
  }

  .main-search.is-sheet-open .suggest-menu{
    position: static !important;
    width: auto !important;
    max-height: none;
    margin: 12px 0 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    box-shadow: none;
    overflow: visible;
  }

  .main-search.is-sheet-open .suggest-item{
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: 16px;
  }

  .main-search.is-sheet-open .suggest-header{
    margin: 8px 0 4px;
    border-radius: 8px;
  }

  /* the submit at the bottom of the sheet */
  .main-search.is-sheet-open .main-search-sheet-foot{
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .main-search-sheet-submit{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #212529;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
  }

  .main-search .main-search-sheet-submit svg{
    width: 20px;
    height: 20px;
    fill: none;
  }
}

.main-page-search-input{

}

.visible-in-main-page{
  display: block;
}

@media (max-width: 480px) {
  .main-page-big-photo{
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 25%), url("../images/02-V1b820g.jpg");
    height: 320px;
  }

  .search-main-page-wrapper{
    padding: 0 5%;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  .main-page-big-photo{
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 20%), url("../images/02-V1b820g.jpg");
    height: 360px;
  }

  .search-main-page-wrapper{
    padding: 0 5%;
  }
}

@media (max-width: 768px) {
  .row-dense-top-mobile-50px {
    margin-top: 50px;
  }


  .h1-under-main-menu {
    font: 24px Verdana,sans-serif,Helvetica,Arial;
    margin-top: 15px;
  }

  .h1-main-page h1{
    margin: 0;
    /*text-shadow: $tx-shaMainPageH1Block;*/
    font-size: 24px;
  }

  .search-main-page-block{
    background: none repeat scroll 0 0 rgba(255, 255, 255, 0);
    border: 0;
  }


}

@media (min-width: 768px) {
  .h1-main-page {
    /*background-color: $bg-colMainPageH1Block;*/
    color: #fff;
    width: auto;
    margin-bottom: 0;
    position: relative;
  }

  /* centered over the search card */
  .h1-main-page h1 {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 0 17px 0; /* 12px gap above the search card */
    margin: 0;
    font-family: inherit; /* not the thin Verdana of .h1-under-main-menu */
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.01em;
    display: block;
    text-align: center;
    /* a tight edge + a wide glow: readable over the light rooftops */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 2px 24px rgba(0, 0, 0, 0.6);
  }

  /* a soft shade in the middle of the image, under the heading and the search */
  .main-page-big-photo::before{
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
    pointer-events: none;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .main-page-big-photo{
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 20%), url("../images/02-V1b820g.jpg");
    height: 468px;
  }

  .search-main-page-wrapper{
    padding: 0 10%;
  }

  .visible-in-main-page{
    display: none;
  }

  .h1-main-page h1 {
    font-size: 32px;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .main-page-big-photo{
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 20%), url("../images/02-V1b820g.jpg");
    height: 468px;
  }

  .search-main-page-wrapper{
    padding: 0 15%;
  }

  .photo-services-main-page{
    height: 180px;
  }

  .text-services-main-page{
    margin-top: 200px;
  }

  .photo-obj-main-page{
    height: 170px;
  }

  .visible-in-main-page{
    display: none;
  }
}
