/* ESTILOS GERAIS */
.tour_farm h1 {
  text-align: center;
}

.tour_farm h3 {
  text-align: left !important;
  margin-bottom: 25px;
  color: #296951 !important;
  font-weight: normal;
}

.map-container h2 {
    color: #296951 !important;
    margin-bottom: 30px;
}

.tour_farm .img-default {
  width: 100%;
}

.tour_farm .end_page {
  background: none;
}

.tour_farm .section_navigation{
  display: flex;
  justify-content: center;
}

/* LAYOUT PRINCIPAL */
.tour-grid-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  margin: 20px 0;
  align-items: start;
}

.tour-info-section {
  padding-top: 20px;
}

.tour-gallery-section {
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* SELETOR DE LOCALIZAÇÃO */
.location-selector {
  margin-bottom: 25px;
}

#tourSelect {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

#tourSelect:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.2);
}

.location-description {
  line-height: 1.6;
  color: #555;
  font-size: 15px;
  margin-top: 0;
}

/*  GALERIA E SWIPER  */
.gallery-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Estilos do Swiper */
.swiper-container {
  width: 100%;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: grab;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  background: url(../../images/back-poster.jpg);
}

.swiper-slide img[data-orientation="horizontal"] {
  object-fit: cover !important;
  height: 100%;
}

.swiper-slide img[data-orientation="vertical"] {
  object-fit: contain;
  height: auto;
  max-height: 100%;
}


.swiper-slide:hover img {
  transform: scale(1.02);
}

.swiper-slide .slide-title {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
  display: none;
}

.swiper-button-next, .swiper-button-prev, .pswp__button--arrow--right:before, .pswp__button--arrow--left:before {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 40px !important;
  height: 40px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
  background-image: none;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.swiper-button-prev::before,
.swiper-button-next::before,
.pswp__button--arrow--left:before,
.pswp__button--arrow--right:before
{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 18px;
}

.swiper-button-prev::before, .pswp__button--arrow--left:before {
  content: "\276E" !important;
  background-image: none !important;
}

.swiper-button-next::before,.pswp__button--arrow--right:before {
  content: "\276F" !important;
  background-image: none !important;

}

.swiper-pagination-bullet-active {
  background: #296951;
}

#swiper-top {
  position: relative;
}

#swiper-top .swiper-pagination {
  bottom: 5px;
  z-index: 990;
}

#swiper-top .swiper-pagination .swiper-pagination-bullet {
  opacity: 0.6;
  background-color: var(--gray1);
}

#swiper-top div.swiper-slide {
  background-size: cover;
  background-position: center;
}

.swiper-container-horizontal > .swiper-pagination-bullets,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: 0px !important;
}

/* IMAGEM EXPANDÍVEL */
.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.image-container:hover .expand-icon {
  opacity: 1;
}

.expand-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.expand-icon i {
  font-size: 18px;
}

/* MAPA DA FAZENDA */
.farm_map_section {
  width: 100%;
  background: #f4f4f4;
  min-height: 400px;
}

.map-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3.5em;
  align-items: start;
}

.map-img {
  max-width: 100%;
  z-index: 2;
  position: relative;
}

.map-image {
  position: relative;
  display: inline-block;
}

.map-image::after {
  content: "";
  position: absolute;
  left: 17px;
  bottom: -9px;
  width: calc(100% - 6px);
  height: 98%;
  border: 3px solid #296951;
  box-sizing: border-box;
}

.legend-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.legend-item {
  display: flex;
  align-items: center;
  padding: 0px 0 3px;
  font-size: 16px;
  color: #555;
  font-weight: 700;
}

.legend-item:last-child {
  border-bottom: none;
}

.legend-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  color: #296951;
  font-size: 16px;
  font-weight: bold;
  margin-right: 5px;
  flex-shrink: 0;
}

.legend-number::after {
  content: ".";
}

/* ===== PHOTOSWIPE ===== */
.pswp__caption__center {
  text-align: center !important;
}

.pswp__img {
    object-fit: contain !important;
}
.pswp__zoom-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

a.pswp__share--pinterest:hover {
  background: #CCC;
  color: #ff000000 !important; }

  .pswp__scroll-wrap button:hover{
    background-color: transparent !important;
  }

/* RESPONSIVIDADE */


@media screen and (min-width: 1300px) {
  #main {
    width: 100%;
    margin: 0 auto;
    min-height: 400px;
  }
  
  .tour_farm {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 400px;
    padding: 3em 0 0 0;
  }
  
  .map-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4em 0 5em 0;
  }
  
  .map-container h2 {
    text-align: left;
    color: #296951 !important;
    font-size: 40px !important;
    margin-bottom: 30px;
    font-weight: normal;
  }
  
}

@media screen and (min-width: 1180px) and (max-width: 1300px) {
  
  .tour_farm {
    padding: 3em 3em 0 !important;
  }

  .map-container {
    padding: 3em !important;
  }

}

@media screen and (min-width: 1180px) {
  .gallery-placeholder {
    height: 500px;
  }
  
  #swiper-top {
    min-height: 454px;
  }

   #main {
    width: 100%;
    margin: 0 auto;
    min-height: 400px;
    padding: 20px 0 0 0;
  }
  
  .tour_farm {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 400px;
    padding: 20px 0 0 0;
  }

  .map-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4em 0 6em 0;
  }

}


@media screen and (min-width: 880px) and (max-width: 1180px) {
  #main {
    width: 100%;
    margin: 0 auto;
    min-height: 400px;
    padding: 20px 0 0 0;
  }
  
  .tour_farm {
    max-width: 1280px;
    margin: 0 30px;
    min-height: 400px;
    padding: 20px 0 0 0;
  }

  .map-container {
    max-width: 1280px;
    margin: 0 30px;
    padding: 3em 0 3em 0;
  }

  #content {
    padding: 0;
  }
  
}


@media screen and (max-width: 879px) {
  .gallery-placeholder {
    height: 100%;
  }

  #main {
    width: 100%;
    margin: 0 auto;
    min-height: 400px;
    padding: 20px 0 0 0;
  }
  
  .tour_farm {
    max-width: 1280px;
    margin: 0 30px;
    min-height: 400px;
    padding: 20px 0 0 0;
  }

  .map-container {
    max-width: 1280px;
    margin: 0 30px;
    padding: 4em 0 5em 0;
  }

  #content {
    padding: 0;
  }
}


@media (max-width: 768px) {
  .tour-grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .swiper-container {
    height: 300px;
  }
  
  .map-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
 
  .map-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .legend-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  
  .expand-icon {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 35px;
    height: 35px;
  }
  
  .expand-icon i {
    font-size: 16px;
  }
  
  .hide_mobile {
    display: none;
  }
  
  .show_mobile {
    display: block;
  }
}


@media screen and (min-width: 830px) {
  .tour_farm button {
    min-width: auto !important;
  }
}


@media (max-width: 480px) {
  .legend-grid {
    grid-template-columns: 1fr;
  }
}


.hide_mobile {
  display: block;
}

.show_mobile {
  display: none;
}