/*
   Galapagos Dream Travel - Expedition Booking Interface
   Premium island expedition desk: pale water surfaces, deep ink text, and precise teal booking signals.
*/

:root {
    /* Base Palette */
    --bg-main: #f3fbfa;
    --bg-card: #ffffff;
    
    /* Brand Colors */
    --brand-navy: #eef7f5;
    --brand-slate: #c4d5d2;
    
    /* Accents & Signals */
    --accent-blue: #00796f;
    --accent-blue-bright: #00645c;
    --accent-blue-glow: rgba(0, 121, 111, 0.28);
    --accent-green: #6B8E23;
    --alert-red: #e03131;
    
    /* Typography */
    --text-main: #090e12;
    --text-primary: #142026;
    --text-muted: #45605c;
    --text-inverse: #e6f7f5;
    --text-on-signal: #ffffff;
    
    /* Surfaces */
    --surface-soft: #f3fbfa;
    --surface-white: #ffffff;
    --deep-ink: #090e12;
    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(9, 14, 18, 0.14);
    
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Animation & Timing */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --focus-ring: 0 0 0 3px rgba(77, 242, 222, 0.34);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    width: 100%;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-darkest);
    color: var(--accent-bright);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--accent-bright);
    outline-offset: 2px;
}

body.scroll-locked {
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-slate);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Global Typography */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.modal-container:focus,
.modal-voyage-title:focus {
    outline: none;
    box-shadow: none;
}

/* Buttons */
.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 10px 22px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.btn-primary-outline:hover {
    background: var(--accent-blue);
    color: var(--text-on-signal);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

.btn-signal-fill {
    background: var(--accent-blue);
    border: none;
    color: var(--text-on-signal);
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 121, 111, 0.18);
    transition: var(--transition-smooth);
}
.btn-signal-fill:hover {
    background: var(--accent-blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-blue-glow);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.btn-glass:hover {
    background: rgba(230, 247, 245, 0.12);
    border-color: rgba(77, 242, 222, 0.38);
    transform: translateY(-2px);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    min-width: 44px;
    min-height: 44px;
}
.main-header .btn-icon {
    color: var(--text-inverse);
}
.btn-icon:hover {
    background: rgba(9, 14, 18, 0.06);
    color: var(--accent-blue);
}
.main-header .btn-icon:hover {
    background: rgba(230, 247, 245, 0.12);
    color: var(--accent-blue-bright);
}

.btn-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent-blue);
    color: var(--text-on-signal);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 121, 111, 0.5);
}

.request-list-btn {
    gap: 7px;
    border: 1px solid rgba(77, 242, 222, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    min-width: auto;
    min-height: 38px;
    font-weight: 700;
    line-height: 1;
}

.request-list-btn i {
    width: 18px;
    height: 18px;
}

.main-header .request-list-btn {
    color: #4df2de;
}

.main-header .request-list-btn:hover {
    border-color: #4df2de;
    background: rgba(77, 242, 222, 0.1);
}

.request-list-btn .request-list-label {
    font-size: 0.875rem;
}

.request-list-btn > i,
.request-list-btn > svg,
.request-list-btn .request-list-label {
    transform: translateY(3px);
}

.request-list-btn .badge {
    top: -6px;
    right: -6px;
    min-width: 15px;
    height: 15px;
    font-size: 0.625rem;
    box-shadow: 0 0 0 2px rgba(8, 12, 16, 0.9);
}

/* Header styling */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, rgba(8, 12, 16, 0.92) 0%, rgba(8, 12, 16, 0) 100%);
    padding: calc(16px + env(safe-area-inset-top)) 0 16px;
    border-bottom: 1px solid color-mix(in srgb, var(--text-inverse) 30%, transparent);
}
.main-header.scrolled {
    background: rgba(8, 12, 16, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
}

.main-header.scrolled .request-list-btn {
    gap: 6px;
    padding: 7px 11px;
    min-height: 34px;
}

.main-header.scrolled .request-list-btn i {
    width: 17px;
    height: 17px;
}

.main-header.scrolled .request-list-btn .request-list-label {
    font-size: 0.875rem;
}

.main-header.scrolled .request-list-btn .badge {
    top: -5px;
    right: -5px;
}
.main-header.solid {
    background: rgba(8, 12, 16, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    gap: 24px;
    min-width: 0;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: 2px;
    min-width: 0;
    flex-shrink: 1;
    line-height: 1.05;
    white-space: nowrap;
}
.logo-accent {
    color: #05c4b0;
}
.logo-sub {
    font-size: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 300;
    letter-spacing: 4px;
    display: inline-block;
    margin-left: 2px;
    color: color-mix(in srgb, var(--text-inverse) 80%, transparent);
}

.nav-links {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
    flex-shrink: 0;
    transform: translateY(3px);
}
.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: var(--text-inverse);
    position: relative;
    padding: 5px 0;
}
.nav-links a:hover {
    color: #4df2de;
}
.nav-links a.active {
    color: var(--text-inverse);
    font-weight: 600;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.active::after {
    width: 100%;
    background: #4df2de;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-nav-panel {
    max-width: calc(100% - 32px);
    margin: 14px auto 0;
    padding: 12px;
    background: rgba(8, 12, 16, 0.97);
    border: 1px solid var(--brand-slate);
    border-radius: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.mobile-nav-panel[hidden] {
    display: none;
}

.mobile-nav-panel a {
    display: block;
    padding: 14px 12px;
    color: var(--text-inverse);
    border-radius: 6px;
    font-weight: 500;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a:focus-visible {
    background: var(--brand-navy);
    color: var(--accent-blue);
}

.main-header .btn-primary-outline {
    border-color: #05c4b0;
    color: #4df2de;
}

.main-header .btn-primary-outline:hover {
    background: #05c4b0;
    color: #080c10;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: min(82vh, 780px);
    min-height: 660px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 110px clamp(20px, 5vw, 48px) 42px;
    background: url('assets/galapagos_hero.jpg') no-repeat center center/cover;
    overflow: hidden;
}
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(8, 12, 16, 0.36) 0%,
        rgba(8, 12, 16, 0.7) 60%,
        rgba(8, 12, 16, 0.98) 100%
    );
    z-index: 1;
}

.hero-content {
    color: var(--text-inverse);
    position: relative;
    z-index: 2;
    width: min(100%, 960px);
    max-width: 960px;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: #4df2de;
    display: block;
    margin-bottom: 20px;
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--text-inverse);
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-tagline {
    font-size: 1.125rem;
    color: color-mix(in srgb, var(--text-inverse) 76%, transparent);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: pretty;
}

.hero-actions-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-decision-strip {
    margin: 34px auto 0;
    width: min(100%, 980px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(8, 12, 16, 0.78);
    border: 1px solid color-mix(in srgb, var(--text-inverse) 14%, transparent);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    overflow: hidden;
}

.hero-decision-item {
    padding: 16px 18px;
    text-align: left;
    border-right: 1px solid color-mix(in srgb, var(--text-inverse) 12%, transparent);
    min-width: 0;
}

.hero-decision-item:last-child {
    border-right: none;
}

.hero-decision-item span {
    display: block;
    color: color-mix(in srgb, var(--text-inverse) 76%, transparent);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.hero-decision-item strong {
    display: block;
    color: var(--text-inverse);
    font-size: 1rem;
    line-height: 1.3;
    overflow-wrap: break-word;
}

/* Keep the desktop landing view information-dense without reducing browser text zoom. */
@media (min-width: 1200px) {
    .hero-section {
        height: min(72vh, 680px);
        min-height: 570px;
        padding: 92px clamp(20px, 4vw, 48px) 32px;
    }

    .hero-content {
        width: min(100%, 1040px);
        max-width: 1040px;
    }

    .hero-subtitle {
        margin-bottom: 14px;
    }

    .hero-title {
        margin-right: auto;
        margin-bottom: 18px;
        margin-left: auto;
        font-size: clamp(3rem, 4.4vw, 3.8rem);
        line-height: 1.08;
    }

    .hero-tagline {
        max-width: 840px;
        margin-bottom: 26px;
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero-actions-container {
        gap: 16px;
    }

    .hero-decision-strip {
        margin-top: 24px;
    }

    .hero-decision-item {
        padding: 13px 16px;
    }
}

/* Float Search Panel */
.search-panel-container {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    z-index: 5;
    display: flex;
    justify-content: center;
    padding: 0 40px;
}

.search-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    padding: 24px 35px;
    display: flex;
    align-items: flex-end;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 2px rgba(255,255,255,0.1);
    transform: translateY(0);
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.search-field label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}
.search-field label i {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

.search-field select {
    background: var(--bg-card);
    border: 1px solid var(--brand-slate);
    color: var(--text-primary);
    padding: 14px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2305c4b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.search-field select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 121, 111, 0.15);
}

.btn-search {
    background: var(--accent-blue);
    border: none;
    color: var(--text-on-signal);
    padding: 14px 30px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    transition: var(--transition-smooth);
}
.btn-search:hover {
    background: var(--accent-blue-bright);
    box-shadow: 0 0 15px var(--accent-blue-glow);
}

/* Explorer Section */
.explorer-section {
    width: 100%;
    min-width: 0;
    padding: 90px 40px 100px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.explorer-heading {
    margin-bottom: 34px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    text-wrap: pretty;
}

.inline-status {
    max-width: 880px;
    margin: 0 auto 28px;
    padding: 14px 16px;
    background: rgba(0, 121, 111, 0.1);
    border: 1px solid rgba(0, 121, 111, 0.32);
    border-radius: 8px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Keep itinerary card titles visually consistent across generated detail pages. */
.info-card > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--brand-slate);
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1.25rem;
}

.info-card > h2 i {
    color: var(--accent-blue);
}

.expedition-header-overlay .expedition-name-title {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.12;
}

/* Tab controls styling */
.explorer-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 38px;
}

.tab-list {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--brand-slate);
    padding: 6px;
    border-radius: 40px;
    position: relative;
    gap: 5px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

.tab-btn i {
    width: 18px;
    height: 18px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--text-on-signal);
}

/* Sliding active tab indicator */
.tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: var(--accent-blue);
    border-radius: 30px;
    z-index: 1;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 10px rgba(0, 121, 111, 0.18);
}

/* Panels */
.grid-panel {
    display: none;
}
.grid-panel.active {
    display: block;
    animation: fadeIn 0.6s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

@media (max-width: 1100px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Destination Card Styles */
.card-item {
    background: var(--bg-card);
    border: 1px solid var(--brand-slate);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition-smooth);
    position: relative;
    min-width: 0;
}

.card-item.clickable-card {
    cursor: pointer;
}

.card-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: 1px solid var(--accent-blue);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}
.card-item:hover::after {
    opacity: 1;
}

.card-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.mobile-nav-panel .mobile-nav-action {
    min-height: 44px;
    margin-top: 8px;
}

body.mobile-nav-open {
    overflow: hidden;
}
.card-item:hover .card-img-wrapper > img {
    transform: scale(1.06);
}

.ship-card-gallery-count,
.itinerary-card-gallery-count {
    position: absolute;
    top: 15px;
    right: 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 30px;
    background: rgba(8, 12, 16, 0.88);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 600;
}

.ship-card-gallery-count i,
.itinerary-card-gallery-count i {
    width: 14px;
    height: 14px;
    color: #4df2de;
}

.itinerary-card-gallery-count {
    top: auto;
    bottom: 15px;
}

.itinerary-offer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 6px;
    background: #05c4b0;
    color: #080c10;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.itinerary-offer-badge i {
    width: 15px;
    height: 15px;
    stroke-width: 2;
}

.expedition-gallery-open {
    width: fit-content;
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(230, 247, 245, 0.72);
    border-radius: 6px;
    background: rgba(8, 12, 16, 0.78);
    color: var(--text-inverse);
    font: 600 0.92rem var(--font-primary);
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.expedition-gallery-open[hidden] {
    display: none;
}

.expedition-gallery-open:hover {
    background: rgba(8, 12, 16, 0.94);
    border-color: #4df2de;
    transform: translateY(-1px);
}

.expedition-gallery-open:focus-visible,
.expedition-gallery-close:focus-visible,
.expedition-gallery-nav:focus-visible,
.expedition-gallery-thumbnail:focus-visible {
    outline: 3px solid #4df2de;
    outline-offset: 3px;
}

.expedition-gallery-open i {
    width: 18px;
    height: 18px;
    color: #4df2de;
}

.expedition-gallery-dialog {
    position: fixed;
    inset: 0;
    width: min(1180px, calc(100vw - 32px));
    max-width: 1180px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-inverse);
    overflow: hidden;
}

.expedition-gallery-dialog::backdrop {
    background: rgba(3, 7, 10, 0.88);
    backdrop-filter: blur(8px);
}

body.expedition-gallery-is-open {
    overflow: hidden;
}

.expedition-gallery-shell {
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    background: #080c10;
    border-radius: 12px;
    overflow: hidden;
}

.expedition-gallery-header {
    min-height: 78px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #24303d;
}

.expedition-gallery-header p {
    margin: 0 0 3px;
    color: #9db6b2;
    font-size: 0.75rem;
    font-weight: 600;
}

.expedition-gallery-header h2 {
    margin: 0;
    color: #e6f7f5;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    line-height: 1.2;
}

.expedition-gallery-close,
.expedition-gallery-nav {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #3a4b59;
    border-radius: 6px;
    background: #161e27;
    color: #e6f7f5;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.expedition-gallery-close:hover,
.expedition-gallery-nav:hover {
    background: #24303d;
    border-color: #05c4b0;
}

.expedition-gallery-close i,
.expedition-gallery-nav i {
    width: 22px;
    height: 22px;
}

.expedition-gallery-viewer {
    min-height: 0;
    padding: 18px 20px 14px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 16px;
}

.expedition-gallery-figure {
    min-width: 0;
    margin: 0;
}

.expedition-gallery-figure > img {
    width: 100%;
    height: min(58vh, 620px);
    display: block;
    object-fit: contain;
    background: #03070a;
    border-radius: 8px;
}

.expedition-gallery-figure figcaption {
    padding: 12px 2px 0;
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: 24px;
    color: #c6dad7;
}

.expedition-gallery-figure figcaption > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
}

.expedition-gallery-figure strong {
    color: #e6f7f5;
    font-size: 1rem;
}

.expedition-gallery-figure span {
    color: #9db6b2;
    font-size: 0.875rem;
}

.expedition-gallery-figure p {
    max-width: 70ch;
    margin: 0;
    color: #c6dad7;
    font-size: 0.875rem;
    line-height: 1.5;
}

.expedition-gallery-thumbnails {
    padding: 0 20px 14px;
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scrollbar-width: none;
}

.expedition-gallery-thumbnails::-webkit-scrollbar {
    display: none;
}

.expedition-gallery-thumbnail {
    width: 104px;
    height: 66px;
    padding: 0;
    flex: 0 0 auto;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #161e27;
    cursor: pointer;
}

.expedition-gallery-thumbnail[aria-current="true"] {
    border-color: #4df2de;
}

.expedition-gallery-thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.expedition-gallery-credit {
    margin: 0;
    padding: 0 20px 16px;
    color: #9db6b2;
    font-size: 0.75rem;
}

@media (max-width: 720px) {
    .expedition-gallery-dialog {
        width: 100vw;
        max-width: none;
        max-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .expedition-gallery-shell {
        min-height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .expedition-gallery-viewer {
        position: relative;
        grid-template-columns: minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .expedition-gallery-nav {
        position: absolute;
        top: 34%;
        z-index: 1;
        background: rgba(8, 12, 16, 0.86);
    }

    .expedition-gallery-prev {
        left: 20px;
    }

    .expedition-gallery-next {
        right: 20px;
    }

    .expedition-gallery-figure > img {
        height: auto;
        max-height: 42vh;
        aspect-ratio: 3 / 2;
        object-fit: cover;
    }

    .expedition-gallery-figure figcaption {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .expedition-gallery-thumbnails {
        padding-inline: 12px;
    }

    .expedition-gallery-credit {
        padding-inline: 12px;
    }
}

.ship-card-image-peek {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 7px;
}

.ship-card-peek-item {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 2px solid rgba(230, 247, 245, 0.9);
    border-radius: 7px;
    background: var(--brand-navy);
}

.ship-card-peek-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ship-card-peek-item.is-deck {
    background: #ffffff;
}

.ship-card-peek-item.is-deck img {
    object-fit: contain;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(8, 12, 16, 0.82);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    color: var(--text-inverse);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-badge i {
    width: 12px;
    height: 12px;
    color: #4df2de;
}

.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.card-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-meta i {
    width: 14px;
    height: 14px;
    color: var(--accent-blue);
}

.card-title {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    text-wrap: balance;
    overflow-wrap: break-word;
}
.card-item:hover .card-title {
    color: var(--accent-blue);
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.card-fact {
    background: var(--brand-navy);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 11px 12px;
    min-width: 0;
}

.card-fact span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.card-fact strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--brand-slate);
    gap: 16px;
}

.card-price {
    display: flex;
    flex-direction: column;
}
.card-price .price-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-price .price-was {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.card-price .price-was s {
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}
.card-price .price-val {
    font-size: 1.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--accent-blue);
    font-variant-numeric: tabular-nums;
}
.card-price .price-val span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
}

.btn-card-action {
    background: transparent;
    border: 1px solid var(--brand-slate);
    color: var(--text-primary);
    padding: 10px 18px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
    min-height: 44px;
    white-space: nowrap;
}
.card-item:hover .btn-card-action {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}
.btn-card-action:hover {
    background: var(--accent-blue) !important;
    color: var(--text-on-signal) !important;
}

/* Fleet Card Styles */
.ship-specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid var(--brand-slate);
    padding-top: 15px;
}
.ship-spec-item {
    display: flex;
    flex-direction: column;
}
.ship-spec-item span:first-child {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ship-spec-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-top: 2px;
}

/* Deal Card Specifics */
.deal-tag-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--accent-blue);
    color: var(--text-on-signal);
    font-weight: 600;
    text-align: center;
    font-size: 0.875rem;
    padding: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deal-discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e03131;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(230, 76, 46, 0.3);
}

/* Modal Overlay & Panel styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay[hidden],
.drawer-overlay[hidden] {
    display: none;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    max-height: 800px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(8, 12, 16, 0.74);
    border: 1px solid var(--glass-border);
    color: var(--text-inverse);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-smooth);
}
.modal-close:hover {
    background: var(--accent-blue);
    color: var(--text-on-signal);
    border-color: var(--accent-blue);
    transform: rotate(90deg);
}

.modal-body-split {
    display: flex;
    height: 100%;
}

.modal-graphic-pane {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--brand-slate);
    height: 100%;
    overflow: hidden;
}

.modal-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    flex-shrink: 0;
}
.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 12, 16, 0.1) 0%, rgba(8, 12, 16, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
}
.modal-badge-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 8px;
    font-weight: 600;
}
.modal-voyage-title {
    font-size: 2rem;
    color: var(--text-inverse);
}

.modal-subtab-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}

.subtab-pane {
    display: none;
}
.subtab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

/* Timeline/Itinerary Styling */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: var(--brand-slate);
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--brand-slate);
    transition: var(--transition-smooth);
}
.timeline-item:hover::before {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}
.timeline-item.active::before {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.timeline-day {
    font-size: 0.75rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
}
.timeline-port {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 6px;
}
.timeline-act {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
}

/* Ship details subpane */
.ship-details-subpane h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-main);
}
.ship-spec-desc {
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 25px;
}
.ship-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.ship-stat-card {
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 16px 20px;
    text-align: center;
}
.ship-stat-card .stat-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    display: block;
}
.ship-stat-card .stat-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Cabins Subpane list */
.cabins-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.cabin-type-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 16px 20px;
    transition: var(--transition-smooth);
    gap: 14px;
}
.cabin-type-row:hover {
    border-color: var(--accent-blue);
}
.cabin-type-row.selected {
    border-color: var(--accent-blue);
    background: rgba(0, 121, 111, 0.08);
}

.cabin-type-row.unavailable {
    background: rgba(127, 153, 149, 0.08);
    border-color: rgba(127, 153, 149, 0.3);
    cursor: not-allowed;
}

.cabin-type-row.unavailable:hover {
    border-color: rgba(127, 153, 149, 0.3);
}

.cabin-type-row.unavailable .cabin-type-name,
.cabin-type-row.unavailable .cabin-type-mult {
    color: var(--text-muted);
}

.cabin-type-row.unavailable .cabin-type-desc {
    color: rgba(230, 247, 245, 0.62);
}

.cabin-type-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cabin-type-name {
    font-weight: 600;
    color: var(--text-main);
}
.cabin-type-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 300;
}
.cabin-type-pricing {
    text-align: right;
}
.cabin-type-mult {
    font-size: 0.875rem;
    color: var(--accent-blue);
    font-weight: 500;
}

/* Right Pane: Booking Quote Engine */
.modal-booking-pane {
    flex: 0.9;
    background: var(--bg-card);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-booking-pane h4 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 10px;
}
.modal-booking-pane .pane-intro {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 300;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.form-group-row {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 15px;
}
.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.form-group select {
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2305c4b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.form-group select option {
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
}
.form-group select:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--focus-ring);
}

.booking-party-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
    margin: 0;
    text-wrap: pretty;
}

.booking-party-note a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.booking-party-note a:hover {
    color: var(--accent-blue-bright);
}

.pricing-summary {
    background: rgba(3, 8, 18, 0.4);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    margin-bottom: 30px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.price-row:last-child {
    margin-bottom: 0;
}
.price-row.total {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 600;
}
.price-row.total #summaryTotalPrice {
    color: var(--accent-blue);
    font-weight: 700;
}
.pricing-summary .divider {
    height: 1px;
    background: var(--brand-slate);
    margin: 15px 0;
}

.btn-book-submit {
    background: var(--accent-blue);
    color: var(--text-on-signal);
    border: none;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
    min-height: 52px;
}
.btn-book-submit:hover {
    background: var(--accent-blue-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-blue-glow);
}

/* Slide-out Drawer Panel (Cart/Reservations) */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 8, 18, 0.7);
    backdrop-filter: blur(8px);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-container {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 460px;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-overlay.open .drawer-container {
    transform: translateX(0);
}

.drawer-header {
    padding: 30px;
    border-bottom: 1px solid var(--brand-slate);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.drawer-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

.drawer-body {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 30px;
}

/* Booking confidence and verified parent-company proof */
.booking-confidence {
    background: var(--deep-ink);
    color: var(--text-inverse);
    padding: clamp(64px, 8vw, 112px) 24px;
}

.booking-confidence__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.booking-confidence__intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    column-gap: clamp(40px, 7vw, 96px);
    align-items: start;
}

.booking-confidence__intro h2 {
    max-width: 15ch;
    margin-top: 8px;
    font-size: clamp(2rem, 4.2vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.booking-confidence__copy {
    padding-top: 2px;
}

.booking-confidence__copy p {
    max-width: 66ch;
    color: #c5d8d4;
    line-height: 1.7;
}

.booking-confidence__label {
    color: #4df2de;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-confidence__operators {
    margin-top: 12px;
    font-weight: 600;
}

.booking-confidence__steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(48px, 7vw, 84px) 0;
    border-top: 1px solid rgba(230, 247, 245, 0.22);
    border-bottom: 1px solid rgba(230, 247, 245, 0.22);
}

.booking-confidence__steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 16px;
    padding: 30px clamp(20px, 3vw, 36px);
}

.booking-confidence__steps li + li {
    border-left: 1px solid rgba(230, 247, 245, 0.22);
}

.booking-confidence__steps li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 700;
}

.booking-confidence__steps strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.booking-confidence__steps p,
.parent-review-proof__summary > p,
.parent-review-proof cite,
.booking-confidence__terms {
    color: #b7cbc7;
    line-height: 1.6;
}

.parent-review-proof {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(36px, 6vw, 80px);
}

.parent-review-proof__summary h3 {
    margin: 10px 0 14px;
    max-width: 17ch;
    font-size: clamp(1.75rem, 3vw, 3rem);
    line-height: 1.12;
    text-wrap: balance;
}

.parent-review-proof__summary a,
.booking-confidence__terms a {
    color: #4df2de;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.parent-review-proof__summary a {
    display: inline-block;
    margin-top: 20px;
}

.parent-review-proof__quotes blockquote {
    padding: 22px 0;
    border-top: 1px solid rgba(230, 247, 245, 0.22);
}

.parent-review-proof__quotes blockquote:last-child {
    border-bottom: 1px solid rgba(230, 247, 245, 0.22);
}

.parent-review-proof__quotes blockquote p {
    margin-bottom: 8px;
    color: #fff;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.35;
}

.parent-review-proof cite {
    font-size: 0.875rem;
    font-style: normal;
}

.booking-confidence__terms {
    max-width: 82ch;
    margin-top: 38px;
    font-size: 0.875rem;
}

.footer-company-note {
    max-width: 48ch;
    font-size: 0.875rem;
    line-height: 1.55;
}

.measurement-consent {
    position: fixed;
    z-index: 900;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: min(980px, calc(100% - 32px));
    padding: 18px 20px;
    background: #101820;
    color: #eefbf9;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.measurement-consent__copy strong {
    display: block;
    margin-bottom: 4px;
}

.measurement-consent__copy p {
    max-width: 68ch;
    color: #c8dad7;
    font-size: 0.875rem;
    line-height: 1.45;
}

.measurement-consent__copy a {
    color: #4df2de;
    text-decoration: underline;
}

.measurement-consent__actions {
    display: flex;
    flex-shrink: 0;
    gap: 10px;
}

.measurement-consent__actions button {
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 6px;
    font: 600 0.88rem var(--font-primary);
    cursor: pointer;
}

.measurement-consent__decline {
    border: 1px solid #6f8783;
    background: transparent;
    color: #eefbf9;
}

.measurement-consent__accept {
    border: 1px solid var(--accent-blue);
    background: var(--accent-blue);
    color: #fff;
}

@media (max-width: 760px) {
    .booking-confidence__intro,
    .parent-review-proof {
        grid-template-columns: 1fr;
    }

    .booking-confidence__intro h2 {
        max-width: 18ch;
        margin: 8px 0 18px;
    }

    .booking-confidence__steps {
        grid-template-columns: 1fr;
    }

    .booking-confidence__steps li + li {
        border-left: 0;
        border-top: 1px solid rgba(230, 247, 245, 0.22);
    }

    .measurement-consent {
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        transform: none;
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .measurement-consent__copy,
    .measurement-consent__actions {
        min-width: 0;
    }

    .measurement-consent__actions {
        flex-direction: column-reverse;
    }

    .measurement-consent__actions button {
        width: 100%;
        white-space: normal;
    }

    .expedition-header-overlay {
        padding: 24px;
    }

    .expedition-header-overlay .expedition-name-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }
}

.product-type-badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 10px;
    color: var(--accent-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.drawer-status {
    margin-bottom: 18px;
}

.drawer-status:empty {
    display: none;
}

.status-message,
.form-error {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.status-message {
    background: rgba(0, 121, 111, 0.1);
    border: 1px solid rgba(0, 121, 111, 0.28);
    color: var(--text-primary);
}

.status-message button {
    margin-top: 10px;
}

.form-error {
    background: rgba(230, 76, 46, 0.12);
    border: 1px solid rgba(230, 76, 46, 0.38);
    color: #9b1c1c;
    margin: -12px 0 18px;
}

.drawer-footer {
    padding: 30px;
    border-top: 1px solid var(--brand-slate);
    background: var(--bg-main);
}

.drawer-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-main);
}
.drawer-total-row #drawerTotalSum {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.25rem;
}
.w-full {
    width: 100%;
}

/* Booking Row Card inside Drawer */
.booked-item-card {
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: start;
}
.booked-item-card h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--text-main);
    grid-column: 1;
    margin-bottom: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-right: 0;
}
.booked-item-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    grid-column: 1;
    margin-bottom: 12px;
    min-width: 0;
}
.booked-item-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    font-size: 0.875rem;
    min-width: 0;
    grid-column: 1 / -1;
}
.booked-cabin {
    color: var(--accent-blue);
    font-weight: 500;
    min-width: 0;
    overflow-wrap: anywhere;
}
.booked-price {
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
    text-align: right;
}
.btn-delete-booking {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-grid;
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 28px;
    justify-self: end;
    place-items: center;
    transition: var(--transition-smooth);
    width: 28px;
}
.btn-delete-booking:hover {
    color: #e03131;
}

/* Reservation Request Modal */
.reservation-modal-overlay {
    z-index: 260;
}

.reservation-modal-container {
    background: #f7fbfa;
    border-color: rgba(0, 121, 111, 0.22);
    max-width: 1040px;
    height: auto;
    max-height: min(88vh, 760px);
    overflow: hidden;
}

.reservation-modal-container .modal-close {
    background: rgba(49, 77, 73, 0.12);
    border-color: rgba(49, 77, 73, 0.18);
    color: #263f3b;
}

.reservation-modal-container .modal-close:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-on-signal);
}

.reservation-modal-content {
    align-items: stretch;
    background: #f7fbfa;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    min-height: 520px;
}

.reservation-modal-summary {
    background:
        linear-gradient(145deg, rgba(230, 247, 245, 0.94), rgba(213, 238, 233, 0.88)),
        #e6f4f1;
    border-right: 1px solid rgba(0, 121, 111, 0.18);
    color: var(--text-main);
    padding: 38px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.reservation-kicker {
    color: #00796f;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.reservation-modal-summary h3 {
    color: var(--text-main);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    text-wrap: balance;
    margin-bottom: 12px;
}

.reservation-modal-summary > p:not(.reservation-kicker) {
    color: #385b56;
    line-height: 1.55;
    margin-bottom: 24px;
}

.reservation-request-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.reservation-summary-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 121, 111, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
}

.reservation-summary-item h5 {
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}

.reservation-summary-item p,
.reservation-summary-item span {
    color: #4a625e;
    display: block;
    font-size: 0.875rem;
    line-height: 1.35;
}

.reservation-summary-item strong {
    color: var(--accent-blue);
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.reservation-summary-empty {
    border: 1px dashed rgba(0, 121, 111, 0.28);
    border-radius: 10px;
    padding: 22px;
    color: #385b56;
    text-align: center;
}

.reservation-summary-empty i {
    color: var(--accent-blue);
    height: 34px;
    margin-bottom: 10px;
    width: 34px;
}

.reservation-modal-total {
    border-top: 1px solid rgba(0, 121, 111, 0.2);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 18px;
}

.reservation-modal-total span {
    color: #385b56;
}

.reservation-modal-total strong {
    color: var(--accent-blue);
    font-size: 1.25rem;
}

.reservation-request-form {
    background: #fbfefd;
    padding: 38px;
    overflow-y: auto;
}

.reservation-request-form h4 {
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.reservation-form-intro {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 22px;
    max-width: 58ch;
}

.field-required,
.field-optional {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-left: 6px;
    padding: 4px 7px;
    text-transform: none;
    vertical-align: middle;
}

.field-required {
    background: rgba(0, 121, 111, 0.12);
    color: var(--accent-blue);
}

.field-optional {
    background: rgba(49, 77, 73, 0.1);
    color: #314d49;
}

.reservation-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-white);
    border: 1px solid var(--brand-slate);
    border-radius: 6px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.45;
    padding: 12px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-group textarea {
    min-height: 112px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: var(--focus-ring);
}

.form-group textarea::placeholder {
    color: #4c6763;
}

.reservation-form-success {
    background: rgba(0, 121, 111, 0.12);
    border: 1px solid rgba(0, 121, 111, 0.34);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.45;
    margin: -8px 0 18px;
    padding: 12px 14px;
}

.reservation-form-actions {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.reservation-back-btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--brand-slate);
    border-radius: 6px;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 52px;
    padding: 14px 16px;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
    width: 100%;
}

.reservation-back-btn:hover,
.reservation-back-btn:focus-visible {
    background: rgba(0, 121, 111, 0.08);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    outline: none;
}

.reservation-back-btn:focus-visible {
    box-shadow: var(--focus-ring);
}

/* Footer Styling */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--brand-slate);
    margin-top: auto;
    padding: 56px 36px 24px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 0.8fr) 1.2fr;
    gap: 42px;
    margin-bottom: 36px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    letter-spacing: 1.6px;
    color: var(--text-main);
    margin-bottom: 14px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 18px;
    max-width: 320px;
}

.ship-card-detail-link {
    justify-content: center;
    text-decoration: none;
}

.ship-card .card-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
}

.ship-card-itineraries-link,
.card-item:hover .ship-card-itineraries-link {
    justify-content: center;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-on-signal);
    text-decoration: none;
}

.ship-card-itineraries-link:hover,
.ship-card-itineraries-link:focus-visible {
    background: var(--accent-blue-bright) !important;
    border-color: var(--accent-blue-bright);
    color: var(--text-on-signal) !important;
}

.ship-card:focus-within::after {
    opacity: 1;
}
.footer-contact {
    display: grid;
    gap: 6px;
    max-width: 360px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}
.social-links a:hover {
    color: var(--text-on-signal);
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue-glow);
    transform: translateY(-2px);
}
.social-links i {
    width: 18px;
    height: 18px;
}
.footer-contact-title {
    display: inline-flex;
    width: fit-content;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.footer-contact-title:hover {
    color: var(--accent-blue);
}
.footer-contact strong {
    color: var(--text-main);
    font-weight: 800;
}
.footer-contact a {
    color: var(--text-muted);
    overflow-wrap: anywhere;
}
.footer-contact a:hover {
    color: var(--accent-blue);
}
.footer-column h4 {
    font-size: 0.875rem;
    color: var(--text-main);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-column a {
    display: flex;
    align-items: center;
    min-height: 36px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 300;
}
.footer-column a:hover {
    color: var(--accent-blue);
    padding-left: 4px;
}
.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 15px;
    transition: var(--transition-smooth);
}
.newsletter-form:focus-within {
    border-color: var(--accent-blue);
}
.newsletter-form input {
    background: transparent;
    border: none;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    min-width: 0;
    width: 100%;
    outline: none;
}
.newsletter-form input[name="full_name"] {
    border-bottom: 1px solid var(--brand-slate);
}
.newsletter-form input::placeholder {
    color: #a8bfbb;
    opacity: 1;
}
.newsletter-form button {
    background: var(--brand-slate);
    border: none;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    grid-row: 1 / span 2;
    min-width: 54px;
    padding: 0 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.newsletter-form button:hover {
    background: var(--accent-blue);
    color: var(--text-on-signal);
}
.newsletter-form button:disabled {
    cursor: wait;
    opacity: 0.72;
}
.newsletter-status {
    min-height: 1.25rem;
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}
.newsletter-status[data-state="success"] {
    color: var(--accent-blue);
}
.newsletter-status[data-state="error"] {
    color: var(--alert-red);
}

.unsubscribe-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 140px 24px 70px;
    background:
        linear-gradient(rgba(8, 12, 16, 0.78), rgba(8, 12, 16, 0.94)),
        url('assets/galapagos_island.webp') center/cover no-repeat;
}
.unsubscribe-panel {
    width: min(100%, 620px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--brand-slate);
    border-radius: 12px;
    padding: clamp(28px, 5vw, 48px);
    color: var(--deep-ink);
}
.unsubscribe-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    background: rgba(0, 121, 111, 0.12);
    color: var(--accent-blue);
    border-radius: 8px;
}
.unsubscribe-icon svg {
    width: 28px;
    height: 28px;
}
.unsubscribe-kicker {
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.unsubscribe-panel h1 {
    color: var(--deep-ink);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.12;
    margin-bottom: 16px;
    text-wrap: balance;
}
.unsubscribe-panel p {
    color: #40534f;
    line-height: 1.65;
}
.unsubscribe-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}
.unsubscribe-form label {
    color: var(--deep-ink);
    font-size: 0.875rem;
    font-weight: 600;
}
.unsubscribe-form textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    background: var(--bg-main);
    border: 1px solid var(--brand-slate);
    border-radius: 6px;
    color: var(--text-primary);
    font: inherit;
    line-height: 1.5;
    padding: 14px;
    outline: none;
}
.unsubscribe-form textarea:focus-visible {
    box-shadow: var(--focus-ring);
}
.unsubscribe-form textarea::placeholder {
    color: #a8bfbb;
    opacity: 1;
}
.unsubscribe-form .btn-signal-fill {
    justify-content: center;
    width: fit-content;
}
.unsubscribe-form .btn-signal-fill:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}
.unsubscribe-status {
    min-height: 1.4rem;
    margin-top: 18px;
    font-size: 1rem;
}
.unsubscribe-status[data-state="success"] {
    color: var(--accent-blue);
}
.unsubscribe-status[data-state="error"] {
    color: var(--alert-red);
}
.unsubscribe-return {
    display: inline-flex;
    margin-top: 22px;
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--brand-slate);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 300;
}

/* Partners Section */
.partners-section {
    background: var(--bg-card);
    border-bottom: 1px solid var(--brand-slate);
    padding: 25px 40px;
}

.partners-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.partners-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.partners-logos {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.partner-logo i {
    width: 18px;
    height: 18px;
    color: var(--accent-blue);
}

.partner-logo:hover {
    color: var(--text-primary);
}

.no-results {
    background: var(--bg-card);
    border: 1px solid var(--brand-slate);
    border-radius: 12px;
    padding: 34px;
    text-align: center;
    color: var(--text-muted);
}

.no-results i {
    width: 34px;
    height: 34px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.no-results .btn-primary-outline {
    margin-top: 18px;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    color: var(--text-primary);
    font-weight: 500;
}

.pagination-controls[hidden] {
    display: none;
}

.pagination-controls span {
    min-width: 96px;
    text-align: center;
}

.pagination-controls .btn-primary-outline:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pagination-controls .btn-primary-outline:disabled:hover {
    background: transparent;
    color: var(--accent-blue);
}

.home-pagination-controls {
    padding-bottom: 4px;
}

/* Galapagos Planning Guide */
.guide-page {
    background: var(--bg-main);
}

.guide-page .main-header.solid:not(.scrolled) {
    background: rgba(8, 12, 16, 0.98);
}

.header-plan-link {
    white-space: nowrap;
}

.guide-hero {
    position: relative;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: end;
    padding: clamp(132px, 15vw, 188px) clamp(24px, 5vw, 72px) clamp(54px, 8vw, 86px);
    background:
        linear-gradient(90deg, rgba(8, 12, 16, 0.88) 0%, rgba(8, 12, 16, 0.68) 48%, rgba(8, 12, 16, 0.22) 100%),
        url('assets/guide-bartolome.jpg') center/cover no-repeat;
    color: var(--text-inverse);
}

.guide-hero-copy {
    max-width: 820px;
    min-width: 0;
}

.guide-kicker {
    color: var(--accent-blue);
    font: 800 0.82rem/1.2 var(--font-primary);
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.guide-hero .guide-kicker,
.guide-split-band .guide-kicker,
.guide-final-cta .guide-kicker {
    color: #4df2de;
}

.guide-hero h1 {
    color: var(--text-inverse);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    line-height: 1.04;
    letter-spacing: 0;
    margin-bottom: 24px;
    max-width: 900px;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.guide-hero p {
    color: rgba(230, 247, 245, 0.9);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.68;
    max-width: 720px;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.guide-hero-panel {
    align-self: stretch;
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto;
    min-height: 470px;
    min-width: 0;
    max-width: 100%;
    background: rgba(8, 12, 16, 0.72);
    border: 1px solid rgba(230, 247, 245, 0.22);
    border-radius: 12px;
    overflow: hidden;
}

.guide-hero-image {
    position: relative;
    min-height: 0;
}

.guide-hero-image img,
.wildlife-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.guide-hero-image img {
    object-position: 46% center;
}

.guide-background-credit,
.guide-inline-credit {
    margin: 0;
    color: rgba(230, 247, 245, 0.76);
    font-size: 0.75rem;
    line-height: 1.35;
}

.guide-background-credit {
    position: absolute;
    right: 72px;
    bottom: 14px;
    z-index: 2;
}

.guide-inline-credit {
    position: absolute;
    right: 10px;
    bottom: 9px;
    padding: 5px 7px;
    background: rgba(8, 12, 16, 0.78);
    border-radius: 4px;
}

.guide-background-credit a,
.guide-inline-credit a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-quick-facts {
    display: grid;
    gap: 0;
    min-width: 0;
}

.guide-quick-facts div {
    min-width: 0;
    padding: 18px 20px;
    border-top: 1px solid rgba(230, 247, 245, 0.18);
}

.guide-quick-facts dt {
    color: #4df2de;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.guide-quick-facts dd {
    color: rgba(230, 247, 245, 0.9);
    line-height: 1.45;
    margin: 0;
    overflow-wrap: anywhere;
}

.guide-anchor-band {
    position: sticky;
    top: 72px;
    z-index: 40;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--brand-slate);
    backdrop-filter: blur(14px);
}

.guide-anchor-band a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 121, 111, 0.18);
    border-radius: 30px;
    color: var(--text-primary);
    font-weight: 700;
    padding: 8px 14px;
}

.guide-anchor-band a:hover,
.guide-anchor-band a:focus-visible {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.guide-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(66px, 9vw, 104px) 24px;
}

.guide-section-heading {
    max-width: 780px;
    margin-bottom: 34px;
}

.guide-section-heading h2,
.guide-split-band h2,
.wildlife-copy h2,
.checklist-copy h2,
.guide-final-cta h2 {
    color: var(--text-main);
    font-size: clamp(2rem, 4.8vw, 3.8rem);
    line-height: 1.08;
    letter-spacing: 0;
    margin-bottom: 16px;
    text-wrap: balance;
}

.guide-section-heading p,
.guide-split-band p,
.wildlife-copy p,
.checklist-copy p,
.guide-final-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
    max-width: 74ch;
    text-wrap: pretty;
}

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

.season-panel,
.route-matrix article,
.rule-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 121, 111, 0.2);
    border-radius: 12px;
    padding: clamp(24px, 3vw, 34px);
}

.season-panel-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 18px;
}

.season-panel-top i,
.rule-item i,
.ship-choice-list i {
    width: 22px;
    height: 22px;
    color: var(--accent-blue);
    flex: 0 0 auto;
}

.season-panel h3,
.route-matrix h3,
.rule-item h3 {
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1.25rem;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.season-panel p,
.route-matrix p,
.rule-item p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
}

.guide-check-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.guide-check-list li {
    position: relative;
    color: var(--text-primary);
    line-height: 1.5;
    padding-left: 24px;
}

.guide-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.guide-route-section {
    padding-top: 72px;
}

.route-matrix {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.route-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: rgba(0, 121, 111, 0.1);
    color: var(--accent-blue);
    font-size: 0.875rem;
    font-weight: 800;
    padding: 5px 12px;
}

.guide-decision-note {
    margin: 24px 0 0;
    padding: 18px 20px;
    background: rgba(0, 121, 111, 0.08);
    border: 1px solid rgba(0, 121, 111, 0.22);
    border-radius: 8px;
    color: var(--text-primary);
    line-height: 1.6;
}

.guide-decision-note strong {
    color: var(--text-main);
}

.guide-split-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
    padding: clamp(72px, 10vw, 112px) clamp(24px, 5vw, 72px);
    background:
        linear-gradient(135deg, rgba(8, 12, 16, 0.95), rgba(13, 38, 42, 0.92)),
        url('assets/ships/national-geographic-islander-ii/exterior.jpg') center/cover no-repeat;
    color: var(--text-inverse);
}

.guide-split-band h2,
.guide-final-cta h2 {
    color: var(--text-inverse);
}

.guide-split-band p,
.guide-final-cta p {
    color: rgba(230, 247, 245, 0.84);
}

.guide-text-link {
    display: inline-flex;
    width: fit-content;
    margin-top: 24px;
    color: #4df2de;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.ship-choice-list {
    display: grid;
    gap: 14px;
}

.ship-choice-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 14px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(230, 247, 245, 0.18);
    border-radius: 12px;
}

.ship-choice-list strong {
    color: var(--text-inverse);
    font-size: 1rem;
}

.ship-choice-list span {
    grid-column: 2;
    color: rgba(230, 247, 245, 0.78);
    line-height: 1.58;
}

.guide-wildlife-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
    gap: clamp(34px, 6vw, 70px);
    align-items: center;
}

.wildlife-image {
    position: relative;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
}

.wildlife-image img {
    object-position: 46% center;
}

.wildlife-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.wildlife-list span {
    border: 1px solid rgba(0, 121, 111, 0.22);
    border-radius: 30px;
    background: #fff;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    padding: 9px 13px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rule-item {
    display: grid;
    gap: 10px;
}

.rule-item a {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rule-item a:hover,
.rule-item a:focus-visible {
    color: var(--accent-blue-bright, #05c4b0);
}

.guide-checklist-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
    gap: clamp(34px, 6vw, 76px);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(68px, 9vw, 108px) 24px;
    border-top: 1px solid var(--brand-slate);
}

.booking-steps {
    display: grid;
    gap: 14px;
    list-style: none;
    counter-reset: none;
}

.booking-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 121, 111, 0.18);
    border-radius: 12px;
}

.booking-steps span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-blue);
    color: var(--text-on-signal);
    font-weight: 800;
}

.booking-steps strong {
    color: var(--text-main);
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.booking-steps p {
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.guide-faq-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1fr);
    gap: clamp(42px, 7vw, 92px);
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(72px, 10vw, 116px) 24px;
    border-top: 1px solid var(--brand-slate);
    scroll-margin-top: 148px;
}

.guide-faq-heading {
    align-self: start;
    position: sticky;
    top: 152px;
}

.guide-faq-heading h2 {
    color: var(--text-main);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.08;
    margin-bottom: 16px;
    text-wrap: balance;
}

.guide-faq-heading p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 48ch;
    text-wrap: pretty;
}

.guide-faq-heading .guide-text-link {
    color: var(--accent-blue);
}

.guide-faq-heading .guide-text-link:hover,
.guide-faq-heading .guide-text-link:focus-visible {
    color: var(--accent-blue-bright);
}

.guide-faq-list {
    border-top: 1px solid rgba(0, 121, 111, 0.28);
}

.guide-faq-list details {
    border-bottom: 1px solid rgba(0, 121, 111, 0.28);
}

.guide-faq-list summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 18px;
    align-items: center;
    min-height: 76px;
    padding: 20px 0;
    color: var(--text-main);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: 700;
    line-height: 1.35;
    list-style: none;
    text-wrap: pretty;
}

.guide-faq-list summary::-webkit-details-marker {
    display: none;
}

.guide-faq-list summary::after {
    content: "+";
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 121, 111, 0.1);
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1;
}

.guide-faq-list details[open] summary::after {
    content: "−";
    background: var(--accent-blue);
    color: var(--text-on-signal);
}

.guide-faq-list summary:hover {
    color: var(--accent-blue);
}

.guide-faq-list summary:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(0, 121, 111, 0.28);
    outline-offset: 5px;
}

.guide-faq-answer {
    max-width: 70ch;
    padding: 0 52px 24px 0;
}

.guide-faq-answer p {
    color: var(--text-muted);
    line-height: 1.72;
    margin: 0;
    text-wrap: pretty;
}

.guide-faq-answer p + p {
    margin-top: 12px;
}

.guide-faq-answer a {
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.guide-faq-answer a:hover,
.guide-faq-answer a:focus-visible {
    color: var(--accent-blue-bright);
}

.guide-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin: 0 clamp(24px, 5vw, 72px) clamp(68px, 8vw, 96px);
    padding: clamp(34px, 5vw, 54px);
    background: var(--deep-ink);
    border-radius: 12px;
    color: var(--text-inverse);
}

.guide-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .modal-body-split {
        flex-direction: column;
        overflow-y: auto;
    }
    .modal-container {
        height: 95vh;
        max-height: 95vh;
    }
    .modal-graphic-pane {
        border-right: none;
        border-bottom: 1px solid var(--brand-slate);
        height: auto;
        overflow: visible;
    }
    .modal-booking-pane {
        padding: 30px;
        height: auto;
    }
    .hero-decision-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-decision-item:nth-child(2) {
        border-right: none;
    }
    .hero-decision-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--brand-slate);
    }
    .guide-hero,
    .guide-split-band,
    .guide-wildlife-section,
    .guide-checklist-section,
    .guide-faq-section,
    .guide-final-cta {
        grid-template-columns: 1fr;
    }
    .guide-faq-heading {
        position: static;
    }
    .guide-hero-panel {
        min-height: 0;
    }
    .route-matrix,
    .rules-grid {
        grid-template-columns: 1fr;
    }
    .guide-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 78px;
    }
    .main-header {
        padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    }
    .header-container {
        align-items: center;
        padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
        gap: 10px;
    }
    .logo {
        font-size: clamp(1.125rem, 5vw, 1.5rem);
        letter-spacing: 1px;
        display: block;
        min-height: 44px;
        max-width: 210px;
        flex: 1 1 auto;
    }
    .logo-sub {
        display: block;
        font-size: 0.625rem;
        letter-spacing: 3px;
        margin-left: 0;
        margin-top: 4px;
    }
    .nav-links {
        display: none;
    }
    .header-actions {
        gap: 6px;
        margin-left: auto;
    }
    .header-actions .btn-primary-outline {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: inline-flex !important;
    }
    .hero-section {
        height: auto;
        min-height: 780px;
        justify-content: flex-start;
        padding: calc(118px + env(safe-area-inset-top)) 16px 42px;
        background-position: center top;
    }
    .hero-content {
        color: var(--text-inverse);
        animation-duration: 0.7s;
        width: 100%;
        max-width: 100%;
    }
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.24em;
        margin-bottom: 16px;
    }
    .hero-title {
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.08;
        margin-bottom: 20px;
        max-width: 11ch;
        margin-left: auto;
        margin-right: auto;
        letter-spacing: 0;
    }
    .hero-tagline {
        font-size: 1rem;
        line-height: 1.55;
        margin-bottom: 28px;
        max-width: 100%;
    }
    .hero-actions-container {
        gap: 12px;
    }
    .hero-actions-container .btn-signal-fill,
    .hero-actions-container .btn-glass {
        width: 100%;
        justify-content: center;
        min-height: 52px;
    }
    .guide-hero {
        min-height: 0;
        max-width: 100vw;
        overflow: hidden;
        padding: calc(118px + env(safe-area-inset-top)) 16px 42px;
        background:
            linear-gradient(180deg, rgba(8, 12, 16, 0.6), rgba(8, 12, 16, 0.94)),
            url('assets/guide-bartolome.jpg') center/cover no-repeat;
    }
    .guide-hero-copy,
    .guide-hero-panel,
    .guide-quick-facts,
    .guide-quick-facts div,
    .guide-quick-facts dd {
        width: min(100%, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        min-width: 0;
        white-space: normal;
    }
    .guide-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.08;
        max-width: calc(100vw - 32px);
        text-wrap: pretty;
    }
    .guide-hero p {
        max-width: calc(100vw - 32px);
        overflow-wrap: anywhere;
    }
    .guide-hero-actions .btn-signal-fill,
    .guide-hero-actions .btn-glass {
        width: 100%;
        justify-content: center;
    }
    .guide-hero-panel {
        grid-template-rows: 240px auto;
    }
    .guide-anchor-band {
        position: static;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 12px 16px;
    }
    .guide-anchor-band a {
        flex: 0 0 auto;
    }
    .season-grid {
        grid-template-columns: 1fr;
    }
    .guide-section,
    .guide-checklist-section,
    .guide-faq-section {
        padding-left: 16px;
        padding-right: 16px;
    }
    .guide-faq-section {
        gap: 28px;
        scroll-margin-top: 86px;
    }
    .guide-faq-list summary {
        min-height: 70px;
    }
    .guide-faq-answer {
        padding-right: 0;
    }
    .guide-split-band {
        padding-left: 16px;
        padding-right: 16px;
    }
    .wildlife-image {
        min-height: 300px;
    }
    .ship-choice-list div {
        grid-template-columns: 1fr;
    }
    .ship-choice-list span {
        grid-column: auto;
    }
    .booking-steps li {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 18px;
    }
    .guide-final-cta {
        margin-left: 16px;
        margin-right: 16px;
    }
    .guide-final-actions .btn-signal-fill,
    .guide-final-actions .btn-primary-outline {
        width: 100%;
        justify-content: center;
    }
    .hero-decision-strip {
        margin-top: 24px;
        grid-template-columns: 1fr;
        width: 100%;
    }
    .hero-decision-item {
        border-right: none;
        border-bottom: 1px solid var(--brand-slate);
        padding: 14px 16px;
    }
    .hero-decision-item:last-child {
        border-bottom: none;
    }
    .partners-section {
        padding: 24px 18px;
    }
    .partners-container {
        align-items: flex-start;
    }
    .partners-logos {
        width: 100%;
        gap: 14px;
        flex-direction: column;
        align-items: flex-start;
    }
    .search-panel {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
    }
    .search-panel-container {
        position: relative;
        bottom: 0;
        transform: translateY(0);
        margin-top: -60px;
        padding: 0 20px;
    }
    .explorer-section {
        padding: 58px 16px 72px;
    }
    .section-header {
        text-align: left;
        margin-bottom: 28px;
    }
    .section-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .explorer-tabs-container {
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -16px;
        padding-inline: 16px;
        scrollbar-width: none;
    }
    .explorer-tabs-container::-webkit-scrollbar {
        display: none;
    }
    .tab-list {
        min-width: max-content;
        border-radius: 28px;
    }
    .tab-btn {
        padding: 12px 18px;
        min-height: 44px;
        flex-shrink: 0;
    }
    .cards-grid {
        gap: 20px;
    }
    .card-img-wrapper {
        height: 210px;
    }
    .card-body {
        padding: 22px;
    }
    .card-facts {
        grid-template-columns: 1fr;
    }
    .card-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .btn-card-action {
        width: 100%;
        justify-content: center;
    }
    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }
    .modal-container {
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .modal-close {
        top: max(14px, env(safe-area-inset-top));
        right: 14px;
    }
    .modal-image-wrapper {
        height: 230px;
    }
    .modal-image-overlay {
        padding: 24px 20px;
    }
    .modal-voyage-title {
        font-size: clamp(1.75rem, 8vw, 2rem);
    }
    .modal-subtab-content {
        padding: 24px 20px;
    }
    .ship-stats-grid,
    .form-group-row {
        grid-template-columns: 1fr;
    }
    .cabin-type-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .cabin-type-pricing {
        text-align: left;
    }
    .modal-booking-pane {
        padding: 28px 20px 34px;
    }
    .drawer-container {
        max-width: none;
        width: min(100%, 430px);
    }
    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-column a {
        min-height: 44px;
    }
    .booking-confidence__terms a,
    .parent-review-proof__summary > a,
    .offers-photo-credit a,
    .legal-card a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        vertical-align: middle;
    }
    .footer-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .social-links a {
        width: 44px;
        height: 44px;
    }
    footer {
        padding: 44px 20px 22px;
    }
}

@media (max-width: 600px) {
    .header-actions #openBookingsBtn {
        display: none;
    }
    .mobile-menu-toggle {
        position: fixed;
        top: calc(14px + env(safe-area-inset-top));
        right: auto;
        left: min(calc(100vw - 56px), 332px);
        z-index: 130;
        background: rgba(8, 12, 16, 0.82);
        border: 1px solid var(--glass-border);
    }
    .hero-content,
    .hero-tagline,
    .hero-decision-strip {
        max-width: 280px;
    }
    .hero-actions-container {
        width: min(100%, 280px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 420px) {
    .logo {
        max-width: 180px;
    }
    .btn-icon {
        min-width: 44px;
        min-height: 44px;
        padding: 7px;
    }
}

@media (pointer: coarse) {
    a[href],
    button,
    select,
    textarea,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
        min-height: 44px;
    }
    button,
    select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
        min-width: 44px;
    }
    .btn-primary-outline,
    .btn-signal-fill,
    .btn-glass,
    .btn-card-action,
    .newsletter-form button {
        min-height: 44px;
    }
}

/* Decision modal layout */
.modal-container {
    max-width: 1180px;
    height: min(92vh, 860px);
    max-height: min(92vh, 860px);
}

.modal-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-body-split {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
    height: auto;
    min-height: 100%;
}

.modal-graphic-pane {
    border-right: 1px solid var(--brand-slate);
    height: auto;
    overflow: visible;
}

.modal-image-wrapper {
    height: 270px;
}

.modal-voyage-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--brand-slate);
    background: var(--brand-navy);
}

.summary-item {
    padding: 16px 18px;
    border-right: 1px solid var(--brand-slate);
    min-width: 0;
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item span,
.modal-section-kicker {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.summary-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.modal-subtab-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: visible;
    padding: 30px;
}

.subtab-pane,
.subtab-pane.active {
    display: block;
    animation: none;
}

.modal-section {
    min-width: 0;
}

.modal-section-heading {
    margin-bottom: 18px;
}

.modal-section-heading h4,
.ship-details-subpane h4 {
    color: var(--text-main);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 8px;
    text-wrap: balance;
}

.modal-section-heading p,
.ship-spec-desc {
    color: color-mix(in srgb, var(--text-primary) 72%, transparent);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 68ch;
}

.route-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 14px;
}

.route-highlight {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
    background: var(--brand-navy);
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    padding: 16px;
    min-width: 0;
}

.route-highlight-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 121, 111, 0.12);
    color: var(--accent-blue);
}

.route-highlight-icon i {
    width: 20px;
    height: 20px;
}

.route-highlight h5 {
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 6px;
    overflow-wrap: break-word;
}

.route-highlight p {
    color: color-mix(in srgb, var(--text-primary) 72%, transparent);
    font-size: 1rem;
    line-height: 1.55;
}

.full-itinerary-details {
    margin-top: 18px;
    border: 1px solid var(--brand-slate);
    border-radius: 8px;
    background: var(--brand-navy);
    overflow: hidden;
}

.full-itinerary-details summary {
    min-height: 48px;
    padding: 14px 18px;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 600;
    list-style-position: inside;
}

.full-itinerary-details summary:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

.full-itinerary-details .timeline {
    padding: 8px 24px 22px 48px;
}

.full-itinerary-details .itinerary-unavailable {
    margin-left: -24px;
    color: color-mix(in srgb, var(--text-primary) 78%, transparent);
    line-height: 1.55;
}

.timeline {
    padding-left: 34px;
}

.timeline-item {
    margin-bottom: 24px;
    max-width: 70ch;
}

.timeline-port {
    font-size: 1.25rem;
    line-height: 1.35;
}

.timeline-act {
    color: color-mix(in srgb, var(--text-primary) 70%, transparent);
    font-size: 1rem;
    line-height: 1.65;
}

.ship-stats-grid {
    gap: 14px;
}

.ship-stat-card {
    padding: 14px 16px;
}

.ship-stat-card .stat-val {
    font-size: 1.25rem;
    line-height: 1.25;
    overflow-wrap: break-word;
}

.modal-booking-pane {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: min(92vh, 860px);
    overflow-y: auto;
    justify-content: flex-start;
    padding: 26px 32px;
    border-left: 0;
}

.modal-booking-pane h4 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    text-wrap: balance;
}

.modal-booking-pane .pane-intro {
    color: color-mix(in srgb, var(--text-primary) 72%, transparent);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-booking-pane .form-group {
    margin-bottom: 16px;
}

.modal-booking-pane .pricing-summary {
    padding: 16px 18px;
    margin-bottom: 18px;
}

.cabin-choice-group {
    border: 0;
    padding: 0;
    margin: 0 0 20px;
}

.cabin-choice-group legend {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

#cabinChoiceHelp {
    color: color-mix(in srgb, var(--text-primary) 65%, transparent);
    font-size: 0.875rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.cabin-type-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    cursor: pointer;
}

.cabin-radio {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin: 0;
    position: relative;
}

.cabin-radio:checked {
    border-color: var(--accent-blue);
}

.cabin-radio:checked::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-blue);
}

.cabin-radio:disabled {
    border-color: var(--text-muted);
    cursor: not-allowed;
}

.cabin-type-row:has(.cabin-radio:focus-visible) {
    box-shadow: var(--focus-ring);
}

.cabin-type-row:has(.cabin-radio:checked) {
    border-color: var(--accent-blue);
    background: rgba(0, 121, 111, 0.08);
}

.btn-book-submit:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    box-shadow: none;
}

@media (max-width: 1024px) {
    .modal-container {
        height: 95vh;
        max-height: 95vh;
    }

    .modal-body-split {
        display: block;
        min-height: 0;
    }

    .modal-graphic-pane {
        border-right: none;
        border-bottom: 1px solid var(--brand-slate);
    }

    .modal-booking-pane {
        position: static;
        max-height: none;
        overflow: visible;
        border-top: 1px solid var(--brand-slate);
    }
}

@media (max-width: 768px) {
    .modal-container {
        height: 100dvh;
        max-height: none;
    }

    .modal-image-wrapper {
        height: 190px;
    }

    .modal-voyage-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-item:nth-child(2n) {
        border-right: 0;
    }

    .summary-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--brand-slate);
    }

    .modal-subtab-content,
    .modal-booking-pane {
        padding: 24px 20px;
    }

    .route-highlights {
        grid-template-columns: 1fr;
    }

    .full-itinerary-details .timeline {
        padding: 6px 18px 20px 42px;
    }

    .cabin-type-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .cabin-type-pricing {
        grid-column: 2;
        text-align: left;
    }

    .reservation-modal-overlay {
        align-items: stretch;
        padding: 0;
    }

    .reservation-modal-container {
        border-radius: 0;
        height: 100dvh;
        max-height: none;
    }

    .reservation-modal-content {
        display: block;
        min-height: 0;
    }

    .reservation-modal-summary,
    .reservation-request-form {
        padding: 28px 20px;
    }

    .reservation-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reservation-form-actions {
        grid-template-columns: 1fr;
    }

    .reservation-summary-item {
        display: block;
    }

    .reservation-summary-item strong {
        display: inline-block;
        margin-top: 10px;
    }
}

.detail-cabin-skeleton {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 14px;
    border: 1px solid rgba(0, 121, 111, 0.14);
    border-radius: 10px;
    background: #fff;
}

.detail-skeleton-dot,
.detail-skeleton-copy span,
.detail-skeleton-price {
    display: block;
    background: #d8e7e4;
    animation: detail-loading-pulse 1.1s ease-in-out infinite;
}

.detail-skeleton-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.detail-skeleton-copy {
    display: grid;
    gap: 9px;
}

.detail-skeleton-copy span:first-child {
    width: min(190px, 72%);
    height: 13px;
    border-radius: 4px;
}

.detail-skeleton-copy span:last-child {
    width: min(120px, 48%);
    height: 10px;
    border-radius: 4px;
}

.detail-skeleton-price {
    width: 72px;
    height: 20px;
    border-radius: 4px;
}

.detail-data-pending .selected-rate-panel,
.detail-data-pending .detail-cabin-skeleton {
    cursor: wait;
}

@keyframes detail-loading-pulse {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 0.95; }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-content,
    .search-panel,
    .grid-panel.active,
    .subtab-pane.active {
        opacity: 1 !important;
        transform: none !important;
    }
}
.form-verification {
    width: 100%;
    max-width: 320px;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.form-verification iframe {
    max-width: 100%;
}

.form-verification[data-state="interactive"],
.form-verification[data-state="error"] {
    height: auto;
    min-height: 65px;
    margin: 12px 0;
    overflow: visible;
}

.contact-form .form-verification[data-state="interactive"],
.contact-form .form-verification[data-state="error"] {
    max-width: 360px;
    margin: 18px 0 6px;
}

.newsletter-form + .form-verification[data-state="interactive"],
.newsletter-form + .form-verification[data-state="error"] {
    margin: 10px 0 0;
}

/* Let a visible Turnstile iframe set its own height instead of reserving an
   empty challenge row beneath the newsletter form. */
.newsletter-form + .form-verification[data-state="interactive"] {
    min-height: 0;
}

.newsletter-form + .form-verification[data-state="error"] {
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.not-found-page {
    background:
        linear-gradient(135deg, rgba(0, 121, 111, 0.12), transparent 55%),
        var(--bg-main);
    min-height: 100vh;
}

.not-found-main {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    min-height: 100vh;
    max-width: 760px;
    padding: clamp(2rem, 7vw, 6rem);
}

.not-found-main .logo {
    margin-bottom: clamp(3rem, 10vw, 7rem);
}

.not-found-code {
    color: var(--accent-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.not-found-main h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    line-height: 0.98;
    margin-bottom: 1.25rem;
    max-width: 9ch;
}

.not-found-main > p:not(.not-found-code) {
    color: var(--text-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
    max-width: 48ch;
}

.not-found-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 2rem;
}

.not-found-secondary {
    color: var(--text-main);
    font-weight: 700;
    min-height: 44px;
    padding: 0.75rem 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}
