/*
 * The stylesheet of every page, on top of Bootstrap 5.3 (public/vendor/bootstrap).
 * One colour in five steps (owner, 2026-10-19), petrol #146275 being the main colour of the old site:
 *   dark     #0d4857  the menu of the header, the text on a button's hover
 *   main     #146275  headings, links, the text of the buttons, icons that mean something
 *   mid      #79b9c5  the frame of a button and a chosen select, a button's and a link's hover, what only
 *                     decorates - too pale for text and meaning
 *   light    #b9dfe6  every border and line, the frame of all on pale, the buttons and the labels on the pictures,
 *                     a chosen select (owner, 2026-10-19)
 *   pale     #def1f4  chips and the watchlist count (petrol on it), light surfaces
 * Every other surface is neutral (white and a light grey). A colour is changed here, in the variables, never in a rule
 * further down.
 * Fonts: the system font of the visitor's device - nothing to load, nothing to host.
 */

:root {
    --ahoi-primary: #146275;
    --ahoi-primary-dark: #0d4857;
    --ahoi-primary-rgb: 20, 98, 117;
    --ahoi-primary-mid: #79b9c5;
    --ahoi-primary-mid-rgb: 121, 185, 197;
    --ahoi-primary-light: #b9dfe6;
    --ahoi-primary-pale: #def1f4;
    --ahoi-surface: #f2f4f5;
    --ahoi-surface-light: #ffffff;
    --ahoi-text: #16222a;
    --ahoi-muted: #5f6b71;
    --ahoi-border: var(--ahoi-primary-light);
    --ahoi-radius: .9rem;
    /* The background of every OK notice (.alert-success, e.g. "msg=request_sent&ok=1"), owner 2026-10-20. */
    --ahoi-success-bg: #b9f9b9;
    /* The header's height, measured (logo 3.25rem + the navbar's padding + the line): what stays below it. */
    --ahoi-header-h: 79px;
    --ahoi-shadow: 0 1px 2px rgba(16, 34, 42, .06), 0 8px 24px rgba(16, 34, 42, .08);

    --bs-primary: var(--ahoi-primary);
    --bs-primary-rgb: var(--ahoi-primary-rgb);
    --bs-link-color: var(--ahoi-primary);
    --bs-link-color-rgb: var(--ahoi-primary-rgb);
    /* A link under the mouse: mid (owner, 2026-10-19). Bootstrap colours a hovered link from the -rgb variable. */
    --bs-link-hover-color: var(--ahoi-primary-mid);
    --bs-link-hover-color-rgb: var(--ahoi-primary-mid-rgb);
    --bs-body-color: var(--ahoi-text);
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-border-color: var(--ahoi-border);
    --bs-border-radius: var(--ahoi-radius);
}

body {
    background: var(--ahoi-surface-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

a {
    text-underline-offset: .15em;
}

.alert-success {
    --bs-alert-bg: var(--ahoi-success-bg);
}

/* The notice at the top of a page (<x-message-banner>, "msg=..."): higher than Bootstrap's alert, it has to catch the
   eye (owner, 2026-10-20). */
.page-message {
    --bs-alert-padding-y: calc(1rem + .3em);
}

/* Bootstrap puts the close button at the top; in the higher box it stays level with the text. */
.page-message .btn-close {
    top: 50%;
    transform: translateY(-50%);
}

/* :is() weighs like a class, so an h1 with Bootstrap's size class (h1.h3) stays petrol too. */
:is(h1, h2, .h1, .h2) {
    color: var(--ahoi-primary);
}

.icon {
    vertical-align: -0.15em;
    flex-shrink: 0;
}

/* --- Buttons and form controls in the brand colour ---
   Every button looks the same (owner, 2026-10-19): petrol on light petrol with a mid frame, as a chosen select of the
   search form; a shade darker (mid) under the mouse. */
.btn-primary,
.btn-secondary,
.btn-outline-primary {
    --bs-btn-color: var(--ahoi-primary);
    --bs-btn-bg: var(--ahoi-primary-light);
    --bs-btn-border-color: var(--ahoi-primary-mid);
    --bs-btn-hover-color: var(--ahoi-primary-dark);
    --bs-btn-hover-bg: var(--ahoi-primary-mid);
    --bs-btn-hover-border-color: var(--ahoi-primary-mid);
    --bs-btn-active-color: var(--ahoi-primary-dark);
    --bs-btn-active-bg: var(--ahoi-primary-mid);
    --bs-btn-active-border-color: var(--ahoi-primary-mid);
    --bs-btn-disabled-color: var(--ahoi-primary);
    --bs-btn-disabled-bg: var(--ahoi-primary-light);
    --bs-btn-disabled-border-color: var(--ahoi-primary-mid);
    font-weight: 600;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--ahoi-primary);
    box-shadow: 0 0 0 .2rem rgba(var(--ahoi-primary-rgb), .2);
}

.form-check-input:checked {
    background-color: var(--ahoi-primary);
    border-color: var(--ahoi-primary);
}

.pagination {
    --bs-pagination-color: var(--ahoi-primary);
    --bs-pagination-hover-color: var(--ahoi-primary-dark);
    --bs-pagination-active-bg: var(--ahoi-primary);
    --bs-pagination-active-border-color: var(--ahoi-primary);
}

/* --- Header ---
   It follows the page (position: sticky, works without JS). public/js/site.js sets two classes, as byo-project's
   header-scroll.js: .is-scrolled (not at the top any more: a shadow) and .is-hidden (below lg while scrolling down:
   the bar slides away, the smallest move up brings it back). On the desktop it never hides. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--ahoi-border);
    transition: transform .25s ease, background-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(16, 34, 42, .08);
}

@media (max-width: 991.98px) {
    .site-header.is-hidden {
        transform: translateY(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }
}

/* The menu: dark petrol, under the mouse the main colour and underlined (owner, 2026-10-19). */
.site-header .navbar {
    --bs-navbar-color: var(--ahoi-primary-dark);
    --bs-navbar-hover-color: var(--ahoi-primary);
    --bs-navbar-active-color: var(--ahoi-primary);
}

.site-header a.nav-link:hover {
    text-decoration: underline;
    text-underline-offset: .3em;
}

.site-header .nav-link.active {
    font-weight: 600;
}

/* The burger button without a frame; the focus ring only for the keyboard, not after a tap. */
.site-header .navbar-toggler {
    border: 0;
}

.site-header .navbar-toggler:focus:not(:focus-visible) {
    box-shadow: none;
}

.site-logo-text {
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: -.01em;
    color: var(--ahoi-primary);
}

.site-logo-dash,
.site-logo-tld {
    color: var(--ahoi-muted);
    font-weight: 400;
}

.site-logo-img {
    height: 3.25rem;
    width: auto;
}

/* On the petrol footer the black and teal of the logo would vanish: all white there (the start page's header takes
   logo-light.png, see the logo component). */
.site-footer .site-logo-img {
    filter: brightness(0) invert(1);
}

.site-watchlist-count {
    background: var(--ahoi-primary-pale);
    border: 1px solid var(--ahoi-primary-light);
    color: var(--ahoi-primary);
}

.site-language .nav-link {
    padding-left: .35rem;
    padding-right: .35rem;
}

/* Without JS the collapsed menu stays open: there is no script to open it. */
html:not(.js) .navbar-collapse.collapse {
    display: block;
}

/* --- Footer --- */
.site-footer {
    background: var(--ahoi-primary);
    color: var(--ahoi-primary-pale);
    margin-top: 3rem;
    padding: 1rem 0;
    font-size: .95rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: var(--ahoi-primary-pale);
    text-decoration: none;
}

.site-footer .site-logo-text,
.site-footer .site-logo-dash,
.site-footer .site-logo-tld {
    color: #fff;
}

.site-footer .site-logo-img {
    height: 2.75rem;
}

.site-footer-links .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

.site-footer-copyright {
    font-size: .85rem;
}

/* --- Start page: header over the hero picture ---
   Transparent with the light logo while at the top; scrolled, it is the white header of every other page (both logos
   are in the markup, components/layout/header). Without JS it simply lies over the picture and scrolls away. */
.page-home .site-header {
    position: absolute;
    inset: 0 0 auto 0;
}

html.js .page-home .site-header {
    position: fixed;
}

.page-home .site-header:not(.is-scrolled) {
    background: transparent;
    border-bottom-color: transparent;
}

.site-header .site-logo-light,
.page-home .site-header:not(.is-scrolled) .site-logo-dark {
    display: none;
}

.page-home .site-header:not(.is-scrolled) .site-logo-light {
    display: inline;
}

.page-home .site-header:not(.is-scrolled) .navbar {
    --bs-navbar-color: var(--ahoi-primary-pale);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.page-home .site-header:not(.is-scrolled) .site-logo-text,
.page-home .site-header:not(.is-scrolled) .site-logo-dash,
.page-home .site-header:not(.is-scrolled) .site-logo-tld {
    color: #fff;
}

.page-home .site-header:not(.is-scrolled) .site-logo-dash,
.page-home .site-header:not(.is-scrolled) .site-logo-tld {
    opacity: .75;
}

/* The opened menu on a phone gets a ground, the picture behind it would make it unreadable. */
@media (max-width: 991.98px) {
    .page-home .site-header:not(.is-scrolled) .navbar-collapse {
        background: rgba(11, 45, 54, .92);
        backdrop-filter: blur(8px);
        border-radius: var(--ahoi-radius);
        padding: .5rem 1rem;
        margin-top: .5rem;
    }
}

/* --- Start page: hero --- */
.home-hero {
    position: relative;
    min-height: min(72vh, 600px);
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    color: #fff;
    background-color: var(--ahoi-primary-dark);
    background-image:
        linear-gradient(180deg, rgba(8, 36, 44, .4) 0%, rgba(8, 36, 44, .12) 25%, rgba(8, 36, 44, .1) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.home-hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-hero-title {
    color: var(--ahoi-primary-pale);
    font-size: clamp(2.1rem, 4.2vw, 3.6rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.01em;
    max-width: 14em;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 2px 24px rgba(0, 0, 0, .45);
}

/* The small search form: a card in the picture, one row on a wide screen. */
.home-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
    width: 100%;
    max-width: 62rem;
    text-align: left;
    padding: 1rem;
    background: rgba(255, 255, 255, .97);
    color: var(--ahoi-text);
    border-radius: calc(var(--ahoi-radius) + .35rem);
    box-shadow: 0 20px 50px rgba(5, 25, 32, .35);
}

@media (min-width: 768px) {
    .home-search {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .home-search {
        grid-template-columns: 1fr 1fr 1.2fr auto;
        align-items: end;
        padding: .9rem;
        gap: .6rem;
    }
}

.home-search-field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ahoi-muted);
    margin: 0 0 .3rem .15rem;
}

.home-search .form-select,
.home-search .form-control {
    height: 3rem;
    border-radius: calc(var(--ahoi-radius) - .25rem);
    background-color: #fff;
    border-color: var(--ahoi-border);
}

.home-search-submit {
    height: 3rem;
    padding: 0 1.6rem;
    border-radius: calc(var(--ahoi-radius) - .25rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .home-search-field-wide,
    .home-search-submit {
        grid-column: span 1;
    }
}

/* --- Start page: below the hero --- */
.home-intro {
    padding: 3rem 0 1rem;
}

.home-intro-text {
    max-width: 52rem;
    font-size: 1.12rem;
    line-height: 1.7;
    color: var(--ahoi-muted);
}

.home-section {
    padding-top: 2.5rem;
}

.home-section-title {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0;
}

.home-section-more {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

/* The popular Reviere and countries as chips with their number of boats. */
.home-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.home-chips a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .55rem .5rem .95rem;
    border-radius: 2rem;
    background: var(--ahoi-primary-pale);
    border: 1px solid var(--ahoi-primary-light);
    color: var(--ahoi-primary);
    text-decoration: none;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}

.home-chips a:hover {
    background: var(--ahoi-primary-light);
    color: var(--ahoi-primary-dark);
}

.home-chips .count {
    font-size: .8rem;
    font-weight: 600;
    padding: .1rem .5rem;
    border-radius: 1rem;
    background: #fff;
    color: var(--ahoi-primary);
}

/* --- List page --- */
.list-header {
    background: var(--ahoi-surface);
    padding: 1.5rem 0 1rem;
    margin-bottom: 1.5rem;
}

.list-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.list-hits {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.search-panel {
    background: #fff;
    border: 1px solid var(--ahoi-border);
    border-radius: var(--ahoi-radius);
    padding: 1rem;
}

.search-panel .form-label {
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .2rem;
    color: var(--ahoi-muted);
}

/* The fields and the options of their lists a step smaller than the text (owner, 2026-10-20). Not on an iPhone or
   iPad (-webkit-touch-callout is Safari on iOS only): there a field under 16px makes the page zoom in on a tap. */
.search-panel .form-select,
.search-panel .form-select option,
.search-panel .form-control {
    font-size: .9rem;
}

@supports (-webkit-touch-callout: none) {
    .search-panel .form-select,
    .search-panel .form-select option,
    .search-panel .form-control {
        font-size: 1rem;
    }
}

/* A select with a value chosen (components/boat/search-form): what narrows the list stands out, marked as the buttons. */
.search-panel .form-select.is-chosen {
    background-color: var(--ahoi-primary-light);
    border-color: var(--ahoi-primary-mid);
    font-weight: 600;
}

/* On a phone the search form is folded behind "All filters" (components/boat/search-form). Without JS the button
   could not open it: then the button is hidden and the form stays open. */
@media (max-width: 991.98px) {
    .search-collapse.show,
    .search-collapse.collapsing {
        margin-top: .75rem;
    }
}

html:not(.js) .search-toggle {
    display: none !important;
}

html:not(.js) .search-collapse {
    display: block;
}

/* The decoys inside an obfuscated email address (components/obfuscated-email): never shown, never copied. */
.ci-s {
    display: none;
}

/* --- Boat card --- */
.boat-card {
    background: #fff;
    border: 1px solid var(--ahoi-border);
    border-radius: var(--ahoi-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease-in-out;
}

.boat-card:hover {
    box-shadow: 0 .35rem 1rem rgba(var(--ahoi-primary-rgb), .15);
}

.boat-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--ahoi-surface);
    overflow: hidden;
}

.boat-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

/* Under the mouse the picture zooms in a little; the frame (overflow hidden above) keeps the card's size. */
.boat-card:hover .boat-card-img img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .boat-card-img img {
        transition: none;
    }
}

.boat-card-badges {
    position: absolute;
    top: .5rem;
    left: .5rem;
    display: flex;
    gap: .25rem;
}

.boat-badge {
    font-size: .75rem;
    font-weight: 600;
    padding: .3rem .75rem;
    border-radius: 1rem;
    background: var(--ahoi-primary-light);
    color: var(--ahoi-primary);
}

.boat-card-body {
    padding: .75rem .9rem .9rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.boat-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.boat-card-title a {
    color: var(--ahoi-text);
    text-decoration: none;
}

.boat-card-title a::after {
    /* the whole card is the link to the boat */
    content: "";
    position: absolute;
    inset: 0;
}

.boat-card {
    position: relative;
}

.boat-card-sub {
    color: var(--ahoi-muted);
    font-size: .9rem;
    margin-bottom: .5rem;
}

.boat-card-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .9rem;
}

.boat-card-place {
    font-size: .9rem;
    color: var(--ahoi-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boat-card-foot {
    margin-top: auto;
    padding-top: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.boat-price {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ahoi-primary);
}

.boat-price small {
    font-weight: 400;
    font-size: .8rem;
    color: var(--ahoi-muted);
}

/* The heart lies above the card's link (the ::after above), so it gets its own click. */
.watchlist-heart {
    position: relative;
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--ahoi-primary);
    padding: .25rem;
    line-height: 1;
}

.watchlist-heart.is-active svg {
    fill: currentColor;
}

html:not(.js) .watchlist-heart {
    display: none;
}

/* --- Detail page --- */
.detail-head h1 {
    font-size: 1.75rem;
    font-weight: 700;
}

.detail-gallery {
    border-radius: var(--ahoi-radius);
    overflow: hidden;
    background: var(--ahoi-surface);
}

.detail-gallery .carousel-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* The invisible button over the picture that opens the lightbox (components/boat/gallery). Below the arrows (earlier in
   the markup, same z-index). The magnifier tells a mouse that a click enlarges. */
.gallery-open,
.gallery-open:not(:disabled) {
    cursor: zoom-in;
}

.gallery-open {
    position: absolute;
    inset: 0;
    z-index: 1;
    padding: 0;
    border: 0;
    background: transparent;
}

.gallery-open:focus-visible {
    outline: 3px solid var(--ahoi-primary);
    outline-offset: -3px;
}

html:not(.js) .gallery-open {
    display: none;
}

/* The lightbox (after byo-project's lightbox.css): dark, edge to edge, every picture whole and never upscaled. */
.lightbox-content {
    background: rgba(0, 0, 0, .95);
    border: 0;
    border-radius: 0;
}

.lightbox-slides,
.lightbox-slides .carousel-inner,
.lightbox-slides .carousel-item {
    height: 100%;
}

/* A wrapper centres the picture: a flex .carousel-item would fight the carousel's own display switching. */
.lightbox-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 4rem 1rem 1rem;
}

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

.lightbox-close,
.lightbox-counter {
    position: absolute;
    top: 1rem;
    z-index: 10;
    background-color: rgba(0, 0, 0, .6);
    border-radius: .5rem;
}

/* A white cross of its own: Bootstrap's .btn-close-white inverts the whole button, the dark ground with it. */
.lightbox-close {
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    opacity: 1;
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
}

.lightbox-close:hover {
    background-color: #000;
}

.lightbox-counter {
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    padding: .4rem 1rem;
    font-size: 1.05rem;
}

/* The arrows on a dark square, fully white (Bootstrap fades the whole button to .5). */
.lightbox-content .carousel-control-prev,
.lightbox-content .carousel-control-next {
    opacity: 1;
}

.lightbox-content .carousel-control-prev-icon,
.lightbox-content .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(0, 0, 0, .35);
    background-size: 1.4rem;
    border-radius: .5rem;
}

.lightbox-content .carousel-control-prev:hover .carousel-control-prev-icon,
.lightbox-content .carousel-control-next:hover .carousel-control-next-icon {
    background-color: #000;
}

/* A boat without pictures: public/images/no-pic.jpg (the owner's paper boat, 30 % white over it), cut like a photo. */
.detail-gallery .no-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.detail-thumbs {
    display: flex;
    gap: .4rem;
    overflow-x: auto;
    padding: .4rem 0;
}

.detail-thumbs button {
    border: 2px solid transparent;
    padding: 0;
    border-radius: .3rem;
    overflow: hidden;
    flex: 0 0 auto;
    background: none;
}

.detail-thumbs button.active {
    border-color: var(--ahoi-primary);
}

.detail-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.detail-box {
    background: #fff;
    border: 1px solid var(--ahoi-border);
    border-radius: var(--ahoi-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-box h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.detail-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 1rem 0 .5rem;
}

/* The description cut to 6 lines (after byo-project's boat-description-clamped); site.js shows "whole text" only when
   something is cut off and toggles .expanded. Only with JS: without it the whole text shows. */
html.js .description-clamped:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    text-decoration: none;
}

/* <x-wait-layer>: "please wait" over the whole page while a request form is sent (after byo-project). Above
   Bootstrap's windows; fades in after a moment, so a quick answer never flashes it. */
.wait-layer {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .7);
    cursor: progress;
    animation: wait-layer-in .2s ease .15s both;
}

.wait-layer[hidden] {
    display: none;
}

.wait-layer .spinner-border {
    width: 3rem;
    height: 3rem;
}

@keyframes wait-layer-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* One chevron, turned when open, instead of swapping it for an upward one. */
.description-toggle-icon {
    transition: transform .2s ease;
}

.description-toggle[aria-expanded="true"] .description-toggle-icon {
    transform: rotate(180deg);
}

/* Label/value pairs in columns read from top to bottom: the first half down the left column, the rest down the right
   (owner, 2026-10-19). As many columns of at least 16rem as fit - two on the detail page, one on a phone. */
.attribute-grid {
    columns: 16rem;
    column-gap: 1.5rem;
    margin: 0;
}

.attribute-grid > div {
    break-inside: avoid;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--ahoi-surface);
}

.attribute-grid dt {
    font-weight: 400;
    color: var(--ahoi-muted);
}

.attribute-grid dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.price-box {
    background: var(--ahoi-surface);
    border-radius: var(--ahoi-radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.price-box .boat-price {
    font-size: 1.6rem;
}

.season-table {
    font-size: .95rem;
}

/* Season prices: one box per season (after byo-project's boat-detail.css). Below md as many boxes in a row as fit,
   all equally wide (a flex row would stretch a lone last box); from md exactly 8. 5.375em is what a box needs at least,
   a date like "30.08.2026" plus padding and frame. */
.season-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.375em, 1fr));
    gap: .25rem;
}

@media (min-width: 768px) {
    .season-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

.season-box {
    font-size: 90%;
    padding: .25rem;
    text-align: center;
    color: var(--ahoi-muted);
    border: 1px solid var(--ahoi-border);
    border-radius: calc(var(--ahoi-radius) - .4rem);
}

.season-box-amount {
    font-weight: 700;
    color: var(--ahoi-text);
}

.equipment-list {
    columns: 2 14rem;
    padding-left: 1.1rem;
    margin-bottom: 0;
}

/* Below the sticky header, which never hides on the desktop. */
.request-box {
    position: sticky;
    top: calc(var(--ahoi-header-h) + 1rem);
}

/* The last box of each column without the space below it: the sticky request box stops with its own lower edge at
   the end of the column, so the left column's last box must end there too - else the right one stands 1.5rem lower
   (owner, 2026-10-20). The space before the similar boats is theirs (.detail-similar). */
.detail-main > .detail-box:last-child,
.request-box > .detail-box:last-child {
    margin-bottom: 0;
}

.detail-similar {
    margin-top: 3rem;
}

.detail-similar .home-section-title {
    margin-bottom: 1.25rem;
}

/* --- Pages of one word --- */
.page-content {
    background: #fff;
    border: 1px solid var(--ahoi-border);
    border-radius: var(--ahoi-radius);
    padding: 1.5rem;
}

.privacy-frame {
    width: 100%;
    min-height: 70vh;
    border: 0;
}

/* The field of the spam protection no human sees (App\Support\SpamGuard). Out of sight, not display:none, which
   some bots skip. */
.request-form-extra {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The text above the boats of a list (SeoSpec text1). */
.list-text1 {
    max-width: 60rem;
    color: var(--ahoi-text);
}

/* Below the boats: the same list in other countries and Reviere (PlaceLinks), three columns (two on a phone). */
.place-links {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ahoi-border);
}

.place-links-section + .place-links-section {
    margin-top: 1.75rem;
}

.place-links-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .75rem;
}

.place-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}

@media (min-width: 576px) {
    .place-links-list {
        columns: 3;
    }
}

.place-links-list li {
    break-inside: avoid;
    padding: .2rem 0;
}

.place-links-list [aria-current] {
    font-weight: 700;
}

.place-links-list .count {
    font-size: .8rem;
    color: var(--ahoi-muted);
    margin-left: .25rem;
}

/* <x-trap-link>, the scraper trap: outside the window instead of display:none, which a careful scraper skips. */
.trap-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
