/**
** VIEW EVENT
*/

.view-hub-event .form-item-date-datepicker {
  position: relative;
  margin-bottom: 70px;
  margin-top: 20px;
}

@media (max-width:1240px) {
  .view-hub-event .fieldset-wrapper {
    overflow-y: auto;
    max-width: calc(100vw - 40px);
    margin-left: 20px;
  }

  .node-type-hub-event .view-hub-event .view-filters fieldset .bef-checkboxes {
    /* overflow: initial;
    justify-content: flex-start; */
    flex-wrap: wrap;
  }
}

@media(max-width:600px) {
  .node-type-hub-event .view-hub-event .view-filters fieldset .bef-checkboxes {
    flex-wrap: nowrap;
    overflow: auto !important;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    margin: 0 -20px;
    padding: 10px 20px;
    
  }
  .node-type-hub-event .view-hub-event .view-filters fieldset .bef-checkboxes::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  .view-hub-event .fieldset-wrapper {
    overflow: initial;

  }

  
}

.view-hub-event .form-item-date-datepicker label {
  border: 1px solid #8f8f8f;
  background-color: #fff;
  display: inline-block;
  padding: 8px 15px;
  cursor: pointer;
  height: 40px;
  color: #000;
  margin: 0;
  border-radius: 5px;
}

@media (max-width:1240px) {
  .view-hub-event .form-item-date-datepicker label {
    margin-left: 20px;
  }
}

.view-hub-event .form-item-date-datepicker label:after {
  background-image: url(/themes/custom/guimet/img/icon_calendar.svg);
  margin: 1px 0 0 8px;
  float: right;
  height: 20px;
  width: 20px;
  content: "";
}

.view-hub-event .form-item-date-datepicker label.has-selected {
  padding-right: 0;
}

.view-hub-event .form-item-date-datepicker label.has-selected:after {
  display: none;
}

.view-hub-event .form-item-date-datepicker label.has-selected span {
  background-image: url(/themes/custom/guimet/img/icon_close.svg);
  margin: -8px 0 0 8px;
  float: right;
  height: 38px;
  width: 30px;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  background-color: #fff;
}

.view-hub-event .form-item-date-datepicker label.has-selected span:hover {
  background-color: #6f6f6f;
  filter: invert(1);
}

.view-hub-event .form-item-date-datepicker label:hover {
  background-color: #000;
  color: #fff;
}

.view-hub-event .form-item-date-datepicker label:hover:after {
  filter: brightness(0) invert(1);
}

.view-hub-event .form-item-date-datepicker input[data-drupal-selector="edit-date-datepicker"] {
  display: inline-block;
  pointer-events: none;
  margin: 0 0 0 -150px;
  visibility: hidden;
  width: 150px;
  opacity: 0;
}

.view-hub-event .form-item-date-datepicker.open input[data-drupal-selector="edit-date-datepicker"] {
  /* pointer-events: auto;
  visibility: initial;
  opacity: 1; */
}

.view-hub-event .form-item-date-datepicker .selected-date {
  display: inline-block;
}

.view-hub-event .form-item-date-datepicker .selected-date span {
  display: inline-block;
  border-radius: 16px;
  padding: 7px 16px;
  font-weight: bold;
  background: #000;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #fff;
}

.view-hub-event .form-item-date-datepicker .selected-date span:after {
  margin: 1px 0 0 8px;
  font-weight: bold;
  content: "\00D7";
  font-size: 14px;
  float: right;
  color: #eee;
}

/*
** MAP HUB
*/

.view-hub-map {
  margin: 0 0 50px 0;
}

.map-hub-map-wrapper .map-hub-map-container {
  background-image: url("../img/map_background.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
  position: relative;
  height: 48.6vw;
  width: 100%;
}

@media (max-width: 990px) {
  .map-hub-map-wrapper .map-hub-map-container {
    background-image: none;
    height: auto;
    display: flex;
    overflow: auto;
    max-width: 100vw;
    padding: 20px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .map-hub-map-wrapper .map-hub-map-container::-webkit-scrollbar {
    display: none;
  }
}

.view-map-hub-results {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.view-map-hub-results .node--view-mode-teaser {
  max-width: none;
  margin: 0 auto;
  padding: 40px;
  width: 25%;
}

.view-hub-map .views-exposed-form ul {
  white-space: nowrap;
  margin: 25px auto;
  list-style: none;
  overflow: auto;
  padding: 0 50px;
  width: 100vw;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

@media (max-width: 990px) {
  .view-hub-map .views-exposed-form ul {
    padding: 0 20px;
  }
}

.view-hub-map .views-exposed-form ul::-webkit-scrollbar {
  display: none;
}

.view-hub-map .views-exposed-form ul li {
  border: 1px solid #8f8f8f;
  background-color: #fff;
  display: inline-block;
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  margin: 0 15px;
  color: #000;
}

.view-hub-map .views-exposed-form ul li:first-child {
  margin-left: 0;
}

.view-hub-map .views-exposed-form ul li:last-child {
  margin-right: 0;
}

.view-hub-map .views-exposed-form ul li:hover {
  background-color: #000;
  color: #fff;
}

.view-hub-map .views-exposed-form ul li.active {
  background: #000;
  color: #fff;
}

.view-hub-map .views-exposed-form ul li.active:after {
  margin: 1px 0 0 8px;
  font-weight: bold;
  content: "\00D7";
  font-size: 14px;
  float: right;
  color: #eee;
}

.view-hub-map .form-item-region {
  display: none;
}

.map-hub-map-region-marker {
  text-align: center;
  position: absolute;
  cursor: pointer;
  height: auto;
  width: 13vw;
}

@media (max-width: 990px) {
  .map-hub-map-region-marker {
    text-align: center;
    position: relative;
    left: 0 !important;
    top: 0 !important;
    width: 254px;
    min-width: 254px;
    background: #ffffff;
    box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    margin-right: 10px;
    display: flex;
    align-items: center;
  }
}

.map-hub-map-region-marker img {
  margin: 0 auto 10px;
  border-radius: 50%;
  max-width: 100px;
  display: block;
  width: 6.9vw;
}

@media (max-width: 990px) {
  .map-hub-map-region-marker img {
    width: 75px;
    height: 75px;
    border-radius: 75px;
    margin: 10px;
  }
}

.map-hub-map-region-marker .name {
  background-color: #fff;
  display: inline-block;
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 18px;
  color: #000;
}

.map-hub-map-region-marker:hover .name,
.map-hub-map-region-marker.active .name {
  background-color: #000;
  color: #fff;
}

.map-hub-map-region-marker.active:after {
  background-color: #fff;
  border-radius: 25px;
  line-height: 25px;
  content: "\00d7";
  font-size: 23px;
  position: absolute;
  height: 25px;
  width: 25px;
  color: #000;
  right: 28%;
  top: 0;
}

.map-hub-map-region-marker.active:hover:after {
  background-color: #000;
  color: #fff;
}

.map-hub-map-region-marker.inactive {
  filter: grayscale(1);
  opacity: 0.75;
}

.map-hub-map-region-marker .count {
  display: inline-block;
  border-radius: 50%;
  line-height: 25px;
  margin: 0 0 0 5px;
  background: #000;
  font-size: 13px;
  height: 25px;
  color: #fff;
  width: 25px;
}

.view-hub-map ul.pager__items {
  text-align: center;
  list-style: none;
}

.view-hub-map ul.pager__items li {
  border: 1px solid #000;
  display: inline-block;
  border-radius: 50%;
  background: #fff;
  margin: 0 5px;
  color: #000;
}

.view-hub-map ul.pager__items li.is-active {
  background: #000;
  border-color: #000;
  color: #fff;
}

.view-hub-map ul.pager__items li a {
  text-align: center;
  line-height: 40px;
  display: block;
  height: 40px;
  width: 40px;
}

.view-hub-map ul.pager__items li.pager__item--first,
.view-hub-map ul.pager__items li.pager__item--last {
  display: none;
}

.view-hub-map .views-exposed-form .bef-links ul li:first-child {
  display: none;
}

@media screen and (max-width: 1200px) {
  .view-map-hub-results .node--view-mode-teaser {
    width: 33.33%;
  }
}

@media screen and (max-width: 768px) {
  .view-map-hub-results .node--view-mode-teaser {
    width: 50%;
  }
}

@media screen and (max-width: 530px) {
  .view-map-hub-results .node--view-mode-teaser {
    width: 100%;
  }
}

.gin--horizontal-toolbar.white-header .site-header {
  position: static !important;
}

.gin--horizontal-toolbar .top-right-menu {
  top: 120px;
}

.gin--horizontal-toolbar.white-header .view-expositions,
.gin--horizontal-toolbar.white-header .view-hub-news,
.gin--horizontal-toolbar.white-header .view-hub-treasure,
.gin--horizontal-toolbar.white-header .view-show-hub-list {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.gin--horizontal-toolbar.white-header .white-center-header {
  margin-top: 0px;
}

.gin--horizontal-toolbar.white-header .site-header {
  margin-top: 0px;
  padding-top: 35px !important;
}

.gin--horizontal-toolbar .site-header {
  padding-top: 205px !important;
}

.block-related-content-map {
  margin-bottom: 45px;
}

/**
** LEAFLET
*/

.leaflet-map.leaflet-round-markers .leaflet-marker-icon {
  border-radius: 50%;
}

/**
** REMOTE MEDIA
*/

div#tarteaucitronRoot.tarteaucitronBeforeVisible::before {
  display: none !important;
}

/* 
body #tarteaucitronRoot div#tarteaucitronAlertBig {
  display: none !important;
} */

.remote-media {
  text-align: center;
}

.remote-media .iframe-container {
  display: inline-block;
  position: relative;
  max-width: 720px;
  width: 100%;
}

@media (max-width: 760px) {
  .remote-media .iframe-container {
    margin: 20px;
    width: calc(100% - 40px);
  }
}

.remote-media img.thumbnail {
  margin: 0 auto;
  display: block;
  height: auto;
  width: 100%;
}

.remote-media[data-playable="1"] {
  cursor: pointer;
  padding-bottom: 10px;
}

.remote-media[data-playable="1"] .iframe-container:after {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.6);
  font-family: Arial, sans-serif;
  vertical-align: middle;
  left: calc(50% - 40px);
  top: calc(50% - 40px);
  border-radius: 40px;
  position: absolute;
  text-align: center;
  padding-left: 4px;
  line-height: 80px;
  background: #fff;
  font-size: 24px;
  content: "►";
  height: 80px;
  width: 80px;
  color: #000;
}

.remote-media[data-playable="1"] .iframe-container:hover:after {
  opacity: 0.75;
}

.remote-media .iframe-container iframe {
  max-width: 100%;
  display: block;
}

.cookieConsentPopin {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: absolute;
  padding: 20px;
  cursor: default;
  font-size: 13px;
  height: auto;
  width: 100%;
  z-index: 5;
  bottom: 0;
  left: 0;
}

@media (max-width: 999px) {
  .cookieConsentPopin {
    padding: 15px;
  }
}

.cookieConsentPopin p {
  margin: 0 0 15px 0;
  line-height: 1.3;
  text-align: left;
  color: #153561;
}

@media (max-width: 999px) {
  .cookieConsentPopin p {
    font-size: 10px;
    margin: 0 0 8px 0;
    line-height: 1.2;
  }
}

.cookieConsentPopin a {
  display: inline;
  margin-left: 20px;
  color: #000;
}

@media (max-width: 999px) {
  .cookieConsentPopin a {
    font-size: 10px;
    margin-left: 15px;
  }
}

.cookieConsentPopin button {
  background-color: #000;
  border: 2px solid #000;
  transition: all 0.25s;
  padding: 8px 16px;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 999px) {
  .cookieConsentPopin button {
    padding: 6px 12px;
  }
}

.cookieConsentPopin button:hover {
  background-color: #fff;
  border: 2px solid #000;
  color: #000;
}

/* OTHER */

.open-status:before {
  display: none !important;
}

.newsletter-form>span {
  margin-bottom: 5px;
  font-size: 18px;
  display: block;
}

.content-with-sidebar .col-content {
  margin: auto;
}

@media (min-width:1200px) {
  .content-with-sidebar .col-content {
    margin-right: 0;
  }
}

/* viewmode-teaser.min.css */

.view-pager .pager__item.pager__item--next,
.view-pager .pager__item.pager__item--previous {
  display: none;
}

.view-pager .pager__item.pager__item--first,
.view-pager .pager__item.pager__item--last {
  text-indent: 40px;
  white-space: nowrap;
  overflow: hidden;
  color: transparent !important;
  background-image: url(/themes/custom/guimet/img/arrow_right.svg);
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
  width: 40px !important;
  border-radius: 50%;
}

.view-pager .pager__item.pager__item--first:hover,
.view-pager .pager__item.pager__item--last:hover {
  background-image: url(/themes/custom/guimet/img/arrow_right_white.svg);
}

.view-pager .pager__item.pager__item--first {
  transform: rotate(180deg);
}
