.japanHero {
    background-image: url(imgs/Japan-tour-picture-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: auto;
    height: 100vh;
    background-position: left;
    
}

.japanMainBG {
    background-image: url(imgs/japan/altMainBG.png);
    background-size: contain;
    background-position: bottom;
    color: var(--color-charcoal);
}

.overviewText {
    background-color: rgba(241, 240, 238, 0.651);
}

/* Mae Timeline */
/* Base Widget Container */
.mae-timeline-widget {
  width: 100%;
  padding: 40px 0;
  background-image: url("imgs/japan/timelineBG.png");
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: fill;
  overflow: visible; /* Prevents ping from clipping */
}

/* The Nav Bar - Scrollable on small screens */
.mae-nav-container {
  width: 100%;
  overflow-x: auto;
  padding-top: 60px; /* Safe space for ping animation */
  padding-bottom: 0;
  margin-bottom: 0;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mae-nav-container::-webkit-scrollbar { display: none; }

.mae-dot-track {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 3;
  border-top: 5px solid var(--color-green);
  /* Ensures dots exist even on mobile */
  min-width: 800px; 
}

.mae-node {
  position: relative;
  flex: 1;
  text-align: center;
  padding-top: 25px;
  cursor: pointer;
}

/* The Dots */
.mae-dot {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-green-yellow);
  border-radius: 50%;
  z-index: 5;
  transition: background 0.3s ease;
}

.mae-yr {
   font-weight: 700;
  color: var(--color-black) !important; /* Force Black */
  font-size: 16px;
  }

/* ACTIVE PINGING STATE */
.mae-node.active .mae-dot {
  background: var(--color-green-yellow);
}

/* Static Ring */
.mae-node.active::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-green-yellow);
  border-radius: 50%;
  z-index: 4;
}

/* Pulsing Ping Ripple */
.mae-node.active::after {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-green-yellow);
  border-radius: 50%;
  animation: mae-ping 1.5s infinite;
  z-index: 3;
}

@keyframes mae-ping {
  0% { transform: translateX(-50%) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) scale(3.5); opacity: 0; }
}

/* Paragraph Content Area */
.mae-text-area {
  text-align: center;
  margin-top: -5%;
}

.mae-p {
  display: none;
  font-family: var(--body-font);
  color: var(--color-black);
  font-size: 14px; /* Requested smaller text */
  width: 100%;
}

.mae-p.active {
  display: block;
  animation: mae-fade 0.4s ease-in-out;
  width: 100%;
}

@keyframes mae-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE LOGIC */

/* Desktop - No scroll needed */
@media (min-width: 1025px) {
  .mae-dot-track { min-width: 100%; }
  .mae-nav-container { overflow: visible; }
  .mae-p { max-width: 80%; margin: 0 auto; }
}

/* Tablet & Mobile - Allow Swipe */
@media (max-width: 1024px) {
  .mae-dot-track { min-width: 900px; } /* Ensures dots don't disappear/squash */
  .mae-p { line-height: 1.6em; padding: 0 20px; }
  /* Fade hint for scrolling */
  .mae-nav-container {
    mask-image: linear-gradient(to right, var(--color-transparent), var(--color-black) 10%, var(--color-black) 90%, var(--color-transparent));
    -webkit-mask-image: linear-gradient(to right, var(--color-transparent), var(--color-black) 10%, var(--color-black) 90%, var(--color-transparent));
  }
}

/* Mae Timeline Customisations */

.maeDay {
  /* padding: 1% 0; */
 
  border: 5px solid var(--color-goldenrod);
 -webkit-box-shadow: 0px 5px 15px 0px var(--color-black-84); 
  box-shadow: 0px 5px 15px 0px var(--color-black-84);
 /* padding: 25px !important; */
 width: 100%;
}

.maeMandalaBG {
  background-image: url("imgs/japan/japan_mainBG.png");
 background-repeat: no-repeat;
 background-size: cover;
  position: relative;
  overflow: hidden;
}

div .maeItinImg img {
 
  margin-bottom: 2%;
  box-shadow: -22px 14px 20px 8px var(--color-green-shadow);
  border-radius: 23px;
}

.maeSpace {
  height: 150px;
    background-size: cover;
  object-fit: fill;

}

.maeTopRow {
  margin-top: 8%;
}

#addedContent {
  height: auto;
  width: auto;
     z-index: 10;
   translate: 0 -14%;
   /* position: absolute;  */
  }



