*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:#0b0b0b;
  color:white;
  font-family:Inter,sans-serif;

  min-height:100vh;

  overflow-x:hidden;
}

.header{
  position:absolute;
  top:20px;
  left:30px;
  z-index:1000;
}

.header h1{
  font-size:28px;
  font-weight:600;
}

.header p{
  color:#cccccc;
  margin-top:5px;
}

.container{
  display:flex;
  height:100vh;
}

#map{
  width:70%;
  height:100vh;
}

.card{
  width:30%;
  padding:20px;
  background:rgba(15,15,15,0.9);
  backdrop-filter:blur(12px);

  display:flex;
  flex-direction:column;
}

.card img{
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:16px;
}

.card h2{
  margin-top:20px;
  color:#2DD4BF;
}

.tagline{
  margin-top:8px;
  color:#ddd;
}

.altitude{
  margin-top:15px;
  font-size:18px;
}

.activities{
  margin-top:20px;
}

.activities div{
  margin-bottom:10px;
}

@media(max-width:900px){

  .container{
    flex-direction:column;
  }

  #map{
    width:100%;
    height:50vh;
  }

  .card{
    width:100%;
    height:auto;
    min-height:50vh;

    padding:20px;

    overflow:visible;
  }

  .card img{
    width:100%;
    height:220px;
    object-fit:cover;
  }

}

.next-stop{
  margin-top:20px;

  padding-top:20px;

  border-top:1px solid rgba(255,255,255,0.15);
}

.next-stop-label{
  font-size:11px;
  letter-spacing:2px;
  color:#888;

  margin-bottom:12px;
}

.next-stop img{
  width:100%;
  height:270px;
  object-fit:cover;
  border-radius:12px;
}

.next-stop h3{
  margin-bottom:6px;
  font-size:20px;
}

.next-tagline{
  color:#bbb;
  font-size:14px;
}

.tour-progress{
  margin-top:20px;

  padding-top:20px;

  border-top:1px solid rgba(255,255,255,0.15);
}

.progress-label{
  font-size:11px;
  letter-spacing:2px;
  color:#888;

  margin-bottom:12px;
}

.progress-item{
  margin-bottom:8px;

  font-size:14px;
}
.card{
  width:30%;
  padding:20px;
  background:rgba(15,15,15,0.9);

  display:flex;
  flex-direction:column;

  overflow:visible;
}

.route-info{
  position:absolute;

  top:90px;
  left:30px;

  z-index:1000;

  width:280px;

  padding:18px;

  background:rgba(0,0,0,0.65);

  backdrop-filter:blur(12px);

  border-radius:16px;
}

.route-title{
  font-size:18px;
  font-weight:600;

  margin-bottom:12px;
}

.route-info div{
  margin-bottom:8px;
}
#pause-btn{

  margin-top:12px;

  width:100%;

  padding:10px;

  border:none;

  border-radius:10px;

  cursor:pointer;

  background:#2DD4BF;

  color:#000;

  font-weight:600;
}
.info-block{
  margin-top:18px;
}

.info-title{
  font-size:11px;
  letter-spacing:2px;
  color:#888;
  margin-bottom:6px;
}
.progress-bar{

  width:100%;

  height:10px;

  margin-top:12px;

  background:rgba(255,255,255,0.15);

  border-radius:999px;

  overflow:hidden;
}

.progress-fill{

  width:0%;

  height:100%;

  background:#2DD4BF;

  transition:width 0.3s ease;
}

#progress-percent{

  margin-top:8px;

  font-size:14px;

  color:#ddd;
}

#restart-btn{

  margin-top:8px;

  width:100%;

  padding:10px;

  border:none;

  border-radius:10px;

  cursor:pointer;

  background:#444;

  color:white;

  font-weight:600;
}
/* MOBILE */

@media (max-width:768px){

  .route-info{

    left:10px;

    top:10px;

    bottom:auto;

    width:180px;

    padding:10px;

    font-size:12px;

    background:rgba(0,0,0,0.55);

    backdrop-filter:blur(8px);
  }

  .route-title{
    font-size:14px;
    margin-bottom:6px;
  }

  .route-info div{
    margin-bottom:4px;
  }

  #pause-btn,
  #restart-btn{
    padding:8px;
    font-size:12px;
  }

}

@media (max-width:768px){

  .card{
    width:100%;
    height:auto;

    display:flex;
    flex-direction:column;

    padding:16px;
  }

  .card img{
    width:100%;
    height:180px;

    object-fit:cover;

    border-radius:16px;

    margin-bottom:12px;
  }

  .card h2{
    font-size:36px;
    margin-top:0;
    margin-bottom:8px;
    line-height:1;
  }

  .tagline{
    font-size:16px;
    margin-top:0;
    margin-bottom:8px;
  }

  .altitude{
    font-size:20px;
    margin-top:0;
    margin-bottom:12px;
  }

  .activities{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    margin-top:8px;
  }

  .info-block{
    margin-top:12px;
  }

  .info-title{
    margin-bottom:4px;
  }

  .next-stop{
    margin-top:16px;
    padding-top:16px;
  }

}
.route-info{
  cursor:move;
  touch-action:none;
}
.route-info{
  cursor:move;
  touch-action:none;
  user-select:none;
}
@media (max-width:768px){

  .container{
    height:auto;
  }

  .card{
    height:auto;
    min-height:auto;
    overflow:visible;
  }

}
@media (max-width:768px){

  html,
  body{
    height:auto;
  }

  .container{
    height:auto;
    min-height:auto;
  }

  .card{
    height:auto;
    min-height:auto;
    overflow:visible;
  }

}
#return-btn{

  margin-top:8px;

  width:100%;

  padding:10px;

  border:none;

  border-radius:10px;

  cursor:pointer;

  background:#2563eb;

  color:white;

  font-weight:600;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  margin-bottom:12px;
}

.gallery-grid img{
  width:100%;
  height:80px;
  object-fit:cover;
  border-radius:8px;
  cursor:pointer;
}

.next-gallery img{
  height:65px;
}
.lightbox{

  display:none;

  position:fixed;

  inset:0;

  z-index:9999;

  background:rgba(0,0,0,0.92);

  justify-content:center;

  align-items:center;
}

.lightbox img{

  max-width:90vw;

  max-height:90vh;

  border-radius:12px;
}

#lightbox-close{

  position:absolute;

  top:20px;

  right:30px;

  font-size:40px;

  cursor:pointer;

  color:white;
}
#lightbox-prev,
#lightbox-next{

  position:absolute;

  top:50%;

  transform:translateY(-50%);

  font-size:42px;

  background:none;

  border:none;

  color:white;

  cursor:pointer;

  z-index:10000;
}

#lightbox-prev{
  left:30px;
}

#lightbox-next{
  right:30px;
}

#lightbox-counter{

  position:absolute;

  bottom:25px;

  left:50%;

  transform:translateX(-50%);

  padding:8px 16px;

  border-radius:999px;

  background:rgba(0,0,0,0.65);

  backdrop-filter:blur(10px);

  color:white;

  font-size:16px;

  font-weight:600;

  letter-spacing:0.5px;
}
#toggle-details{

  margin-top:12px;

  padding:8px 14px;

  border:none;

  border-radius:999px;

  background:rgba(255,255,255,0.08);

  color:#ddd;

  cursor:pointer;

  font-size:13px;

  transition:all 0.2s ease;
}

#toggle-details:hover{

  background:rgba(255,255,255,0.15);

  color:white;
}
#details-content{

  overflow:hidden;

  max-height:1000px;

  opacity:1;

  transition:
    max-height 0.35s ease,
    opacity 0.25s ease;
}
#fullscreen-btn{

  margin-top:8px;

  width:100%;

  padding:10px;

  border:none;

  border-radius:10px;

  cursor:pointer;

  background:#111827;

  color:white;

  font-weight:600;
}