html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #acb8eb;
    color: #2a3241;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    cursor: pointer;
}

a {
    color: #183a7d;
    text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #4b2359;
    outline-offset: 4px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3,
strong,
b {
    font-weight: 700;
}

img {
    display: block;
    max-width: 100%;
}

.journeyMapInner,
.journeyMap {
    width: calc(100% - 52px);
    max-width: 1064px;
    margin-inline: auto;
    padding-inline: 0;
}

.mapBanner {
    position: static;
    border-block-end: 2px solid #183a7d;
}

.mapBanner .journeyMapInner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 96px;
    padding-block: 16px;
}

.mapTitle {
    min-width: 0;
    color: #183a7d;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.mapBannerNote {
    max-width: 250px;
    text-align: right;
    font-size: 14px;
}

.journeyMapSkip {
    position: absolute;
    z-index: 10;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.journeyMapSkip:focus {
    top: 12px;
    left: 26px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    overflow: visible;
    clip-path: none;
    background: #183a7d;
    color: #ffffff;
}

.mapPin {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.waypointCardSquareButton {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 7px;
    border: 1px solid #4b2359;
    border-radius: 4px;
    background: transparent;
    color: #183a7d;
}

.mapLegendNavTrigger {
    display: none;
}

.journeyMapLayout {
    display: grid;
    grid-template-columns: 274px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
    padding-block: 88px;
}

.mapPanelPanel {
    min-width: 0;
}

.mapLegendCaption {
    margin-block-end: 20px;
    color: #4b2359;
    font-size: 14px;
    font-weight: 600;
}

.mapLegendLinks {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mapLegendToggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid #4b2359;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
}

.mapLegendToggle > span {
    min-width: 0;
}

.mapPinNav {
    visibility: hidden;
    color: #4b2359;
}

.mapLegendToggle[aria-current="page"] {
    font-weight: 700;
}

.mapLegendToggle[aria-current="page"] .mapPinNav {
    visibility: visible;
}

.mapPanel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(400px, calc(100% - 32px));
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    padding: 24px;
    overflow-y: auto;
    border: 0;
    border-inline-start: 2px solid #4b2359;
    background: #acb8eb;
    color: #2a3241;
    box-shadow: -6px 0 0 #183a7d;
}

.mapPanel[open] {
    animation: expand-navigation 600ms ease both;
}

.mapPanel::backdrop {
    background: rgba(42, 50, 65, 0.65);
}

html:has(dialog:modal) {
    overflow: hidden;
}

.mapPanelHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-block-end: 30px;
}

.mapPanelHeader p {
    font-size: 22px;
    font-weight: 700;
}

.home-sections {
    display: flex;
    flex-direction: column;
    gap: 88px;
    min-width: 0;
}

.mapIntro h1 {
    max-width: 650px;
    font-size: 36px;
    line-height: 1.2;
}

.mapIntro p {
    max-width: 540px;
    margin-block-start: 24px;
}

.travelThemesHeader {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-block-end: 30px;
    padding-block-end: 16px;
    border-block-end: 1px solid #4b2359;
    font-size: 26px;
    line-height: 1.3;
}

.travelThemesHeader .mapPin {
    color: #183a7d;
}

#mapEntries {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.waypointCard {
    min-width: 0;
    padding: 26px;
    border: 1px solid #4b2359;
    border-radius: 6px;
    background: #c5cef1;
    box-shadow: 4px 4px 0 #4b2359;
    text-align: right;
}

.waypointCard:first-child {
    grid-column: 1 / -1;
}

.waypointCardEntryPreview {
    width: 220px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-inline-start: auto;
    margin-block-end: 24px;
    border-radius: 3px;
    background: #acb8eb;
    object-fit: cover;
}

.waypointCard h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.waypointCardDetails {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px 14px;
    margin-block-start: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.waypointCardSection {
    color: #4b2359;
    font-weight: 600;
}

.journeyMapReadLength {
    white-space: nowrap;
}

.waypointCardSummary {
    display: -webkit-box;
    margin-block-start: 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.waypointCardEntryAction {
    margin-block-start: 22px;
    text-align: right;
}

.waypointCardAction {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 44px;
    padding-block: 6px;
    border-block-end: 2px solid #4b2359;
    font-weight: 600;
    text-decoration: none;
}

.travelThemesList {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.travelThemesList li {
    padding-block: 8px;
    border-block-end: 1px solid #4b2359;
}

.placeReel {
    width: 75%;
    max-width: 100%;
    margin-inline: auto;
}

.slide-pickers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 12px 0;
    border-block-start: 1px solid #4b2359;
    border-block-end: 1px solid #4b2359;
    list-style: none;
}

.slide-pickers li {
    min-width: 0;
}

.slide-pickers button {
    width: 100%;
    min-height: 44px;
    padding: 8px 4px;
    border: 0;
    border-block-end: 3px solid transparent;
    background: transparent;
    color: #183a7d;
    font-size: 14px;
    text-align: left;
    overflow-wrap: anywhere;
}

.slide-pickers button[aria-pressed="true"] {
    border-block-end-color: #4b2359;
    color: #4b2359;
    font-weight: 700;
}

.placeReelSlides {
    padding-block: 24px;
}

.placeReelItem {
    display: grid;
    grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
    align-items: start;
    min-width: 0;
}

.placeReelItem[hidden],
.placeReelPlayback[hidden],
.placeReelPlayback svg[hidden] {
    display: none;
}

.placeReelPreview {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    border-radius: 3px;
    background: #c5cef1;
    object-fit: cover;
}

.placeReelCopy {
    min-width: 0;
    margin-inline-start: 24px;
    padding-inline-start: 24px;
    border-inline-start: 1px solid #4b2359;
}

.placeReelCopy h3 {
    font-size: 24px;
    line-height: 1.3;
}

.placeReelCopy .waypointCardAction {
    margin-block-start: 24px;
}

.placeReelItem.placeReelCurrent .placeReelPreview,
.placeReelItem.placeReelCurrent .placeReelCopy {
    animation: fade-slide 600ms ease both;
}

.position-track {
    width: 100%;
    height: 4px;
    background: #c5cef1;
}

.placeReelPositionFill {
    display: block;
    height: 100%;
    background: #4b2359;
    transition: width 600ms ease;
}

.placeReel[data-position="1"] .placeReelPositionFill {
    width: 33.3333%;
}

.placeReel[data-position="2"] .placeReelPositionFill {
    width: 66.6667%;
}

.placeReel[data-position="3"] .placeReelPositionFill {
    width: 100%;
}

.placeReelControls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block-start: 16px;
}

.slide-buttons {
    display: flex;
    gap: 8px;
}

.placeReelCount {
    color: #4b2359;
    font-size: 14px;
    font-weight: 600;
}

.live-note {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.itinerary {
    width: 100%;
    max-width: 632px;
    min-width: 0;
    margin-left: auto;
    margin-right: 0;
}

.itinerary > * {
    max-width: 100%;
    margin-block: 0;
}

.itinerary > * + * {
    margin-block-start: 24px;
}

.itinerary > h1 {
    font-size: 36px;
    line-height: 1.2;
}

.itinerary h2 {
    font-size: 28px;
    line-height: 1.3;
}

.itinerary > h2 {
    margin-block-start: 40px;
}

.itinerary h3 {
    font-size: 22px;
    line-height: 1.35;
}

.itinerary > h3 {
    margin-block-start: 32px;
}

.itinerary > .waypointCardDetails {
    justify-content: flex-start;
    margin-block-start: 16px;
    padding-block-end: 24px;
    border-block-end: 1px solid #4b2359;
}

.itinerary p + p {
    margin-block-start: 24px;
}

.itinerary ul,
.itinerary ol {
    padding-inline-start: 28px;
    list-style-type: decimal;
}

.itinerary li + li {
    margin-block-start: 12px;
}

.itinerary li > ul,
.itinerary li > ol {
    margin-block-start: 12px;
}

.itinerary blockquote {
    margin-inline: 0;
    padding: 24px;
    border-inline-start: 3px solid #4b2359;
    background: #c5cef1;
    font-size: 20px;
}

.itinerary blockquote::before {
    display: block;
    margin-block-end: 8px;
    color: #4b2359;
    font-size: 58px;
    line-height: 1;
    content: "“";
}

.itinerary cite {
    display: block;
    margin-block-start: 16px;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
}

.itinerary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.itinerary caption {
    margin-block-end: 12px;
    color: #4b2359;
    font-weight: 600;
    text-align: left;
}

.itinerary th,
.itinerary td {
    padding: 12px;
    border-block-end: 1px solid #4b2359;
    vertical-align: top;
    text-align: left;
}

.itinerary th {
    color: #183a7d;
    font-weight: 600;
}

.itinerary img {
    height: auto;
}

.itinerary > .mapTrail {
    margin-block-start: 16px;
}

.itinerary .mapTrail ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.itinerary .mapTrail li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin: 0;
    font-size: 14px;
}

.mapTrailDivider {
    flex-shrink: 0;
    color: #4b2359;
}

.itinerary > .mapNotesRelated {
    margin-block-start: 88px;
    padding-block-start: 24px;
    border-block-start: 1px solid #4b2359;
}

.mapNotesRelated ol {
    margin-block: 24px 0;
}

.mapNotesRelated a {
    display: inline-block;
    padding-block: 8px;
    font-weight: 500;
}

.mapCredits {
    padding-block: 32px;
    background: #183a7d;
    color: #eef1ff;
}

.mapCredits .journeyMapInner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mapCredits p {
    max-width: 500px;
}

.mapCredits a {
    display: inline-block;
    padding-block: 8px;
    color: #eef1ff;
    font-weight: 500;
}

.mapCredits a:focus-visible {
    outline-color: #eef1ff;
}

.journeyMapAppear.journeyMapInView {
    animation: enter-items 600ms ease 100ms both;
}

@keyframes enter-items {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fade-slide {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes expand-navigation {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 100dvh;
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    #mapEntries {
        grid-template-columns: minmax(0, 1fr);
    }

    .placeReel {
        width: 100%;
    }
}

@media (max-width: 842px) {
    body {
        font-size: 18px;
    }

    .mapBanner .journeyMapInner {
        min-height: 64px;
        gap: 16px;
        padding-block: 10px;
    }

    .mapTitle {
        font-size: 24px;
    }

    .mapBannerNote {
        display: none;
    }

    .journeyMapInteractive .mapLegendNavTrigger {
        display: inline-flex;
    }

    .journeyMapLayout {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        padding-block: 48px;
    }

    .home-sections,
    .itinerary {
        grid-row: 1;
    }

    .mapPanelPanel {
        grid-row: 2;
    }

    .journeyMapInteractive .mapPanelPanel {
        display: none;
    }

    .home-sections {
        gap: 48px;
    }

    .mapIntro h1,
    .itinerary > h1 {
        font-size: 32px;
    }

    .travelThemesHeader {
        margin-block-end: 24px;
    }

    #mapEntries {
        gap: 24px;
    }

    .waypointCard {
        padding: 24px;
    }

    .placeReelItem {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .placeReelPreview {
        justify-self: center;
        max-width: 280px;
    }

    .placeReelCopy {
        margin-inline-start: 0;
        padding-inline-start: 0;
        padding-block-start: 20px;
        border-inline-start: 0;
        border-block-start: 1px solid #4b2359;
    }

    .itinerary > .mapNotesRelated {
        margin-block-start: 48px;
    }

    .itinerary blockquote {
        padding: 20px;
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .slide-pickers {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .slide-pickers button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .journeyMapInner,
    .journeyMap {
        width: calc(100% - 32px);
    }

    .journeyMapSkip:focus {
        left: 16px;
    }

    .mapCredits .journeyMapInner {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .journeyMapAppear.journeyMapInView,
    .mapPanel[open],
    .placeReelItem.placeReelCurrent .placeReelPreview,
    .placeReelItem.placeReelCurrent .placeReelCopy {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .placeReelPositionFill {
        transition: none;
    }

    .placeReelPlayback {
        display: none;
    }

    html,
    .placeReel,
    .mapPanel {
        scroll-behavior: auto;
    }
}
