/* Site styles. Colors and fonts come only from brand.css tokens. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--brand-font);
    font-size: 1.075rem;
    color: var(--brand-ink);
    background: var(--brand-white);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-black); text-decoration-color: var(--brand-yellow-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand-black); }

h1, h2, h3 { font-family: var(--brand-font-display); font-weight: 800; line-height: 1.1; color: var(--brand-black); letter-spacing: -0.01em; }
/* Big headings: tall all-caps condensed, for a bold action-sport feel. */
h1, h2 { font-family: var(--brand-font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); margin: 0 0 .3em; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-top: 0; }
h3 { font-size: 1.35rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }

.section { padding: 3.5rem 0; }
.section-cream { background: var(--brand-cream); }
.section-yellow { background: var(--brand-yellow); }
.lead { font-size: 1.25rem; color: var(--brand-muted); }

.checker-strip { height: calc(var(--brand-check-size) * 2); background: var(--brand-checker); }

.eyebrow {
    font-family: var(--brand-font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 2px solid var(--brand-black);
    font-family: var(--brand-font-condensed);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.1;
    transition: transform .1s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand-black); color: var(--brand-yellow); }
.btn-primary:hover { background: #2a2a2a; }
.btn-outline { background: transparent; color: var(--brand-black); }
.btn-outline:hover { background: var(--brand-black); color: var(--brand-yellow); }
.btn-call { background: var(--brand-yellow); color: var(--brand-black); border-color: var(--brand-yellow); padding: .55rem 1rem; font-size: 1.05rem; }

/* Header: black bar like the logo, yellow accents */
.site-header { background: var(--brand-black); color: var(--brand-white); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-top: .6rem; padding-bottom: .6rem; }
.wordmark { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; color: var(--brand-yellow); }
.site-logo { width: 52px; height: 52px; }
.wordmark-text { font-family: var(--brand-font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; }
/* Desktop: links inline. Phones: the links fold behind the ☰ button (.phone-menu). */
.site-nav { display: none; gap: .25rem 1.1rem; }
.site-nav a { color: var(--brand-white); text-decoration: none; font-family: var(--brand-font-condensed); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; }
.site-nav a:hover { color: var(--brand-yellow); }
.phone-menu { order: 3; }
.phone-menu > summary { list-style: none; cursor: pointer; color: var(--brand-yellow); font-size: 1.8rem; line-height: 1; padding: .25rem .4rem; border: 2px solid var(--brand-yellow); border-radius: 6px; }
.phone-menu > summary::-webkit-details-marker { display: none; }
.phone-menu[open] > summary { background: var(--brand-yellow); color: var(--brand-black); }
.phone-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-black); border-top: 2px solid var(--brand-yellow); display: flex; flex-direction: column; padding: .5rem 0 1rem; box-shadow: var(--brand-shadow); }
.phone-nav a { color: var(--brand-white); text-decoration: none; font-family: var(--brand-font-condensed); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .05em; padding: .7rem 1.25rem; }
.phone-nav a:hover, .phone-nav a:focus-visible { color: var(--brand-yellow); }
.site-header { position: sticky; }
.header-inner { position: relative; }
@media (min-width: 900px) {
    .site-nav { display: flex; flex-wrap: wrap; }
    .phone-menu { display: none; }
}

/* Hero: the Lake Taxi boat photo full-screen, darkened where the text sits.
   The boat is center-left in the photo, so text goes on the right on wide screens. */
.hero { position: relative; overflow: hidden; background: var(--brand-black); color: var(--brand-white); }
.hero-photo { display: flex; align-items: flex-end; min-height: calc(100svh - 76px); }
.hero-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; }
.hero-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .88) 100%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: 3rem; }
.hero-content { min-width: 0; max-width: 600px; }
@media (min-width: 900px) {
    .hero-photo { align-items: center; }
    .hero-photo::before {
        background: linear-gradient(90deg, rgba(0, 0, 0, .05) 0%, rgba(0, 0, 0, .25) 40%, rgba(0, 0, 0, .85) 72%, rgba(0, 0, 0, .92) 100%);
    }
    .hero-inner { display: flex; justify-content: flex-end; padding-top: 4rem; padding-bottom: 4rem; }
}
.hero .eyebrow { color: var(--brand-yellow); }
.hero h1 { color: var(--brand-white); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero h1 .accent { color: var(--brand-yellow); }
.hero .lead { color: rgba(255, 255, 255, .92); font-weight: 500; }
.hero .btn-outline { color: var(--brand-white); border-color: var(--brand-white); }
.hero .btn-outline:hover { background: var(--brand-white); color: var(--brand-black); }
.hero .btn-call { padding: .8rem 1.4rem; font-size: 1.15rem; }
.hero .where-to { background: rgba(17, 17, 17, .78); border: 1px solid rgba(255, 210, 65, .55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Fare badge, styled after the flyer's black price box */
.fare-badge {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .2rem .6rem;
    background: var(--brand-black);
    color: var(--brand-yellow);
    border-radius: 14px;
    padding: .6rem 1.1rem;
    box-shadow: var(--brand-shadow);
    font-family: var(--brand-font-condensed);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}
.fare-badge { max-width: 100%; }
.fare-badge strong { font-family: var(--brand-font-display); font-size: 2.2rem; }
.fare-badge span { font-size: 1.2rem; letter-spacing: .02em; }

/* Where to? form */
.where-to { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1.5rem; background: var(--brand-black); padding: .9rem; border-radius: var(--brand-radius); }
.where-to label { color: var(--brand-yellow); font-family: var(--brand-font-condensed); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.where-to select { flex: 1 1 200px; padding: .7rem; border-radius: 10px; border: 0; font: inherit; }
.where-to .btn-primary { background: var(--brand-yellow); color: var(--brand-black); border-color: var(--brand-yellow); }

/* Use cases from the flyer, with yellow round icons */
.uses { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.use { display: flex; gap: 1rem; align-items: flex-start; }
.use-icon { flex: 0 0 64px; height: 64px; border-radius: 50%; background: var(--brand-yellow); display: grid; place-items: center; }
.use-icon svg { width: 36px; height: 36px; }
.use h3 { margin: .2rem 0 .3rem; }
.use p { margin: 0; }

/* Steps */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; counter-reset: step; }
.steps li { background: var(--brand-white); border: 2px solid var(--brand-black); border-radius: var(--brand-radius); padding: 1.25rem; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--brand-black); color: var(--brand-yellow); font-family: var(--brand-font-display); font-weight: 800; margin-bottom: .5rem; }

/* Trip cards */
/* Compact cards built as a simple column so every browser lays them out the same way.
   Titles reserve two lines and summaries are exactly two lines, so footers line up across a row.
   The whole card is clickable. */
.trip-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-items: stretch; }
.trip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--brand-white);
    border: 2px solid var(--brand-black);
    border-radius: var(--brand-radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--brand-shadow); }
.trip-card::before { content: ""; flex: none; height: 8px; background: var(--brand-checker); background-size: 16px 16px; }
.trip-card-img { flex: none; display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: var(--brand-cream); }
.trip-card-img.is-whole, .trip-hero-img.is-whole { object-fit: contain; background: var(--brand-white); }
.trip-card-body { flex: 1; display: flex; flex-direction: column; padding: .6rem .9rem .6rem; }
.trip-card-body > * { margin: 0; }
.trip-card h3 { font-size: 1.05rem; line-height: 1.2; min-height: 2.4em; margin-bottom: .25rem; }
.trip-card h3 a { text-decoration: none; color: inherit; }
.trip-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card opens the trip */
.trip-card-body > p {
    font-size: .9rem;
    line-height: 1.4;
    height: 2.8em; /* exactly two lines */
    color: var(--brand-muted);
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}
.trip-price { font-family: var(--brand-font-condensed); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; }
.trip-card-foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    border-top: 1px solid var(--brand-cream);
    padding-top: .5rem;
}
.trip-card-foot .trip-price { font-size: .95rem; margin: 0; white-space: nowrap; }
.trip-link { font-family: var(--brand-font-condensed); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; text-decoration: none; color: var(--brand-black); background: var(--brand-yellow); border-radius: 999px; padding: .3rem .7rem; }

/* Trip detail */
.trip-hero-img { border-radius: var(--brand-radius); margin: 1rem 0; aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }
.booking-panel { background: var(--brand-yellow); border-radius: var(--brand-radius); padding: 1.5rem; margin: 2rem 0; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--brand-cream); padding: 1rem 0; }
.faq summary { font-family: var(--brand-font-display); font-weight: 700; font-size: 1.15rem; cursor: pointer; }

.placeholder { background: var(--brand-cream); outline: 1px dashed var(--brand-yellow-deep); padding: 0 .25rem; border-radius: 4px; }

/* Footer */
.site-footer { background: var(--brand-black); color: var(--brand-white); padding: 0 0 1rem; margin-top: 0; }
.site-footer .checker-strip { margin-bottom: 2.5rem; }
.site-footer a { color: var(--brand-white); text-decoration-color: var(--brand-yellow); }
.footer-inner { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.footer-inner p { margin: .25rem 0; }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 84px; height: 84px; }
.footer-name { font-family: var(--brand-font-display); font-weight: 800; font-size: 1.3rem; color: var(--brand-yellow); }
.footer-heading { font-family: var(--brand-font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-yellow); }
.footer-phone { font-family: var(--brand-font-display); font-weight: 800; font-size: 1.6rem; }
.footer-legal { font-size: .85rem; opacity: .75; margin-top: 2rem; }

.about-photo { border-radius: var(--brand-radius); margin: 1.5rem 0; width: 100%; max-width: 960px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--brand-shadow); }

/* Side-scrolling trip row (home page) */
.scroll-hint { font-family: var(--brand-font-condensed); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-muted); margin: -.5rem 0 .75rem; }
.trip-scroller {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 300px);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    margin: 0 -16px;
    padding: .25rem 16px 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-black) transparent;
}
.trip-scroller > * { scroll-snap-align: start; display: flex; }
.trip-scroller .trip-card { width: 100%; }

/* Closing call to action before the footer */
.closing-cta { position: relative; overflow: hidden; background: var(--brand-black); color: var(--brand-white); text-align: center; padding: 6rem 0; }
.closing-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 85%; }
.closing-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .7) 100%); }
.closing-cta > .container { position: relative; z-index: 2; }
.closing-cta .eyebrow { color: var(--brand-yellow); }
.closing-cta h2 { color: var(--brand-yellow); font-size: clamp(3rem, 10vw, 6rem); margin-bottom: .2em; }
.closing-cta .lead { color: rgba(255, 255, 255, .88); max-width: 34rem; margin: 0 auto; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.closing-cta .btn-call { padding: .8rem 1.4rem; font-size: 1.15rem; }
.closing-cta .btn-outline { color: var(--brand-white); border-color: var(--brand-white); }
.closing-cta .btn-outline:hover { background: var(--brand-white); color: var(--brand-black); }

/* Scroll fade-in. Hidden only after site.js has run, so content is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Seasonal notice bar under the header */
.site-notice { background: var(--brand-yellow); color: var(--brand-black); font-weight: 600; }
.site-notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .25rem 1rem; padding-top: .55rem; padding-bottom: .55rem; text-align: center; }
.site-notice a { font-family: var(--brand-font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }

/* ===== Admin area ===== */
.admin { min-height: 100vh; background: #f6f5f1; }
.admin-header { background: var(--brand-black); color: var(--brand-white); position: sticky; top: 0; z-index: 10; }
.admin-header-inner { max-width: 1100px; margin: 0 auto; padding: .6rem 16px; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.admin-brand { display: flex; align-items: center; gap: .5rem; color: var(--brand-yellow); font-family: var(--brand-font-display); font-weight: 800; text-decoration: none; margin-right: auto; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.admin-nav a { color: var(--brand-white); text-decoration: none; font-family: var(--brand-font-condensed); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.admin-nav a:hover { color: var(--brand-yellow); }
.admin-signout { display: flex; align-items: center; gap: .6rem; margin: 0; }
.admin-user { font-size: .85rem; opacity: .8; }
.admin .btn-outline { color: inherit; border-color: currentColor; }
.btn-small { padding: .35rem .8rem; font-size: .9rem; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.admin-main h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.admin-card { background: var(--brand-white); border: 1px solid #e4e1d8; border-radius: 12px; padding: 1.25rem; margin-bottom: 1.25rem; }
.admin-card h2 { font-size: 1.5rem; }
.admin-login { max-width: 420px; margin: 2rem auto; }
.admin-form { display: grid; gap: .9rem; }
.admin-form label, .admin-field label { display: grid; gap: .3rem; font-weight: 600; }
.admin input[type=text], .admin input[type=email], .admin input[type=password], .admin input[type=number], .admin input:not([type]), .admin textarea, .admin select {
    font: inherit; padding: .6rem .7rem; border: 1px solid #c9c5b9; border-radius: 8px; width: 100%; background: var(--brand-white);
}
.admin textarea { min-height: 8rem; resize: vertical; }
.admin-error { background: #fde8e8; color: #8a1c1c; border-radius: 8px; padding: .6rem .8rem; }
.admin-ok { background: #e7f6e7; color: #1d5b1d; border-radius: 8px; padding: .6rem .8rem; }
.admin-help { font-size: .88rem; color: var(--brand-muted); margin: .2rem 0 0; }
.admin-tiles { list-style: none; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.admin-tiles a { display: block; padding: .9rem 1rem; border-radius: 10px; background: var(--brand-cream); text-decoration: none; font-weight: 700; }
.admin-tiles a:hover { background: var(--brand-yellow); }
.admin-missing li { margin: .25rem 0; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.admin-history { font-size: .9rem; margin-top: .6rem; }
.admin-history li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .25rem 0; }
.admin-preview { max-width: 320px; max-height: 200px; object-fit: contain; border-radius: 8px; background: var(--brand-cream); }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list > li { border-top: 1px solid #ece9e0; padding: .8rem 0; }
.admin-badge { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: var(--brand-cream); border-radius: 999px; padding: .1rem .55rem; }

/* Blazor's error bar: hidden until Blazor shows it for a real error. Global (not layout-scoped) so the admin layout gets it too. */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* Builder pages (sections the owner adds in the admin page builder). */
.page-hero { min-height: min(70svh, 640px); }
.page-title { padding-bottom: 0; }
.prose { max-width: 46rem; }
.prose p { margin: 0 0 1rem; }
.page-split { display: grid; gap: 1.5rem; align-items: center; }
.page-split-img { width: 100%; border-radius: var(--brand-radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) {
    .page-split { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .page-split.photo-right .page-split-img { order: 2; }
}
.page-gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.page-gallery figure { margin: 0; }
.page-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--brand-radius); }
.page-gallery figcaption { margin-top: .4rem; color: var(--brand-muted); font-size: .95rem; }
.page-gallery video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--brand-radius); background: #111; }
.gallery-video { position: relative; }
.gallery-video::after { content: "\25B6"; position: absolute; top: calc(50% - 1.6rem); left: 50%; transform: translate(-50%, -50%); width: 3.2rem; height: 3.2rem;
    display: grid; place-items: center; border-radius: 50%; background: rgba(17, 17, 17, .7); color: #ffd23f; font-size: 1.3rem; pointer-events: none; }
.gallery-video[data-played]::after { display: none; }
.page-buttons .container { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.page-video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--brand-radius); overflow: hidden; background: var(--brand-black); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.page-video figcaption { margin-top: .5rem; color: var(--brand-muted); }
.page-map { border: 0; border-radius: var(--brand-radius); display: block; }
.preview-bar { background: var(--brand-yellow); color: var(--brand-black); padding: .6rem 1rem; text-align: center; position: sticky; top: 0; z-index: 20; }

/* Events */
.event-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.event-card { display: flex; flex-direction: column; background: var(--brand-white); border: 2px solid var(--brand-black); border-radius: var(--brand-radius); overflow: hidden; }
.event-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.event-card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.event-card-body > * { margin: 0; }
.event-card h3 a { text-decoration: none; color: inherit; }
.event-when { font-family: var(--brand-font-condensed); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); }
.event-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: .5rem; }
.event-page { max-width: 52rem; }
.event-page-img { width: 100%; border-radius: var(--brand-radius); margin: 1rem 0; }
.event-ended { background: var(--brand-cream); border-left: 6px solid var(--brand-black); padding: .6rem .9rem; font-weight: 700; }
.event-location { font-weight: 600; }
.next-event { background: var(--brand-yellow); color: var(--brand-black); }
.next-event-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding-block: 1rem; }
.next-event-inner > p { margin: 0; }
.next-event .eyebrow { color: var(--brand-black); }
.next-event-title { font-family: var(--brand-font-condensed); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; }
.next-event-title a { color: inherit; }
.next-event .btn { margin-left: auto; }

/* Admin: page builder */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: .5rem .4rem; border-top: 1px solid #ece9e0; vertical-align: top; }
.admin-table th { border-top: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--brand-muted); }
.builder-bar { position: sticky; top: 64px; z-index: 5; box-shadow: 0 6px 16px rgba(0, 0, 0, .06); }
.builder-bar h1 { margin: .2rem 0; }
.page-status { margin: 0 0 .6rem; }
.section-list { list-style: none; padding: 0; margin: 0; }
.section-card { border-left: 6px solid var(--brand-yellow); }
.section-card-head { justify-content: space-between; margin-bottom: .75rem; }
.section-type { font-family: var(--brand-font-condensed); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .04em; }
.section-form { margin-bottom: .75rem; }
.add-between { margin-top: .25rem; }
.add-section-panel { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: .6rem; }
.add-section-choice { display: grid; gap: .15rem; text-align: left; padding: .7rem .8rem; border: 1px solid #e4e1d8; border-radius: 10px; background: var(--brand-cream); cursor: pointer; font: inherit; }
.add-section-choice:hover, .add-section-choice:focus-visible { background: var(--brand-yellow); }
.add-section-choice span { font-size: .85rem; color: var(--brand-muted); }
.photo-field { display: grid; gap: .4rem; justify-items: start; padding: .6rem; border: 1px dashed #d6d2c6; border-radius: 10px; }
.photo-field label { width: 100%; }
.button-form { padding: .5rem; border: 1px solid #ece9e0; border-radius: 10px; margin-bottom: .4rem; align-items: end; }
.gallery-form { list-style: none; padding: 0; display: grid; gap: .75rem; }
.seo-panel summary { cursor: pointer; font-weight: 700; }
.admin-label { font-weight: 600; }

/* Social icon row (matches the owner's graphic: black icons on yellow; yellow on the black footer). */
.social-links { list-style: none; margin: .4rem 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--brand-black); background: var(--brand-yellow); transition: transform .15s ease, background .15s ease; }
.social-links a:hover, .social-links a:focus-visible { transform: translateY(-2px); background: var(--brand-yellow-deep); }
.social-links svg { width: 24px; height: 24px; fill: currentColor; }
.social-links-dark a { background: transparent; color: var(--brand-yellow); border: 2px solid var(--brand-yellow); }
.social-links-dark a:hover, .social-links-dark a:focus-visible { background: var(--brand-yellow); color: var(--brand-black); }
.contact-follow { margin-bottom: 0; }
.contact-follow + .social-links { margin-bottom: 2.5rem; }

/* Hero slideshow: each photo shows 6 s and crossfades over 1.5 s. Keyframe percentages depend on the number of
   photos, so there is one set per count (2–8). Slide i starts at i × 6 s; -1.5 s so the first is fully in at load. */
.hero-slides { position: absolute; inset: 0; }
.hero-slide { opacity: 0; }
.hero-slide:first-child { opacity: 1; }
.hero-slides[data-count] .hero-slide { animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-fill-mode: both;
    animation-delay: calc(var(--i) * 6s - 1.5s); animation-duration: calc(var(--slides) * 6s); }
@keyframes hero-fade-2 { 0% { opacity: 0; } 12.500% { opacity: 1; } 50.000% { opacity: 1; } 62.500% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="2"] .hero-slide { animation-name: hero-fade-2; }
@keyframes hero-fade-3 { 0% { opacity: 0; } 8.333% { opacity: 1; } 33.333% { opacity: 1; } 41.667% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="3"] .hero-slide { animation-name: hero-fade-3; }
@keyframes hero-fade-4 { 0% { opacity: 0; } 6.250% { opacity: 1; } 25.000% { opacity: 1; } 31.250% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="4"] .hero-slide { animation-name: hero-fade-4; }
@keyframes hero-fade-5 { 0% { opacity: 0; } 5.000% { opacity: 1; } 20.000% { opacity: 1; } 25.000% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="5"] .hero-slide { animation-name: hero-fade-5; }
@keyframes hero-fade-6 { 0% { opacity: 0; } 4.167% { opacity: 1; } 16.667% { opacity: 1; } 20.833% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="6"] .hero-slide { animation-name: hero-fade-6; }
@keyframes hero-fade-7 { 0% { opacity: 0; } 3.571% { opacity: 1; } 14.286% { opacity: 1; } 17.857% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="7"] .hero-slide { animation-name: hero-fade-7; }
@keyframes hero-fade-8 { 0% { opacity: 0; } 3.125% { opacity: 1; } 12.500% { opacity: 1; } 15.625% { opacity: 0; } 100% { opacity: 0; } }
.hero-slides[data-count="8"] .hero-slide { animation-name: hero-fade-8; }
/* Media queries add no specificity, so these "off" rules use the same [data-count] selectors that start the animation. */
.hero-slides-static[data-count] .hero-slide { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .hero-slides[data-count] .hero-slide { animation: none; opacity: 0; }
    .hero-slides[data-count] .hero-slide:first-child { opacity: 1; }
}

/* Admin: hero slideshow list */
.slide-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .75rem; }
.slide-card { border: 1px solid #ece9e0; border-left: 6px solid var(--brand-yellow); border-radius: 10px; padding: .7rem; display: grid; gap: .5rem; }
.slide-head { justify-content: flex-start; }

/* Home marinas map (Contact page) */
.marina-map { height: 380px; border-radius: var(--brand-radius); background: var(--brand-cream); z-index: 0; }
.marina-map-failed { display: none; }
.marina-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.marina-list li { display: grid; gap: .15rem; padding: .8rem 1rem; border: 2px solid var(--brand-black); border-radius: var(--brand-radius); }
.marina-list a { font-weight: 700; }

/* Partner cards (page builder) */
.partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.partner-card { border: 2px solid var(--brand-black); border-radius: var(--brand-radius); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.partner-card > * { margin: 0; }
.partner-card h3 a { color: inherit; }
.partner-logo { max-height: 72px; max-width: 100%; height: auto; object-fit: contain; align-self: flex-start; }
.partner-form { list-style: none; padding: 0; display: grid; gap: .75rem; }
.partner-form > li { display: grid; gap: .5rem; padding: .6rem; border: 1px solid #ece9e0; border-radius: 10px; }
.footer-credit a { color: inherit; }

/* Passenger release (/sign): phone first */
.sign-container { max-width: 40rem; }
.sign-form { display: grid; gap: 1rem; }
.sign-field { display: grid; gap: .3rem; font-weight: 600; }
.sign-field input, .sign-field select, .sign-minors input { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 2px solid var(--brand-black); border-radius: 10px; width: 100%; box-sizing: border-box; }
.sign-release-title { font-size: 1.4rem; margin-bottom: 0; }
.sign-release { max-height: 18rem; overflow-y: auto; border: 2px solid var(--brand-black); border-radius: 10px; padding: .8rem 1rem; background: var(--brand-cream); font-size: .92rem; }
.sign-release p { margin: 0 0 .8rem; }
.sign-minors { display: grid; gap: .5rem; }
.sign-minors summary { cursor: pointer; font-weight: 600; margin-bottom: .5rem; }
.sign-minors input { margin-bottom: .5rem; }
.signature-pad { display: grid; gap: .5rem; justify-items: start; }
.signature-pad[hidden], .sign-typed[hidden] { display: none; }
.signature-pad canvas { width: 100%; height: 180px; border: 2px dashed var(--brand-black); border-radius: 10px; background: #fff; touch-action: none; }
.sign-agree { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; }
.sign-agree input { width: 1.4rem; height: 1.4rem; flex: none; margin-top: .1rem; }
.field-error { color: #8a1c1c; font-weight: 600; font-size: .92rem; }
.sign-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sign-submit { justify-self: start; font-size: 1.2rem; padding: .8rem 2.4rem; }
.sign-done { text-align: left; }
.sign-reference { font-family: var(--brand-font-condensed); font-size: 1.6rem; letter-spacing: .06em; }

/* Admin: passenger release manifest */
.manifest-signature { height: 40px; max-width: 140px; object-fit: contain; background: #fff; }
.manifest-signature-large { max-width: 100%; height: auto; border: 1px solid #e4e1d8; border-radius: 8px; background: #fff; }
.manifest-detail { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; }
.manifest-detail dt { font-weight: 700; }
.manifest-qr-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.manifest-qr-list li { display: grid; gap: .3rem; justify-items: start; }
@media print {
    .admin-header, .no-print, .admin-help { display: none !important; }
    .admin-card { border: 0; padding: 0; }
    .manifest-signature { height: 48px; }
}
