.daytripPage {
  overflow-x: hidden;
  background: #fff;
}

.mobileArrow {
    display: none;
    margin-top: 10px;
  }

.daytripHeroSimple {
  position: relative;
  height: 889px;
  background-image: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,.42)), var(--hero);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 90px;
  color: #fff;
  text-align: center;
  --hero:url('https://discovermiddlesex.com/wp-content/uploads/2026/06/2025_09-Day-Trip-2025-105-1.jpg');
}

.daytripHeroOverlay {
  max-width: 680px;
  position: relative;
  z-index: 2;
  left: 50px;
  margin-top: 95px;
}

.daytripHeroOverlay h1 {
  font-size: 60px;
  line-height: .85;
  margin: 0;
  font-weight: 900;
  max-width: 560px;
}

.daytripHeroOverlay h2 {
  font-size: 40px;
  margin: 12px 0 50px;
  font-weight: 800;
}

.daytripHeroOverlay p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.daytripTimeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px 45px;
}

.daytripTimeline::before {
  content: "";
  position: absolute;
  top: -435px;
  left: 109px;
  width: 3px;
  height: 435px;
  background: #9BC45D;
  z-index: 1;
}

.daytripTimeline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 109px;
  width: 86px;
  height: 3px;
  background: #9BC45D;
  z-index: 1;
}

.daytripLineDown {
  position: absolute;
  top: 0;
  left: 195px;
  width: 3px;
  height: 100%;
  background: #9BC45D;
  z-index: 5;
}

.heroWhiteDot {
  position: absolute;
  left: 110px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  z-index: 5;
}

.heroWhiteDotOne {
  top: -445px;
}

.heroWhiteDotTwo {
  top: -305px;
}

.timelineItem {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 13px;
  align-items: center;
  margin-bottom: 48px;
  margin-left: 86px;
  width: 100%;
  max-width: 500px;
}

.stayItem {
  margin-bottom: 20px !important;
}

.timelineIcon {
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 34px;
  align-self: start;
  z-index: 20;
}

.timelineIcon img {
  object-fit: contain;
  width: 107px;
  height: 107px;
  z-index: 21;
  transform: scale(.9);
  position: relative;
  transition: transform .75s ease;
}

.timelineCard {
  position: relative;
  padding: 22px 0px 22px 80px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  width: 100%;
  max-width: 360px;
  gap: 5px;
  background: #FFF;
  border-radius: 6px;
  z-index: 4;
  transition: box-shadow .75s ease;
}

.timelineCard:hover {
  box-shadow: 0 4px 12.1px 2px rgba(0, 0, 0, 0.10);
}

.timelineItem:hover .timelineIcon img{
      transform: scale(1.1);
}

.timelineItem:hover .timelineCard {
  box-shadow: 0 4px 12.1px 2px rgba(0,0,0,.10);
}


.timelineCard h2 {
  margin: 0 0 5px;
  font-size: 2em;
  line-height: 1.5;
  font-weight: 900;
  color: #111;
}

.timelineCard .title {
  font-weight: 700;
  line-height: 158%;
}

.timelineCard p {
  font-size: 16px;
  line-height: 1.5;
  margin-right: 40px;
}
.stayImg {
  position: relative;
  top: 0px;
}

.stayCard {
  padding: 18px 34px 40px 80px;
  background: #FFF;
  border-radius: 6px;
  box-shadow: unset;
}

.stayCard h2 {
  font-size: 2em;
  margin: 0 0 18px;
  color: #111;
  font-weight: 900;
}

.stayCard p {
  max-width: 430px;
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.stayCard a {
  display: inline-block;
  background: #008445;
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.stayCard a:hover {
  background: #000;
  color: #fff;
}

.daytripPhotoGrid {
  display: grid;
  grid-template-columns: 1.25fr .7fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
  background: #fff;
  z-index: 10;
  position: relative;
  max-width: 1440px;
  margin: auto;
}

.daytripPhotoGrid .photo {
  background: #d9d9d9;
  overflow: hidden;
}

.daytripPhotoGrid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* left top */
.daytripPhotoGrid .photo:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* middle tall */
.daytripPhotoGrid .photo:nth-child(2) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* right top */
.daytripPhotoGrid .photo:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.daytripPhotoGrid .photo:nth-child(3) img {
    object-position: top;
  }

/* left bottom */
.daytripPhotoGrid .photo:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

/* right bottom */
.daytripPhotoGrid .photo:nth-child(5) {
  grid-column: 3;
  grid-row: 2;
}

@media (max-width: 700px) {
  .daytripTimeline::after {
    display: none;
  }

  .daytripLineDown { 
    display: none;
  }

  .mobileArrow {
    display: flex;
  }

  .daytripHeroSimple {
    min-height: 55vh;
    align-items: center;
    padding: 90px 60px 80px;
  }

  .daytripHeroOverlay h1 {
    font-size: 46px;
  }

  .daytripTimeline {
    padding: 55px 20px 80px;
  }

  .daytripTimeline::before {
    left: 83px;
    top: -455px;
    height: calc(100% + 570px);
  }
  .stayCard {
    padding: 18px 22px 0px;
    box-shadow: unset;
  }

  .heroWhiteDot {
    left: 84px;
  }

  .heroWhiteDotOne {
    top: -465px;
  }

  .heroWhiteDotTwo {
    top: -320px;
  }

  .timelineItem {
    grid-template-columns: 50px 1fr;
    gap: 85px;
    margin-left: unset;
  }

  .timelineIcon {
    margin-left: 12px;
  }

  .timelineCard {
    padding: 18px 22px;
    box-shadow: unset;
  }

  .timelineCard:hover {
    box-shadow: unset;
  }

  .timelineCard h2 {
    font-size: 1.75em;
  }

  .timelineCard p {
    font-size: 16px;
    margin-right: unset;
  }

  .daytripPhotoGrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 250px 229px 212px;
    max-width: 700px;
  }

  .daytripPhotoGrid .photo:nth-child(1) {
    grid-column: 1 / span 2;
    grid-row: 1;
  }

  .daytripPhotoGrid .photo:nth-child(2) {
    grid-column: 2;
    grid-row: 2 / span 1;
  }

  .daytripPhotoGrid .photo:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .daytripPhotoGrid .photo:nth-child(4) {
    grid-column: 1 / span 2;
    grid-row: 3;
  }

  .daytripPhotoGrid .photo:nth-child(5) {
    display: none;
  }

  .daytripPhotoGrid .photo:nth-child(1) img{
    object-position: center;
  }

  .daytripPhotoGrid .photo:nth-child(2) img {
    object-position: bottom;
  }

  .daytripPhotoGrid .photo:nth-child(3) img {
    object-position: center;
  }

  .daytripPhotoGrid .photo:nth-child(4) img {
    object-position: left 0px top -70px;
  }
}

@media (max-width: 539px) {
  .daytripHeroSimple {
    text-align: center;
    --hero:url('https://discovermiddlesex.com/wp-content/uploads/2026/07/2025_09-Day-Trip-2025-102-2.png');
    height: 681px;
    background-position: bottom;

  }
  
  .daytripHeroOverlay {
    max-width: 680px;
    position: relative;
    z-index: 2;
    left: 0px;
  }

  .daytripTimeline {
    margin-left: 15px;
  }

  .daytripTimeline::before {
    left: 57px;
    top: -65px;
    height: calc(100% + 470px);
  }
  .timelineIcon img {
    object-fit: contain;
    width: 85px;
    height: 85px;
  }
  .daytripPhotoGrid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 204px 183px 176px;
    max-width: 540px;
  }
  .daytripPhotoGrid .photo:nth-child(1) img{
    object-position: center;
  }

  .daytripPhotoGrid .photo:nth-child(2) img {
    object-position: bottom;
  }

  .daytripPhotoGrid .photo:nth-child(3) img {
    object-position: center;
  }

  .daytripPhotoGrid .photo:nth-child(4) img {
    object-position: left 0px top -45px;
  }
  .heroWhiteDot {
    left: 58px;
  }
  .heroWhiteDotOne {
    display: none;
  }
  .heroWhiteDotTwo {
    top: -80px;
  }
  .timelineCard {
    box-shadow: unset;
  }
  .timelineItem {
    gap: 25px;
    margin-left: unset;
  }
  .timelineIcon {
    margin-left: -4px;
  }
}