/* =============================================
   PROGRAM.CSS
   Combined from: anchorpanel.css, card-tour.css,
   Guatemala programm.php inline CSS
   ============================================= */

/* --- tour-tab-title / tour-tab-desc --- */
.tour-tab-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}
.tour-tab-title::after {
  content: '';
  display: block;
  height: 4px;
  background: #ffd166;
  border-radius: 2px;
  margin: 8px auto 0;
  width: 100%;
  min-width: 80px;
  max-width: 850px;
}
.tour-tab-desc {
  font-size: 17px;
  margin: 6px 0 0 0;
  line-height: 1.5;
  color: #555;
  display: inline-block;
}
@media (max-width: 768px) {
  .tour-tab-title {
    font-size: 24px;
    letter-spacing: -0.3px;
    margin-bottom: 27px;
  }
  .tour-tab-title::after {
    height: 3px;
    margin-top: 6px;
    min-width: 50px;
  }
  .tour-tab-desc {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 4px;
  }
}

/* --- Swiper / Day Card --- */
.swiper {
  width: 100%;
  overflow: hidden;
}
.swiper-button-prev,
.swiper-button-next {
  color: #727404;
  opacity: .7;
  transition: .3s;
}
.swiper-button-prev { left: 10px; }
.swiper-button-next { right: 10px; }
.swiper-button-prev:hover,
.swiper-button-next:hover { opacity: 1; }
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 26px;
  font-weight: 900;
}
.itinerary-swiper {
  padding: 20px 50px 50px 50px !important;
  position: relative;
}
.day-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  background: #fff;
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.day-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #b1b407;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
}
.card-text {
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.card-text h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #222;
  font-weight: 600;
}
.swiper-pagination-progressbar {
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 0;
  top: auto !important;
  height: 10px !important;
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.swiper-pagination-progressbar-fill {
  background: #686903 !important;
  border-radius: 10px;
  transition: transform .3s ease;
}
@media (max-width: 768px) {
  .itinerary-swiper { padding: 15px 20px 40px 20px !important; }
  .swiper-button-prev { left: 5px; }
  .swiper-button-next { right: 5px; }
  .swiper-button-prev::after,
  .swiper-button-next::after { font-size: 25px !important; }
}

/* --- Anchorpanel --- */
.anchorbox {
  position: relative;
  margin: 0;
  width: 100%;
}
.anchorbox > h1 {
  font-weight: bolder;
  margin: 0 0 10px;
  padding: 0 5px;
  line-height: 22px;
  font-size: 18px;
}
.anchorbox > .anchorbuttons {
  background: rgba(255,255,255,0.9);
  position: sticky;
  top: 0;
  width: inherit;
  display: flex;
  align-items: stretch;
  margin: 0 0 -30px;
  height: 35px;
  overflow: hidden;
  z-index: 10;
}
.anchorbox > .anchorbuttons > a {
  flex-grow: 1;
  display: inline-table;
  margin: 0;
  text-align: center;
  color: #000;
  cursor: pointer;
  padding: 5px 0;
  font-size: 14px;
  line-height: 20px;
  border: 1px solid #a99;
  background-color: #fdd;
  margin-right: 5px;
  width: auto;
}
.anchorbox > .anchorbuttons > a:last-child { margin-right: 0; }
.anchorbox > .anchorbuttons > a:active { background-color: darkred; color: #fff; }
.anchorbox .anchordatacontainer {
  width: 100%;
  padding: 5px 35px;
  border: 1px solid #eee;
  border-width: 0 1px 1px 1px;
  z-index: 20;
  margin: 0 0 10px;
}
.anchorbox .anchordatacontainer > div:active { display: block; }
.anchorbox .anchordatacontainer h1 {
  margin: 0 -20px 20px;
  padding: 2px 10px;
  background-color: darkred;
  color: #fff;
  font-size: 18px;
}
.anchorbox .anchordatacontainer h2 {
  margin: 0 -20px 20px;
  padding: 2px 10px;
  background-color: darkred;
  color: #fff;
  font-size: 18px;
}
.anchorbox .anchordatacontainer h3 {
  margin: 20px 0;
  font-weight: normal;
  font-size: 16px;
  line-height: 30px;
}
@media only screen and (max-width: 800px) {
  .anchorbox > .anchorbuttons {
    width: calc(100% + 30px);
    text-align: center;
    margin: 0 -15px;
    box-sizing: border-box;
  }
  .anchorbox > .anchorbuttons > a { font-size: 12px; margin: 0; }
  .anchorbox > .anchorbuttons > a:active { background-color: darkred; }
  .anchorbox .anchordatacontainer > div:first-child { margin-top: -30px; }
}

/* detailprogram photo layout */
.anchordatacontainer .tab-content .image-group {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  gap: 3px;
}
.anchordatacontainer .tab-content .image-group .small-img-grp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.anchordatacontainer .tab-content .mb-sm-imgs .photo-tour:hover img {
  transform: scale(1.01);
  filter: brightness(0.8);
}
.anchordatacontainer .tab-content .mb-sm-imgs .photo-tour:hover::after {
  background: rgba(0,0,0,0.2);
}
.anchordatacontainer .tab-content .image-group img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.5s ease, filter 0.5s ease, opacity 0.35s ease;
}
.anchordatacontainer .tab-content .image-group .big-image {
  /* width: 603px; */
  height: 334px;
}
.anchordatacontainer .tab-content .image-group .small-image {
  width: 270px;
  height: 163px;
}
.anchordatacontainer .tab-content .image-group .mb-sm-imgs {
  display: flex;
  gap: 2px;
}

/* accordion button */
.accordion .custom-list {
  list-style-type: none;
  margin-top: 5px;
  font-size: 15px;
}
.accordion .custom-list li {
  margin-top: 0 !important;
  margin-left: -30px;
}
.accordion .accordion-icon {
  position: relative;
  height: auto;
}
.accordion .card-body { padding: 10px 1.25rem; }
.accordion .accordion-icon span.float-right {
  position: absolute;
  right: 18px;
  bottom: 7px;
}
.anchordatacontainer .accordion .accordion-icon .tage-text {
  display: block;
  margin-bottom: 2px;
}

/* list view with image */
.accordion .list-btn-grp {
  display: flex;
  justify-content: start;
  gap: 5px;
}
.accordion .list-btn-grp .photo-btn { width: 50%; }
.accordion .list-btn-grp .list-img-side {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.accordion .list-btn-grp .list-img-side img {
  width: 300px;
  height: 176px;
  object-fit: cover;
  border-radius: 10px;
  padding: 2px 0;
}
.accordion .list-btn-grp .list-img-side.show { display: block; }
.accordion .list-btn-grp .list-img-side.hide { display: none; }

/* photo credit on list side */
.accordion .list-btn-grp .list-img-side .stour-credit {
  position: absolute;
  width: 138px;
  bottom: 47%;
  left: -60px;
  background: #87878708;
  color: #808080;
  padding: 4px 7px;
  border-radius: 6px;
  text-transform: capitalize;
  text-align: center;
  transform: rotate(270deg);
}
.accordion .list-img-side .stour-credit .fotoname,
.anchordatacontainer .tab-content .image-group .photo-tour .stour-credit .fotoname {
  font-size: 8px;
}

/* photo credit on detail body */
.anchordatacontainer .tab-content .image-group .photo-tour { position: relative; }
.anchordatacontainer .tab-content .image-group .photo-tour .stour-credit {
  position: absolute;
  width: 158px;
  bottom: 44%;
  left: -70px;
  background: #87878708;
  color: #808080;
  padding: 4px 7px;
  border-radius: 6px;
  text-transform: capitalize;
  text-align: center;
  transform: rotate(270deg);
}
.anchordatacontainer .tab-content .image-group .photo-tour .stour-credit .title { display: none; }

/* card spacing */
.anchordatacontainer .accordion div.card { margin: 6px 0; }

@media only screen and (max-width: 767px) {
  .anchorbox .anchordatacontainer { padding: 5px; }

  /* stack gallery vertically, full-width fluid images */
  .anchordatacontainer .tab-content .image-group {
    flex-direction: column;
    align-items: stretch;
  }
  .anchordatacontainer .tab-content .image-group .big-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .anchordatacontainer .tab-content .image-group .mb-sm-imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  /* stack each pair of thumbnails vertically, not in a row */
  .anchordatacontainer .tab-content .image-group .small-img-grp {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 !important;
    margin: 0 !important;
  }
  /* each thumbnail container: equal size, no overflow */
  .anchordatacontainer .tab-content .image-group .mb-sm-imgs .photo-tour {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    line-height: 0;
  }
  /* every thumbnail image: uniform 3:2 crop, fills container */
  .anchordatacontainer .tab-content .image-group .small-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
  }

  /* accordion header text layout */
  .anchordatacontainer .accordion .accordion-icon .tage-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: darkred;
  }
  .anchordatacontainer .accordion .accordion-icon .tage-number { white-space: nowrap; }
  .anchordatacontainer .accordion .accordion-icon .text-line { display: block; width: 100%; }
  .accordion .list-btn-grp .photo-btn { width: 100%; }
  .accordion .list-btn-grp .list-img-side.show,
  .accordion .list-btn-grp .list-img-side { display: none; }
  .anchordatacontainer .tab-content .image-group .photo-tour .stour-credit { display: none; }
}

.str { font-weight: bolder; }
dd { margin-bottom: 10px; }
.photo { margin: 5px; }

/* hide hotel/video tabs by default */
.anchorbox .anchordatacontainer .nav-item > .nav-link:has(.fa-hotel),
.anchorbox .anchordatacontainer .nav-item > .nav-link:has(.fa-video),
.anchorbox .anchordatacontainer .nav-item > .nav-link:has(.fa-plane) {
  display: none;
}

/* --- Card Tour --- */
.card-tour-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card-tour-grid .card {
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  color: #0f0617;
  text-decoration: none;
  position: relative;
}
.card-tour-grid .card__picture {
  display: block;
  width: 100%;
  height: 270px;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}
.card-tour-grid .card:hover .card__picture:after {
  background: linear-gradient(rgba(14,2,23,0) 25%, rgba(0,0,0,0.5));
}
.card-tour-grid .card__picture:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(15,6,23,0) 25%, rgba(15,6,23,0));
  z-index: 1;
}
.card-tour-grid .card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card-tour-grid .card:hover .card__image { transform: scale(1.1); }
.card-tour-grid .card__more {
  position: relative;
  margin: -1.5rem 1.5rem -1.5rem 0;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  background: #8b0000;
  color: #fff;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s;
  z-index: 2;
}
.card-tour-grid .card:hover .card__more { background: #c60b0b; }
.card-tour-grid .card__content { padding: 2rem 1.5rem; position: relative; }
.card-tour-grid .card__subheader {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.card-tour-grid .card__title {
  font-family: "Merriweather", serif;
  background: linear-gradient(90deg, #413702ff, #ff4500);
  -webkit-background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.card-tour-grid .card__description { font-style: italic; }
@media (max-width: 768px) {
  .card-tour-grid { grid-template-columns: repeat(1, 1fr); }
}

#termine-und-preise .timeline-actions {
  display: flex;
  justify-content: right;
  align-items: center;
  gap: 12px;
}
#programm .timeline-actions {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 12px;
}

/* photo credits on swiper card */
#programm .card-image .stour-credit {
  position: absolute;
  width: 138px;
  bottom: 36%;
  left: -63px;
  background: #87878708;
  color: #808080;
  padding: 4px 7px;
  border-radius: 6px;
  text-transform: capitalize;
  text-align: center;
  transform: rotate(270deg);
}
#programm .card-image .stour-credit .title { display: none; }
#programm .card-image .stour-credit .fotoname { font-size: 9px; }

@media (max-width: 480px) {
  .swiper-slide.day-card { width: 100% !important; }
  #programm .timeline-actions { justify-content: center; }
}
