@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900;1000&display=swap');

:root{
  --bg:#f0ede3;
  --white:#ffffff;
  --accent:#ffd078;
  --text:#2a2a2a;
  --text2:#343434;
  --dark:#1a1a1a;
}

.route-hero{
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  padding-top: 24px;
  padding-bottom: 40px;
}

.route-hero__frame{
  position: relative;
  width: 100%;
  min-height: clamp(440px, 44vw, 720px);
  overflow: hidden;
  background: var(--dark);
  border-radius: 26px;
}

.route-hero__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  display: block;
  transform: translateZ(0);
}

.route-hero__shade{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.48) 35%, rgba(0,0,0,.12) 62%, rgba(0,0,0,0) 78%);
}

.route-hero__content{
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  padding: clamp(26px, 3vw, 46px);
  display: grid;
  gap: 14px;
  align-content: start;
}

.route-hero__pin{
  width: 84px;
  height: 84px;
  border-radius: 999px;
  color: var(--accent);
  display: grid;
  place-items: center;
}

.route-hero__pin svg{
  width: 78px;
  height: 78px;
  display: block;
  color: var(--white);
}

.route-hero__title{
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  font-size: clamp(34px, 4.8vw, 66px);
  line-height: 1.03;
}

.route-hero__highlight {
  color: var(--accent);
}

.route-hero__desc{
  margin: 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.55;
  max-width: 60ch;
}

.route-hero__nav{
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-auto-flow: column;
  gap: 10px;
  align-items: center;
}

.route-hero__nav button{
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.route-hero__nav button img{
  width: 44px;
  height: 44px;
  display: block;
  filter: brightness(0) invert(1);
}

.route-hero__thumbs{
  display: flex;
  gap: 12px;
  padding: 16px 0 0;
  align-items: start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.route-hero__thumbs.is-dragging {
  cursor: grabbing;
}

.route-hero__thumbs::-webkit-scrollbar{
  display: none;
}

.route-thumb{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;

  flex: 0 0 calc((100% - (12px * 6)) / 7);
  min-width: 0;
  aspect-ratio: 16 / 9;
  position: relative;
}

.route-thumb img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px !important;
  pointer-events: none;
}

.route-thumb.is-active img{
  outline: 2px solid rgba(255,208,120,.85);
  outline-offset: -2px;
}

.route-hero__dots{
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 10px;
}

.route-hero__dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(42,42,42,.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.route-hero__dot.is-active{
  background: var(--accent);
  transform: scale(1.2);
}

.route-program{
  background: var(--white);
  padding: clamp(42px, 5vw, 86px) 0;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

.route-program__title{
  margin: 0 0 clamp(26px, 3vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text2);
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 1.05;
  text-align: center;
}

.day{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 42px);
  padding: clamp(28px, 3vw, 44px) 0;
  border-bottom: 1px solid rgba(42,42,42,.08);
}

.day:last-child{
  border-bottom: 0;
}

.day__badge{
    display: grid;
    place-items: center;
    align-items: start;
}

.day__badge > div{
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: var(--accent);
    display: grid;
    place-items: center;
    gap: 0px;
    padding: 16px;
    text-align: center;
}

.day__num{
    font-weight: 800;
    font-size: 74px;
    line-height: 0.6;
    color: #000;
}

.day__label{
    font-weight: 600;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.1;
    color: #000;
}

.day__body{
  display: grid;
  gap: 14px;
  min-width: 0;
}

.day__heading{
  margin: 0;
  font-weight: 800;
  color: var(--text2);
  font-size: clamp(22px, 2.2vw, 36px);
  line-height: 1.15;
}

.day__text{
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  position: relative;
}

.day__text p{
  margin: 0px;
}

.day__text p:last-child{
  margin-bottom: 0;
}

.day__note{
  background: rgba(240,237,227,.85);
  padding: 20px 22px;
  margin: 18px 0;
}

.day__note strong{
  display: inline-block;
  margin-bottom: 8px;
  color: var(--text2);
}

.day__tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  margin-left: 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  vertical-align: middle;
}

.day__gallery{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}

.day__gallery img{
  height: 120px;
  flex: 1 1 210px;
  max-width: 210px;/*100%;*/
  object-fit: cover;
  display: block;
  border-radius: 12px !important;
  cursor: zoom-in;
  transition: opacity 0.2s;
}
@media (max-width: 740px) {
    .day__gallery img{
        max-width: 50%;
    }
}

.day__gallery img:hover {
  opacity: 0.9;
}

.day__toggle{
  justify-self: start;
  margin-top: 10px;
}

.day__text.is-collapsed{
  position: relative;
  overflow: hidden;
  max-height: 8.7em;
  padding-bottom: 0;
}

.day__text.is-collapsed::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
  z-index: 2;
}

.route-lightbox{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.route-lightbox.is-open{
  display: block;
  opacity: 1;
}

.route-lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.9);
}

.route-lightbox__dialog{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.route-lightbox__img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0 !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.route-lightbox__close{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 10;
}
.route-lightbox__close:hover {
  background: rgba(255,255,255,0.4);
}

.route-lightbox__close svg{
  width: 24px;
  height: 24px;
  display: block;
}

.route-lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.route-lightbox__nav:hover {
  opacity: 1;
}

.route-lightbox__nav img{
  width: 50px;
  height: 50px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.route-lightbox__nav.is-prev{
  left: 20px;
}

.route-lightbox__nav.is-next{
  right: 20px;
}

@media (max-width: 980px){
  .day{
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .day__badge > div{
    width: 140px;
    height: 140px;
  }

  .day__num{
    font-size: 58px;
  }

  .day__label{
    font-size: 22px;
  }
}

@media (max-width: 768px){
  .route-hero__thumbs{
    display: none !important;
  }

  .route-hero__nav {
    display: none !important;
  }

  .route-hero__dots{
    display: flex;
  }

  .route-hero {
    padding-top: 10px;
    background: var(--white);
  }

  .route-hero__frame {
    border-radius: 15px;
    min-height: 440px !important;
  }

  .route-hero__img {
    border-radius: 15px;
  }
}

@media (max-width: 740px){
  .route-hero__content{
    width: min(760px, 96vw);
    padding: 22px;
  }
  .route-hero__pin{
    width: 44px;
    height: 44px;
  }
  .route-hero__pin svg {
      width: 48px;
      height: 48px;
  }

  .route-thumb {
    flex: 0 0 140px;
  }

  .route-hero__thumbs{
    gap: 12px;
  }

  .day{
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
  }

  .day__body {
    display: contents;
  }

  .day__heading {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-weight: 800;
    color: var(--text2);
    font-size: clamp(20px, 2.2vw, 36px);
    line-height: 1.15;
  }

  .day__text {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 6px;
  }

  .day__toggle {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    margin-top: 10px;
  }

  .day__badge > div{
    width: 70px;
    height: 70px;
    padding: 10px;
  }

  .day__num{
    font-size: 38px;
    line-height: 0;
    font-weight: 800;
  }

  .day__label{
    font-size: 14px;
    line-height: 0;
    font-weight: 600;
  }
}

@media (max-width: 640px){
  .day__gallery{
    gap: 10px;
  }

  .day__gallery img{
    height: 100px;
    flex-basis: 45%;
  }

  .route-lightbox__dialog{
    padding: 10px;
  }

  .route-lightbox__nav img{
    width: 40px;
    height: 40px;
  }

  .route-lightbox__nav.is-prev{
    left: 5px;
  }
  .route-lightbox__nav.is-next{
    right: 5px;
  }
}

@media (max-width: 420px){
  .route-hero__frame{
    min-height: 440px;
  }

  .route-hero__shade{
    background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.40) 42%, rgba(0,0,0,.12) 68%, rgba(0,0,0,0) 86%);
  }
}
