
/* ===========================
   TOURMAN SECTION
   =========================== */

.tourman-section-main {
      background: var(--bg-white);
      padding: 2.5rem;
      border-radius: 12px;
      box-shadow: 0 2px 8px var(--shadow-color);
      color: var(--text-dark);
      overflow: hidden;
position: relative;
    }


 .tourman-text p {
      margin-bottom: 1rem;
      line-height: 1.6;
      color: var(--text-light);
    }

/* Portrait container - right float */
.tourman-portrait-container {
  perspective: 1000px;
  width: 300px;
  height: 300px;
  margin: 0 1.5rem 1rem 0.8rem;
  overflow: visible;
  border-radius: 15px;
  float: right;
}

@media (max-width: 768px) {
  .tourman-portrait-container {
    float: none;
    margin: 0 auto 1rem auto;
  }

.tourman-carousel-track a:hover {
    transform: none; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.25); /* Reset to normal shadow */
    z-index: auto; 
  }


}


    .tourman-portrait-card {
      position: relative;
      width: 100%;
      height: 100%;
      transition: transform 1s ease-in-out;
      transform-style: preserve-3d;
    }

  
.tourman-portrait-container:hover .tourman-portrait-card{
  transform: rotateY(540deg);
}

    .tourman-portrait-face {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      backface-visibility: hidden;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px var(--shadow-color);
    }

    .tourman-portrait-front {
      background: var(--bg-white);
    }

 .tourman-portrait-back {
      background: var(--bg-white);
      transform: rotateY(180deg);
    }

    .tourman-portrait-face img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

/* clear floats after text container */
.tourman-text::after {
  content: "";
  display: block;
  clear: both;
}

/* Text Carousel container - floats left */


.text-carousel-container {
  width: 300px;
  height: 300px;
  margin: 0 1.5rem 1rem 0;
  border-radius: 15px;
  background: var(--bg-white);
  float: left;
  position: relative;
}


.text-carousel {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-color);
  background: var(--bg-white);
  anchor-name: --my-text-carousel;
  scroll-marker-group: after;
}

.text-carousel::-webkit-scrollbar {
  display: none;
}

/* Text Carousel items */
.text-carousel li {
  list-style-type: none;
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 0;
  margin: 0;
  height: 100%;
  background: var(--bg-white);
  border: none;
  position: relative;
}

.text-carousel li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* view large */

.view-large i { color: var(--primary); opacity: 50%;}

.view-large {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;              /* avoid invisible clicks when hidden */
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.18s ease;
}

/* when hovering the whole carousel container show the button at 0.8 opacity */
.text-carousel-container:hover .view-large {
  opacity: 0.8;
  pointer-events: auto;              /* enable clicks when visible */
}

/* when hovering (or keyboard focusing) the button itself, scale it up */
.view-large:hover,
.view-large:focus,
.view-large:focus-visible {
  transform: scale(1.8);
}

/* nicer focus outline for keyboard users */
.view-large:focus-visible {
  outline: 2px solid Highlight;
  outline-offset: 4px;
}

/* Increase img modal for text carousel */

.image-modal {
  position: fixed;
  overflow: auto;
  inset: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-modal.show {
  opacity: 1;
  transform: scale(1);
}

.image-modal[hidden] { display: none; }

.modal-content {
  max-width: 90vw;   /* limit to 90% of viewport width */
  max-height: 90vh;  /* limit to 90% of viewport height */
  border-radius: 15px;
  display: block;
  margin: auto;
  object-fit: contain;
}


.image-modal-content {
  position: relative;
 max-width: none;
  max-height: none;

}

.image-modal-content img {
   max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--bg-white, #fff);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
}



/* Scroll buttons */
.text-carousel::scroll-button(*) {
  position: absolute;
  position-anchor: --my-text-carousel;
  border: 0;
  font-size: 1.5rem;
  background: var(--bg-white);
  color: var(--text-dark);
  opacity: 0.6;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Increase arrow visibility when hovering over the carousel container */
.text-carousel-container:hover .text-carousel::scroll-button(*):not(:disabled) {
  opacity: 0.85;
}

.text-carousel::scroll-button(*):hover:not(:disabled) {
  opacity: 1;
  background: var(--primary);
  color: var(--bg-white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.text-carousel::scroll-button(*):active {
  transform: scale(0.95);
}

.text-carousel::scroll-button(*):disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.text-carousel::scroll-button(left) {
  content: "←";
  left: calc(anchor(left) + 5px);
  top: calc(anchor(top) + 130px);
}

.text-carousel::scroll-button(right) {
  content: "→";
  left: calc(anchor(right) - 45px);
  top: calc(anchor(top) + 130px);
}

/* Scroll markers (dots) */
.text-carousel::scroll-marker-group {
  position: absolute;
  position-anchor: --my-text-carousel;
  top: calc(anchor(bottom) - 20px);
  justify-self: anchor-center;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.text-carousel li::scroll-marker {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0.6;
}

.text-carousel li::scroll-marker:hover {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.2);
}

.text-carousel li::scroll-marker:target-current {
  background-color: var(--primary);
  border-color: var(--primary);
  opacity: 0.5;
  width: 24px;
  border-radius: 4px;
}

/* Increase active marker opacity on hover over the carousel */
.text-carousel-container:hover li::scroll-marker:target-current {
  opacity: 1;
}


/* resizing the map, first element */
.text-carousel li:first-child img {
  object-position: 0% 20%
}



/* ---------- INSTAGRAM---------- */

ul {
  list-style: none;
}


.example-2 .icon-content {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  bottom: 80px;      /* places it above the 50px icon */
  left: 50%;
  transform: translateX(-60%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}

.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  bottom: 60px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}



/* ---------- MAIN Carousel ---------- */





.tourman-carousel {
  width: 100%;
  overflow-y: visible;              /* hide animation edges only */
  overflow-x: clip;              /* hide animation edges only */
  margin-top: 2.5rem;
  position: relative;
  padding: 2rem 0;
}


.tourman-carousel-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: tourman-scroll 20s linear infinite;
  will-change: transform;
}

/* Each card */
.tourman-carousel-track a {
  flex: 0 0 auto;
  width: 240px;
  height: 240px;
  border-radius: 12px;
  position: relative;
  text-decoration: none;
  background: var(--bg-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-origin: center;
}

.tourman-carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* expand outside container on hover */
.tourman-carousel-track a:hover {
  transform: scale(1.2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
  z-index: 20;                   /* rise above neighbors */
}

/* overlay info */
.tourman-card-info {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.tourman-carousel-track a:hover .tourman-card-info {
  opacity: 1;
  transform: translateY(0);
}

/* infinite scroll */
@keyframes tourman-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* pause animation on hover */
.tourman-carousel:hover .tourman-carousel-track {
  animation-play-state: paused;
}

.ch13 img {
  object-position: 30% center;
}

.haretz img {
  object-position: center 45%;
}

/* responsive */
@media (max-width: 768px) {
  .tourman-carousel-track a {
    width: 180px;
    height: 180px;
  }
}
