/**********

Listing-page styles

**********/

body > .ajax-progress {
  display: none;
}

.listing-page .page-content-wrapper {
  width: 100%;
  max-width: 1170px;
  padding: 70px 14px;
  position: relative;
  margin: 0 auto;
  float: none;
}

.listing-page .region-content {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding-left: 300px;
}

.listing-page .region-content *[data-drupal-messages] {
  width: 100%;
}

.listing-page .region-content .views-element-container {
  width: 100%;
  min-height: 700px;
  position: relative;
}

.listing-page .region-content .block {
  padding: 0;
}

/* listing */

.listing-view {
  width: 100%;
}

.listing-view .views-infinite-scroll-content-wrapper,
.listing-view .view-content {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.listing-view .views-infinite-scroll-content-wrapper::before,
.listing-view .views-infinite-scroll-content-wrapper::after {
  content: none;
}

.listing-view .views-row {
  width: calc(33.33% - 30px);
  margin-bottom: 63px;
}

.listing-view .views-row:not(:nth-child(3n)) {
  margin-right: 45px;
}

.listing-view .listing-image-field {
  border: var(--image-border);
  overflow: hidden;
  margin-bottom: 15px;
  overflow: hidden;
}

.listing-view .listing-image-field img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 180px;
  -webkit-transition: all .7s cubic-bezier(.2, 1, .22, 1);
  transition: all .7s cubic-bezier(.2, 1, .22, 1);
}

.listing-view .views-row:hover .listing-image-field img {
  -webkit-transform: scale(1.07);
  transform: scale(1.07);
}

.listing-view .views-field-field-publications-img img {
  height: 320px;
  outline: 1px solid #e6e6e6;
}

.listing-item-type-wrap {
  font-family: var(--font-andes-semibold);
  font-size: 12px;
  color: var(--black4);
  margin-bottom: 11px;
}

.listing-item-type-wrap .listing-item-highlight {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 13px;
  font-family: var(--font-andes-bold);
}

.listing-item-title a,
.listing-item-title {
  font-size: 18px;
  line-height: 1.3;
  color: var(--black2);
  font-family: var(--font-andes-semibold);
  text-decoration: none !important;
  display: block;
}

.listing-item-title a:hover {
  color: var(--orange);
}

.listing-date-place {
  font-size: 13px;
  font-weight: var(--font-open-regular);
  color: var(--black4);
  margin-top: 17px;
}

.listing-date-place strong {
  color: var(--black2);
  font-weight: var(--font-open-semibold);
}

/* pagination */

.listing-view .pager {
  margin: 0;
}

/* top search */

.region-search-region {
  width: 100%;
  padding-bottom: 46px;
}

.listing-search-component {
  width: 100%;
  display: flex;
  justify-content: center;
}

.listing-search-component form {
  width: 100%;
  max-width: 450px;
}

.listing-search-component > .form-group {
  display: flex;
  width: 100%;
  justify-content: center;
}

.listing-search-component .date-picker-group,
.listing-search-component .form-actions,
.listing-search-component .js-form-item-field-event-start-date-value,
.listing-search-component .form--inline > .form-item:not(.form-type-textfield) {
  display: none;
}

.filter-block .js-form-item-field-event-start-date-value {
  /*display: block !important;*/
}

/* .listing-search-component .form-item-sort-by,
.listing-search-component .form-item-sort-order {
  display: block !important;
}
 */

.listing-search-component .form-type-textfield {
  width: 100%;
  margin: 0;
}

.listing-page .form-type-textfield input {
  height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--orange);
  border-radius: 4px;
  width: 100%;
  box-shadow: none;
  font-size: 14px;
  color: var(--black4);
}

.search-field {
  background: url(../img/search.png) no-repeat calc(100% - 20px) center transparent;
  padding-right: 52px !important;
}

/* left filter block */

.filter-block {
  width: 230px;
  position: absolute;
  left: 0;
  top: 0;
}

.filter-fixed .filter-block {
  position: fixed;
  left: calc(50% - 571px);
  top: 150px;
}

.filter-bottom .filter-block {
  position: absolute;
  bottom: 0;
  top: auto;
}

.filter-block form .form--inline > .form-item:not(fieldset) {
  display: none;
}

.filter-head {
  padding: 0 12px 10px 12px;
  width: 100%;
  border-bottom: 1px solid var(--orange);
  display: flex;
  align-items: center;
}

.filter-head-label {
  font-weight: var(--font-open-bold);
  color: var(--orange);
  font-size: 14px;
  margin-right: 15px;
}

.filter-icon {
  width: 20px;
  height: 18px;
  background: url(../img/filter.png) no-repeat center center transparent;
}

/* filter accordion */

.filter-block .fieldgroup {
  margin: 0;
  /* overflow: hidden; */
  width: 100%;
  border-bottom: 1px solid var(--normal-border-color);
}

.filter-block .fieldgroup .legend,
.filter-block .fieldgroup legend {
  padding: 15px 12px;
  margin-bottom: 0;
  border: none;
  display: block;
  width: 100%;
  cursor: pointer;
}

.filter-block .fieldgroup .legend:hover,
.filter-block .fieldgroup legend:hover {
  background-color: #f2f2f2;
}

.filter-block .fieldset-legend {
  font-family: var(--font-andes-regular);
  font-size: 14px;
  color: var(--black2);
  position: relative;
  width: 100%;
  display: block;
  padding-right: 21px;
}

.filter-block .fieldset-legend:after {
  content: "";
  background: url(../img/drop_down.png) no-repeat center transparent;
  display: block;
  width: 11px;
  height: 7px;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -3.5px;
  /*transition: transform 0.5s linear 0s;*/
}

.filter-block .fieldgroup.is-opened .fieldset-legend:after {
  transform: rotate(-180deg);
}

.filter-block .fieldset-wrapper {
  padding: 12px;
  background: var(--white2);
  display: none;
}

.filter-block .fieldset-wrapper > .form-checkboxes {
  width: 100%;
  max-height: 180px;
  /*overflow: auto;*/
}

.filter-block .form-checkboxes .form-type-checkbox {
  width: 100%;
  margin: 0;
  display: flex;
}

.filter-block .form-checkboxes .form-type-checkbox:not(:last-child) {
  margin-bottom: 10px;
}

.filter-block .form-type-checkbox .input-field-label,
.filter-block .form-type-checkbox .control-label {
  font-size: 13px;
  line-height: 18px;
  color: var(--black8);
}

.filter-block .form-type-checkbox .option.inner-wrap-added,
.filter-block .form-type-checkbox .control-label.inner-wrap-added {
  font-size: 0;
  line-height: 0;
}

.filter-block .form-type-checkbox .form-checkbox {
  display: none;
}

.filter-block .form-type-checkbox .input-field-label {
  width: 100%;
  padding-left: 24px;
  position: relative;
  display: block;
  cursor: pointer;
}

.btn-primary:focus,
.btn-info:focus {
  box-shadow: unset !important;
}

.filter-block .form-type-checkbox .input-field-label:hover {
  color: var(--orange);
}

.filter-block input:checked + .input-field-label {
  color: var(--orange);
}

.active-checkbox .fieldset-legend {
  color: var(--orange);
}

.filter-block .check-box-label:before {
  content: "";
  background: url(../img/checkbox.png) no-repeat center center transparent;
  width: 12px;
  height: 12px;
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -6px;
}

.filter-block input:checked + .check-box-label:before {
  background-image: url(../img/checkbox_tick.png);
}

/* buttons */

.filter-block .form-actions {
  padding: 30px 12px 0 12px;
  display: flex;
  width: 100%;
  margin-bottom: 0;
}

.filter-block .form-actions .button {
  height: 40px;
  font-weight: var(--font-open-bold);
  font-size: 14px;
  color: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 4px;
  background: #ffffff;
  text-transform: uppercase;
  margin-right: 0;
  flex: 1;
  max-width: calc(50% - 5px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-block .form-actions .button:not(:last-child) {
  margin-right: 10px;
}

.filter-block .form-actions .button:hover,
.filter-block .form-actions .button:active {
  background: var(--orange);
  color: #ffffff;
}

.filter-block .form-actions .button .glyphicon {
  display: none;
}

.filter-block .form-actions .ast-pub-reset-btn {
  flex: 1;
  max-width: calc(50% - 5px);
}

.filter-block .form-actions .ast-pub-reset-btn:not(.field-show) {
  display: none;
}

.filter-block .form-actions .ast-pub-reset-btn .button {
  width: 100%;
  max-width: none;
}

/* sort by */

.custom-sort-wrapper {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
}

.sort-by-wrap {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.sort-wrap-common {
  font-size: 13px;
  font-weight: var(--font-open-regular);
  color: var(--black4);
  display: flex;
  align-items: center;
}

.sort-wrap-common:not(:last-child) {
  margin-right: 20px;
}

.sort-by-label {
  padding-right: 10px;
  cursor: pointer;
}

.sort-wrap-common .up,
.sort-wrap-common .down {
  width: 8px;
  height: 5px;
  background: none no-repeat center center transparent;
  display: block;
  float: left;
  cursor: pointer;
}

.sort-wrap-common .up {
  background-image: url(../img/sort_up.png);
}

.sort-wrap-common .up:hover,
.sort-wrap-common .up.active-order {
  background-image: url(../img/sort_up_hover.png);
}

.sort-wrap-common .down {
  background-image: url(../img/sort_down.png);
}

.sort-wrap-common .down:hover,
.sort-wrap-common .down.active-order {
  background-image: url(../img/sort_down_hover.png);
}

/* selected filters */

.selected-filters-component {
  width: 100%;
  margin-bottom: 26px;
  overflow: hidden;
}

.selected-filter-head {
  font-size: 14px;
  font-family: var(--font-andes-regular);
  color: var(--black2);
  border-bottom: 1px solid var(--normal-border-color);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.selected-filters-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.selected-filter-item {
  float: left;
  margin-right: 20px;
  font-size: 12px;
  color: var(--black8);
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.selected-filter-title {
  float: left;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--black2);
  position: relative;
  /* padding-left: 16px; */
  margin-bottom: 4px;
}

.selected-filter-title.hide-item,
.show-more-items:not(.hide-item) ~ .selected-filter-title {
  display: none;
}

.selected-filter-item.hide-item {
  display: none;
}

.filter-selected-close {
  width: 11px;
  height: 11px;
  display: block;
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -5.5px;
  cursor: pointer;
  background: url(../img/close.png) no-repeat center center transparent;
}

.filter-selected-close:hover {
  background-image: url("../img/close_hover-01.png");
}

.filter-selected-nav-item {
  padding-left: 0;
  color: var(--orange);
  margin-left: -15px;
  cursor: pointer;
}

.filter-selected-nav-item:hover {
  color: var(--black8);
}

.no-result-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin: auto;
  max-width: 400px;
  background-color: var(--white1);
  box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--grey6);
  border-radius: 4px;
}

/* overriting filter datepicker styles */

.filter-block .year-month-wrapper .year-data {
  background-color: #ffffff;
}

.filter-block .date-picker-group {
  position: relative;
  overflow: visible;
  width: 100%;
  float: left;
}

.filter-block .date-picker-group .fieldset-wrapper {
  position: absolute;
  bottom: -20px;
  width: 100%;
  padding: 12px !important;
  padding-top: 32px !important;
  box-shadow: 0 0 14px #00000052;
  background-color: #fff;
  transition: none !important;
  height: auto !important;
  border-radius: 6px;
}

.filter-block .date-picker-group .fieldset-legend:after {
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background: url(../img/calender.png) no-repeat center transparent;
}

.filter-block .date-picker-group .legend:hover .fieldset-legend:after {
  background: url(../img/calender_hover.png) no-repeat center transparent;
}

.cal-close {
  display: inline-block;
  width: 18px;
  height: 18px;
  position: absolute;
  top: 10px;
  right: 10px;
  background: url(../img/close-calender.png) no-repeat center transparent;
  cursor: pointer;
}

.cal-close:hover {
  background-image: url("../img/close_hover.png");
}

/* custom header strip  */

.show-strip .header {
  box-shadow: none;
}

.show-strip header.header::before,
.show-strip header.header::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  display: block;
  background: #ffffff;
}

.show-strip header.header::before {
  top: 100%;
  z-index: -2;
  /* box-shadow: 0px 0px 6px #00000038; */
  box-shadow: inset 0px 0px 6px #00000038;
}

.show-strip header.header::after {
  top: calc(100% + 5px);
  z-index: -1;
}

/* hide custom scroll-bar  */

.filter-block .mCSB_scrollTools {
  opacity: 0;
}

.filter-block .fieldset-wrapper:hover .mCSB_scrollTools {
  opacity: 1;
}

/* .listing-page .banner-listing .listing-field-title a,
.listing-page .banner-listing .listing-field-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
 */

/* floating form actions */

.filter-block {
  z-index: 1;
}

.floating-form-actions {
  position: absolute;
  background: rgba(35, 31, 32, 0.8);
  width: 210px;
  z-index: 1;
  height: 40px;
  top: 60px;
  display: none;
  left: calc(50% - 341px);
  border-radius: 4px;
  transition: all .9s ease 0s;
  padding: 5px 25px;
  justify-content: space-between;
  align-items: center;
  margin-left: 8px;
}

.floating-form-actions:not(.floating-form-active) {
  display: none !important;
}

.floating-form-actions::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: rgba(35, 31, 32, 0.8);
}

.floating-form-actions-close {
  display: inline-block;
  position: absolute;
  top: 1px;
  right: 2px;
  width: 15px;
  height: 15px;
  background: url(../img/close-small.png) no-repeat center center transparent;
  background-size: 8px;
  cursor: pointer;
}

.floating-form-actions-close:hover {
  background-image: url(../img/close-small_hover.png);
}

.floating-btn {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 0 20px;
  font-size: 11px;
  cursor: pointer;
  background-color: transparent;
  color: var(--white1);
}

.floating-btn:not(:last-child) {
  margin-right: 10px;
}

.floating-btn:hover {
  background: var(--white1);
  color: var(--black2);
}

/* responsive */

@media screen and (max-width: 1199px) {
  /* .filter-fixed .filter-block {
    top: 136px;
  }
 */
  .filter-bottom .filter-block {
    left: 0 !important;
  }
  .filter-fixed:not(.filter-bottom) .filter-block {
    top: 134px;
  }
}

@media screen and (max-width: 767px) {
  .filter-bottom .filter-block {
    left: auto !important;
    bottom: auto;
  }
}
