html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

[data-bs-theme=dark] a:not(.btn), [data-bs-theme=dark] .btn-link {
    color: #6ea8fe;
}

/* Behind a dark admin or contract page (e.g. when scrolling past the end). */
body:has(> .admin-page[data-bs-theme=dark]),
body:has(> .contract-page[data-bs-theme=dark]) {
    background-color: #2b3035;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50680;
}

.validation-message {
    color: #e50680;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

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

/* Contracts: guest pages (/kontrakt) and the admin contract views. */
.contract-card {
    background: var(--bs-body-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.contract-text {
    line-height: 1.55;
}

    .contract-text p:last-child {
        margin-bottom: 0.75rem;
    }

.contract-readonly-value {
    white-space: pre-wrap;
    min-height: calc(1.5em + 0.75rem + 2px);
}

.contract-summary dt {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

.contract-summary dd {
    margin-bottom: 0.6rem;
}

.contract-summary-value {
    white-space: pre-wrap;
}

.admin-signature-img {
    display: block;
    max-width: 100%;
    max-height: 140px;
}

.contract-signature-img {
    display: block;
    max-width: 100%;
    max-height: 90px;
    margin: 4px 0;
}

.contract-code-input {
    letter-spacing: 0.4em;
}

.contract-template-preview {
    background: var(--bs-tertiary-bg);
    border-radius: 12px;
    padding: 12px;
    max-height: 75vh;
    overflow-y: auto;
}

/* Small A4-shaped preview of a contract PDF's front page. */
.contract-cover-preview {
    flex: 0 0 auto;
    width: 105px;
    aspect-ratio: 210 / 297;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    /* Heading centred in the bottom half, as in the PDF. */
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.contract-cover-heading {
    grid-row: 2;
    align-self: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    text-align: center;
    white-space: pre-line;
    padding: 6px 4px;
}

/* The same picture on top of the guest's first contract step. */
.contract-cover-banner {
    display: block;
    width: calc(100% + 40px);
    height: 180px;
    margin: -20px -20px 16px;
    border-radius: 12px 12px 0 0;
    object-fit: cover;
    object-position: center;
}

.booking-ref {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* The guest's contract under a chatbot answer. */
.chat-contract-card {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-contract-body {
    overflow-x: hidden;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

/* Deposit/payment status badges (ChargeStatus.BadgeClass). */
.charge-badge { font-weight: 600; cursor: default; }
.charge-badge-green { background: #198754; color: #fff; }
.charge-badge-blue { background: #0d6efd; color: #fff; }
.charge-badge-yellow { background: #ffc107; color: #212529; }
.charge-badge-lightred { background: #f8d7da; color: #842029; border: 1px solid #f1aeb5; }
.charge-badge-red { background: #dc3545; color: #fff; }
.charge-badge-teal { background: #20c997; color: #0b3d2e; }
.charge-badge-orange { background: #fd7e14; color: #fff; }
.charge-badge-grey { background: #6c757d; color: #fff; }

/* Tables marked .table-stack become one card per row below 1200px (phones,
   tablets, small laptops - where the wide ones would not fit), so nothing
   scrolls sideways. Each cell shows its column name (data-label) before
   the value; cells with an empty label (buttons) span the whole card. */
@media (max-width: 1199.98px) {
    table.table-stack thead {
        display: none;
    }

    table.table-stack,
    table.table-stack tbody,
    table.table-stack tr,
    table.table-stack td {
        display: block;
        width: 100%;
    }

    table.table-stack tr {
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0.75rem;
        background: var(--bs-body-bg, #fff);
    }

    /* Label in a fixed left column, the value flowing normally beside it. */
    table.table-stack td {
        position: relative;
        border: none;
        padding: 0.2rem 0 0.2rem calc(35% + 0.75rem);
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    table.table-stack td[data-label=""] {
        padding-left: 0;
    }

    table.table-stack td[data-label]:not([data-label=""])::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        top: 0.2rem;
        width: 35%;
        font-weight: 600;
        color: var(--bs-secondary-color, #6c757d);
    }

    table.table-stack td[data-label=""] > .btn-link:first-child {
        padding-left: 0;
    }

    /* The cards are already their own boxes. */
    .table-responsive:has(> table.table-stack) {
        overflow-x: visible;
    }
}

/* An inquiry's email conversation: the guest's messages left, ours right. */
.inquiry-thread {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.inquiry-message {
    max-width: 85%;
    padding: 0.6rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-body-bg, #fff);
}

.inquiry-message.out {
    align-self: flex-end;
    background: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
}

.inquiry-message-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .inquiry-message {
        max-width: 100%;
    }
}

/* The inquiry form's honeypot field - off screen, not display:none (some bots skip hidden fields). */
.inquiry-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Buttons on the admin and contract pages: rounder, softer, with a little
   lift on hover. Outline buttons become tinted ("soft") buttons that fill
   with their colour on hover; links stay plain. */
.admin-page .btn,
.contract-page .btn {
    --btn-radius: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--btn-radius);
    font-weight: 500;
    padding: 0.45rem 1rem;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.admin-page .btn-sm,
.contract-page .btn-sm {
    --btn-radius: 0.5rem;
    padding: 0.28rem 0.7rem;
    font-size: 0.85rem;
}

.admin-page .btn-lg,
.contract-page .btn-lg {
    --btn-radius: 0.75rem;
}

.admin-page .btn:not(.btn-link):not(:disabled):hover,
.contract-page .btn:not(.btn-link):not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.admin-page .btn:not(.btn-link):active,
.contract-page .btn:not(.btn-link):active {
    transform: none;
    box-shadow: none;
}

.admin-page .btn:disabled,
.contract-page .btn:disabled {
    opacity: 0.55;
}

.admin-page .btn-primary,
.contract-page .btn-primary {
    background: linear-gradient(180deg, #2a7fd4 0%, #1b6ec2 100%);
    border-color: #1b6ec2;
    box-shadow: 0 1px 2px rgba(27, 110, 194, 0.35);
}

.admin-page .btn-primary:hover,
.contract-page .btn-primary:hover {
    background: #1861ac;
    border-color: #1861ac;
}

.admin-page .btn-link,
.contract-page .btn-link {
    text-decoration: none;
    font-weight: 500;
}

.admin-page .btn-link:hover,
.contract-page .btn-link:hover {
    text-decoration: underline;
}

.admin-page [class*="btn-outline-"],
.contract-page [class*="btn-outline-"] {
    border-color: transparent;
}

.admin-page .btn-outline-primary, .contract-page .btn-outline-primary { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); }
.admin-page .btn-outline-secondary, .contract-page .btn-outline-secondary { background: var(--bs-secondary-bg-subtle); color: var(--bs-secondary-text-emphasis); }
.admin-page .btn-outline-success, .contract-page .btn-outline-success { background: var(--bs-success-bg-subtle); color: var(--bs-success-text-emphasis); }
.admin-page .btn-outline-danger, .contract-page .btn-outline-danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }
.admin-page .btn-outline-warning, .contract-page .btn-outline-warning { background: var(--bs-warning-bg-subtle); color: var(--bs-warning-text-emphasis); }
.admin-page .btn-outline-info, .contract-page .btn-outline-info { background: var(--bs-info-bg-subtle); color: var(--bs-info-text-emphasis); }
.admin-page .btn-outline-dark, .contract-page .btn-outline-dark { background: var(--bs-secondary-bg); color: var(--bs-emphasis-color); }

.admin-page .btn-outline-primary:not(:disabled):hover, .contract-page .btn-outline-primary:not(:disabled):hover { background: var(--bs-primary); color: #fff; }
.admin-page .btn-outline-secondary:not(:disabled):hover, .contract-page .btn-outline-secondary:not(:disabled):hover { background: var(--bs-secondary); color: #fff; }
.admin-page .btn-outline-success:not(:disabled):hover, .contract-page .btn-outline-success:not(:disabled):hover { background: var(--bs-success); color: #fff; }
.admin-page .btn-outline-danger:not(:disabled):hover, .contract-page .btn-outline-danger:not(:disabled):hover { background: var(--bs-danger); color: #fff; }
.admin-page .btn-outline-warning:not(:disabled):hover, .contract-page .btn-outline-warning:not(:disabled):hover { background: var(--bs-warning); color: #000; }
.admin-page .btn-outline-info:not(:disabled):hover, .contract-page .btn-outline-info:not(:disabled):hover { background: var(--bs-info); color: #000; }
.admin-page .btn-outline-dark:not(:disabled):hover, .contract-page .btn-outline-dark:not(:disabled):hover { background: var(--bs-emphasis-color); color: var(--bs-body-bg); }

/* A selected toggle (e.g. the active tab in a btn-group) stays filled. */
.admin-page .btn-check:checked + .btn, .admin-page .btn.active,
.contract-page .btn-check:checked + .btn, .contract-page .btn.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.admin-page .btn-group > .btn,
.contract-page .btn-group > .btn {
    transform: none !important;
}

/* Cards to match: rounder, borderless with a soft shadow. */
.admin-page .card,
.contract-page .card {
    border-radius: 0.85rem;
    border-color: var(--bs-border-color-translucent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.admin-page .form-control, .admin-page .form-select,
.contract-page .form-control, .contract-page .form-select {
    border-radius: 0.5rem;
}

/* /admin/settings: the theme picker. */
.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.theme-option {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 2px solid var(--bs-border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-option:hover {
    border-color: var(--bs-primary-border-subtle);
}

.theme-option.selected {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px var(--bs-primary-bg-subtle);
}

.theme-option:has(input:focus-visible) {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.theme-option-name {
    font-weight: 500;
    font-size: 0.9rem;
}

/* A tiny page: a bar, a card, a button. */
.theme-swatch {
    display: block;
    position: relative;
    height: 64px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-swatch span { position: absolute; border-radius: 3px; }
.theme-swatch span:nth-child(1) { left: 0; right: 0; top: 0; height: 12px; border-radius: 0; }
.theme-swatch span:nth-child(2) { left: 10px; right: 10px; top: 20px; height: 22px; }
.theme-swatch span:nth-child(3) { left: 10px; width: 34px; top: 48px; height: 9px; background: #1b6ec2; }

.theme-swatch-light { background: #f8f9fa; }
.theme-swatch-light span:nth-child(1) { background: #dee2e6; }
.theme-swatch-light span:nth-child(2) { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }

.theme-swatch-dark { background: #2b3035; }
.theme-swatch-dark span:nth-child(1) { background: #495057; }
.theme-swatch-dark span:nth-child(2) { background: #212529; }

.theme-swatch-auto { background: linear-gradient(135deg, #f8f9fa 50%, #2b3035 50%); }
.theme-swatch-auto span:nth-child(1) { background: linear-gradient(135deg, #dee2e6 50%, #495057 50%); }
.theme-swatch-auto span:nth-child(2) { background: linear-gradient(135deg, #fff 50%, #212529 50%); }

/* /admin/settings */
.settings-width {
    max-width: 760px;
}

.settings-background-preview {
    width: 96px;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--bs-border-color);
}

.settings-background-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    background: var(--bs-tertiary-bg);
}

.payment-row {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.6rem;
    background: var(--bs-tertiary-bg);
}

/* The save button stays in reach on a long page. */
.settings-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    background: var(--bs-tertiary-bg);
    border-top: 1px solid var(--bs-border-color);
}

/* --- Charts (/admin/statistics) -------------------------------------------
   Plain HTML/CSS charts (Components/Charts). Categorical slots in fixed
   order - 1 contract, 2 family, 3 free - validated for colour-blind
   separation on Bootstrap's light and dark body colours; the dark steps are
   their own, not a flip. Slot 3 is under 3:1 on white, so every chart has
   a legend, text values and a table view. */
.viz {
    --series-1: #2a78d6;
    --series-2: #eb6834;
    --series-3: #1baf7a;
    --viz-grid: #ebeae6;
    --viz-axis: #c9c8c2;
    --viz-empty: #efeeea;
    --viz-empty-weekend: #dcdad3;
    --viz-track: #f3f2ee;
    --viz-tip-bg: #1f1f1e;
    --viz-tip-text: #ffffff;
    font-variant-numeric: tabular-nums;
}
[data-bs-theme=dark] .viz {
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --viz-grid: #34383c;
    --viz-axis: #50555a;
    --viz-empty: #2e3236;
    --viz-empty-weekend: #41464b;
    --viz-track: #2b2f33;
    --viz-tip-bg: #f1f0ec;
    --viz-tip-text: #1a1a19;
}

.viz-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    font-size: .8125rem;
    color: var(--bs-secondary-color);
}
.viz-legend li { display: inline-flex; align-items: center; gap: .375rem; }
.viz-swatch {
    display: inline-block;
    width: .75rem;
    height: .75rem;
    border-radius: 3px;
    flex: none;
}

/* Columns */
.viz-plot { display: flex; position: relative; }
.viz-yaxis {
    position: relative;
    flex: none;
    width: 3.25rem;
    font-size: .75rem;
    color: var(--bs-secondary-color);
}
.viz-yaxis span { position: absolute; right: .5rem; transform: translateY(50%); white-space: nowrap; }
.viz-area { position: relative; flex: 1; min-width: 0; }
.viz-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--viz-grid); }
.viz-gridline.viz-baseline { border-top-color: var(--viz-axis); }
.viz-cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.viz-col {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    outline: none;
}
.viz-col::before {
    /* The hover target is the whole column, not just the bar. */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
}
.viz-col:hover::before, .viz-col:focus::before { background: var(--bs-secondary-bg); opacity: .6; }
.viz-stack {
    position: relative;
    width: min(70%, 2.75rem);
    display: flex;
    flex-direction: column-reverse; /* first series at the bottom */
    gap: 2px;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}
.viz-seg { min-height: 2px; flex-basis: 0; }
.viz-xaxis {
    display: flex;
    gap: 2px;
    margin-left: 3.25rem;
    padding-top: .25rem;
    font-size: .75rem;
    color: var(--bs-secondary-color);
}
.viz-xaxis span { flex: 1; min-width: 0; text-align: center; overflow: hidden; text-overflow: clip; white-space: nowrap; }

.viz-tip {
    display: none;
    position: absolute;
    bottom: calc(100% + .25rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    min-width: 9rem;
    padding: .5rem .625rem;
    border-radius: .5rem;
    background: var(--viz-tip-bg);
    color: var(--viz-tip-text);
    font-size: .8125rem;
    line-height: 1.35;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .18);
    pointer-events: none;
    white-space: nowrap;
}
.viz-col .viz-tip { bottom: auto; top: -.25rem; transform: translate(-50%, -100%); }
.viz-col:first-child .viz-tip, .viz-col:nth-child(2) .viz-tip { left: 0; transform: translate(0, -100%); }
.viz-col:last-child .viz-tip, .viz-col:nth-last-child(2) .viz-tip { left: auto; right: 0; transform: translate(0, -100%); }
.viz-col:hover .viz-tip, .viz-col:focus .viz-tip { display: flex; flex-direction: column; }
.viz-tip .viz-swatch { width: .625rem; height: .625rem; margin-right: .375rem; }
.viz-tip-total { margin-top: .125rem; font-weight: 600; }
.viz-tip-note { opacity: .75; }

/* Bar list */
.viz-barlist { display: flex; flex-direction: column; gap: .625rem; }
.viz-barrow {
    /* Label and value on one line, the bar full width under them - reads
       well in narrow cards and on phones alike. */
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: .75rem;
    row-gap: .3rem;
    border-radius: .375rem;
    outline: none;
}
.viz-barrow:focus-visible { box-shadow: 0 0 0 .2rem var(--bs-primary-border-subtle); }
.viz-barlabel { display: flex; flex-direction: column; min-width: 0; font-size: .875rem; line-height: 1.25; }
.viz-barlabel small, .viz-barvalue small { color: var(--bs-secondary-color); font-size: .75rem; }
.viz-bartrack { grid-column: 1 / -1; grid-row: 2; height: .625rem; border-radius: 4px; background: var(--viz-track); overflow: hidden; }
.viz-bar { height: 100%; border-radius: 4px; min-width: 4px; }
.viz-barvalue { display: flex; flex-direction: column; align-items: flex-end; font-size: .875rem; line-height: 1.25; white-space: nowrap; }

/* Year calendar */
.viz-cal-grid {
    display: grid;
    grid-template-columns: 2.25rem repeat(31, minmax(0, 1fr));
    gap: 2px;
    align-items: center;
}
.viz-cal-cell { aspect-ratio: 1; border-radius: 2px; min-width: 0; }
.viz-cal-free { background: var(--viz-empty); }
.viz-cal-free.viz-cal-weekend { background: var(--viz-empty-weekend); }
.viz-cal-month, .viz-cal-daynum { font-size: .6875rem; color: var(--bs-secondary-color); }
.viz-cal-daynum { text-align: center; }

/* Statistics page */
.stat-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
    gap: .75rem;
}
.stat-tile {
    padding: .875rem 1rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    background: var(--bs-body-bg);
}
.stat-tile-label { font-size: .8125rem; color: var(--bs-secondary-color); }
.stat-tile-value { font-size: 1.5rem; font-weight: 600; line-height: 1.2; margin-top: .125rem; font-variant-numeric: tabular-nums; }
.stat-tile-note { font-size: .75rem; color: var(--bs-secondary-color); margin-top: .125rem; }
.stat-card {
    padding: 1rem 1.125rem;
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: .75rem;
    background: var(--bs-body-bg);
    height: 100%;
}
.stat-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: .125rem; }
.stat-card .stat-card-sub { font-size: .8125rem; color: var(--bs-secondary-color); margin-bottom: .75rem; }
.stat-card details summary { font-size: .8125rem; color: var(--bs-secondary-color); cursor: pointer; margin-top: .75rem; }
.stat-card details table { font-size: .8125rem; margin-top: .5rem; }
.stat-tiles-inner { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
.stat-tiles-inner .stat-tile { padding: .5rem .625rem; border-radius: .5rem; }
.stat-tiles-inner .stat-tile-value { font-size: 1.125rem; }

/* --- Reviews ---------------------------------------------------------------- */
.review-stars { display: inline-flex; align-items: center; gap: 1px; font-size: 1.125rem; line-height: 1; white-space: nowrap; }
.review-stars .on { color: #eda100; }
.review-stars .off { color: var(--bs-border-color); }
.review-stars-sm { font-size: .875rem; }
.review-stars-number { margin-left: .375rem; font-size: .875rem; font-weight: 600; color: var(--bs-body-color); }

.star-input { margin: 0; }
.star-input legend { font-size: 1rem; }
.star-input-row { display: flex; align-items: center; gap: .125rem; }
.star-input-row label {
    font-size: 1.875rem;
    line-height: 1;
    padding: .125rem;
    cursor: pointer;
    color: var(--bs-border-color);
    border-radius: .375rem;
    transition: color .1s ease, transform .1s ease;
}
/* The checked star and the ones before it light up (no script: the form is
   a plain one). Radios and labels alternate, so "~ label" after the checked
   one is the stars above the rating. */
.star-input-row:has(input:checked) label { color: #eda100; }
.star-input-row input:checked + label ~ label { color: var(--bs-border-color); }
.star-input-row:has(input[value="1"]:checked) .star-input-word::after { content: "Dårlig"; }
.star-input-row:has(input[value="2"]:checked) .star-input-word::after { content: "Under middels"; }
.star-input-row:has(input[value="3"]:checked) .star-input-word::after { content: "Greit"; }
.star-input-row:has(input[value="4"]:checked) .star-input-word::after { content: "Bra"; }
.star-input-row:has(input[value="5"]:checked) .star-input-word::after { content: "Fantastisk"; }
.review-form .review-public-name { display: none; }
.review-form:has(#consent:checked) .review-public-name { display: block; }
/* Hovering previews: this star and the ones before it light up. */
.star-input-row:hover label { color: #eda100; }
.star-input-row label:hover ~ label { color: var(--bs-border-color); }
.star-input-row label:hover { transform: scale(1.1); }
.star-input-row input:focus-visible + label { box-shadow: 0 0 0 .2rem var(--bs-primary-border-subtle); }
.star-input-word { margin-left: .5rem; font-size: .875rem; color: var(--bs-secondary-color); }

.review-quote {
    margin: 0;
    padding: .5rem .75rem;
    border-left: 3px solid var(--bs-primary-border-subtle);
    background: var(--bs-tertiary-bg);
    border-radius: 0 .375rem .375rem 0;
    white-space: pre-line;
}
.review-text, .review-snippet { white-space: pre-line; }
.review-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.review-aspects { display: grid; grid-template-columns: max-content auto; gap: .125rem 1rem; margin: 0; font-size: .875rem; }
.review-aspects dt { font-weight: normal; color: var(--bs-secondary-color); }
.review-aspects dd { margin: 0; }
.review-thread { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.review-thread li { padding: .5rem .75rem; border-radius: .5rem; background: var(--bs-tertiary-bg); }
.review-thread li.current { outline: 1px solid var(--bs-primary-border-subtle); }
.published-review { padding: 1rem 0; border-top: 1px solid var(--bs-border-color-translucent); }
.review-reply { margin-top: .5rem; padding: .5rem .75rem; border-radius: .5rem; background: var(--bs-tertiary-bg); }

/* What guests say, under a chatbot answer (ChatReviewsCard). */
.chat-reviews-card {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.85);
    color: #212529;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.chat-reviews-card .review-stars .off { color: #cfd4da; }
.chat-reviews-head { display: flex; align-items: center; gap: .75rem; }
.chat-reviews-score { font-size: 2rem; font-weight: 700; line-height: 1; }
.chat-reviews-sub { font-size: .8125rem; color: #6c757d; }
.chat-reviews-aspects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: .25rem 1rem;
    margin: .75rem 0 0;
    font-size: .8125rem;
}
.chat-reviews-aspects > div { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.chat-reviews-aspects dt { font-weight: normal; color: #495057; }
.chat-reviews-aspects dd { margin: 0; display: flex; align-items: center; gap: .25rem; white-space: nowrap; }
.chat-review { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgba(0, 0, 0, .08); font-size: .9rem; }
.chat-reviews-card .review-reply { background: rgba(0, 0, 0, .04); }
