html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

:root {
  --ground: #182527;
  --ink: #8bb598;
  --green: #64be80;
  --accent: #8fd5c7;
  --band: #142022;
  --surface: #203131;
  --line: #50776b;
  --radius: 16px;
}

html:has(dialog:modal) {
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

button {
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.holidayGuide, .holidayGuideInner {
  width: calc(100% - 64px);
  max-width: 1306px;
  margin-inline: auto;
  padding-inline: 0;
}

.holidayGuide {
  flex: 1 0 auto;
  min-width: 0;
  padding-block: 60px;
}

.resortMast, .imprintBottomBand {
  background: var(--band);
}

.resortMast {
  position: static;
  border-block-end: 3px double var(--line);
}

.imprintBottomBand {
  border-block-start: 3px double var(--line);
}

.holidayGuideInner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.resortMast .holidayGuideInner {
  min-height: 112px;
  padding-block: 8px;
}

.imprintBottomBand .holidayGuideInner {
  flex-wrap: wrap;
  padding-block: 24px;
}

.imprintBottomBand p {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
}

.holidayGuideSkip {
  position: absolute;
  z-index: 2;
  inset-block-start: 8px;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.holidayGuideSkip:focus {
  width: auto;
  height: auto;
  padding: 8px 12px;
  overflow: visible;
  clip-path: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ground);
}

.guideName {
  display: grid;
  flex: none;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 13px;
  background: var(--surface);
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.resortNavTabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resortNavTabs li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.resortNavTabs a {
  display: block;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 400ms ease;
}

.resortNavTabs a[aria-current='page'], .resortNavTabs a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab-dot {
  color: var(--green);
}

.pictogram {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
}

.mark-box {
  display: grid;
  flex: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent);
}

.resortNavToggle, .resortNavClose, .slide-action, .side-link {
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--green);
  color: var(--ground);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 400ms ease;
}

.resortNavToggle:hover, .resortNavClose:hover, .slide-action:hover, .side-link:hover {
  border-color: var(--accent);
}

.resortNavToggle {
  display: none;
}

.resortNavClose, .slide-action, .side-link {
  display: inline-flex;
}

.resortMenuPanel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 368px);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px 0 0 16px;
  background: var(--band);
  color: var(--ink);
}

.resortMenuPanel::backdrop {
  background: rgb(12 22 23 / 75%);
}

.menu-content {
  display: grid;
  grid-template-rows: 1fr;
}

.resortMenuPanel[open] .menu-content {
  animation: open-menu 400ms ease;
}

.menu-content > div {
  min-height: 0;
  padding-inline: 6px;
  overflow: hidden;
}

.resortMenuHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block: 6px 18px;
}

.resortMenuHeader h2 {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
  font-weight: 700;
}

.menu-items {
  padding-block-end: 8px;
}

.resortMenuPanel .resortNavTabs {
  display: grid;
  gap: 8px;
}

.resortMenuPanel .resortNavTabs li {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
}

.resortMenuPanel .resortNavTabs a {
  grid-column: 2;
  border-color: var(--line);
}

.resortMenuPanel .resortNavTabs a[aria-current='page'], .resortMenuPanel .resortNavTabs a:hover {
  border-color: var(--accent);
}

.holidayGuideFront {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 60px;
}

.mast {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  align-items: center;
  gap: 22px;
  padding-block: 18px;
  border-block-end: 3px double var(--line);
}

.mast-mark {
  display: block;
  width: 100%;
  height: auto;
  color: var(--accent);
}

.foreword h1, .tripReport h1 {
  margin: 0;
  color: var(--accent);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.entries-section, .imageRail {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.section-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-name h2 {
  margin: 0;
  color: var(--accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.vacationList, .imageRailTrack {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vacationList {
  display: grid;
  gap: 22px;
}

.destinationCard {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  grid-template-areas: 'preview copy';
  align-items: center;
  justify-self: start;
  gap: 12px;
  width: min(100%, 1080px);
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 400ms ease;
}

.destinationCard:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) 148px;
  grid-template-areas: 'copy preview';
  justify-self: end;
  border-inline-start: 1px solid var(--line);
  border-inline-end: 3px solid var(--green);
}

.destinationCard:hover, .destinationCard:focus-within {
  border-color: var(--accent);
}

.destinationCardImage {
  display: grid;
  grid-area: preview;
  min-width: 0;
  height: 112px;
  place-items: center;
  border-radius: 12px;
  background: var(--ground);
}

.destinationCardImage img {
  display: block;
  width: min(100%, 112px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
}

.destinationCardText {
  grid-area: copy;
  min-width: 0;
  text-align: right;
}

.destinationCardText h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.22;
}

.destinationCardText h3 a {
  display: block;
  text-decoration: none;
}

.destinationCardText h3 a:hover {
  text-decoration: underline;
}

.destinationCardText h3 span, .destinationCardSummary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.destinationCardSummary {
  margin: 8px 0 0;
}

.imageRail {
  justify-self: end;
  width: 75%;
  min-width: 0;
  padding-block-start: 18px;
  border-block-start: 3px double var(--line);
}

.thumbnails {
  display: flex;
  gap: 10px;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  scrollbar-color: var(--line) var(--ground);
}

.thumbnail {
  display: block;
  flex: 0 0 76px;
  min-width: 0;
  padding: 3px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 400ms ease;
}

.thumbnail:hover, .thumbnail[aria-current='true'] {
  border-color: var(--accent);
}

.thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 5px;
  object-fit: cover;
}

.segments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-block-start: 10px;
}

.segments span {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.segments .imageRailCurrent {
  background: var(--accent);
}

.imageRailTrack {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding-block-end: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) var(--ground);
}

.imageRailTrack.is-sliding {
  scroll-snap-type: none;
}

.imageRailItem {
  display: grid;
  flex: 0 0 87%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(40px, 1fr) auto;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}

.imageRailItem:last-child {
  scroll-snap-align: end;
}

.imageRailImage {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.imageRailCopy {
  z-index: 1;
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-block-start: 1px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgb(20 32 34 / 97%);
}

.imageRailCopy h3 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.slide-action {
  min-width: 44px;
  padding: 7px;
}

.destinationCardStory {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  grid-template-areas: 'side text';
  align-items: start;
  align-content: start;
  gap: 22px;
}

.tripReport {
  display: grid;
  grid-area: text;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  min-width: 0;
  max-width: 618px;
  margin-left: auto;
  margin-right: 0;
}

.tripReport :where(p, h2, h3, ul, ol, blockquote, figure) {
  margin: 0;
}

.tripReport h2, .tripReport h3 {
  margin-block-start: 8px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1.25;
}

.tripReport h2 {
  font-size: 28px;
}

.tripReport h3 {
  font-size: 22px;
}

.tripReport ul, .tripReport ol {
  padding-inline-start: 1.4em;
}

.tripReport ul {
  list-style-type: square;
}

.tripReport :is(ul, ol) li + li {
  margin-block-start: 6px;
}

.wayHome {
  min-width: 0;
  padding-block-end: 14px;
  border-block-end: 3px double var(--line);
}

.wayHome ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 0;
  list-style: none;
}

.tripReport .wayHome li {
  min-width: 0;
  margin: 0;
}

.wayHome li[aria-current='page'] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
}

.wayHomeDivider {
  color: var(--green);
}

.tripReport blockquote {
  padding: 20px;
  border-inline-start: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
}

.tripReport blockquote::before {
  display: block;
  margin-block-end: 8px;
  color: var(--accent);
  font-size: 58px;
  line-height: 1;
  content: '«';
}

.tripReport cite {
  color: var(--accent);
  font-style: italic;
}

.tripReport blockquote cite {
  display: block;
  margin-block-start: 8px;
}

.tripReport img {
  max-width: 100%;
  height: auto;
}

.tripReport table {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
}

.tripReport caption {
  padding-block-end: 8px;
  color: var(--accent);
  font-weight: 600;
  text-align: start;
}

.tripReport th, .tripReport td {
  padding: 10px 12px;
  border-block-end: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.tripReport th {
  color: var(--accent);
  font-weight: 600;
}

.handbookRelated {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-block-start: 18px;
  border-block-start: 3px double var(--line);
}

.handbookRelated a {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 400ms ease;
}

.handbookRelated a:last-child {
  justify-content: flex-end;
  text-align: end;
}

.handbookRelated a:hover {
  border-color: var(--accent);
}

.handbook {
  display: grid;
  grid-area: side;
  justify-items: start;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.handbook .mark-box {
  background: var(--ground);
}

.handbook .section-name h2 {
  font-size: 22px;
}

.handbook p {
  margin: 0;
}

.imageRailEntering {
  animation: enter-items 400ms ease 50ms both;
}

.imageRailEntering:focus-within {
  animation: none;
}

@keyframes enter-items {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes open-menu {
  from {
    grid-template-rows: 0fr;
  }
  to {
    grid-template-rows: 1fr;
  }
}

@media (max-width: 850px) {
  .imageRail {
    width: 100%;
  }

  .destinationCardStory {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'text' 'side';
  }

  .handbook {
    justify-self: end;
    max-width: 618px;
  }
}

@media (max-width: 688px) {
  body {
    font-size: 18px;
  }

  .holidayGuide {
    padding-block: 36px;
  }

  .resortMast .holidayGuideInner {
    flex-wrap: wrap;
    min-height: 64px;
    gap: 12px;
  }

  .guideName {
    width: 46px;
    height: 46px;
  }

  .resortMenuReady > .resortNavToggle {
    display: inline-flex;
  }

  .resortMenuReady > #resort-links {
    display: none;
  }

  .resortMast .holidayGuideInner:not(.resortMenuReady) > #resort-links {
    width: 100%;
    padding-block-end: 8px;
  }

  .holidayGuideFront {
    gap: 36px;
  }

  .mast {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding-block: 12px;
  }

  .mast-mark {
    justify-self: end;
    max-width: 220px;
  }

  .foreword h1, .tripReport h1 {
    font-size: 34px;
  }

  .destinationCard, .destinationCard:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'preview' 'copy';
    justify-self: stretch;
    padding: 20px;
  }

  .destinationCardImage {
    justify-self: end;
    width: min(100%, 148px);
  }

  .destinationCardText h3 {
    font-size: 22px;
  }

  .imageRailCopy {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .holidayGuide, .holidayGuideInner {
    width: calc(100% - 44px);
  }

  .handbookRelated {
    grid-template-columns: minmax(0, 1fr);
  }

  .handbookRelated a:last-child {
    justify-content: flex-start;
    text-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .imageRailEntering, .resortMenuPanel[open] .menu-content {
    animation: none;
  }

  .destinationCard, .resortNavTabs a, .resortNavToggle, .resortNavClose, .slide-action, .side-link, .thumbnail, .handbookRelated a {
    transition: none;
  }

  .imageRailTrack, .thumbnails {
    scroll-behavior: auto;
  }
}
