/* RESET: This page also clears default element spacing. */
* {
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0f3767;
  --blue: #17558f;
  --text-muted: #66778b;
}

body {
  color: var(--navy);
  display: flex;
  justify-content: center;
}

.page {
  max-width: 430px;
}

/* HEADER */
.header {
  border-bottom: 1px solid #e7ebef;
}

.header-title {
  font-size: 20px;
  font-weight: 700;
}

.menu-button {
  color: var(--navy);
  font-size: 28px;
}

/* PAGE INTRO */
.hero {
  padding: 30px 22px 22px;
  background:
    linear-gradient(135deg, #f8fbfe 0%, #edf6fd 65%, #ffffff 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--blue);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.intro {
  max-width: 340px;
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.45;
}

.tour-meta {
  width: fit-content;
  max-width: 100%;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #e7f2fb;
  border-radius: 999px;
  color: var(--navy);
  font-size: 14px;
  white-space: nowrap;
}

.meta-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.meta-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dot {
  color: #214d79;
}

.start-tour-button {
  width: fit-content;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
}

.start-tour-button:hover {
  background: #124878;
}

.start-tour-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* CONTENT */
.content {
  padding: 18px 22px 34px;
}

/* TOUR LIST */
.tour-list {
  position: relative;
}

.tour-list::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: #d8e6f2;
}

.tour-stop {
  position: relative;
  display: grid;
  grid-template-columns: 38px 94px 1fr 18px;
  gap: 13px;
  align-items: center;
  min-height: 110px;
  padding: 10px 0;
}

.number {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: white;
  font-size: 16px;
  font-weight: 700;
}

.tour-stop > img {
  width: 94px;
  height: 78px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: #dde4ea;
}

.stop-image {
  width: 94px;
  margin: 0;
}

.stop-image img {
  width: 94px;
  height: 78px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  background: #dde4ea;
}

.stop-image .photo-credit {
  padding: 3px 1px 0;
  background: transparent;
  font-size: 9px;
  line-height: 1.15;
  text-align: left;
}

.tour-stop > img.focus-top {
  object-position: center 24%;
}

.stop-info {
  min-width: 0;
}

.stop-info h2 {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.15;
}

.stop-info p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.35;
}

.arrow {
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.tour-stop:hover .stop-info h2,
.tour-stop:hover .arrow {
  color: var(--blue);
}

.tour-stop:active {
  opacity: 0.7;
}

/* BACK BUTTON */

.back-button {
  display: block;
  margin-top: 28px;
  padding: 16px 20px;
  background: #e7f1fa;
  color: #173d67;
  text-align: center;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
}

.home-icon {
  font-size: 24px;
}

.back-home > span:nth-child(2) {
  text-align: center;
}

.back-arrow {
  font-size: 30px;
  font-weight: 400;
}

/* SMALL PHONES */
@media (max-width: 360px) {
  .tour-meta {
    font-size: 13px;
    gap: 7px;
    padding: 10px 13px;
  }

  .tour-stop {
    grid-template-columns: 36px 78px 1fr 14px;
    gap: 10px;
  }

  .tour-stop > img {
    width: 78px;
    height: 68px;
  }

  .stop-image {
    width: 78px;
  }

  .stop-image img {
    width: 78px;
    height: 68px;
  }

  .stop-info h2 {
    font-size: 16px;
  }

  .stop-info p {
    font-size: 13px;
  }
}

/* DESKTOP */
@media (min-width: 768px) {
  body {
    padding: 40px 20px;
  }

  .page {
    max-width: 1000px;
    min-height: auto;
    box-shadow: 0 30px 60px rgba(16, 47, 87, 0.18);
  }

  .header {
    height: 85px;
    padding: 0 40px;
  }

  .header-title {
    font-size: 26px;
  }

  .hero {
    padding: 48px 64px 30px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .intro {
    max-width: 620px;
    font-size: 20px;
  }

  .tour-meta {
    font-size: 16px;
    padding: 12px 18px;
  }

  .content {
    padding: 22px 64px 60px;
  }

  .tour-list {
    max-width: 850px;
  }

  .tour-list::before {
    left: 22px;
  }

  .tour-stop {
    grid-template-columns: 44px 150px 1fr 22px;
    gap: 20px;
    min-height: 132px;
    padding: 14px 0;
  }

  .number {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .tour-stop > img {
    width: 150px;
    height: 100px;
  }

  .stop-image {
    width: 150px;
  }

  .stop-image img {
    width: 150px;
    height: 100px;
  }

  .stop-info h2 {
    font-size: 24px;
  }

  .stop-info p {
    font-size: 16px;
  }

  .arrow {
    font-size: 38px;
  }

  .back-home {
    max-width: 850px;
    min-height: 78px;
    margin-top: 34px;
    font-size: 20px;
  }
}
