/* Hide some options by Clarissa's request */
li.level-1[data-name="Bern"] {
    display: none;
}

.filter-cards div#main-filter-content {
  margin-bottom: 64px;
}
.filter-cards #main-filter-content .filtering-component__next{
  width: 100%;
  flex-basis: 100%;
}
.filter-cards [type=checkbox]:checked, 
.filter-cards [type=checkbox]:not(:checked), 
.filter-cards [type=radio]:checked,
.filter-cards [type=radio]:not(:checked){

}
.abs-host{
  position: relative;
}
.card-list-w-main a.abs_link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.filter-cards a.cta_button {
  min-width: fit-content!important;
}
.card .img-w {
  height: 340px;
  margin-bottom: 24px;
}
.card img {
  width: 100%; 
  object-fit: cover;
  height: 100%;
}
@media (max-width: 743px){
  .filter-cards div#main-filter-content{
    display: block;
    text-align: right;
  }
  .filter-cards #main-filter-content .filtering-component__next {
    margin-bottom: 4px;
  }
}
@media (min-width: 744px) and (max-width: 1200px){
  .filter-cards #main-filter-content .filtering-component__next{
    width: 50%;
    flex-basis: 50%;
  }
  div#main-filter-content{
    flex-wrap: wrap;
  }
  .pwr-header-right-bar__cta.pwr-header-right-bar__cta--second {
    width: 100%;
    text-align: right;
    margin-top: 8px;
  }
}
@media(max-width: 1200px){
  .filter-panel.custom-fields {
    display: none;
  }
  .mfp-wrap .filter-panel.custom-fields {
    display: block;
    background: #FFF;
    height: 100%;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: scroll;
    padding: 24px;
  }
}
.card {   
  margin-bottom: 32px;
}
.card h6 {
  margin-bottom: 8px;
}
.card h6.light {
  font-weight: 300;
}
.card p {
  margin: 0;
}
.card a.cta_button {
  margin-top: 16px;
}
.card-list-w .pwr-header-right-bar__cta{
  display: inline-block;
  margin-top: auto;
}
.card-list-w a.cta_button {
  display: flex;
  align-items: center; 
  width: auto;
}
.card-list h3 {
  margin-bottom: 16px;
  max-width: 80%
}
.card-list-details-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

div#popup-filter-trigger > a span {
  height: 24px;
  margin-left: 10px;
}
div#popup-filter-trigger > a {
  display: flex;
}
.card-list-details-button h6 {
  margin: 0;
}
@media (min-width: 744px){
  div.bottom-section{
    display: flex;
  }
  #main-filter-content .filtering-component__next{
    margin-bottom: 0;
  }
  .card-list-details-button{
    margin-bottom: 0;
  }
  .card-list-w {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;    
    padding-top: var(--spacing-larger, 40px);

  } 
  .card {   
    margin-bottom: 40px;
    width: calc(50% - 10px);
    flex-basis: calc(50% - 10px);
  }
  .card img {   
    margin-bottom: 24px;
  }
  .card a.cta_button {
    margin-top: 24px;
  }
  .card-list h3 { 
    max-width: 100%;
  }
  .filter-popup-trigger {  
    position: absolute;
    bottom: auto;
    top: 0;
    right: 0;
  }  
}
@media (min-width: 744px) and (max-width: 1200px){
  div.bottom-section{
    display: block;
  }
}
#popup_close {
  display: block;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}


.next-category {  
  padding: 12px;
}
.next-category.less-prioritized{
  order: 99;
}
.next-category span {
  color: #000000;
}
.side-filter-true .card-list {  
  position: relative;
}
.side-filter-true .card {
  display: flex;
  flex-direction: column;
}
@media (min-width: 1200px){
  .side-filter-true .card-list {  
    width: 70%;
    padding-left: 20px;  
  }
  #popup_close{
    display: none;
  }
  .side-filter-true .card {
    width: calc(50% - 10px);
    flex-basis: calc(50% - 10px);
    padding-right: 0;
    margin-bottom: 64px;
  }
  .side-filter-false .card {
    width: calc(33.3% - 10px);
    flex-basis: calc(33.3% - 10px);
    padding-right: 0;
    margin-bottom: 64px;
    display: flex;
    flex-direction: column;
  }
  .side-filter-false .card .pwr-cta--primary-border{
    flex-grow: 1;
    align-items: flex-end;
    display: flex;
  }
  .filter-popup-trigger {
    display: none;
  }

  .next-category {
    border-bottom: 2px solid var(--colors-creme-darker, #DDCFC3);
  }
  .next-category {  
    padding: 24px;
  }.next-category {  
    padding: 24px;
  }
  .filter-panel.custom-fields.white-popup{
    display: flex!important;
    flex-direction: column;
    background: initial;
    margin: initial;
    max-width: initial;
    padding: initial;
    position: initial;
    width: initial;
  }
  {# Filter Panel #}
  .filter-panel {
    width: 30%;
  }

}

.next-category h6 {
  margin: 0;
}
.next-category p{
  margin: 0 0 20px;
  font-weight: 700;
  color: #153E54;
}
.card-list-details {
  position: relative;
}
.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #153E54;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 10%;
  transform: translateY(-50%);
}
.load-more-w {
  text-align: center;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.list-enter-active, .list-leave-active {
  transition: opacity 1s;
}
.list-enter, .list-leave-to /* .list-leave-active in <2.1.8 */ {
  opacity: 0;
}
body.filter_popup_on .header__container {
  visibility: hidden;
}