/* ==========================================================================
   Components: reusable sections and pieces
   Text, buttons, hero, split, stats, checklist, card, cta band, FAQ,
   rich text, page hero, breadcrumbs, article layout, fact box, contents,
   booking box, card groups, Google Translate widget
   ========================================================================== */

/* Text ------------------------------------------------------------------- */

.eyebrow {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fjord-700);
}

.lead {
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.8vw, 1.26rem);
    color: var(--ink-700);
}

.section-head {
    max-width: 64ch;
    margin-bottom: 2.4rem;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .lead {
    margin-inline: auto;
}

.section-foot {
    margin-top: 2.4rem;
    text-align: center;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.85rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: linear-gradient(135deg, var(--salmon-500), var(--salmon-600));
    color: var(--salmon-ink);
    box-shadow: 0 8px 22px rgb(232 135 58 / 0.35);
}

.btn--primary:hover {
    color: var(--salmon-ink);
    box-shadow: 0 12px 28px rgb(232 135 58 / 0.45);
}

.btn--fjord {
    background: linear-gradient(135deg, var(--fjord-600), var(--fjord-800));
    color: var(--white);
    box-shadow: 0 8px 22px rgb(23 87 122 / 0.32);
}

.btn--fjord:hover {
    color: var(--white);
}

.btn--ghost {
    border-color: rgb(255 255 255 / 0.7);
    background: rgb(255 255 255 / 0.14);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgb(255 255 255 / 0.24);
    color: var(--white);
}

.btn--outline {
    border-color: var(--fjord-700);
    background: transparent;
    color: var(--fjord-800);
}

.btn--outline:hover {
    background: var(--fjord-700);
    color: var(--white);
}

.btn--sm {
    min-height: 2.5rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.92rem;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

/* Hero ------------------------------------------------------------------- */

.hero,
.cta-band {
    position: relative;
    isolation: isolate;
    color: var(--white);
}

.hero__bg,
.cta-band__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__bg img,
.cta-band__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after,
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero::after {
    background: linear-gradient(
        180deg,
        rgb(11 42 60 / 0.72),
        rgb(11 42 60 / 0.5) 40%,
        rgb(8 30 44 / 0.9)
    );
}

.hero :focus-visible,
.cta-band :focus-visible {
    outline: var(--focus-ring-on-dark);
}

.hero__inner {
    max-width: 46rem;
    padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3rem, 7vw, 5rem);
}

.hero .eyebrow,
.cta-band .eyebrow {
    color: var(--glacier-300);
}

.hero h1 {
    color: var(--white);
    text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
}

.hero .lead,
.cta-band .lead {
    color: var(--on-dark);
}

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--on-dark);
}

.hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero__trust li::before {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--glacier-300) var(--icon-check) center / 0.7rem no-repeat;
}

/* Split: text beside an image -------------------------------------------- */

.split {
    align-items: center;
    gap: clamp(2rem, 5vw, 3rem);
}

.split__media img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Stats ------------------------------------------------------------------ */

.stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.stat__value {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--fjord-700);
}

.stat__label {
    font-size: 0.9rem;
    color: var(--ink-500);
}

/* Checklist -------------------------------------------------------------- */

.checklist {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-inline-start: 1.7rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    top: 0.3em;
    inset-inline-start: 0;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--fjord-600) var(--icon-check-white) center / 0.75rem no-repeat;
}

.checklist--sm {
    font-size: 0.9rem;
}

.checklist--sm li {
    margin-bottom: 0.35rem;
}

/* Card ------------------------------------------------------------------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card:has(.card__link:focus-visible) {
    outline: var(--focus-ring);
    outline-offset: 3px;
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mist-200);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card__media img {
    transform: scale(1.05);
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
}

.card__title {
    margin-bottom: 0.4rem;
}

.card__title a {
    color: inherit;
    text-decoration: none;
}

/* The primary link covers the whole card, so the card has one tab stop */
.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

@supports selector(:has(a)) {
    .card__link:focus-visible {
        outline: none;
    }
}

.card__tagline {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fjord-700);
}

.card__desc {
    font-size: 0.95rem;
    color: var(--ink-700);
}

.card__meta {
    display: flex;
    order: -1; /* Shown above the title, read after it */
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin: 0 0 0.7rem;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    color: var(--ink-500);
}

.card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.card__meta li::before {
    content: "";
    flex: none;
    width: 0.95rem;
    height: 0.95rem;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.card__meta-time {
    --icon: var(--icon-clock);
}

.card__meta-place {
    --icon: var(--icon-pin);
}

.card__meta-date {
    --icon: var(--icon-calendar);
}

.card__foot {
    margin-top: auto;
    padding-top: 1rem;
}

.badge {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    max-width: calc(100% - 1.5rem);
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    background: rgb(11 42 60 / 0.9);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge--season {
    top: auto;
    bottom: 0.75rem;
    inset-inline: auto 0.75rem;
    background: var(--salmon-500);
    color: var(--salmon-ink);
}

/* CTA band --------------------------------------------------------------- */

.cta-band {
    text-align: center;
}

.cta-band::after {
    background: rgb(8 30 44 / 0.82);
}

.cta-band h2 {
    color: var(--white);
}

.cta-band .lead {
    margin-inline: auto;
}

.cta-band .btn-row {
    justify-content: center;
}

/* FAQ -------------------------------------------------------------------- */

.faq {
    max-width: 74ch;
    margin-inline: auto;
}

.faq details {
    margin-bottom: 0.8rem;
    padding: 0.2rem 1.2rem;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    font-family: var(--font-serif);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--fjord-900);
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--fjord-600);
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq .rich-text {
    padding-bottom: 1rem;
    color: var(--ink-700);
}

/* Rich text: CMS editor content, styled through the wrapper only --------- */

.rich-text > * {
    margin-top: 0;
    margin-bottom: 0;
}

.rich-text > * + * {
    margin-top: 1rem;
}

.rich-text > h2 {
    margin-top: 2.6rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.rich-text > h2:first-child {
    margin-top: 0;
}

.rich-text > h3,
.rich-text > h4 {
    margin-top: 1.8rem;
}

.rich-text h2 {
    font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.rich-text h3 {
    font-size: clamp(1.15rem, 2vw, 1.3rem);
}

.rich-text h4 {
    font-size: 1.1rem;
}

.rich-text ul,
.rich-text ol {
    padding-inline-start: 1.3rem;
}

.rich-text li + li {
    margin-top: 0.4rem;
}

.rich-text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-text strong {
    font-weight: 700;
    color: var(--ink-900);
}

.rich-text em {
    font-style: italic;
}

.rich-text blockquote {
    margin-inline: 0;
    padding: 0.4rem 0 0.4rem 1.2rem;
    border-inline-start: 4px solid var(--glacier-500);
    font-style: italic;
    color: var(--ink-700);
}

.rich-text figure {
    margin-inline: 0;
    overflow-x: auto; /* A very wide table scrolls inside its figure, not the page */
}

.rich-text img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.rich-text figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-500);
}

.rich-text table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--mist-200);
    background: var(--white);
    font-size: 0.93rem;
}

.rich-text caption {
    padding-bottom: 0.5rem;
    font-weight: 700;
    text-align: start;
    color: var(--fjord-900);
}

.rich-text th,
.rich-text td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--mist-200);
    text-align: start;
    vertical-align: top;
}

.rich-text thead th {
    background: var(--mist-100);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fjord-900);
}

.rich-text tbody th {
    color: var(--fjord-800);
}

.rich-text hr {
    height: 1px;
    border: 0;
    background: var(--mist-200);
}

/* Page hero: banner at the top of inner pages ---------------------------- */

.page-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(3rem, 8vw, 5rem) clamp(2.4rem, 5vw, 3.5rem);
    background: var(--fjord-900);
    color: var(--white);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(11 42 60 / 0.66), rgb(8 30 44 / 0.88));
}

.page-hero--slim {
    padding-block: 3rem 2.4rem;
}

.page-hero--slim::after {
    content: none;
}

.page-hero h1 {
    max-width: 24ch;
    color: var(--white);
}

.page-hero .lead {
    margin-bottom: 0;
    color: var(--on-dark);
}

.page-hero .eyebrow {
    color: var(--glacier-300);
}

.page-hero :focus-visible {
    outline: var(--focus-ring-on-dark);
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.2rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--on-dark-muted);
}

/* Breadcrumbs ------------------------------------------------------------ */

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 0;
    margin: 0 0 0.9rem;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    color: var(--on-dark-muted);
}

.crumbs li + li::before {
    content: "/";
    margin-inline: 0.5rem;
    opacity: 0.7;
}

.crumbs a {
    color: var(--on-dark);
}

.crumbs a:hover {
    color: var(--white);
}

/* Article with sidebar --------------------------------------------------- */

.layout-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.article {
    max-width: 74ch;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Fact box --------------------------------------------------------------- */

.fact-box,
.toc {
    padding: 1.4rem;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.fact-box__title,
.toc__title {
    margin-bottom: 0.9rem;
    font-size: 1.1rem;
}

.fact-box__list {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.fact-box__list dt {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-500);
}

.fact-box__list dd {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    color: var(--ink-900);
}

/* Table of contents ------------------------------------------------------ */

.toc__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.toc__list li + li {
    margin-top: 0.45rem;
}

.toc__list a {
    text-decoration: none;
}

.toc__list a:hover {
    text-decoration: underline;
}

/* Booking box ------------------------------------------------------------ */

.aff-box {
    padding: 1.6rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--fjord-800), var(--fjord-900));
    color: var(--on-dark);
    box-shadow: var(--shadow-md);
}

.aff-box--stay {
    background: linear-gradient(160deg, var(--fjord-600), var(--fjord-900));
}

.aff-box__title {
    margin-bottom: 0.6rem;
    font-size: 1.25rem;
    color: var(--white);
}

.aff-box__text {
    font-size: 0.95rem;
}

.aff-box__note {
    margin: 0.8rem 0 0;
    font-size: 0.8rem;
    color: var(--on-dark-muted);
}

.aff-box :focus-visible {
    outline: var(--focus-ring-on-dark);
}

/* Section heading with a lead, left-aligned above a card group ----------- */

.group + .group {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.group__head {
    max-width: 64ch;
    margin-bottom: 1.6rem;
}

.group__head p {
    margin-bottom: 0;
    color: var(--ink-700);
}

.card__bestfor {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--ink-500);
}

.card__bestfor strong {
    color: var(--ink-700);
}

/* Google Translate widget ------------------------------------------------ */

.translate__panel .goog-te-gadget {
    font-family: var(--font-sans);
    color: var(--ink-500);
}

.translate__panel .goog-te-combo {
    width: 100%;
    min-height: 2.75rem;
    margin: 0 0 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--mist-200);
    border-radius: 0.5rem;
    background: var(--white);
    color: var(--ink-900);
    font: inherit;
}

/* Desktop ---------------------------------------------------------------- */

@media (min-width: 64em) {
    .layout-2col {
        grid-template-columns: minmax(0, 1fr) 20rem;
        gap: 3rem;
    }

    .sidebar {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }
}
