.cd-horizontal-timeline {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2em;
  font-family: Arial;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 10px !important;
}

.cd-horizontal-timeline::before {
  content: '';
  display: table;
  clear: both;
}

.timeline-map-container {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f9f9f9;
  border: 1px solid #eee;
}

.timeline-map {
  display: none;
  height: 350px;
  width: 100%;
  position: relative;
}

.timeline-map.active {
  display: block;
}

.map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  font-size: 16px;
  padding: 20px;
  text-align: center;
}

.timeline {
  position: relative;
  height: 100px;
  margin: 2em 0;
}

.events-wrapper {
  position: relative;
  height: 100%;
  margin: 0 40px;
  overflow: hidden;
}

.events {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 35px;
  height: 2px;
  background: #dfdfdf;
  width: 1000px;
  transition: transform 0.4s;
}

.events a {
  position: absolute;
  bottom: 0;
  z-index: 2;
  text-align: center;
  font-size: 14px;
  padding: 0.5em 1em;
  background: #f5f5f5;
  border-radius: 20px;
  white-space: nowrap;
  transform: translateX(-50%);
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
}

.events a:hover {
  background: #e9e9e9;
}

.events a.selected {
  background: #bd9a5f;
  color: #fff;
  font-weight: 500;
  border-color: #a8874d;
}

.filling-line {
  position: absolute;
  top: 35px;
  height: 2px;
  background: #bd9a5f;
  z-index: 1;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.4s;
}

.cd-timeline-navigation {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cd-timeline-navigation a {
  position: absolute;
  top: 30px;
  width: 36px;
  height: 36px;
  background: #bd9a5f;
  text-align: center;
  line-height: 36px;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cd-timeline-navigation a:hover {
  background: #a8874d;
  transform: scale(1.1);
}

.cd-timeline-navigation a.prev {
  left: 0;
}

.cd-timeline-navigation a.next {
  right: 0;
}

.cd-timeline-navigation a.inactive {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.events-content {
  position: relative;
  width: 100%;
  margin-top: 30px;
  background: #fff;
  border-radius: 8px;
}

.events-content li {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.events-content li.selected {
  display: flex;
}

.events-content h2 {
  margin: 0 0 10px;
  color: #333;
  font-size: 22px;
}

.events-content em {
  font-style: normal;
  color: #bd9a5f;
  margin-bottom: 15px;
  display: block;
  font-size: 14px;
}

.events-content p {
  margin: 0 0 20px;
  color: #666;
  line-height: 1.6;
}

.timeline-cta-button {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #bd9a5f;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.timeline-cta-button:hover {
  background-color: #a8874d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .timeline-map {
    height: 250px;
  }
  
  .events a {
    font-size: 12px;
    padding: 0.4em 0.8em;
  }
  
  .events-content {
    padding: 15px;
  }
  
  .events-content h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .timeline-map {
    height: 200px;
  }
  
  .events-wrapper {
    margin: 0 30px;
  }
  
  .cd-timeline-navigation a {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
  }
}



/*Custom Market Pulse Marker CSS*/
.custom-pulse-marker {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-repeat: no-repeat;
  animation: pulse 2s infinite;
  transform-origin: center;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/*Location Label CSS*/
.custom-marker-label {
    margin-top: 2px;
    font-size: 13px;
	font-weight: 600;
    background: #6D773F;
    padding: 6px 10px;
    border-radius: 3px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: inline-block;
}
.custom-marker-label {
  animation: fadeInUp 0.4s ease-in-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.current-location-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 4px solid #6D773F;
}

.current-location {
    font-size: 16px;
    color: #6D773F;
}

.current-location strong {
    font-weight: 600;
    color: #6D773F;
}
