/* BLOCKS */

#header-row {
  background: var(--color-darkbrown);
  text-align: center;
  padding: 3rem 0 0;
}

#header-row h1 {
  font-size: 1.95rem;
  font-weight: 600;
  color: #D85636;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

#header-usp {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  /* line-height: 1.6; */
  margin-top: 0.85rem;
  scroll-margin-top: 7.5rem;
}

#hero-logo {
  width: 100%;
  max-width: 310px;
  padding: 0px 0.5rem;
}

#intro-row {
  background-color: var(--color-darkbrown);
}

#intro-row .content-panel {
  padding: 0;
  padding-bottom: 1rem;

}

#intro-row div:has(> video) {
  width: 100%;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}

#intro-row video {
  width: 100%;
  height: auto;
  display: block;
}

/* Video Container with Play Button */
.video-container {
  position: relative;
  cursor: pointer;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: var(--color-darkred);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  margin: 0;
}

.video-play-button:hover {
  background-color: var(--color-lightred);
}

.video-play-button svg {
  width: 30px;
  height: 30px;
  color: white;
}

.video-container.playing .video-play-button {
  opacity: 0;
  pointer-events: none;
}

#intro-row h2,
#intro-row p {
  max-width: 80%;
  margin: 0 auto;
  color: var(--color-darkred);
}

#intro-row h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  word-spacing: 0px;
}

#intro-row p {
  margin-bottom: 1rem;

}

#process-row {
  scroll-margin-top: 2.2rem;
}

#process-row ul,
#process-row li,
#process-row ol {
  list-style-type: circle;
  list-style-position: inside;
  font-size: 1.1rem;
  line-height: 1.7rem;
}


#step-1 {
  background: url(../assets/photography/steps-kiest-jouw-wandelroman-2-lightgreyscale.jpeg);
  background-position: center;
  background-size: cover;
  background-origin: unset;
  color: white;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 1);
  background-repeat: no-repeat;
}

#step-2 {
  background-color: var(--color-darkred);
}


#step-3 {
  background: url(../assets/photography/steps-ga-naar-startpunt-lightgreyscale.jpeg);
  background-size: 150%;
  background-position-y: 100%;
  background-position-x: 100%;
  background-repeat: no-repeat;
  color: white;
  text-shadow: 0px 0px 4px rgba(0, 0, 0, 1);
}

#step-4 {
  background: var(--color-lightred);
}

#previews-row {
  scroll-margin-top: 3rem;
}

#process-row button {
  margin-top: 2.5rem;
}

#splash-avontuur {
  background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.2)), url('../assets/photography/LP-straat-met-lantaarns.png');
  background-position: center 80%;
  background-repeat: no-repeat;
  background-size: cover;
}

#splash-verhalen-bewandelen {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.45)), url('../assets/photography/wandelende-vrouw-top-view.png');
  background-position: 0% 12%;
  background-size: 220%;
}


#splash-premap {
  position: relative;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)), url('../assets/photography/LP-Blauwe-lucht-met-bloesem-en-huizen.jpg');
  background-position: center 80%;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
  max-height: 450px;
  overflow: hidden;
}


#splash-premap>div>div {
  display: inline-block;
  max-height: 100%;
}

#splash-premap img {
  width: 50%;
}


#map-row {
  padding-bottom: 5rem;
  scroll-margin-top: 2.1rem;
}

#map {
  border-radius: 8px;
  margin-top: 2rem;
}



/* Custom Leaflet Popup Styles */
.custom-popup .leaflet-popup-content-wrapper {
  background: white;
  border-radius: 0;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  max-width: 90vw;
  position: relative;
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  transform: none;
  border-left: 3px solid var(--color-darkred);
  z-index: 1000;
}

.custom-popup .leaflet-popup-content {
  margin: 0;
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--color-darkgrey);
}

.custom-popup .leaflet-popup-tip {
  display: none;
}

.custom-popup .leaflet-popup-close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-darkred);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.custom-popup .leaflet-popup-close-button:hover {
  background: var(--color-lightred);
  transform: scale(1.1);
}

/* Popup content styling */
.popup-content h3 {
  font-size: 0.9rem;
  color: var(--color-darkred);
  font-family: var(--font-alt);
  margin-left: unset;
  margin-right: unset;
}

.popup-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 3px 0;
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-content button {
  margin-top: 1rem;
  width: 100%;
}

#map-popup-content-genre {

  color: var(--color-darkred);
  margin-top: 5px;
}

.popup-meta {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-darkred);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.ctrl-scroll-tooltip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  z-index: 9999;
  font-size: 1rem;
  pointer-events: none;
}

/* Icons for map popups */
.custom-popup .icon-location,
.custom-popup .icon-person,
.custom-popup .icon-duration,
.custom-popup .icon-info {
  width: 16px;
  height: 16px;
}



/* Leaflet custom marker icon */
.icon-map-marker {
  width: 32px;
  height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='12' fill='%23D85636' stroke='%23A23325' stroke-width='3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


@media(max-width: 960px) {

  #step-3 {
    background-size: cover;
    background-position-y: 70%;
    background-position-x: 50%;
  }

  .four-pane span,
  #process-row ul,
  #process-row li,
  #process-row ol {
    font-size: 1.1rem
  }


}

@media (max-width: 540px) {
  #header-usp {
    scroll-margin-top: 9.5rem;
  }

}