/* ── Fonts (self-hosted, latin subset) ────────── */
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ── Theme tokens ─────────────────────────────────
   Winter (blue) is the default. Summer (green) is selected with
   <html data-theme="summer">, set from the Site:Theme setting. */
:root {
    --brand-900: #12385c;
    --brand-700: #1e4d7e;
    --brand-500: #2568a8;
    --accent-500: #a4491f;

    --paper: #f4efe6;
    --card: #fffaf0;
    --line: #ddd5c5;
    --ink-900: #1d2420;
    --ink-600: #4a544d;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --radius: 3px;
}

:root[data-theme="summer"] {
    --brand-900: #142820;
    --brand-700: #1f3a30;
    --brand-500: #2f5a49;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: var(--font-body);
    color: var(--ink-900);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-700);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-500);
}

/* ── Buttons ──────────────────────────────────── */
.btn-brand {
    background: var(--brand-700);
    color: var(--paper);
    border: 1.5px solid var(--brand-700);
    border-radius: var(--radius);
    padding: .7rem 1.6rem;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

.btn-brand:hover {
    background: var(--brand-900);
    border-color: var(--brand-900);
    color: var(--paper);
}

.btn-outline-brand {
    background: transparent;
    color: var(--brand-700);
    border: 1.5px solid var(--brand-700);
    border-radius: var(--radius);
    padding: .7rem 1.6rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.btn-outline-brand:hover {
    background: var(--brand-700);
    color: var(--paper);
}

/* Buttons on a dark brand band or card */
.band-brand .btn-light,
.band-brand-card .btn-light {
    background: var(--paper);
    color: var(--brand-700);
    border: 1.5px solid var(--paper);
    border-radius: var(--radius);
    padding: .7rem 1.5rem;
    font-weight: 600;
}

.band-brand .btn-light:hover,
.band-brand-card .btn-light:hover {
    background: var(--white);
    color: var(--brand-900);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
    padding: 4rem 0 0;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent-500);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.6vw, 4.9rem);
    line-height: 1.04;
    letter-spacing: -.02em;
    color: var(--brand-700);
    margin-bottom: 1.25rem;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--ink-600);
    max-width: 30rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.hero-img {
    display: block;
    width: 100%;
    height: clamp(300px, 38vw, 500px);
    object-fit: cover;
    border-radius: var(--radius);
}

/* ── Facts card (overlaps the hero) ───────────── */
.facts {
    position: relative;
    margin-top: -2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.25rem 1.5rem;
    padding: 1.6rem 2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-700) 10%, transparent);
}

.fact-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.1rem;
    line-height: 1.1;
    color: var(--brand-700);
}

.fact-label {
    display: block;
    font-size: .875rem;
    color: var(--ink-600);
}

/* ── Sections ─────────────────────────────────── */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--card);
}

/* A full-width band in the brand colour (prices call-to-action) */
.band-brand {
    background: var(--brand-700);
    color: var(--paper);
    padding: 4rem 0;
}

.band-brand .section-title {
    color: var(--paper);
}

.band-brand .section-text {
    color: rgba(244,239,230,.85);
    margin-bottom: 0;
}

.band-brand a:not(.btn) {
    color: var(--paper);
    text-decoration: underline;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent-500);
    margin-bottom: .5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--brand-700);
    margin-bottom: 1rem;
}

.section-text {
    color: var(--ink-600);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.text-link {
    font-weight: 600;
    color: var(--brand-700);
    border-bottom: 2px solid var(--accent-500);
    padding-bottom: 2px;
}

/* ── Feature cards ────────────────────────────── */
.card-feature {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

/* Cards that are links themselves (an <a> is inline by default and would fragment around its block children). */
a.card-feature {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

a.card-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--brand-700) 12%, transparent);
    border-color: var(--brand-700);
}

.card-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--brand-700) 8%, transparent);
    color: var(--brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.card-feature-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.card-feature-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brand-700);
    margin-bottom: .75rem;
}

.card-feature-title a {
    color: var(--brand-700);
}

.card-feature-title a:hover {
    color: var(--accent-500);
}

.card-feature-text {
    color: var(--ink-600);
    line-height: 1.65;
    margin-bottom: 1rem;
}

.card-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.badge-soft {
    display: inline-block;
    padding: .3rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--brand-700);
    background: color-mix(in srgb, var(--brand-700) 9%, transparent);
    border-radius: var(--radius);
}

/* Start page accommodation cards: photo flush to the edges, text below */
.card-boende {
    display: block;
    height: 100%;
    overflow: hidden;
    color: var(--ink-900);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card-boende:hover {
    color: var(--ink-900);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--brand-700) 12%, transparent);
    border-color: var(--brand-700);
}

.card-boende-img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-boende-body {
    padding: 1.5rem;
}

.card-boende-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-500);
    margin-bottom: .35rem;
}

.card-boende-title {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--brand-700);
    margin-bottom: .6rem;
}

.card-boende-text {
    color: var(--ink-600);
    font-size: .95rem;
    margin-bottom: 1rem;
}

.card-boende-meta {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: 1.1rem;
}

.card-boende-link {
    font-weight: 600;
    color: var(--brand-700);
    border-bottom: 2px solid var(--accent-500);
    padding-bottom: 2px;
}

/* ── Showcase images ──────────────────────────── */
.showcase-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-700) 14%, transparent);
    object-fit: cover;
}

/* Lead photo with two smaller ones beside it (stacked on narrow screens) */
.photo-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.photo-mosaic > div {
    position: relative;
    min-width: 0;
    aspect-ratio: 4 / 3;
}

.photo-mosaic .lightbox-link {
    position: absolute;
    inset: 0;
}

.photo-mosaic .showcase-img {
    display: block;
    height: 100%;
}

.photo-mosaic-main {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9 !important;
}

@media (min-width: 992px) {
    .photo-mosaic {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        height: 28rem;
    }

    .photo-mosaic > div {
        aspect-ratio: auto;
    }

    .photo-mosaic-main {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: auto !important;
    }
}

/* ── Stat tiles ───────────────────────────────── */
.stat-tile {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--brand-700);
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: .25rem;
    font-size: .85rem;
    color: var(--ink-600);
    font-weight: 500;
}

/* ── Navbar ───────────────────────────────────── */
.app-navbar {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0;
}

.app-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-700) !important;
}

.logo-mark {
    width: 2.6rem;
    height: auto;
    flex: none;
}

.app-navbar .nav-link {
    font-weight: 500;
    color: var(--ink-900) !important;
    padding: .5rem .85rem !important;
    transition: color .15s;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-item.show .nav-link {
    color: var(--accent-500) !important;
}

.app-navbar .dropdown-menu {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
    background: color-mix(in srgb, var(--brand-700) 8%, transparent);
    color: var(--brand-700);
}

.app-navbar .nav-cta {
    background: var(--brand-700);
    color: var(--paper) !important;
    border-radius: var(--radius);
    padding: .5rem 1.1rem !important;
    font-weight: 600;
    margin-left: .5rem;
}

.app-navbar .nav-cta:hover {
    background: var(--brand-900);
    color: var(--paper) !important;
}

@media (max-width: 767.98px) {
    .app-navbar .nav-cta {
        display: inline-block;
        margin: .5rem 0 .25rem;
    }
}

/* ── Footer ───────────────────────────────────── */
.app-footer {
    background: var(--paper);
    color: var(--ink-900);
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding: 3rem 0 0;
}

.app-footer h4 {
    color: var(--brand-700);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 1rem;
}

.app-footer a,
.app-footer p a {
    color: var(--brand-700);
}

.app-footer a:hover {
    color: var(--accent-500);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--ink-600);
}

/* ── Focus / Accessibility ────────────────────── */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--brand-700) 35%, transparent);
}

/* ── Misc ─────────────────────────────────────── */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--ink-600);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Tables ────────────────────────────────────── */
.table-brand thead {
    /* Bootstrap paints every cell from --bs-table-bg, so the header colours must be set through its variables. */
    --bs-table-bg: var(--brand-700);
    --bs-table-color: var(--white);
    background: var(--brand-700);
    color: var(--white);
}

.table-brand thead th {
    border: none;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .02em;
    white-space: nowrap;
}

.table-brand tbody tr {
    transition: background .15s;
}

.table-brand tbody tr:hover {
    background: color-mix(in srgb, var(--brand-700) 5%, transparent);
}

.table-brand {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    --bs-table-bg: var(--card);
}

.table-brand td {
    vertical-align: middle;
    font-family: var(--font-mono);
    font-size: .92rem;
}

.table-brand td.cell-text {
    font-family: inherit;
    font-size: inherit;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-700);
}

.footer-tagline {
    font-size: .875rem;
    color: var(--ink-600);
}

/* ── Booking page ─────────────────────────────── */
.lead-text {
    font-size: 1.15rem;
    max-width: 40rem;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-card .form-label {
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.form-hint {
    font-weight: 400;
    color: var(--ink-600);
}

.form-card .form-control,
.form-card .form-select {
    border-color: #cfc6b4;
    border-radius: var(--radius);
    padding: .7rem .85rem;
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    border-color: var(--brand-700);
    box-shadow: 0 0 0 .15rem color-mix(in srgb, var(--brand-700) 30%, transparent);
}

.band-brand-card {
    background: var(--brand-700);
    color: var(--paper);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.band-brand-card .card-feature-title {
    color: var(--paper);
}

.band-brand-card a:not(.btn) {
    color: var(--paper);
    text-decoration: underline;
}

.contact-line {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: .95rem;
    color: var(--ink-600);
}

.steps li {
    display: flex;
    gap: .9rem;
}

.step-num {
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    background: var(--brand-700);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
}

.facts-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .95rem;
    color: var(--ink-600);
}

.facts-list strong {
    color: var(--ink-900);
}

.form-card .form-check-input:checked {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}

.form-card .form-check-label {
    font-weight: 600;
}

.form-card .form-check .form-hint {
    font-size: .85rem;
}

/* ── Price tabs ───────────────────────────────── */
.price-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.75rem;
    margin-bottom: 1.25rem;
}

.price-tab {
    display: inline-block;
    padding: .7rem 1.5rem;
    min-height: 44px;
    border: 1.5px solid var(--brand-700);
    border-radius: var(--radius);
    color: var(--brand-700);
    font-weight: 600;
    transition: background .2s, color .2s;
}

.price-tab:hover {
    background: color-mix(in srgb, var(--brand-700) 8%, transparent);
    color: var(--brand-700);
}

.price-tab.active,
.price-tab.active:hover {
    background: var(--brand-700);
    color: var(--paper);
}

.th-link {
    color: var(--white);
    border-bottom: 1px dotted rgba(255,255,255,.7);
}

.th-link:hover {
    color: var(--white);
    border-bottom-style: solid;
}

.card-boende-img-sm {
    height: 150px;
}

/* ── Cabin pages ──────────────────────────────── */
.breadcrumb-line {
    font-size: .875rem;
    color: var(--ink-600);
    margin-bottom: 1.25rem;
}

.cabin-head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.cabin-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: .35rem;
}

.facts-flat {
    margin-top: 0;
    margin-bottom: 1.5rem;
    box-shadow: none;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.facts-flat .fact-value {
    font-size: 1.7rem;
}

.cabin-mosaic {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, 230px);
    gap: .75rem;
}

.mosaic-hero {
    grid-column: span 2;
    grid-row: span 2;
}

.cabin-mosaic-small {
    grid-template-rows: 230px;
}

.cabin-mosaic-small .mosaic-hero {
    grid-row: span 1;
}

.mosaic-hero, .mosaic-cell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.mosaic-hero .lightbox-link, .mosaic-cell .lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mosaic-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-900) 65%, transparent);
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: .5rem;
}

.mosaic-more:hover {
    color: #fff;
    background: color-mix(in srgb, var(--brand-900) 78%, transparent);
}

@media (max-width: 767.98px) {
    .cabin-mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 260px repeat(2, 150px);
    }

    .mosaic-hero {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cabin-mosaic-small {
        grid-template-rows: 260px;
    }
}

.cabin-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-700);
    margin: 2rem 0 .5rem;
}

.cabin-section-title:first-child {
    margin-top: 0;
}

.cabin-price-box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-700) 10%, transparent);
}

.cabin-price-table {
    width: 100%;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

.cabin-price-table td {
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
}

/* ── Taken weeks in the price list ────────────── */
.price-cell-booked {
    --taken-ink: #8a2c22;
    --taken-bg: color-mix(in srgb, #b8372b 13%, transparent);
}

.price-cell-preliminary {
    --taken-ink: #7a5300;
    --taken-bg: color-mix(in srgb, #d9a21b 20%, transparent);
}

.table-brand td.price-cell {
    background: var(--taken-bg);
    box-shadow: inset 3px 0 0 var(--taken-ink);
    line-height: 1.2;
}

.price-struck {
    display: block;
    color: var(--taken-ink);
    text-decoration-thickness: 1.5px;
    opacity: .85;
}

.price-status {
    display: block;
    margin-top: .1rem;
    color: var(--taken-ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.price-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.5rem;
    margin: .75rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--ink-600);
    font-size: .85rem;
}

.price-legend-swatch {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    margin-right: .5rem;
    vertical-align: -.1rem;
    border-radius: 2px;
    background: var(--taken-bg);
    box-shadow: inset 3px 0 0 var(--taken-ink);
}
