/*
 * Mobile responsiveness fixes for the Yawl-theme pages
 * (home, terms & conditions, ticket/receipt, contact).
 * Loaded AFTER style.css - contains overrides only, desktop is untouched.
 */

img,
video {
    max-width: 100%;
    height: auto;
}

html,
body {
    overflow-x: hidden;
}

/* CSS-only hamburger navigation (checkbox + label, no JavaScript).
   Hidden on desktop, activated below 992px. */
.mobile-nav-checkbox {
    display: none;
}

.mobile-nav-btn {
    display: none;
}

/* ===== Site header / navbar / hero ===== */
.mf-topnav .menu-1-inner {
    margin: 0;
    width: 100%;
}

.mf-topnav .menu-1-logo {
    padding-left: 15px;
}

.mf-topnav .mf-topnav-inner {
    background: rgba(2, 37, 42, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    padding-top: 4px;
    padding-bottom: 4px;
    z-index: 1030;
}

/* Inner pages (search, booking): solid bar so it stays readable */
.site-header-wrap.is-scrolled .mf-topnav-inner,
.header-home-2.header-scrolled ~ .mf-topnav .mf-topnav-inner,
body:not(.home) .mf-topnav-inner,
.mf-topnav.is-inner .mf-topnav-inner {
    background: rgba(2, 37, 42, 0.92);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.site-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.site-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #03717c;
    color: #e53935;
    font-size: 15px;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.site-brand-icon .fa-ship {
    color: #e53935 !important;
}

.site-brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fff;
}

.site-main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0 !important;
    gap: 2px;
}

.menu-2 .site-main-nav .dropdown {
    margin-left: 0.4%;
    margin-right: 0.4%;
}

.site-main-nav .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.03em;
    padding: 10px 12px !important;
    position: relative;
    transition: color 0.2s ease;
}

.site-main-nav .nav-link:hover,
.site-main-nav .nav-link:focus {
    color: #fff !important;
}

.site-main-nav .nav-link:not(.site-nav-cta)::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: #43dfe6;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.site-main-nav .nav-link:not(.site-nav-cta):hover::after,
.site-main-nav .nav-link:not(.site-nav-cta):focus::after {
    transform: scaleX(1);
}

.site-nav-cta {
    background: #03717c !important;
    color: #fff !important;
    border-radius: 4px;
    margin-left: 6px;
    padding: 9px 16px !important;
    box-shadow: 0 4px 12px rgba(3, 113, 124, 0.35);
}

.site-nav-cta:hover,
.site-nav-cta:focus {
    background: #048a96 !important;
    color: #fff !important;
}

.site-nav-cta::after {
    display: none !important;
}

/* Hero */
.site-hero {
    position: relative;
}

.header-home-2,
.header-home-2.site-hero {
    background-image: url(../images/home1.png);
    background-size: cover;
    background-position: center center;
}

.site-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(2, 37, 42, 0.48) 0%, rgba(2, 37, 42, 0.22) 45%, rgba(2, 37, 42, 0.08) 100%);
    z-index: 1;
    pointer-events: none;
}

.site-hero .container-fluid,
.site-hero .site-hero-content {
    position: relative;
    z-index: 2;
}

.header-home-2.site-hero .header-cont {
    max-width: 640px;
    margin-left: 45px;
}

.header-home-2.site-hero h1 {
    font-size: clamp(28px, 4.2vw, 48px);
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.header-home-2.site-hero h1 span {
    color: #7fe8ee;
}

.site-hero-sub {
    font-size: 17px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.96) !important;
    max-width: 480px;
    margin: 0 0 26px !important;
    text-align: left !important;
    font-weight: 500;
    font-family: inherit !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.site-hero-brand {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff !important;
    background: rgba(3, 113, 124, 0.9);
    border-radius: 3px;
    line-height: 1.3 !important;
    text-align: left !important;
    font-family: inherit !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    background: #03717c;
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-decoration: none !important;
    border-radius: 4px;
    border: 2px solid #03717c;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.site-hero-btn:hover,
.site-hero-btn:focus {
    background: #048a96;
    border-color: #048a96;
    color: #fff !important;
    transform: translateY(-1px);
}

.site-hero-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: none;
}

.site-hero-btn-ghost:hover,
.site-hero-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

@media screen and (min-width: 992px) {
    .mf-topnav .menu-1-inner {
        min-height: 64px;
    }

    .site-main-nav .dropdown {
        height: auto;
        vertical-align: middle;
    }
}

/* ===== Footer — shared across ALL frontend pages (match homepage) ===== */
footer.footerdark.mf-site-footer,
footer.footerdark {
    background-color: #1b1d2f !important;
    color: rgba(255, 255, 255, 0.85) !important;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    clear: both;
}

footer.footerdark .h-newslatter.main-section {
    background: transparent !important;
    margin: 0 !important;
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mf-footer-wrap {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
}

footer.footerdark a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

footer.footerdark .footer-cols-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
}

footer.footerdark .footer-cols-row > [class*="col-"] {
    margin-bottom: 0;
}

footer.footerdark .footer-box {
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
}

footer.footerdark .footer-title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.04em;
    margin: 0 0 1rem !important;
    padding: 0 0 0.75rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45) !important;
    min-height: 0;
}

footer.footerdark .footer-box .textwidget {
    margin-top: 0 !important;
}

footer.footerdark .footer-box .textwidget p,
footer.footerdark .footer-ticket-grid p,
footer.footerdark .footer-contact-grid p {
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin: 0 0 0.35rem !important;
}

footer.footerdark .footer-grid-label {
    font-weight: 700 !important;
}

footer.footerdark .footer-grid-value {
    text-align: left;
    font-weight: 500 !important;
}

footer.footerdark .footer-ticket-grid .footer-grid-value,
footer.footerdark .footer-contact-grid .footer-grid-value {
    white-space: nowrap;
}

footer.footerdark .footer-ticket-grid > [class*="col-"],
footer.footerdark .footer-contact-grid > [class*="col-"] {
    padding-left: 0;
    padding-right: 12px;
}

footer.footerdark .ticket-rate-heading {
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

footer.footerdark .footer-rate-note {
    color: #fff !important;
    margin: 0.5rem 0 0 !important;
    font-size: 14px !important;
    font-style: normal;
}

footer.footerdark .footer-contact-email {
    margin: 0.75rem 0 0 !important;
    padding: 0 !important;
}

footer.footerdark .footer-contact-email a {
    color: #fff !important;
    font-size: 14px !important;
    text-decoration: none;
    word-break: break-word;
}

footer.footerdark .footer-contact-grid a {
    color: #fff !important;
    text-decoration: none;
}

footer.footerdark .footer-contact-grid a:hover,
footer.footerdark .footer-contact-email a:hover {
    color: #7fe8ee !important;
}

/* Don't apply legacy ticket-row bullet styles to new footer grids */
footer.footerdark .footer-ticket-grid > [class*="col-"] p::before,
footer.footerdark .footer-contact-grid > [class*="col-"] p::before {
    display: none !important;
    content: none !important;
}

@media screen and (min-width: 768px) {
    footer.footerdark .h-newslatter.main-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    footer.footerdark .footer-cols-row > [class*="col-md-4"]:not(:last-child) {
        padding-right: 28px;
    }

    footer.footerdark .footer-cols-row > [class*="col-md-4"]:not(:first-child) {
        padding-left: 28px;
    }
}

/* Tablet + phone — one shared footer layout for ALL frontend pages */
@media screen and (max-width: 991px) {
    .mf-footer-wrap {
        max-width: 100%;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    footer.footerdark .h-newslatter.main-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    footer.footerdark .footer-cols-row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    footer.footerdark .footer-cols-row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 1.5rem !important;
    }

    footer.footerdark .footer-cols-row > [class*="col-"]:last-child {
        margin-bottom: 0 !important;
    }

    footer.footerdark .footer-title {
        font-size: 15px !important;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.5rem !important;
    }

    footer.footerdark .footer-box,
    footer.footerdark .footer-box .textwidget {
        text-align: left !important;
        margin-top: 0 !important;
    }

    footer.footerdark .footer-link-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    footer.footerdark .footer-link-list li {
        margin: 0 0 8px !important;
        padding: 0 !important;
    }

    footer.footerdark .footer-link-list li:last-child {
        margin-bottom: 0 !important;
    }

    footer.footerdark .footer-link-list a {
        color: #fff !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.45 !important;
        display: inline-block;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Rates + contact: keep label/value side-by-side on mobile */
    footer.footerdark .footer-ticket-grid,
    footer.footerdark .footer-contact-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    footer.footerdark .footer-ticket-grid > [class*="col-"],
    footer.footerdark .footer-contact-grid > [class*="col-"] {
        float: none !important;
        padding-left: 0 !important;
        padding-right: 8px !important;
        margin: 0 0 6px !important;
    }

    footer.footerdark .footer-ticket-grid > .col-12,
    footer.footerdark .footer-contact-grid > .col-12,
    footer.footerdark .footer-ticket-grid > .col-md-12,
    footer.footerdark .footer-contact-grid > .col-md-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    footer.footerdark .footer-ticket-grid > .col-7,
    footer.footerdark .footer-contact-grid > .col-5 {
        flex: 0 0 42% !important;
        max-width: 42% !important;
        width: 42% !important;
    }

    footer.footerdark .footer-ticket-grid > .col-5,
    footer.footerdark .footer-contact-grid > .col-7 {
        flex: 0 0 58% !important;
        max-width: 58% !important;
        width: 58% !important;
    }

    footer.footerdark .footer-box .textwidget p,
    footer.footerdark .footer-ticket-grid p,
    footer.footerdark .footer-contact-grid p,
    footer.footerdark .footer-rate-note {
        color: #fff !important;
        font-size: 13px !important;
        line-height: 1.45 !important;
        margin: 0 0 0.25rem !important;
        text-align: left !important;
    }

    footer.footerdark .ticket-rate-heading {
        font-size: 13px !important;
        margin-bottom: 0.5rem !important;
    }

    footer.footerdark .footer-grid-label {
        font-weight: 700 !important;
    }

    footer.footerdark .footer-grid-value {
        font-weight: 500 !important;
        white-space: normal !important;
        word-break: break-word;
    }

    footer.footerdark .footer-contact-email {
        margin-top: 0.75rem !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    footer.footerdark .footer-contact-email a,
    footer.footerdark .footer-contact-grid a {
        color: #fff !important;
        font-size: 13px !important;
        text-decoration: none !important;
        word-break: break-word;
    }

    /* Kill legacy bullet / float styles that differ by page CSS stack */
    footer.footerdark .footer-ticket-grid > [class*="col-"] p::before,
    footer.footerdark .footer-contact-grid > [class*="col-"] p::before,
    footer.footerdark .ticket > [class*="col-"] p::before {
        display: none !important;
        content: none !important;
    }

    footer.footerdark .ticket.row::before,
    footer.footerdark .ticket.row::after {
        display: none !important;
        content: none !important;
    }
}

@media screen and (max-width: 575px) {
    .mf-footer-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    footer.footerdark .h-newslatter.main-section {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    footer.footerdark .footer-cols-row > [class*="col-"] {
        margin-bottom: 1.25rem !important;
    }

    footer.footerdark .footer-title {
        font-size: 14px !important;
    }

    footer.footerdark .footer-link-list a,
    footer.footerdark .footer-box .textwidget p,
    footer.footerdark .footer-ticket-grid p,
    footer.footerdark .footer-contact-grid p,
    footer.footerdark .footer-rate-note,
    footer.footerdark .footer-contact-email a {
        font-size: 12.5px !important;
    }
}

/* Ticket rates list — legacy pages */
.footer-rate-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    color: #fff;
}

.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-link-list li {
    margin: 0 0 8px;
    padding: 0;
}

.footer-link-list li:last-child {
    margin-bottom: 0;
}

.footer-link-list a,
.footer-box .footer-link-list a {
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    text-decoration: none;
    display: inline-block;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-link-list a:hover,
.footer-box .footer-link-list a:hover {
    color: #7fe8ee !important;
}

footer .footer-box .textwidget {
    margin-top: 12px;
}

.footer-contact-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.footer-contact-list li {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 0 14px;
    color: #fff;
}

.footer-contact-list li:last-child {
    margin-bottom: 0;
}

.footer-contact-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.footer-contact-label {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 4px;
}

.footer-contact-list a {
    display: block;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-decoration: none;
    pointer-events: auto !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(127, 232, 238, 0.25);
    touch-action: manipulation;
}

.footer-contact-list a:hover {
    color: #7fe8ee !important;
}

.footer-contact-email {
    margin: 12px 0 0 !important;
}

.footer-contact-email a {
    color: #fff !important;
    font-size: 14px !important;
    margin: 0 !important;
    word-break: break-word;
}

.footer-rate-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    line-height: 1.45;
    text-align: left;
    color: #fff !important;
}

.footer-rate-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.footer-rate-list .rate-name,
.footer-rate-list .rate-price {
    color: #fff !important;
}

.footer-rate-list .rate-price {
    margin-left: 8px;
    white-space: nowrap;
}

.ticket-rate-heading {
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
    color: #fff !important;
}

footer .footer-rate-list,
footer .footer-rate-list li,
footer .footer-rate-list .rate-name,
footer .footer-rate-list .rate-price,
footer .ticket-rate-heading,
.footer-section .footer-rate-list,
.footer-section .footer-rate-list li,
.footer-section .footer-rate-list .rate-name,
.footer-section .footer-rate-list .rate-price,
.footer-section .ticket-rate-heading {
    color: #fff !important;
}

/* ===== Note notices bar (homepage) ===== */
.notice-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 44px;
    background: linear-gradient(90deg, #025960 0%, #03717c 55%, #048a96 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(2, 37, 42, 0.25);
    position: relative;
    z-index: 5;
}

.notice-bar-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: #02252a;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.notice-bar-label::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    bottom: 0;
    width: 20px;
    background: #02252a;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.notice-bar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f0b429;
    color: #02252a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.notice-bar-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.notice-bar-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 0;
    animation: notice-marquee var(--notice-duration, 40s) linear infinite;
    will-change: transform;
}

.notice-bar-group {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.notice-bar:hover .notice-bar-track,
.notice-bar:focus-within .notice-bar-track {
    animation-play-state: paused;
}

.notice-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 28px 0 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    color: #fff;
    text-transform: uppercase;
}

.notice-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f0b429;
    flex: 0 0 auto;
}

@keyframes notice-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .notice-bar-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        padding: 8px 12px;
        white-space: normal;
    }

    .notice-item {
        white-space: normal;
        padding: 4px 12px;
    }

    .notice-bar-viewport {
        mask-image: none;
        -webkit-mask-image: none;
        overflow: visible;
    }
}

/* ===== Shared homepage content width + section rhythm ===== */
.mf-page-wrap {
    max-width: 1600px !important; /* match theme .container-fluid */
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
    width: 100%;
}

.h2-book-section,
.voyage-section.testimonial,
.mf-gallery.main-section,
.mf-contact.contact-section.main-section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

.mf-story-wrap.mf-page-wrap {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

@media screen and (max-width: 991px) {
    .mf-page-wrap {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .h2-book-section,
    .voyage-section.testimonial,
    .mf-gallery.main-section,
    .mf-contact.contact-section.main-section {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }

    .mf-gallery.main-section {
        padding-bottom: 20px !important;
    }

    .mf-contact.contact-section.main-section {
        padding-top: 24px !important;
    }

    .mf-story-wrap.mf-page-wrap {
        padding-top: 44px !important;
        padding-bottom: 44px !important;
    }
}

@media screen and (max-width: 575px) {
    .mf-page-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .h2-book-section,
    .voyage-section.testimonial,
    .mf-gallery.main-section,
    .mf-contact.contact-section.main-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .mf-gallery.main-section {
        padding-bottom: 16px !important;
    }

    .mf-contact.contact-section.main-section {
        padding-top: 20px !important;
    }

    .mf-story-wrap.mf-page-wrap {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
}

/* ===== Book section: Ticket Rates + Book Now (aligned panels) ===== */
.h2-book-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    z-index: 1;
}

/* Kill theme white half-panel that misaligns the two cards */
.h2-book-section::after {
    display: none !important;
    content: none !important;
}

.h2-book-section .book-panels-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -12px;
    margin-right: -12px;
}

.h2-book-section .book-panel {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 !important;
    float: none;
}

.h2-book-section .fare-card,
.h2-book-section .mf-booknow-card {
    width: 100%;
    height: 100%;
    min-height: 420px;
    margin: 0 !important;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* Ticket Rates — theme teal (matches Daily Voyages) */
.h2-book-section .fare-card {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.h2-book-section .fare-card-header {
    background: #03717c;
    color: #fff;
    padding: 14px 18px;
    text-align: left;
}

.h2-book-section .fare-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}

.h2-book-section .fare-card-subtitle {
    margin: 4px 0 0;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-align: left !important;
    font-family: inherit !important;
}

.h2-book-section .fare-table {
    margin: 0;
    background: #fff;
    color: #12343b;
    flex: 1;
}

.h2-book-section .fare-table thead th {
    background: #0a5f68;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: none !important;
    padding: 10px 14px !important;
    vertical-align: middle;
}

.h2-book-section .fare-table tbody td {
    padding: 11px 14px !important;
    border-color: #d7e6e8 !important;
    vertical-align: middle;
    color: #12343b !important;
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
}

.h2-book-section .fare-table tbody tr:nth-child(even) {
    background: #f3fafb;
}

.h2-book-section .fare-table tbody tr:hover {
    background: #e5f5f6;
}

.h2-book-section .fare-class {
    font-size: 14px;
    font-weight: 700;
    color: #03717c !important;
    white-space: nowrap;
    width: 32%;
}

.h2-book-section .fare-amount {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #02252a;
    line-height: 1.25;
}

.h2-book-section .fare-note {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
    color: #4a6a6e;
    line-height: 1.35;
}

/* Book Now — more transparent so scenic background shows through */
.h2-book-section .mf-booknow-card {
    background: rgba(18, 22, 26, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    padding: 0 !important;
}

.h2-book-section .mf-booknow-header {
    background: rgba(12, 16, 20, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 18px;
}

.h2-book-section .mf-booknow-header h4 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.h2-book-section .mf-booknow-sub {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.h2-book-section .mf-booknow-form {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.h2-book-section .mf-booknow-form > .row {
    flex: 1;
}

.h2-book-section .mf-booknow-form .form-group {
    margin-bottom: 14px;
}

.h2-book-section .mf-booknow-label {
    display: block;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.h2-book-section .mf-booknow-trip {
    margin-bottom: 8px;
}

.h2-book-section .mf-booknow-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.h2-book-section .mf-booknow-radio input {
    accent-color: #fff;
    width: 15px;
    height: 15px;
}

.h2-book-section .mf-booknow-card .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 14px !important;
    height: auto !important;
    min-height: 40px;
    padding: 8px 12px;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.h2-book-section .mf-booknow-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.h2-book-section .mf-booknow-card .form-control:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.h2-book-section .mf-booknow-card select.form-control option {
    color: #12343b;
    background: #fff;
}

.h2-book-section .mf-booknow-date {
    display: flex;
    align-items: stretch;
}

.h2-book-section .mf-booknow-date .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* readonly stops mobile keyboard; keep field looking editable */
.h2-book-section .mf-booknow-date .form-control[readonly] {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1) !important;
    opacity: 1;
    -webkit-user-select: none;
    user-select: none;
    caret-color: transparent;
}

.h2-book-section .mf-booknow-date .input-group-text {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.h2-book-section .mf-booknow-submit {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    background: #fff !important;
    border-color: #fff !important;
    color: #1f2a30 !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
    background-image: none !important;
}

.h2-book-section .mf-booknow-submit:hover,
.h2-book-section .mf-booknow-submit:focus {
    background: #f2f4f5 !important;
    border-color: #f2f4f5 !important;
    color: #111 !important;
}

/* ===== Contact Us section ===== */
.mf-contact.contact-section.main-section {
    margin: 0;
    padding-top: 28px !important; /* tighter after Gallery */
    background: linear-gradient(180deg, #ffffff 0%, #eef6f7 55%, #f7fbfb 100%);
}

.mf-contact-head {
    margin-bottom: 32px;
}

.mf-contact-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5f5f6;
    color: #03717c;
    border: 1px solid rgba(3, 113, 124, 0.12);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-contact-title {
    margin: 0 0 6px !important;
    color: #02252a !important;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none !important;
}

.mf-contact-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #03717c, #21cff6);
}

.mf-contact-sub {
    margin: 12px auto 0;
    max-width: 480px;
    color: #4a6a6e;
    font-size: 14px;
    line-height: 1.45;
}

.mf-contact-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.mf-contact-grid > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    display: flex;
}

.mf-contact-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e4eef0;
    border-radius: 16px;
    padding: 20px 18px 18px;
    box-shadow: 0 10px 28px rgba(2, 37, 42, 0.06);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.mf-contact-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #03717c, #21cff6);
}

.mf-contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(3, 113, 124, 0.12);
    border-color: rgba(3, 113, 124, 0.22);
}

.mf-contact-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.mf-contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e5f5f6;
    color: #03717c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    font-size: 16px;
}

.mf-contact-card-top h3 {
    margin: 0 0 4px;
    color: #02252a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.mf-contact-hours {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #03717c;
    font-size: 12px;
    font-weight: 600;
}

.mf-contact-hours-muted {
    color: #6a8084;
}

.mf-contact-address {
    margin: 0 0 14px;
    color: #44595d;
    font-size: 14px;
    line-height: 1.55;
    flex: 1;
}

.mf-contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 14px;
    min-height: 44px;
    border-radius: 10px;
    background: #f3fafb;
    border: 1px solid #d7e6e8;
    color: #03717c !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    pointer-events: auto !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(3, 113, 124, 0.2);
    touch-action: manipulation;
    position: relative;
    z-index: 2;
}

.mf-contact-phone i {
    pointer-events: none;
}

.mf-contact-phone + .mf-contact-phone {
    margin-top: 8px;
}

.mf-contact-phone:hover,
.mf-contact-phone:active {
    background: #03717c;
    border-color: #03717c;
    color: #fff !important;
}

.mf-contact-card-email {
    justify-content: flex-start;
}

.mf-contact-email {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, #03717c, #048a96);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    word-break: break-word;
    box-shadow: 0 8px 18px rgba(3, 113, 124, 0.2);
}

.mf-contact-email:hover {
    filter: brightness(1.05);
    color: #fff !important;
}

@media screen and (max-width: 767px) {
    .mf-contact-title {
        font-size: 24px !important;
    }

    .mf-contact-card {
        padding: 16px 14px;
        border-radius: 14px;
    }

    .mf-contact-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 14px;
        flex-basis: 38px;
    }

    .mf-contact-card-top h3 {
        font-size: 17px;
    }

    .mf-contact-address,
    .mf-contact-phone,
    .mf-contact-email {
        font-size: 13px;
    }
}

/* legacy contact selectors kept for other pages */
.contact-section .contact-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section .contact-card {
    background: #fff;
    border: 1px solid #e4eef0;
    border-top: 3px solid #03717c;
    border-radius: 8px;
    padding: 22px 20px 18px;
    margin-bottom: 24px;
    height: calc(100% - 24px);
    box-shadow: 0 6px 18px rgba(3, 113, 124, 0.06);
}

.contact-section .contact-card h3 {
    color: #02252a;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
}

.contact-section .contact-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 10px;
    color: #33484d;
    font-size: 15px;
    line-height: 1.55;
}

.contact-section .contact-line a {
    color: #03717c;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

/* ===== Instruction / History story sections (shared sizing) ===== */
.mf-story.main-section {
    padding: 0 !important;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.mf-story-rules {
    background: linear-gradient(180deg, #eef6f7 0%, #f7fbfb 100%);
}

.mf-story-history {
    background: linear-gradient(180deg, #f7fbfb 0%, #e8f3f4 100%);
}

.mf-story-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(340px, 1.15fr);
    gap: 20px;
    align-items: stretch;
    min-height: 420px;
}

.mf-story-grid-flip {
    grid-template-columns: minmax(340px, 1.15fr) minmax(240px, 0.85fr);
}

.mf-story-grid-flip .mf-story-media {
    order: 2;
}

.mf-story-grid-flip .mf-story-body {
    order: 1;
}

.mf-story-media {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    min-height: 420px;
    height: 100%;
    box-shadow: 0 8px 20px rgba(2, 37, 42, 0.12);
}

.mf-story-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
}

.mf-story-media-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 37, 42, 0.05) 40%, rgba(2, 37, 42, 0.55) 100%);
    pointer-events: none;
}

.mf-story-media-caption,
.mf-story-stats {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.mf-story-media-caption {
    color: #fff;
}

.mf-story-media-caption span {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(3, 113, 124, 0.92);
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.mf-story-media-caption p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mf-story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mf-story-stat {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
}

.mf-story-stat strong {
    display: block;
    color: #02252a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
}

.mf-story-stat span {
    display: block;
    margin-top: 2px;
    color: #03717c;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mf-story-body {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(3, 113, 124, 0.12);
    box-shadow: 0 8px 20px rgba(2, 37, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.mf-story-kicker {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5f5f6;
    color: #03717c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-story-title {
    margin: 0 0 4px !important;
    color: #02252a !important;
    font-size: 24px !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none !important;
}

.mf-story-lead {
    margin: 0 0 14px;
    color: #4a6a6e;
    font-size: 13.5px;
    line-height: 1.4;
}

.mf-rule-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    flex: 1;
}

.mf-rule-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 4px;
    border-bottom: 1px solid #e8f1f2;
    background: transparent;
    border-radius: 0;
}

.mf-rule-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mf-rule-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 1px;
    border-radius: 8px;
    background: #03717c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mf-rule-text {
    color: #33484d;
    font-size: 13px;
    line-height: 1.45;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mf-rule-heading {
    display: block;
    color: #02252a !important;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
}

.mf-rule-text > span {
    display: block;
    color: #4a6a6e;
}

.mf-rule-text strong {
    color: #02252a;
    font-weight: 700;
}

.mf-pointer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    flex: 1;
}

.mf-pointer-list li {
    position: relative;
    padding: 9px 4px 9px 18px;
    border-bottom: 1px solid #e8f1f2;
    color: #33484d;
    font-size: 13.5px;
    line-height: 1.4;
}

.mf-pointer-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mf-pointer-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: #03717c;
}

.mf-pointer-list li strong {
    color: #02252a;
    font-weight: 700;
}

@media screen and (max-width: 991px) {
    .mf-story-grid,
    .mf-story-grid-flip {
        grid-template-columns: 1fr;
        gap: 12px;
        min-height: 0;
    }

    .mf-story-grid-flip .mf-story-media,
    .mf-story-grid-flip .mf-story-body {
        order: initial;
    }

    .mf-story-media {
        min-height: 180px;
        height: 180px;
    }

    .mf-story-body {
        min-height: 0;
        padding: 18px 16px;
    }
}

@media screen and (max-width: 575px) {
    .mf-story-media {
        min-height: 160px;
        height: 160px;
        border-radius: 12px;
    }

    .mf-story-body {
        border-radius: 12px;
        padding: 16px 14px;
    }

    .mf-story-title {
        font-size: 20px !important;
    }

    .mf-rule-list li {
        grid-template-columns: 24px 1fr;
        padding: 6px 2px;
    }

    .mf-rule-num {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }

    .mf-rule-text {
        font-size: 12px;
    }

    .mf-pointer-list li {
        font-size: 12px;
        padding-left: 14px;
    }

    .mf-story-stats {
        left: 8px;
        right: 8px;
        bottom: 8px;
        gap: 6px;
    }

    .mf-story-stat {
        padding: 6px 2px;
        border-radius: 8px;
    }

    .mf-story-stat strong {
        font-size: 14px;
    }
}

/* ===== Gallery section — spotlight + thumbnail strip ===== */
.mf-gallery.main-section {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #eef6f7 0%, #f7fbfb 50%, #ffffff 100%);
    padding-bottom: 24px !important; /* avoid double gap before Contact */
}

.mf-gallery.main-section::before,
.mf-gallery.main-section::after {
    display: none;
}

.mf-gallery-wrap {
    position: relative;
    z-index: 1;
}

.mf-gallery-head {
    margin-bottom: 28px;
}

.mf-gallery-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5f5f6;
    color: #03717c;
    border: 1px solid rgba(3, 113, 124, 0.12);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mf-gallery-title {
    margin: 0 0 6px !important;
    color: #02252a !important;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.15;
    text-transform: none !important;
}

.mf-gallery-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #03717c, #21cff6);
}

.mf-gallery-route {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px auto 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #4a6a6e;
    font-size: 14px;
    font-weight: 600;
}

.mf-gallery-route i {
    color: #03717c;
    font-size: 13px;
}

.mf-gallery-route span {
    white-space: nowrap;
}

.mf-gallery-stage {
    background: #fff;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid #e4eef0;
    box-shadow: 0 16px 40px rgba(2, 37, 42, 0.08);
}

.mf-gallery-spotlight {
    position: relative;
    margin-bottom: 14px;
}

.mf-gallery-spotlight-link {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    background: #dfeaeC;
    box-shadow: 0 10px 28px rgba(2, 37, 42, 0.12);
}

.mf-gallery-spotlight-link img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, opacity 0.35s ease;
}

.mf-gallery-spotlight-link:hover img {
    transform: scale(1.03);
}

.mf-gallery-spotlight-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 37, 42, 0.78) 100%);
    pointer-events: none;
}

.mf-gallery-spotlight-meta {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.mf-gallery-spotlight-count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mf-gallery-spotlight-caption {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mf-gallery-strip-label {
    margin: 4px 2px 10px;
    color: #03717c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mf-gallery-carousel {
    position: relative;
    padding: 0 36px;
}

/* Theme owl adds empty padding under every carousel */
.mf-gallery-carousel .owl-stage-outer {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.mf-gallery-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.mf-gallery-shot {
    position: relative;
    display: block !important;
    width: 100%;
    height: 92px !important;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #eef4f5;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(2, 37, 42, 0.08);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mf-gallery-shot img {
    width: 100%;
    height: 92px !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: saturate(0.9);
}

.mf-gallery-shot.is-active {
    border-color: #03717c;
    box-shadow: 0 8px 18px rgba(3, 113, 124, 0.2);
    transform: translateY(-2px);
}

.mf-gallery-shot.is-active img {
    filter: none;
}

.mf-gallery-shot:hover {
    border-color: rgba(3, 113, 124, 0.45);
    transform: translateY(-2px);
}

.mf-gallery-shot:hover img {
    transform: scale(1.05);
    filter: none;
}

.mf-gallery-veil,
.mf-gallery-caption {
    display: none;
}

.mf-gallery-carousel .owl-nav {
    position: absolute !important;
    inset: 0;
    max-width: none !important;
    height: auto !important;
    top: 0 !important;
    margin: 0;
    pointer-events: none;
}

.mf-gallery-carousel .owl-nav::after {
    display: none !important;
}

/* Beat theme .owl-carousel .owl-nav button.* padding (16px 24px) that squashes circles */
.mf-gallery-carousel.owl-carousel .owl-nav button.owl-prev,
.mf-gallery-carousel.owl-carousel .owl-nav button.owl-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #03717c !important;
    color: #fff !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0 !important;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(3, 113, 124, 0.25);
    transition: background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 5;
}

.mf-gallery-carousel.owl-carousel .owl-nav button.owl-prev {
    left: 0 !important;
    right: auto !important;
}

.mf-gallery-carousel.owl-carousel .owl-nav button.owl-next {
    right: 0 !important;
    left: auto !important;
}

.mf-gallery-carousel.owl-carousel .owl-nav button.owl-prev:hover,
.mf-gallery-carousel.owl-carousel .owl-nav button.owl-next:hover {
    background: #025960 !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.mf-gallery-arrow {
    font-size: 20px !important;
    line-height: 1 !important;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-weight: 700;
}

.mf-gallery-carousel .owl-dots {
    display: none !important;
}

@media screen and (max-width: 991px) {
    .mf-gallery-title {
        font-size: 26px !important;
    }

    .mf-gallery-route {
        display: inline-flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: auto;
        max-width: 100%;
        margin: 14px auto 0;
        padding: 10px 14px;
        border-radius: 999px;
        background: #e5f5f6;
        border: 1px solid rgba(3, 113, 124, 0.18);
        box-shadow: none;
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: #02252a;
        line-height: 1.2;
    }

    .mf-gallery-route span {
        white-space: nowrap;
        display: inline;
        width: auto;
        text-align: center;
    }

    .mf-gallery-route i {
        margin: 0;
        font-size: 12px;
        color: #03717c;
        flex: 0 0 auto;
    }

    .mf-gallery-spotlight-link {
        min-height: 280px;
    }

    .mf-gallery-spotlight-link img {
        height: 300px;
    }

    .mf-gallery-spotlight-caption {
        font-size: 17px;
    }

    .mf-gallery-shot,
    .mf-gallery-shot img {
        height: 78px !important;
    }
}

@media screen and (max-width: 575px) {
    .mf-gallery-head {
        padding: 0 8px;
    }

    .mf-gallery-route {
        gap: 6px;
        padding: 9px 12px;
        font-size: 11px;
        max-width: calc(100% - 8px);
    }

    .mf-gallery-route i {
        font-size: 11px;
    }

    .mf-gallery-stage {
        padding: 10px;
        border-radius: 14px;
    }

    .mf-gallery-spotlight-link,
    .mf-gallery-spotlight-link img {
        min-height: 230px;
        height: 230px;
        border-radius: 12px;
    }

    .mf-gallery-spotlight-meta {
        left: 12px;
        right: 12px;
        bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .mf-gallery-spotlight-caption {
        text-align: left;
        font-size: 16px;
    }

    .mf-gallery-carousel {
        padding: 0 30px;
    }

    .mf-gallery-carousel.owl-carousel .owl-nav button.owl-prev,
    .mf-gallery-carousel.owl-carousel .owl-nav button.owl-next {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }

    .mf-gallery-shot,
    .mf-gallery-shot img {
        height: 64px !important;
        border-radius: 8px;
    }
}

/* ===== Daily Voyages schedule ===== */
.voyage-section.testimonial {
    position: relative;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-attachment: scroll;
}

.voyage-section.testimonial::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 37, 42, 0.55);
    z-index: 0;
}

@media screen and (max-width: 991px) {
    .voyage-section.testimonial::before {
        background: rgba(2, 37, 42, 0.68);
    }
}

.voyage-section > .container-fluid {
    position: relative;
    z-index: 1;
}

.voyage-section .mf-section-head {
    margin-bottom: 28px;
}

.voyage-section .mf-section-kicker {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(229, 245, 246, 0.16);
    color: #e8f8f9;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.voyage-section .mf-section-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    text-transform: none !important;
}

.voyage-section .mf-section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #7fd4db, #21cff6);
}

.voyage-section .mf-section-sub {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    margin: 12px auto 0;
    letter-spacing: 0.03em;
    line-height: 1.4;
    max-width: 100%;
    padding: 0 8px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
    position: relative;
    z-index: 2;
}

/* legacy voyage heading selectors */
.voyage-section .voyage-heading h2 {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    margin-bottom: 8px;
}

.voyage-section .voyage-subtitle {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    margin-bottom: 28px;
    letter-spacing: 0.04em;
}

.voyage-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.35);
    width: 100%;
    height: 100%;
}

.voyage-section .voyage-panels-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -12px;
    margin-right: -12px;
}

.voyage-section .voyage-panel {
    display: flex;
    flex-direction: column;
    padding-left: 12px;
    padding-right: 12px;
    float: none;
}

.voyage-section .voyage-panel .voyage-card {
    margin: 0;
}

.voyage-card-title {
    margin: 0;
    padding: 12px 14px;
    background: #03717c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

.voyage-table {
    margin: 0;
    background: #fff;
}

.voyage-table thead th {
    background: #0a5f68;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border: none !important;
    padding: 10px 8px !important;
    vertical-align: middle;
    white-space: nowrap;
}

.voyage-table thead th.voyage-th-wrap {
    white-space: normal;
    line-height: 1.25;
}

.voyage-table tbody td {
    font-size: 14px;
    font-weight: 600;
    color: #12343b;
    padding: 10px 8px !important;
    border-color: #d7e6e8 !important;
    vertical-align: middle;
}

.voyage-table tbody tr:nth-child(even) {
    background: #f3fafb;
}

.voyage-table tbody tr:hover {
    background: #e5f5f6;
}

.voyage-table .trip-no {
    display: inline-block;
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 14px;
    background: #03717c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

@media screen and (min-width: 992px) {
    .contact-section {
        padding-bottom: 70px;
    }

    .contact-section .thm-h {
        margin-bottom: 35px;
    }

    .contact-section .contact-card {
        padding: 26px 24px 22px;
    }

    .contact-section .y-contact .border-right {
        border-right: none !important;
    }

    .voyage-table tbody td {
        font-size: 14px;
        padding: 11px 10px !important;
    }

    .voyage-table thead th {
        font-size: 11px;
        padding: 10px 10px !important;
    }
}

@media screen and (max-width: 991px) {

    /*
     * The theme hides the whole menu below 992px and the original hamburger
     * button was removed from the markup, leaving mobile users with no
     * navigation. Provide a standard hamburger toggle instead.
     */
    .mobile-nav-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-self: center;
        width: 42px;
        height: 42px;
        padding: 9px 8px;
        margin: 0 15px 0 0;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-nav-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: transform .3s ease, opacity .3s ease;
    }

    .mobile-nav-btn span + span {
        margin-top: 6px;
    }

    /* hamburger turns into an X when the menu is open */
    .mobile-nav-checkbox:checked ~ .mobile-nav-btn span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-nav-checkbox:checked ~ .mobile-nav-btn span:nth-child(2) {
        opacity: 0;
    }

    .mobile-nav-checkbox:checked ~ .mobile-nav-btn span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* menu panel: hidden until the hamburger is tapped */
    .main_nav_outer {
        display: none;
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding: 0;
    }

    .mobile-nav-checkbox:checked ~ .main_nav_outer {
        display: block;
    }

    .menu-1 .main_nav,
    .menu-2 .main_nav {
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 4px 0 10px;
        background: rgba(2, 37, 42, 0.55);
    }

    .menu-1-inner .dropdown {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        text-align: center;
    }

    .menu-1-inner a:not(.dropdown-item) {
        display: block;
        width: 100%;
        padding: 13px 15px;
        font-size: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .menu-1-inner .menu-1-logo {
        padding-left: 10px;
        min-height: 0;
    }

    .menu-1-inner a.navbar-brand,
    .site-brand {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .site-brand-text {
        font-size: 16px;
    }

    .site-brand-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .menu-1-inner a.navbar-brand h3 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .site-nav-cta-wrap {
        margin: 8px 15px 4px;
        width: auto;
    }

    .site-nav-cta {
        margin-left: 0 !important;
        text-align: center;
        border-radius: 4px;
        border-top: none !important;
    }

    .site-main-nav .nav-link:not(.site-nav-cta)::after {
        display: none;
    }

    .site-main-nav {
        justify-content: stretch;
        align-items: stretch;
    }

    /* keep the taller two-row bar readable over the hero image */
    .menu-2 > div,
    .mf-topnav .mf-topnav-inner {
        background: rgba(2, 37, 42, 0.92);
    }

    /* hero heading on the home page — compact, no empty space under CTAs */
    .header-home-2,
    .header-home-2.site-hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 72px 15px 16px !important;
        display: block !important;
        align-items: stretch !important;
        background-attachment: scroll;
    }

    .header-home-2.site-hero .site-hero-overlay {
        background: linear-gradient(180deg, rgba(2, 37, 42, 0.42) 0%, rgba(2, 37, 42, 0.18) 55%, rgba(2, 37, 42, 0.28) 100%);
    }

    .header-home-2 .header-cont,
    .header-home-2.site-hero .header-cont {
        max-width: 100%;
        margin: 0 auto !important;
        padding: 0;
        text-align: center;
    }

    .header-home-2 .header-cont h1,
    .header-home-2.site-hero h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.25;
        text-align: center;
        margin-bottom: 10px;
    }

    .header-home-2.site-hero h1 span {
        display: block;
        margin-top: 4px;
    }

    .site-hero-brand {
        margin-bottom: 12px;
        font-size: 11px !important;
        padding: 5px 10px;
    }

    .site-hero-brand,
    .site-hero-sub {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .site-hero-sub {
        font-size: 13px !important;
        max-width: 320px;
        margin-bottom: 16px !important;
        line-height: 1.4 !important;
    }

    .site-hero-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        margin: 0;
        padding: 0;
    }

    .site-hero-btn {
        width: auto;
        min-width: 120px;
        min-height: 36px;
        padding: 7px 16px;
        font-size: 13px;
        margin: 0;
    }

    /* breadcrumb headers (terms, contact) */
    .header-inner .header-cont {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* DAILY VOYAGES section */
    .voyage-section .mf-section-title {
        font-size: 26px !important;
    }

    .voyage-section .mf-section-sub {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff !important;
        font-size: 13px !important;
        font-weight: 600;
        line-height: 1.45;
        margin: 12px auto 0 !important;
        max-width: 92%;
        padding: 6px 10px;
        border-radius: 8px;
        background: rgba(2, 37, 42, 0.45);
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
        white-space: normal;
        word-break: break-word;
    }

    .voyage-section .voyage-heading h2 {
        font-size: 26px;
    }

    .voyage-section .voyage-subtitle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #fff !important;
        font-size: 13px;
        margin-bottom: 18px;
    }

    .voyage-card-title {
        font-size: 14px;
        padding: 11px;
    }

    .voyage-section .voyage-panel {
        margin-bottom: 16px !important;
    }

    .voyage-section .voyage-panel:last-child {
        margin-bottom: 0 !important;
    }

    /* Fit schedule fully on screen — no horizontal scroll */
    .voyage-section .table-responsive {
        overflow-x: visible !important;
        -webkit-overflow-scrolling: auto;
    }

    .voyage-table {
        table-layout: fixed;
        width: 100%;
        min-width: 0 !important;
    }

    .voyage-table thead th {
        font-size: 11px;
        line-height: 1.25;
        padding: 8px 4px !important;
        letter-spacing: 0.01em;
        white-space: nowrap;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .voyage-table thead th.voyage-th-wrap {
        white-space: normal;
        line-height: 1.2;
        word-break: normal;
    }

    .voyage-table tbody td {
        font-size: 13px;
        font-weight: 600;
        padding: 8px 2px !important;
        white-space: nowrap;
    }

    .voyage-table .trip-no {
        min-width: 22px;
        padding: 2px 5px;
        font-size: 11px;
    }

    /* Keep Trips narrow; give bus column a bit more room */
    .voyage-table th:first-child,
    .voyage-table td:first-child {
        width: 16%;
    }

    .voyage-table th.voyage-th-wrap {
        width: 30%;
    }

    .h2-book-section .mf-booknow-card .form-control {
        height: auto !important;
        min-height: 40px;
        line-height: 1.4;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px !important;
    }

    .h2-book-section .mf-booknow-card select.form-control option {
        color: #12343b;
        background: #fff;
    }
}

@media screen and (max-width: 767px) {

    /* fare / voyage tables: let long fare text wrap instead of overflowing */
    .details .table td,
    .details .table th {
        white-space: normal !important;
        font-size: 14px;
        padding: 8px 6px;
    }

    .h2-book-section .fare-card {
        margin-bottom: 8px;
    }

    .h2-book-section .fare-card-title {
        font-size: 17px;
    }

    .h2-book-section .fare-table thead th {
        font-size: 11px;
        padding: 9px 12px !important;
    }

    .h2-book-section .fare-table tbody td {
        padding: 10px 12px !important;
        font-size: 13px;
    }

    .h2-book-section .fare-class {
        font-size: 13px;
        width: 34%;
    }

    .h2-book-section .fare-amount {
        font-size: 14px;
    }

    .h2-book-section .fare-note {
        font-size: 10px;
    }

    .details {
        overflow-x: visible;
    }

    /* notice marquee bar */
    .notice-bar {
        min-height: 42px;
        flex-wrap: nowrap;
    }

    .notice-bar-label {
        padding: 0 14px;
        font-size: 12px;
        gap: 6px;
    }

    .notice-bar-label::after {
        right: -8px;
        width: 14px;
    }

    .notice-bar-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
    }

    .notice-item {
        font-size: 13px;
        padding: 0 22px 0 16px;
    }

    /* book panels stack on mobile */
    .h2-book-section .book-panel {
        margin-bottom: 16px !important;
    }

    .h2-book-section .fare-card,
    .h2-book-section .mf-booknow-card {
        min-height: 0;
        margin-top: 0;
    }

    .h2-book-section .mf-booknow-card {
        background: rgba(12, 16, 20, 0.14) !important;
    }

    .h2-book-section .mf-booknow-form {
        padding: 16px;
    }

    .h2-book-section .mf-booknow-header {
        padding: 14px 16px;
    }

    .h2-book-section .mf-booknow-header h4 {
        font-size: 17px;
    }

    .h2-book-section .mf-booknow-card .form-control {
        font-size: 14px !important;
        min-height: 40px;
    }

    .writing-sec {
        padding: 25px 15px;
    }

    .half-section .half-left.jumbotron,
    .half-section .half-right.jumbotron {
        min-height: 240px;
    }

    /* contact cards stack cleanly on phones */
    .y-contact .border-right {
        border-right: none !important;
    }

    .y-contact_inner {
        margin-bottom: 25px;
    }

    .contact-section .contact-card {
        margin-bottom: 16px;
        height: auto;
        padding: 18px 16px;
    }

    .contact-section .contact-card h3 {
        font-size: 17px;
    }

    .contact-section .contact-line {
        font-size: 14px;
    }

    /* ticket / payment receipt tables */
    #printMe .widget-main .row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        margin-right: 0;
    }

    #printMe .table td,
    #printMe .table td p {
        font-size: 15px !important;
    }

    /* Inner pages: compact top spacing under single-row hamburger header */
    main.y-inner_page {
        padding-top: 0;
        margin-top: 0;
    }

    /* Terms / contact banner was using 14rem top padding — too tall on phones */
    .header-inner {
        padding-top: 70px;
        padding-bottom: 20px;
        margin-bottom: 1rem;
        min-height: 0;
    }

    .header-inner .y-breadcrum {
        margin-bottom: 0;
    }

    .header-inner .y-breadcrum h1,
    .header-inner .y-breadcrum .y-heading {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .header-inner .y-breadcrum ul {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .header-inner .header-cont::before {
        display: none;
    }

    /* Terms content section */
    .y-inner_page .main-section,
    .y-inner_page .half-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .y-inner_page .writing-sec {
        padding: 10px 5px 20px;
    }

    .y-inner_page .img-sec {
        padding: 0 5px;
        margin-bottom: 12px;
    }

    .y-inner_page .our-condition {
        padding-left: 18px;
        margin-bottom: 0;
    }

    .y-inner_page .our-condition li {
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 1.5;
    }
}
