.max7-news-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #05080a;
  color: var(--text);
}

.max7-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #05080a;
}

.max7-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 7, 9, 0.86) 0%, rgba(3, 7, 9, 0.64) 43%, rgba(3, 7, 9, 0.18) 74%, rgba(3, 7, 9, 0.48) 100%),
    linear-gradient(180deg, rgba(3, 7, 9, 0.58) 0%, rgba(3, 7, 9, 0.08) 45%, rgba(3, 7, 9, 0.82) 100%);
  pointer-events: none;
}

.max7-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  animation: max7-photo-fade 40s infinite;
}

.max7-slide-two {
  animation-delay: 8s;
}

.max7-slide-three {
  animation-delay: 16s;
}

.max7-slide-four {
  animation-delay: 24s;
}

.max7-slide-five {
  animation-delay: 32s;
}

@keyframes max7-photo-fade {
  0%,
  100% {
    opacity: 0;
    transform: scale(1.03);
  }

  5%,
  20% {
    opacity: 1;
  }

  26% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.max7-header {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(5, 12, 14, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.max7-brand {
  display: inline-flex;
  align-items: center;
  width: 108px;
}

.max7-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.max7-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.max7-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(0, 137, 154, 0.44);
  border-radius: 999px;
  background: rgba(0, 137, 154, 0.16);
  color: #eaffff;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.max7-header nav a:hover,
.max7-header nav a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 137, 154, 0.78);
  background: rgba(0, 137, 154, 0.28);
}

.max7-mini-nav {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.max7-mini-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(5, 12, 14, 0.58);
  color: rgba(242, 247, 248, 0.88);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.max7-mini-nav a:hover,
.max7-mini-nav a:focus-visible,
.max7-mini-nav a.is-active {
  transform: translateY(-1px);
  border-color: rgba(0, 167, 184, 0.72);
  background: rgba(0, 137, 154, 0.24);
  color: #ffffff;
}

.max7-layout {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 32px));
  min-height: calc(100vh - 116px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(480px, 0.6fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding-bottom: 32px;
}

.max7-news-card {
  min-height: min(720px, calc(100vh - 152px));
  max-height: calc(100vh - 142px);
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  padding: clamp(26px, 3.4vw, 42px);
  border: 1px solid rgba(0, 137, 154, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 137, 154, 0.2), transparent 44%),
    rgba(5, 12, 14, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
}

.max7-news-card h1 {
  max-width: 15ch;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: clamp(2.35rem, 3.6vw, 4.25rem);
  line-height: 1;
}

.max7-intro {
  margin: 0 0 18px;
  color: rgba(232, 241, 242, 0.86);
  line-height: 1.5;
}

.max7-news-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  padding-right: 8px;
  scrollbar-color: rgba(0, 137, 154, 0.72) rgba(255, 255, 255, 0.08);
}

.max7-news-item {
  display: grid;
  gap: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.max7-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7ef4ef;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.max7-news-item h2 {
  margin: 0;
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.2;
}

.max7-news-item p {
  position: relative;
  max-height: 4.65em;
  margin: 0;
  overflow: hidden;
  color: rgba(232, 241, 242, 0.82);
  line-height: 1.55;
}

.max7-news-item p::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.6em;
  background: linear-gradient(180deg, rgba(17, 29, 31, 0), rgba(17, 29, 31, 0.96));
}

.max7-news-item a {
  width: fit-content;
  color: #f6c259;
  font-weight: 900;
  text-decoration: none;
}

.max7-news-item a:hover,
.max7-news-item a:focus-visible {
  text-decoration: underline;
}

.max7-hero-copy {
  justify-self: start;
  width: min(600px, 100%);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.max7-hero-copy h2 {
  margin-bottom: 18px;
  color: var(--teal);
  font-size: clamp(2.7rem, 6vw, 6.2rem);
  line-height: 0.96;
}

.max7-hero-copy p {
  max-width: 58ch;
  color: rgba(242, 247, 248, 0.9);
  font-size: 1.06rem;
  line-height: 1.64;
}

.max7-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.max7-image-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 26px;
  color: rgba(232, 241, 242, 0.68);
  font-size: 0.72rem;
}

.max7-image-credits span {
  font-weight: 900;
}

.max7-image-credits a {
  color: rgba(232, 241, 242, 0.72);
}

.max7-page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 166px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(420px, 0.58fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-bottom: 34px;
}

.max7-page-intro {
  width: min(620px, 100%);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.72);
}

.max7-page-intro h1 {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: clamp(2.4rem, 5.8vw, 5.6rem);
  line-height: 0.98;
}

.max7-page-intro p {
  max-width: 58ch;
  color: rgba(242, 247, 248, 0.9);
  font-size: 1.05rem;
  line-height: 1.64;
}

.max7-route-tool,
.max7-wide-card,
.max7-comfort-panel,
.max7-metric-card {
  border: 1px solid rgba(0, 137, 154, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 137, 154, 0.18), transparent 48%),
    rgba(5, 12, 14, 0.82);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

.max7-route-tool {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 26px);
}

.max7-route-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.max7-route-controls button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 247, 248, 0.88);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.max7-route-controls button.is-selected,
.max7-route-controls button:hover,
.max7-route-controls button:focus-visible {
  border-color: rgba(0, 167, 184, 0.78);
  background: linear-gradient(135deg, var(--teal), #007b8b);
  color: #ffffff;
}

.max7-map-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.max7-route-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
}

.max7-route-line {
  stroke: rgba(126, 244, 239, 0.46);
  stroke-width: 2;
}

.max7-destination-dot {
  fill: #f6c259;
  stroke: rgba(5, 12, 14, 0.9);
  stroke-width: 2;
}

.max7-origin-dot {
  fill: var(--teal);
  stroke: #ffffff;
  stroke-width: 2;
}

.max7-map-label,
.max7-origin-label {
  fill: #ffffff;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.78);
  stroke-width: 4px;
}

.max7-origin-label {
  fill: #7ef4ef;
  font-size: 19px;
}

.max7-route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.max7-route-summary div,
.max7-destination-list article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.max7-route-summary div {
  padding: 12px;
}

.max7-route-summary span,
.max7-metric-card span,
.max7-comfort-panel article span {
  display: block;
  color: #7ef4ef;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.max7-route-summary strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 1.02rem;
}

.max7-source-note {
  margin: -2px 0 0;
  color: rgba(232, 241, 242, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.max7-source-note a {
  color: #f6c259;
  font-weight: 900;
  text-decoration: none;
}

.max7-source-note a:hover,
.max7-source-note a:focus-visible {
  text-decoration: underline;
}

.max7-destination-list {
  max-height: 220px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-right: 6px;
  scrollbar-color: rgba(0, 137, 154, 0.72) rgba(255, 255, 255, 0.08);
}

.max7-destination-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.max7-destination-list span {
  color: #f6c259;
  font-weight: 900;
}

.max7-destination-list strong {
  color: #ffffff;
  line-height: 1.2;
}

.max7-destination-list em {
  color: rgba(242, 247, 248, 0.72);
  font-style: normal;
  font-weight: 800;
}

.max7-metrics-shell,
.max7-comfort-shell {
  grid-template-columns: minmax(0, 0.43fr) minmax(420px, 0.57fr);
}

.max7-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.max7-metric-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2.5vw, 28px);
}

.max7-metric-card strong {
  color: var(--teal);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: keep-all;
  font-size: clamp(1.55rem, 1.65vw, 1.9rem);
  line-height: 1;
}

.max7-metric-card p,
.max7-wide-card p,
.max7-comfort-panel p {
  margin: 0;
  color: rgba(232, 241, 242, 0.84);
  line-height: 1.55;
}

.max7-wide-card {
  grid-column: 1 / -1;
  padding: clamp(22px, 3vw, 34px);
}

.max7-wide-card h2 {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.max7-comfort-panel {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 28px);
}

.max7-comfort-panel article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.max7-comfort-panel article span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(246, 194, 89, 0.18);
  color: #ffffff;
  letter-spacing: 0;
}

.max7-comfort-panel h2 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 1.5rem;
  line-height: 1.1;
}

.max7-related-links {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 34px;
  padding: clamp(20px, 2.8vw, 30px);
  border: 1px solid rgba(0, 137, 154, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 137, 154, 0.14), transparent 52%),
    rgba(5, 12, 14, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.25);
}

.max7-related-links > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.max7-related-links a {
  display: grid;
  gap: 8px;
  min-height: 138px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 241, 242, 0.84);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.max7-related-links a:hover,
.max7-related-links a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 167, 184, 0.72);
  background: rgba(0, 137, 154, 0.14);
}

.max7-related-links strong {
  color: var(--teal);
  font-size: 1.08rem;
  line-height: 1.16;
}

.max7-related-links span {
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .max7-slide {
    animation: none;
  }

  .max7-slide-one {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .max7-layout,
  .max7-page-shell,
  .max7-metrics-shell,
  .max7-comfort-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .max7-news-card {
    max-height: none;
  }

  .max7-news-list {
    max-height: 56vh;
  }

  .max7-hero-copy {
    justify-self: stretch;
  }

  .max7-route-summary,
  .max7-metric-grid,
  .max7-related-links > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .max7-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .max7-header nav {
    justify-content: flex-start;
  }

  .max7-news-card {
    padding: 20px;
  }

  .max7-news-card h1,
  .max7-hero-copy h2,
  .max7-page-intro h1 {
    font-size: clamp(2.1rem, 14vw, 3.6rem);
  }

  .max7-destination-list {
    grid-template-columns: 1fr;
  }

  .max7-comfort-panel article {
    grid-template-columns: 1fr;
  }
}
