/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
 /*====================================== Search box =======================*/
/* Style the search field */
form > div.conectandalucia-search-container > input#conectandalucia-searchbox-resources {
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  float: left;
  width: 80%;
}

/* Style the submit button */
form > div.conectandalucia-search-container > input#conectandalucia-search-resources {
  float: left;
  width: 20%;
  padding: 10px;
  font-size: 17px;
  border: 1px solid grey;
  border-left: none; /* Prevent double borders */
  cursor: pointer;
}

form > div.conectandalucia-search-container > input#conectandalucia-search-resources:hover {
  background: #c1c1c1;
  color: white;
}
form > div.conectandalucia-search-container {
  padding-bottom: 50px;
  float: none;
}
/*------------------------------------------------------------------------*/

/*============================== Pagination buttons =======================*/
form > div.conectandalucia-pagination-container {
  padding-bottom: 6%;
}
/* Pagination buttons */
form > div.conectandalucia-pagination-container > input[type="button"] {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  margin-right: 1%;
}
form > div.conectandalucia-pagination-container > input[type="button"]:disabled {
  opacity: 0.3;
}
/*------------------------------------------------------------------------*/

/*============ Default list of results =============*/

 .conectandalucia-resource-container {
    padding: 16px 16px 0px 16px;
    margin: 16px 0;
    border: 1px solid grey;
    border-radius: 3px;
    min-height: 250px; /* Based on the height of the image */
  }
  .conectandalucia-resource-container:after {
    content: "";
    display: table;
    clear: both;
    margin-bottom: 1%;
  }

  /* Float images inside the container to the left. Add a right margin, and style the image as a circle */
   .conectandalucia-resource-container > img {
    float: left;
    margin-right: 20px;
    display: block;
  }

  div.conectandalucia-resource-container > p:last-child {
    text-align: right;
  }
  /* Add media queries for responsiveness. This will center both the text and the image inside the container */
  @media (max-width: 500px) {
    .conectandalucia-resource-container {
      text-align: center;
    }

    .conectandalucia-resource-container img {
      margin: auto;
      float: none;
      display: block;
    }
  }
  div.conectandalucia-rest-client-error {
    padding: 1em 16px;
    margin-top: 16px;
    margin-bottom: 16px;
    color:#333;
    background-color:#ffdddd;
    border:1px solid #ccc;
    border-radius:
  }
  div.conectandalucia-see-more-block {
    text-align: right;
  }
  div.conectandalucia-detail {
    text-align: left;
    clear: both;
  }
/*------------------------------------------------------------------------*/

/*=========================== Detail Carousel =========================*/
/* Carousel */
div#conectandalucia-detail-slider {
  text-align: center;
}
div#conectandalucia-detail-slider div.wrapper {
  margin: auto;
}
div#conectandalucia-detail-slider div.slide-image {
  margin: auto;
  position: absolute;
  opacity: 0;
  height: 35rem;
}
@media only screen and (min-height: 480px) and (max-height: 960px) /*and (aspect-ratio: 16/9)*/ {
  div#conectandalucia-detail-slider div.slide-image {
    height: 400px;
  }
}
div#conectandalucia-detail-slider div.modal div.modal-content .preloader {
  position: absolute;
  display: block;
  background: url('../img/preloader.gif');
  background-repeat: no-repeat;
  background-size: 256px 256px;
  width: 256px;
  height: 256px;
  top: 35vh;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media only screen and (max-width: 480px) {
  div#conectandalucia-detail-slider div.slides-container {
    min-height: 200px;
    background-color: black;
  }
}
/* @supports (object-fit: cover) {
  div#conectandalucia-detail-slider div.slide-image > img {
    object-fit: cover;
    vertical-align: middle;
  }
} */
/* Arrows */
div#conectandalucia-detail-slider div.prev-btn {left: 0px;}
div#conectandalucia-detail-slider div.next-btn {right: 0px;}
div#conectandalucia-detail-slider div.prev-btn,
div#conectandalucia-detail-slider div.next-btn {
  opacity: 0; /* Initial value while preloading */
  background-color: rgba(0,0,0,0.1);
  padding: 16px;
  position: absolute;
  top: 40%;
  z-index: 100;
  cursor: pointer;
  transition: 400ms;
}
/* Navigation dots*/
div#conectandalucia-detail-slider div.navigation-dots {
  cursor: pointer;
  opacity: 0; /* Initial value while preloading */
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  /* overlay mode */
  position: absolute;
  bottom: 0px;
  width: 100%;
  margin-bottom: -30px;
}
@media only screen and (max-width: 480px) {
  div#conectandalucia-detail-slider div.navigation-dots {
    display: none;
  }
  div#conectandalucia-detail-slider div.prev-btn,
  div#conectandalucia-detail-slider div.next-btn {
    top: 50%;
  }
}
div#conectandalucia-detail-slider .single-dot {
  background-color: #333;
  height: 1rem;
  width: 1rem;
  border: 2px solid #000;
  border-radius: 50%;
  margin: 0rem 0.2rem;
  transition: 400ms;
}
@media only screen and (max-width: 480px) {
  div#conectandalucia-detail-slider .single-dot {
    margin: 0rem 0.1rem;
  }
}
div#conectandalucia-detail-slider .single-dot.active {
  background-color: #eee;
}
/* Caption text */
div#conectandalucia-detail-slider .caption-text {
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}
div#conectandalucia-detail-slider .caption-text span {
  color: #f2f2f2;
  padding: 2vh;
  background-color: rgba(0,0,0,0.3);
}
/*========================= Detail Carousel lightbox =====================*/
div#conectandalucia-detail-info a.contectandalucia-lightbox-btn > div {
  width: 100%;
  text-align: center;
}
div#conectandalucia-detail-info a.contectandalucia-lightbox-btn > div > p{
  height: 45px;
  width: 50px;
  margin: 0 auto;
  background: url('../img/icon_image_slider.svg');
  background-repeat: no-repeat;
  background-size: 50px 65px;
}
div.conectandalucia-wrapper > a.contectandalucia-lightbox-btn > div > p {
  height: 90px;
  width: 100px;
  margin: 0 auto;
  background: url('../img/icon_image_slider.svg');
  background-repeat: no-repeat;
  background-size: 100px 130px;
}
/*======================== Detail Carousel lightbox modal ================*/

/* The Modal (background) */
div#conectandalucia-detail-slider .modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 15vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: black;
}

/* Modal Content */
div#conectandalucia-detail-slider .modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  max-height: 100%;
}

/* The Close Button */
div#conectandalucia-detail-slider .close {
  color: white;
  position: absolute;
  top: 35px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
}

div#conectandalucia-detail-slider .close:hover,
div#conectandalucia-detail-slider .close:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

/* Slides size */
div#conectandalucia-detail-slider .modal-content .slide-image img {
  max-width: 100%;
  height: auto;
  max-height: 35rem;
  object-fit: inherit;
  /* Center image horizontally and vertically */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media only screen and (min-height: 480px) and (max-height: 960px) {
  div#conectandalucia-detail-slider .modal-content .slide-image img {
    max-height: 400px;
  }
}

/*=========================== Detail info fields =========================*/
div#conectandalucia-detail-info {
  margin-bottom: 20px;
}
div.conectandalucia-wrapper > div#conectandalucia-detail-info > p.detail-field-row {
  margin: 0px;
  padding: 2px 4px;
}
div.conectandalucia-wrapper > div#conectandalucia-detail-info > p.detail-description {
  padding: 2px 4px;
  text-align: justify;
}
div.conectandalucia-wrapper > div#conectandalucia-detail-info > p.detail-description + h4 {
  clear: both;
}
/* Youtube videos */
div#conectandalucia-detail-info > div.video-iframes {
    display: inline-block;
    width: 100%;
    clear: both;
}
@media screen and (max-width: 768px ) {
  div#conectandalucia-detail-info .iframe-container {
    display: flex;
    flex-wrap: wrap;
  }
  div#conectandalucia-detail-info .responsive-iframe {
    flex-grow: 1;
    height: 225px;
    min-width: 320px;
  }
}
div#conectandalucia-detail-info .responsive-iframe {
  min-width: 32%;
}

div#conectandalucia-detail-info .responsive-iframe {
  flex-shrink: 1;
  float: left;
  width: 30%;
  height: 20%;
  margin: 1% 1% 3% 0%;
  clear: right;
  overflow: hidden;
}
}
div#conectandalucia-detail-info .responsive-iframe:after {
  content: "";
  display: block;
  clear: both;
}
/* Main image */
div#conectandalucia-detail-info a.contectandalucia-lightbox-btn {
  float: left;
  margin: 1rem 2rem 1rem 0;
}
/* Detail links */
div#conectandalucia-detail-info .detail-field-link {
  text-decoration: none;
}
div#conectandalucia-detail-info .detail-field-row a.detail-field-link > span {
  vertical-align: middle;
  border-left: none;
  padding: 0px 20px 0 10px;
}
/* Language switch */
div#conectandalucia-list-container #language-switch {
  width: 20%;
  display: inline-block;
  margin: 10px 10px 5px 0px;
}
/* Language tabs */
div#conectandalucia-list-container div.language-tabs,
div#conectandalucia-detail-info div.language-tabs {
  overflow: hidden;
  display: inline-block;
}
div#conectandalucia-list-container a.lang-tab-btn,
div#conectandalucia-detail-info a.lang-tab-btn {
  cursor: pointer;
  float: left;
  margin: 1rem 0 0.5rem 0.5rem;
  padding: 0.5rem 1rem;
  opacity: 0.3;
  text-decoration: none;
}
div#conectandalucia-list-container a.lang-tab-btn:hover,
div#conectandalucia-list-container a.lang-tab-btn.active,
div#conectandalucia-detail-info a.lang-tab-btn:hover,
div#conectandalucia-detail-info a.lang-tab-btn.active {
  opacity: 1;
  background-color: rgba(0,0,0,0.1);
}
/* Style the tab content */
div#conectandalucia-list-container .lang-tab-content,
div#conectandalucia-detail-info .lang-tab-content {
  display: none;
}
div#conectandalucia-list-container .detail-field-row span+span,
div#conectandalucia-detail-info .detail-field-row span+span {
  border-left: 1px solid lightgrey;
  padding-left: 1rem;
  padding-right: 1rem;
  white-space: nowrap;
}
div#conectandalucia-list-container .lang-tab-content.active-multi-lang,
div#conectandalucia-detail-info .lang-tab-content.active-multi-lang {
  display: block;
}
/* Open street map */
div#conectandalucia-detail-info .openstreemap-wrapper {
  width: 325px;
}
div#conectandalucia-detail-info .openstreemap-wrapper p {
  text-align: center;
}

/*==================== Detail Touristic route Itineraries ===============================*/
 /* Style the container with a rounded border, grey background and some padding and margin */
 div#conectandalucia-detail-info .detail-itineraries {
   margin-top: 20px;
   display: flex;
   flex-wrap: wrap;
 }
 div#conectandalucia-detail-info .detail-itineraries .itinerary-difficulty   {
   width: 100%;
   display: flex;
 }
 div#conectandalucia-detail-info .detail-itineraries .itinerary-difficulty > div {
  width: 50px;
  height: 65px;
  background: url('../img/route_icon.svg');
  background-repeat: no-repeat;
  background-size: 50px 65px;
}
div#conectandalucia-detail-info .detail-itineraries .itinerary-difficulty p {
  padding: 20px;
}
 div#conectandalucia-detail-info .detail-itineraries .detail-point-container {
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 1% 1% 0 0;
  padding: 10px;
  width: 46%;
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}
div#conectandalucia-detail-info .detail-itineraries .detail-point-container .itinerary-icon,
div#conectandalucia-detail-info .detail-itineraries .detail-point-container .itinerary-img {
  height: 150px;
  flex-grow: 1;
}
div#conectandalucia-detail-info .detail-itineraries .detail-point-container .detail-point-texts {
  padding: 5px;
  width: 58%;
  flex-grow: 3;
}
div#conectandalucia-detail-info .detail-itineraries .detail-point-container .itinerary-icon div {
/* div#conectandalucia-detail-info .detail-itineraries .detail-point-container .itinerary-icon img { */
  margin: 25px;
  width: 50px;
  height: 65px;
  background: url('../img/location_icon.svg');
  background-repeat: no-repeat;
  background-size: 50px 65px;
}
div#conectandalucia-detail-info .detail-itineraries .detail-point-container .itinerary-img img {
  width: 175px;
  height: 150px;
}
/* Add media queries for responsiveness. This will center both the text and the image inside the container */
@media (max-width: 500px) {
  div#conectandalucia-detail-info .detail-point-container {
    text-align: center;
  }
}
