/*
 * List page rules (docs/CSS_SPLIT_PLAN.md, step 3f): linked after the bundle by search/search.html.twig (sale, rent,
 * podobovo lists), complex/showComplexList.html.twig and myRealty/index.html.twig. The search rules other pages use
 * are in search-common.css (in the bundle).
 */

.dropdown-geo-search{
  display: none;
  padding: 5px 15px 0 15px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
  background-color: #fff;
  position: fixed;
  width: 100%;
  top: 100px;
  z-index: 1001;
}

.search-page-input-block{
  padding-top: 9px;
}

.search-page-input-collapse-button{
  position: absolute;
  top: 65px;
  left: 15px;
  text-decoration: none;
}

.search-page-input-collapse-button svg{
  height: 20px;
  width: 20px;
  fill: #337ab7;
  margin-top: -2px;
  margin-left: -5px;
}

.long-list-item-box{
  height: 37px;
  overflow: hidden
}

.long-list-item-box a{
  line-height: 100%;
  padding: 10px 10px 8px 10px;
}

.filter-list-title{
  display: block;
  padding: 10px 10px 0 10px;
  color: #333;
}

.bg-selected .list-group-item{
  background-color: #f5f5f5;
}

.main-menu-sub-nav li.search-page-input-collapse{
  width: 350px;
  margin-top: 8px;
}

#currency-filter .btn-default{
  background-color: #fff;
  background-image: none;
  border: none;
  box-shadow: none;
  color: #777;
}

.search-result-map-wrapper{
  position: fixed;
  right: 0;
  top: 110px;
  padding-left: 15px;
}

#list-wrapper{
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
}

#search_result ol.breadcrumb {
  background-color: transparent;
  padding-left: 0;
}

#search_result ol.breadcrumb>li+li:before{
  content: "";
  padding: 0;
}

.btn-show-map{
  color: #212529;
  font-size: 14px;
}

.btn-show-map:hover{
  text-decoration: none;
  cursor: pointer;
}

.btn-show-map svg{
  height: 20px;
  width: 20px;
  fill: #212529;
  margin: -3px 0 0 0;
}

.map-close-button {
  background-color: #fff;
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 7px;
  border-radius: 4px;
  z-index: 1000;
  white-space: nowrap;
  box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px !important;
}

.mobile-searchbar-bottom-panel{
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
  border-top: 1px solid #ccc;
  z-index: 998;
  margin-bottom: calc(8px + env(safe-area-inset-bottom));
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.mobile-searchbar-bottom-panel button{
  padding: 8px 16px;
}

.mobile-searchbar-bottom-panel button svg{
  margin-top: -3px;
  width: 18px;
  height: 18px;
  fill: #333333;
}

#search-list-button{
  display: none;
}

.placemark-container {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}

.circle-sub-layout-hover,
.circle-sub-layout-big-hover {
  background-color: #74c005;
  z-index: 15;
}

.placemark-layout-price,
.placemark-layout-price-hover {
  position: absolute;
  padding: 2px 3px 1px 3px;
  background-color: #f5f5f5;
  border-radius: 3px;
  color: #555;
  border-bottom: 1px solid #999;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  font-size: 12px;
  font-weight: bold;
  margin-top: -1px;
}

.popover {
  display: block;
  width: 200px;
  border-radius: 0;
  z-index: 14;
  border: none #ccc;
}

.map-alerts{
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  position: absolute;
  left: 0;
  width: 100%;
  min-height: 40px;
  padding: 10px;
  z-index: 12;
  display: none;
}

.map-result-alerts{
  color: #fff;
  background: rgba(250, 74, 29, 0.9) none repeat scroll 0 0;
  position: absolute;
  right: 5px;
  top: 45px;
  padding: 5px 10px;
  border-radius: 4px;
  z-index: 12;
  display: none;
}

.map-result-alerts:hover{
  background: rgba(250, 74, 29, 0.7) none repeat scroll 0 0;
  cursor: pointer;
}

.link-in-filter{
  color: #555;
  padding: 10px 15px;
}

.link-in-filter:hover{
  background-color: #f5f5f5;
  text-decoration: none;
  cursor: pointer;
}

.link-in-filter.close{
  padding: 5px 10px;
}

.search-list-sorting{
  font-size: 18px;
  color: #555;
  list-style: none;
  margin-bottom: 15px;
}

.search-list-sorting > li > a{
  color: #444;
  padding-left: 0!important;
  padding-right: 0!important;
  margin-right: 30px;
}

.search-list-sorting a.sort-active{
  color: #0074e4;
  border-bottom: 2px solid #0074e4;
}

.search-list-sorting > li > ul{
  display: none;
}

.search-list-sorting > li > ul.show{
  display: block;
}

/* mobile Filter button: count of filters in use on the button's top-right corner;
   z-index keeps it above the Sort button, which is positioned right next to it */
.collapsed-filter-block .filter-count-badge{
  position: absolute;
  z-index: 2;
  top: -6px;
  right: -6px;
  min-width: 16px;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 12px;
  box-shadow: 0 0 0 2px #ffffff;
}

.sort-list-block button.search-copy-link,
.sort-list-block button.search-copy-link:hover{
  border: 1px solid transparent;
  padding: 0.375rem;
}

.sort-list-block button.search-copy-link svg{
  fill: #222;
}

.sort-list-block button.search-copy-link:hover{
  background-color: rgb(232, 233, 234);
}

.search-copy-link .search-copy-done-icon,
.search-copy-link.is-copied .search-copy-link-icon{
  display: none;
}

.search-copy-link.is-copied .search-copy-done-icon{
  display: inline;
}

.sort-list-block button.search-copy-link.is-copied svg{
  fill: #198754;
}

.tile-nav-slider{
  position: relative;
  padding: 0;
  overflow: hidden;
}

.tile-nav-slider .slide-item .card{
  height: 180px;
  text-decoration: none;
  color: #555555;
  overflow: hidden;
  border-radius: 0.5rem;
}

.tile-nav-slider .slide-item .card .card-body {
  padding: 0.6rem;
  line-height: 1.2em;
}


.tile-nav-slider .tns-controls button{
  position: absolute;
  top: 35%;
  border-radius: 5px;
  border: none;
  margin-left: -5px;
  height: 50px;
  width: 40px;
  z-index: 1;
  background-color: #ffffff;
  opacity: 0.8;
}

.tile-nav-slider .tns-controls button[data-controls="next"]{
  right: 0;
  margin-right: -5px;
  margin-left: 0;
}

.balloon-block{
  width: 200px;
  font-size: 14px;
}

.main-menu-sub-nav .nav-item .nav-link.save-search-button svg{
  height: 18px;
  width: 18px;
  margin-top: -3px;
}

.main-menu-sub-nav .nav-item .nav-link.save-search-button.disabled{
  color: #869099;
}

.main-menu-sub-nav .nav-item .nav-link.save-search-button.disabled svg{
  fill: #869099;
}

.image-slider-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.image-slider-arrow svg{
  fill: #ffffff;
}

.image-slider-arrow:hover{
  background-color: rgba(0, 0, 0, 0.55);
}

.wrapper-obj-listing-item:hover .image-slider-arrow,
.image-slider-arrow:focus-visible{
  opacity: 1;
}

.image-slider-arrow--prev{
  left: 8px;
}

.image-slider-arrow--next{
  right: 8px;
}

.image-slider-dots{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-slider-dot{
  width: 6px;
  height: 6px;
  margin: 0 3px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.image-slider-dot.active{
  background-color: #ffffff;
  transform: scale(1.3);
}

@media (hover: none){
  .image-slider-arrow{
    opacity: 1;
  }
}

/* Slider photos are moved with translate3d(px) by js/search/image_slider.js,
   so they are pinned to the top-left instead of centred with translate(-50%,-50%). */
.photo-obj-search-page img.image-slider__img{
  left: 0;
  top: 0;
  transform: translate3d(0,0,0);
  -webkit-user-drag: none;
}

/* pan-y: the browser keeps vertical page scroll, horizontal moves drive the slider. */
a.photo-obj-search-page.image-slider{
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* the address of a listing card: separate links to the search, look like plain text */
.object-listing-address.geo-links {
  color: #333;
}

.object-listing-address.geo-links a {
  color: inherit;
  text-decoration: none;
}

.object-listing-address.geo-links a:hover {
  text-decoration: underline;
}

.object-listing-promotion{
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  max-height: 64px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wrapper-obj-listing-photo .caption-top,
.wrapper-obj-listing-item .caption-top{
  position: absolute;
  color: white;
  left: 0px;
  top: 7px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  padding-left: 7px;
  padding-right: 7px;
  z-index: 2;
  font-size: 13px;
  width: 100%;
}

.hideVisually{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
}

.custom-file .typeahead{
  width: 100%;
}

.my-realty .custom-file input{
  height: 39px;
  margin-top: 1px;
}

.search-main-page-block .custom-file{
  height: 45px;
}

@media (max-width: 768px) {

  .search-page-input-block{
    position: absolute;
    top:0;
    left: 125px;
    right: 60px;
  }

  .search-page-input-block.focus{
    left: 15px;
    right: 15px;
  }

  .search-page-input-block.focus .typeahead{
    background-color: #ffffff!important;
    border: 1px solid #d9d9d9;
  }

  /* on phones the copy-link icon goes after Sort */
  .sort-list-block .search-copy-link{
    order: 1;
  }

  .search-filter-action-block{
    position: fixed;
    z-index: 1004;
    left: 0;
    bottom: 0;
    background-color: rgb(255, 255, 255);
    padding: 16px;
    width: 100%;
  }

  /* "Clear" next to "View N" in the mobile filter panel */
  .search-filter-action-block .filter-reset-button{
    border: 1px solid #d9d9d9;
    color: #333333;
  }

  body.modal-open .under-block{
    z-index: 998!important;
  }

  .main-menu-sub-nav .search-page-input-collapse{
    display: none !important;
  }

  .search-result-map-wrapper{
    top: 121px;
    padding-left: 0;
  }

  /* in the strip above the map, where the list view shows its filter button (65px from the top) */
  .map-filter-block{
    position: absolute;
    top: -56px;
    left: 12px;
  }

  .dropdown-geo-search{
    top: 50px;
  }

  .top-city-in-filter{
    display: block;
    width: 100%;
    text-align: left;
  }

  .search-list-sorting{
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .dropdown-menu .checked-list-box .list-group-item{
    border: none;
    min-width: 170px;
  }

  .search-page-input-block{
    position: absolute;
    top: 50px;
    width: 240px;
    left: 10px;
  }
}

@media (min-width: 868px) {
  .search-page-input-block{
    width: 260px;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .main-menu-sub-nav li.search-page-input-collapse{
    width: 320px;
  }
}

@media (min-width: 992px) {
  .search-page-input-block{
    width: 350px;
  }
}

@media (min-width: 1500px) {
  .carousel-control.with-gradient {
    display: block!important;
  }
}


/* AD STYLING */

.adsense {
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: block;
  margin: 0 auto;
}
.adsense:before { display: none !important; }
.adsense ins	{ width: 100%; height: 100%; display: block; }

.adsense {
  position: relative;
}
.adsense__loading {
  width: 100%;
  height: 100%;
  background-color: rgba( 255, 255, 255, .9 );
  display: table;
  position: absolute;
  top: 0;
  left: 0;
}
.adsense--loaded .adsense__loading { display: none; }

.adsense__loading span {
  text-align: center;
  vertical-align: middle;
  display: table-cell;
}
