.site-header .site-title,
.site-header .site-nav a {
    color: var(--text);
}

.site-header-public {
    border-bottom: 0;
    background: transparent;
    box-shadow: none;
    position: relative;
    top: auto;
}

.site-header-public .header-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 0;
    height: 420px;
    background: #ffffff;
}

.site-header-public .header-hero::before {
    content: none;
}

.site-header-public .header-hero-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1100px) {
    .site-header-public .header-hero {
        height: 380px;
    }
}

.site-header-public .header-hero-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 560px) 1fr;
    gap: 16px;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 14px;
    min-height: 320px;
    position: relative;
    z-index: 1;
}

.brand-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(10, 74, 122, 0.12));
}

.brand-center {
    text-align: center;
    min-width: 0;
}

.brand-name {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #083a60;
}

.brand-values{
    margin-top: 6px;
    color: rgba(8, 58, 96, 0.72);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.brand-tagline {
    margin-top: 4px;
    color: rgba(17, 24, 39, 0.70);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: none;
}

.brand-right {
    display: flex;
    justify-content: flex-end;
}

.brand-vessel {
    display: block;
    width: 340px;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(10, 74, 122, 0.16);
    box-shadow: 0 18px 36px rgba(10, 74, 122, 0.14);
    object-fit: cover;
}

.site-header-public .header-nav {
    padding: 0 0 14px 0;
    margin-top: -22px;
    position: relative;
    z-index: 2;
}

.site-header-public .header-nav .container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header-public .public-nav-details {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}

.site-header-public .public-nav-summary {
    display: none;
}

.site-header-public .public-nav-panel {
    display: block;
}

.site-header-public .site-nav {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    background: #082a47;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 10px 10px;
    box-shadow: 0 18px 34px rgba(3, 12, 22, 0.22);
}

.site-header-public .site-nav a {
    display: block;
    width: 100%;
    position: relative;
    transition: background 160ms ease, transform 160ms ease, color 160ms ease;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

.site-header-public .site-nav a::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 7px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-gold));
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.site-header-public .site-nav a:hover,
.site-header-public .site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
}

.site-header-public .site-nav a:hover::after,
.site-header-public .site-nav a:focus-visible::after,
.site-header-public .site-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: translateY(0);
}

.site-header-public .site-nav a[aria-current="page"] {
    background: rgba(241, 196, 15, 0.18);
    color: #ffffff;
}

.hero .muted {
    color: rgba(8, 58, 96, 0.78);
}

.cta-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: #d6001c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow:
        0 14px 28px rgba(214, 0, 28, 0.18),
        0 0 0 4px rgba(214, 0, 28, 0.12),
        0 0 28px rgba(214, 0, 28, 0.22),
        0 0 52px rgba(214, 0, 28, 0.10);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
    white-space: nowrap;
    animation: ctaGlowPulse 2.8s ease-in-out infinite;
}

@keyframes ctaGlowPulse {
    0%,
    100% {
        background: #d6001c;
        box-shadow:
            0 14px 28px rgba(214, 0, 28, 0.18),
            0 0 0 4px rgba(214, 0, 28, 0.12),
            0 0 26px rgba(214, 0, 28, 0.20),
            0 0 48px rgba(214, 0, 28, 0.10);
    }
    50% {
        background: #e00020;
        box-shadow:
            0 16px 32px rgba(214, 0, 28, 0.22),
            0 0 0 5px rgba(214, 0, 28, 0.14),
            0 0 34px rgba(214, 0, 28, 0.26),
            0 0 64px rgba(214, 0, 28, 0.14);
    }
}

.cta-register:hover,
.cta-register:focus-visible {
    background: #ff0026;
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 18px 36px rgba(214, 0, 28, 0.26),
        0 0 0 5px rgba(214, 0, 28, 0.16),
        0 0 44px rgba(214, 0, 28, 0.30),
        0 0 78px rgba(214, 0, 28, 0.16);
    animation-play-state: paused;
}

.cta-register--lg {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 16px;
}

.cta-register--sm {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
}

@media (min-width: 1101px) {
    .site-header-public .header-nav .container {
        flex-direction: row;
        align-items: center;
    }

    .site-header-public .public-nav-summary {
        display: none;
    }

    .site-header-public .public-nav-panel {
        display: block;
    }

    .site-header-public .site-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .site-header-public .site-nav a {
        display: inline-flex;
        width: auto;
    }

    .site-header-public .cta-register--sm {
        width: auto;
    }

    .site-header-public .header-nav {
        position: relative;
        top: auto;
    }
}

.hero-cta {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cta-subtext {
    font-weight: 700;
    color: rgba(8, 58, 96, 0.74);
    font-size: 13px;
}

.site-header-public .site-nav a[href$="/passenger/registration"] {
    box-shadow: inset 0 0 0 1px rgba(241, 196, 15, 0.35);
}

.site-header-public .site-nav a[href$="/passenger/registration"]:hover,
.site-header-public .site-nav a[href$="/passenger/registration"]:focus-visible {
    background: rgba(241, 196, 15, 0.14);
}

.site-main {
    background: transparent;
}

.section-block {
    position: relative;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.section-block::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0.9;
}

.section-block:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.section-block {
    border-radius: 16px;
    border-color: rgba(10, 74, 122, 0.14);
}

.section-block:hover {
    border-color: rgba(10, 74, 122, 0.22);
}

.section-block::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-gold));
}

.section-block:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
}

.section-block:nth-of-type(odd) {
    background: #ffffff;
}

.reveal {
    opacity: 0;
    transform: translateY(10px);
}

.reveal.reveal-in {
    opacity: 1;
    transform: translateY(0);
}

.page-booking-confirmation .site-main section:nth-of-type(2) {
    border-color: rgba(37, 99, 235, 0.25);
    background: #f0f6ff;
}

.page-booking-confirmation .site-main section:nth-of-type(2) p {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.page-booking-confirmation img[alt='Booking QR'] {
    display: block;
    width: 220px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    background: #ffffff;
}

.form-errors ul {
    margin: 0;
    padding-left: 18px;
}

.route-jump-row {
    align-items: end;
    grid-template-columns: minmax(240px, 420px) 1fr;
}

.route-jump-hint {
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px 0;
}

.gallery-tabs-sub {
    margin-top: 6px;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.gallery-tab:hover,
.gallery-tab:focus-visible {
    background: #f3f4f6;
}

.gallery-tab.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    background: rgba(37, 99, 235, 0.10);
}

.gallery-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.08);
    color: #0f2a6b;
    font-weight: 800;
    font-size: 12px;
    margin: 0 0 8px 0;
}

.gallery-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
}

.gallery-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8fafc;
    margin-bottom: 10px;
}

.gallery-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #f8fafc;
    overflow: hidden;
    margin-bottom: 10px;
}

.gallery-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.gallery-card h4 {
    margin: 0 0 6px 0;
}

.gallery-card p {
    margin: 0;
}

.gallery-actions {
    margin-top: 10px;
}

.muted {
    color: var(--muted);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.card h4 {
    margin: 0 0 8px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: start;
    background: radial-gradient(800px 280px at 10% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
                radial-gradient(700px 260px at 90% 20%, rgba(16, 185, 129, 0.16), transparent 55%),
                #ffffff;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #92400e;
    font-weight: 800;
    font-size: 12px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-links a {
    display: block;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
}

.quick-links a:hover,
.quick-links a:focus-visible {
    background: #f3f4f6;
}

.tight-list {
    margin: 0;
    padding-left: 18px;
}

.how-scroll {
    position: relative;
    max-height: 160px;
    overflow-y: auto;
    padding: 10px 12px 44px;
    border-radius: 14px;
    border: 1px solid rgba(10, 74, 122, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    box-shadow: 0 10px 22px rgba(10, 74, 122, 0.08);
}

.how-scroll::after {
    content: none;
}

.how-scroll::before {
    content: 'Scroll';
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(8, 58, 96, 0.68);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(10, 74, 122, 0.14);
    border-radius: 999px;
    padding: 4px 10px;
    pointer-events: none;
}

.h-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.attraction-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.attraction-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.attraction-img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f3f4f6;
}

.attraction-slider {
    position: relative;
    width: 100%;
    height: 150px;
    background: #f3f4f6;
}

.attraction-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 420ms ease;
}

.attraction-slide.is-active {
    opacity: 1;
}

.attraction-body {
    padding: 12px 12px 14px 12px;
}

.attraction-body h4 {
    margin: 0 0 6px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.time-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.08);
    color: #0f2a6b;
    font-weight: 700;
    font-size: 12px;
    transition: transform 160ms ease, background 160ms ease;
}

.pill:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.12);
}

.route-block {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.schedule-card {
    scroll-margin-top: 90px;
}

.rates-block {
    margin-top: 14px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.rates-table th,
.rates-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.rates-table thead th {
    background: rgba(37, 99, 235, 0.06);
}

.focus-ring {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20);
}

.qr-large {
    display: block;
    width: 320px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    background: #ffffff;
}

.hero-slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    background: #f3f4f6;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 74, 122, 0.04), rgba(10, 74, 122, 0.18));
    pointer-events: none;
}

.hero-slide {
    filter: saturate(1.06) contrast(1.02);
}

.hero-dots {
    position: absolute;
    left: 14px;
    bottom: 12px;
    display: inline-flex;
    gap: 8px;
    z-index: 2;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
    width: 22px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(241, 196, 15, 0.62));
    border-color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1100px) {
    .site-header-public .header-hero {
        height: 340px;
    }

    .brand-center {
        text-align: left;
    }

    .brand-right {
        display: none;
    }

    .brand-logo {
        height: 74px;
    }

    .brand-name {
        font-size: 20px;
    }

    .brand-tagline {
        font-size: 12px;
    }

    .brand-values{
        font-size: 12px;
        letter-spacing: 0.08em;
    }

    .site-header-public .header-nav .container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-header-public .public-nav-summary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: 14px;
        background: #082a47;
        border: 1px solid rgba(255, 255, 255, 0.10);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 900;
        letter-spacing: 0.02em;
        cursor: pointer;
        user-select: none;
        list-style: none;
    }

    .site-header-public .public-nav-summary::-webkit-details-marker {
        display: none;
    }

    .site-header-public .public-nav-summary::marker {
        content: '';
    }

    .site-header-public .public-nav-summary::before {
        content: '';
        width: 16px;
        height: 2px;
        background: rgba(255, 255, 255, 0.92);
        border-radius: 2px;
        box-shadow: 0 -5px 0 rgba(255, 255, 255, 0.92), 0 5px 0 rgba(255, 255, 255, 0.92);
    }

    .site-header-public .public-nav-panel {
        display: none;
        padding-top: 10px;
    }

    .site-header-public .public-nav-details[open] .public-nav-panel {
        display: block;
    }

    .site-header-public .site-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
    }

    .site-header-public .site-nav a {
        width: 100%;
        min-height: 44px;
        padding: 12px 14px;
    }

    .site-header-public .cta-register--sm {
        width: 100%;
    }

    .site-header-public .header-nav {
        position: sticky;
        top: 0;
        margin-top: -12px;
        padding-bottom: 10px;
    }

    .hero-cta {
        align-items: stretch;
    }

    .cta-register--lg {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header-public .header-hero {
        height: auto;
    }

    .site-header-public .header-hero-img {
        height: auto;
        object-fit: contain;
    }

    .site-header-public .header-nav {
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .section-block,
    .card,
    .attraction-card,
    .site-header-public .site-nav a,
    .cta-register,
    .hero-slide,
    .attraction-slide {
        transition: none;
    }

    .cta-register {
        animation: none;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 400ms ease, transform 800ms ease;
}

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

.hero-dots {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    display: flex;
    gap: 6px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.hero-dot.is-active {
    width: 18px;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .quick-links {
        grid-template-columns: 1fr;
    }

    .how-scroll {
        max-height: 176px;
        padding: 10px 12px;
    }

    .h-scroll {
        grid-auto-columns: minmax(240px, 85%);
    }

    .hero-slider {
        height: 210px;
    }
}
