/* ==========================================================================
   HYM Cape Tours — public site styles
   Hand-written, no build step. Fonts are self-hosted in ../fonts.

   Palette comes from the logo's sunset and the cold Atlantic around the Cape:
     ink    #0f2a30  deep Atlantic — text and dark surfaces
     sea    #0b6b73  kelp teal — links and quiet accents
     sun    #f6a609  logo amber — the one loud colour, used for actions
     ember  #c9471c  logo deep orange — used with sun in the "sun line"
     fog    #eef3f2  sea-fog — alternate section background
   ========================================================================== */

@font-face {
    font-family: "Cabinet Grotesk";
    src: url("../fonts/CabinetGrotesk-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "Switzer";
    src: url("../fonts/Switzer-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --ink: #0f2a30;
    --ink-soft: #1c3c44;
    --sea: #0b6b73;
    --sun: #f6a609;
    --sun-deep: #e08e00;
    --ember: #c9471c;
    --fog: #eef3f2;
    --paper: #ffffff;
    --stone: #56676c;
    --line: #d9e2e1;
    --danger: #b3261e;
    --ok: #1d7a4f;

    --display: "Cabinet Grotesk", "Switzer", system-ui, sans-serif;
    --body: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --radius: 14px;
    --radius-sm: 8px;
    --sunline: linear-gradient(90deg, var(--sun), var(--ember));
    --shadow: 0 18px 40px -22px rgba(15, 42, 48, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--sea);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.5em;
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: 1.1rem; letter-spacing: 0; line-height: 1.3; }

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

.wrap {
    width: 100%;
    max-width: calc(var(--wrap) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.measure { max-width: 62ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--stone); max-width: 58ch; }
.muted { color: var(--stone); }
.small { font-size: 0.9rem; }
.nowrap { white-space: nowrap; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
}

.skip:focus { top: 1rem; color: #fff; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--sun);
    color: var(--ink);
    font: 600 1rem/1.2 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover { background: var(--sun-deep); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--sea); color: #fff; }
.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.textlink {
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--sun);
    text-decoration-thickness: 2px;
}

.textlink:hover { color: var(--sea); }

/* --------------------------------------------------------------------------
   Header — a white bar that floats over the page so the logo always reads
   -------------------------------------------------------------------------- */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    padding: 0.75rem var(--gutter) 0;
    pointer-events: none;
}

.site-header__bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--wrap);
    margin-inline: auto;
    padding: 0.2rem 0.5rem 0.2rem 1.1rem;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 999px;
    box-shadow: 0 10px 30px -18px rgba(15, 42, 48, 0.6);
    backdrop-filter: blur(8px);
}

.site-header__logo img {
    height: 58px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a:not(.btn) {
    position: relative;
    padding: 0.6rem 0.9rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}

.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.3rem;
    height: 3px;
    border-radius: 3px;
    background: var(--sunline);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s;
}

.site-nav a:not(.btn):hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.site-nav .btn { margin-left: 0.6rem; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: 600 0.95rem var(--body);
    cursor: pointer;
}

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }

    .site-header__bar { border-radius: 28px; flex-wrap: wrap; }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0.6rem 0.9rem;
    }

    .site-nav.is-open { display: flex; }
    .site-nav a:not(.btn) { padding: 0.8rem 0.4rem; border-bottom: 1px solid var(--line); }
    .site-nav a:not(.btn)::after { display: none; }
    .site-nav .btn { margin: 0.9rem 0 0; }
    .site-header__logo img { height: 44px; }
}

/* --------------------------------------------------------------------------
   Home hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100svh, 920px);
    padding: 9rem 0 0;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 9s linear;
}

.hero__img.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(15, 42, 48, 0.35) 0%, rgba(15, 42, 48, 0) 30%),
        linear-gradient(0deg, rgba(15, 42, 48, 0.94) 0%, rgba(15, 42, 48, 0.72) 35%, rgba(15, 42, 48, 0.4) 60%, rgba(15, 42, 48, 0) 85%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* Every slide's text sits in the same grid cell, so the block is as tall as
   the longest one and nothing below it moves when the slides change. */
.hero__slides { display: grid; }

.hero__slide {
    grid-area: 1 / 1;
    align-self: end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}

.hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.9s ease 0.35s, transform 0.9s ease 0.35s, visibility 0s;
}

.hero__link { color: #fff; font-weight: 600; white-space: nowrap; text-decoration-color: var(--sun); text-decoration-thickness: 2px; }
.hero__link:hover { color: var(--sun); }

.hero__controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 1rem; }
.hero__dots { display: flex; gap: 0.5rem; }

.hero__dots button {
    width: 44px;
    padding: 0.7rem 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.hero__dots span { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); transition: background-color 0.3s; }
.hero__dots button:hover span { background: rgba(255, 255, 255, 0.75); }
.hero__dots button[aria-current="true"] span { background: var(--sun); }

.hero__pause {
    padding: 0.3rem 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.8);
    font: 500 0.9rem var(--body);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.hero__pause:hover { color: #fff; }

.hero h1,
.hero__title {
    margin: 0 0 0.35em;
    font-family: var(--display);
    font-weight: 800;
    text-wrap: balance;
}

.hero h1,
.hero__title {
    text-shadow: 0 2px 30px rgba(15, 42, 48, 0.45);
    max-width: 14ch;
    margin-bottom: 0.35em;
    font-size: clamp(3rem, 8.6vw, 7.5rem);
    line-height: 0.96;
    letter-spacing: -0.015em;
}

.hero__lede {
    max-width: 46ch;
    margin-bottom: 1.75rem;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
}

/* The sun line: the logo's sunset as a horizon. Used once here, and as the
   active marker in the nav and the booking steps. */
.sunline {
    height: 4px;
    border: 0;
    margin: 0;
    background: var(--sunline);
}

.hero .sunline {
    transform-origin: left;
    animation: sunrise 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes sunrise {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.finder {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    max-width: 640px;
    padding: 0.5rem;
    background: #fff;
    border-radius: 999px;
}

.finder select {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 2.5rem 0.8rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230f2a30' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1.1rem center;
    color: var(--ink);
    font: 500 1rem var(--body);
    appearance: none;
    text-overflow: ellipsis;
}

.hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero__facts strong { color: #fff; font-weight: 600; }
.hero__facts a { color: #fff; }

@media (max-width: 560px) {
    .finder { grid-template-columns: 1fr; border-radius: 22px; }
    .finder .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--fog { background: var(--fog); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .muted, .section--ink .lede { color: rgba(255, 255, 255, 0.75); }
.section--ink a:not(.btn) { color: #fff; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section__head h2 { margin: 0; max-width: 18ch; }
.section__head p { margin: 0; max-width: 44ch; color: var(--stone); }
.section--ink .section__head p { color: rgba(255, 255, 255, 0.75); }

/* --------------------------------------------------------------------------
   Tour cards
   -------------------------------------------------------------------------- */

.tours {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2.4vw, 2rem);
}

.tour { grid-column: span 2; display: flex; flex-direction: column; }
.tours--lead .tour:nth-child(-n + 2) { grid-column: span 3; }

.tour__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--fog);
}

.tours--lead .tour:nth-child(-n + 2) .tour__media { aspect-ratio: 16 / 10; }

.tour__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tour:hover .tour__media img { transform: scale(1.04); }

.tour__price {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.tour__price small { font-weight: 400; color: var(--stone); font-size: 0.85em; }

.tour__body { padding-top: 1rem; display: flex; flex-direction: column; flex: 1; }
.tour__meta { margin: 0 0 0.3rem; font-size: 0.92rem; color: var(--stone); }
.tour h3 { margin-bottom: 0.4rem; }
.tour h3 a { color: inherit; text-decoration: none; }
.tour h3 a:hover { color: var(--sea); }
.tour__desc { color: var(--stone); font-size: 0.98rem; margin-bottom: 1rem; }
.tour__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; margin-top: auto; }

@media (max-width: 980px) {
    .tour, .tours--lead .tour:nth-child(-n + 2) { grid-column: span 3; }
    .tours--lead .tour:nth-child(-n + 2) .tour__media { aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
    .tour, .tours--lead .tour:nth-child(-n + 2) { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Split (image + text) and plain lists
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5.5rem);
    align-items: center;
}

.split--flip > :first-child { order: 2; }

.split__media {
    position: relative;
}

.split__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
}

.split__media--wide img { aspect-ratio: 5 / 4; }

.split__inset {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 44%;
    border: 6px solid var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.section--fog .split__inset { border-color: var(--fog); }
.split__inset img { aspect-ratio: 1; border-radius: calc(var(--radius) - 6px); }

.promises { margin: 2rem 0; padding: 0; list-style: none; }

.promises li {
    padding: 1.1rem 0;
    border-top: 1px solid var(--line);
}

.promises li:last-child { border-bottom: 1px solid var(--line); }
.promises h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.promises p { margin: 0; color: var(--stone); }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split--flip > :first-child { order: 0; }
    .split__media img { aspect-ratio: 4 / 3; }
    .split__inset { right: 0.75rem; bottom: -1.25rem; width: 38%; }
}

/* --------------------------------------------------------------------------
   Photo strip (home) and gallery
   -------------------------------------------------------------------------- */

.strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 420px);
    gap: 1rem;
    padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
}

.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.strip figcaption { padding-top: 0.75rem; }
.strip figcaption strong { display: block; font-family: var(--display); font-size: 1.25rem; }
.strip figcaption span { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

.gallery { columns: 3 280px; column-gap: 1rem; }
.gallery figure { margin: 0 0 1rem; break-inside: avoid; position: relative; }
.gallery img { width: 100%; border-radius: var(--radius); }
.gallery figcaption { padding: 0.5rem 0.1rem 0; font-size: 0.92rem; color: var(--stone); }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.stars { color: var(--sun-deep); letter-spacing: 0.1em; font-size: 1.05rem; }
.stars .off { color: var(--line); }

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.quote {
    margin: 0;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--paper);
}

.section:not(.section--fog) .quote { background: var(--fog); }
.quote blockquote { margin: 0.6rem 0 1rem; font-size: 1.08rem; }
.quote figcaption { font-size: 0.95rem; color: var(--stone); }
.quote figcaption strong { color: var(--ink); }

.rating {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.rating__score {
    font: 800 clamp(4rem, 9vw, 6.5rem)/0.9 var(--display);
    letter-spacing: -0.04em;
}

/* --------------------------------------------------------------------------
   Page head (inner pages) and call-to-action band
   -------------------------------------------------------------------------- */

.pagehead {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(380px, 56vh, 560px);
    padding: 8.5rem 0 0;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.pagehead img.pagehead__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pagehead::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 42, 48, 0.9) 0%, rgba(15, 42, 48, 0.35) 55%, rgba(15, 42, 48, 0.3) 100%);
}

.pagehead__inner { position: relative; z-index: 2; width: 100%; padding-bottom: 2.25rem; }
.pagehead h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); max-width: 18ch; margin-bottom: 0.3em; }
.pagehead p { max-width: 56ch; color: rgba(255, 255, 255, 0.88); font-size: 1.15rem; }
.pagehead--plain { min-height: 0; padding-top: 8rem; background: var(--fog); color: var(--ink); }
.pagehead--plain::before { display: none; }
.pagehead--plain p { color: var(--stone); }

.crumbs { margin: 0 0 1rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.92rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.6; }
.crumbs a { color: inherit; }

.cta {
    position: relative;
    color: #fff;
    background: var(--ink);
    overflow: hidden;
}

.cta img.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta__inner { position: relative; padding-block: clamp(4rem, 9vw, 7rem); }
.cta h2 { max-width: 16ch; }
.cta p { max-width: 48ch; color: rgba(255, 255, 255, 0.88); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   Tour detail page
   -------------------------------------------------------------------------- */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
}

.detail__main > section + section { margin-top: 3rem; }
.detail__main h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }

.bookcard {
    position: sticky;
    top: 6.5rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--fog);
}

.bookcard__price { font: 800 2.6rem/1 var(--display); letter-spacing: -0.03em; }
.bookcard__price small { font: 400 1rem var(--body); color: var(--stone); letter-spacing: 0; }
.bookcard .btn { margin-top: 0.6rem; }

.facts { margin: 1.25rem 0; padding: 0; list-style: none; }

.facts li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.98rem;
}

.facts > li > span:first-child { color: var(--stone); flex: none; }
.facts > li > span:last-child { text-align: right; font-weight: 500; }

/* The itinerary really is a sequence, so it gets a numbered route line. */
.route { margin: 0; padding: 0; list-style: none; counter-reset: stop; }

.route li {
    position: relative;
    padding: 0 0 1.75rem 3.25rem;
    counter-increment: stop;
}

.route li::before {
    content: counter(stop);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font: 700 0.95rem var(--display);
}

.route li::after {
    content: "";
    position: absolute;
    left: calc(1.05rem - 1px);
    top: 2.4rem;
    bottom: 0.3rem;
    width: 2px;
    background: var(--line);
}

.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }
.route h3 { margin: 0.2rem 0 0.3rem; font-size: 1.2rem; }
.route p { margin: 0; color: var(--stone); }

.inout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.ticks, .crosses { margin: 0; padding: 0; list-style: none; }
.ticks li, .crosses li { position: relative; padding: 0.3rem 0 0.3rem 1.75rem; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; font-weight: 700; }
.ticks li::before { content: "✓"; color: var(--ok); }
.crosses li::before { content: "×"; color: var(--stone); font-size: 1.2em; line-height: 1.2; }

.note {
    padding: 1.1rem 1.25rem;
    border-left: 4px solid var(--sun);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--fog);
}

.note p:last-child { margin: 0; }
.note--ok { border-color: var(--ok); }
.note--bad { border-color: var(--danger); background: #fbeeed; }

@media (max-width: 940px) {
    .detail { grid-template-columns: 1fr; }
    .bookcard { position: static; }
}

@media (max-width: 560px) {
    .inout { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: 1.1rem; }
.field label, .label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.field .hint { display: block; margin-top: 0.3rem; font-size: 0.88rem; color: var(--stone); }
.req { color: var(--ember); }

.input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: 400 1rem var(--body);
}

.field textarea { resize: vertical; min-height: 6.5rem; }

.field select {
    appearance: none;
    padding-right: 2.25rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230f2a30' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.9rem center;
}

.field input[type="date"] { min-height: 3.05rem; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
    outline: 0;
    border-color: var(--sea);
    box-shadow: 0 0 0 3px rgba(11, 107, 115, 0.18);
}

.is-invalid,
.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
    border-color: var(--danger);
}

.error { display: block; margin-top: 0.3rem; color: var(--danger); font-size: 0.9rem; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid4 { display: grid; grid-template-columns: 1.4fr 1.2fr 0.7fr 0.7fr; gap: 0 1rem; }
.span2 { grid-column: 1 / -1; }

.field label.check, .check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 1rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--sea); flex: none; }

@media (max-width: 640px) {
    .grid2 { grid-template-columns: 1fr; }
    .grid4 { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Booking page
   -------------------------------------------------------------------------- */

.booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.steps {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    flex: 1;
    padding-top: 0.75rem;
    border-top: 4px solid var(--line);
    color: var(--stone);
    font-weight: 500;
    font-size: 0.95rem;
    counter-increment: step;
}

.steps li::before { content: counter(step) ". "; }
.steps li.is-active, .steps li.is-done { color: var(--ink); border-image: var(--sunline) 1; }
.steps li.is-active { font-weight: 700; }

.panel {
    padding: clamp(1.25rem, 3vw, 2.25rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.panel > h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.panel__foot--end { justify-content: flex-end; }
.wizard-step[hidden] { display: none; }

.traveller { padding: 0.9rem 1rem 0; margin-bottom: 0.75rem; border-radius: var(--radius-sm); background: var(--fog); }
.traveller .label { font-size: 0.88rem; color: var(--stone); }

.pay { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }

.pay__opt { position: relative; display: block; cursor: pointer; }
.pay__opt input { position: absolute; opacity: 0; }

.pay__card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background-color 0.15s;
}

.pay__card::before {
    content: "";
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid var(--stone);
    border-radius: 50%;
}

.pay__opt input:checked + .pay__card { border-color: var(--ink); background: var(--fog); }
.pay__opt input:checked + .pay__card::before { border: 6px solid var(--ink); }
.pay__opt input:focus-visible + .pay__card { outline: 3px solid var(--sun); outline-offset: 2px; }
.pay__card strong { display: block; }
.pay__card span { color: var(--stone); font-size: 0.93rem; }
.pay__card em { font-style: normal; font-weight: 600; white-space: nowrap; }

.pay__detail { margin-bottom: 1.5rem; }
.pay__detail[hidden] { display: none; }
.pay__detail dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 1.25rem; margin: 0.5rem 0 0; }
.pay__detail dt { color: var(--stone); }
.pay__detail dd { margin: 0; font-weight: 600; }

#paypalButtons { min-height: 48px; max-width: 420px; }
#paypalButtons.is-waiting { opacity: 0.45; pointer-events: none; }
.paybox[hidden] { display: none; }

.summary {
    position: sticky;
    top: 6.5rem;
    border-radius: var(--radius);
    background: var(--fog);
    overflow: hidden;
}

.summary img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.summary__body { padding: 1.4rem 1.5rem 1.6rem; }
.summary h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.summary .facts { margin-bottom: 0; }
.summary__total { font: 800 1.5rem var(--display); }
.summary__usd { display: block; font-size: 0.9rem; color: var(--stone); font-weight: 400; }

/* Country code picker */
.pcd { position: relative; }
.pcd__btn { display: flex; align-items: center; gap: 0.6rem; text-align: left; cursor: pointer; }
.pcd__btn .caret { margin-left: auto; font-size: 0.7rem; color: var(--stone); }
.pcd__list {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 260px;
    margin: 0;
    padding: 0.3rem;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.pcd__list[hidden] { display: none; }
.pcd__list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 6px; cursor: pointer; font-size: 0.95rem; }
.pcd__list li:hover, .pcd__list li[aria-selected="true"] { background: var(--fog); }
.pcd .fi { flex: none; width: 1.33em; }

@media (max-width: 940px) {
    .booking { grid-template-columns: 1fr; }
    .summary { position: static; order: -1; display: grid; grid-template-columns: 120px 1fr; }
    .summary img { height: 100%; aspect-ratio: auto; }
    .summary .facts li:not(.summary__totalrow) { display: none; }
    .summary__body p { display: none; }
}

@media (max-width: 560px) {
    .steps li { font-size: 0.82rem; }
    .panel__foot { flex-direction: column-reverse; align-items: stretch; }
    .pay__card { grid-template-columns: auto 1fr; }
    .pay__card em { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Confirmation
   -------------------------------------------------------------------------- */

.receipt { max-width: 720px; }
.receipt__ref { font: 800 clamp(1.8rem, 5vw, 2.75rem) var(--display); letter-spacing: 0.01em; }
.receipt .facts li { padding: 0.85rem 0; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--fog);
    font-size: 0.88rem;
    font-weight: 600;
}

.badge--ok { background: #dff2e8; color: #145c3a; }
.badge--wait { background: #fdecc8; color: #7a4a00; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.contact__ways { margin: 0; padding: 0; list-style: none; }
.contact__ways li { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact__ways li:last-child { border-bottom: 1px solid var(--line); }
.contact__ways span { display: block; font-size: 0.92rem; color: var(--stone); }
.contact__ways a, .contact__ways strong { font: 700 1.35rem var(--display); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact__ways a:hover { color: var(--sea); }

@media (max-width: 860px) {
    .contact { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--sun); }

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr 1.2fr;
    gap: 2.5rem;
    padding-block: clamp(3rem, 6vw, 5rem) 3rem;
}

.site-footer__logo img { height: 74px; width: auto; margin-bottom: 1rem; }
.site-footer h2 { font: 600 0.95rem var(--body); letter-spacing: 0; color: rgba(255, 255, 255, 0.6); margin-bottom: 0.9rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 0.25rem 0; }

.site-footer__base > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    padding-block: 1.25rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.site-footer__base { padding-bottom: 0; }

@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash { margin-bottom: 1.5rem; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Star rating buttons on the review form */
#starRating button { background: none; border: 0; padding: 0 0.1em; font: inherit; color: var(--sun-deep); cursor: pointer; }
#starRating button.off { color: #c3cfcd; }

@media (max-width: 700px) {
    .hero::before {
        background: linear-gradient(0deg, rgba(15, 42, 48, 0.94) 0%, rgba(15, 42, 48, 0.72) 55%, rgba(15, 42, 48, 0.25) 100%);
    }
}

/* Tour card actions: two booking routes, then the details link on its own line */
.tour__more { flex-basis: 100%; }
