/* Cruise detail page layout — premium two-column hierarchy.
   Loaded after site.css so these selectors win in the cascade.
   Scoped to cruise pages by the .cruise-detail-grid / .cruise-* class names
   on src/pages/cruises/cruise.njk. */

/* ---------- Hero CTA ---------- */
.cruise-hero-cta {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 107, 160, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cruise-hero-cta:hover,
.cruise-hero-cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 107, 160, 0.45);
}

@media (max-width: 480px) {
    .cruise-hero-cta {
        width: 100%;
        max-width: 320px;
    }
}

/* ---------- Two-column layout (desktop) ---------- */
.cruise-detail-grid-section {
    padding: 2rem 0 3rem;
}

.cruise-detail-grid {
    display: block;
}

@media (min-width: 960px) {
    .cruise-detail-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
        gap: 2.5rem;
        align-items: start;
        max-width: 1200px;
    }

    .cruise-booking-aside {
        position: sticky;
        /* Top offset clears the floating header. Adjust if header height changes. */
        top: 100px;
        align-self: start;
    }
}

@media (min-width: 1280px) {
    .cruise-detail-grid {
        gap: 3rem;
    }
}

/* ---------- Editorial prose width ---------- */
/* Constrain paragraph widths inside detail content to a comfortable
   reading measure (~70ch ≈ 720px). On desktop the right column already
   limits the left column, so this mostly affects mobile/tablet. */
.cruise-prose {
    max-width: 760px;
}

.cruise-prose p,
.cruise-prose .details-list,
.cruise-prose .cruise-highlights-list {
    max-width: 720px;
}

/* No inter-section padding — sections butt up tight, h4 carries minimal margin */
.cruise-prose .cruise-section {
    margin-top: 0;
}

.cruise-prose .cruise-section > h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* ---------- Highlights list ---------- */
.cruise-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 600px) {
    .cruise-highlights-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
    }
}

.cruise-highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.5;
    color: #1f2937;
}

.cruise-highlight-check {
    flex: 0 0 auto;
    color: var(--secondary-tropical-teal, #009891);
    margin-top: 0.15rem;
}

/* ---------- Booking card (sticky aside) ---------- */
.cruise-booking-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.cruise-booking-card-title {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    color: var(--primary-wave-blue, #006BA0);
}

/* "← Modify Booking" — back-link button shown above the embedded Stripe
   Checkout iframe. Styled to mirror Stripe's default "Pay" button so the
   two paired actions read with matching visual weight. Stripe's button:
   full width, brand-blue fill, white text, modest 6px radius, ~0.75rem
   vertical padding, medium font-weight. */
.btn-checkout-cancel {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--primary-wave-blue, #006BA0);
    color: #ffffff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn-checkout-cancel:hover {
    background: var(--tertiary-dark-sea, #0B5D82);
    box-shadow: 0 4px 12px rgba(0, 107, 160, 0.25);
}

.btn-checkout-cancel:focus-visible {
    outline: 2px solid var(--primary-wave-blue, #006BA0);
    outline-offset: 2px;
}

/* Consistent section treatment inside the booking card.
   Each .booking-form-section has the same heading style and is separated from
   the next section by a subtle top border + spacing. The first section has
   no top spacing since the card title sits above it. */

.cruise-booking-card .booking-form-section {
    margin-top: 0;
    padding-top: 0;
}

.cruise-booking-card .booking-form-section + .booking-form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.booking-form-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-wave-blue, #006BA0);
}

.booking-form-section-help {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

/* Inside the booking card, flatten .booking-summary so it visually matches the
   other sections (no panel-within-section). The booking-summary panel styling
   in booking-summary.css remains the default elsewhere. */
.cruise-booking-card .booking-summary {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Same flatten for .booking-passengers-section — site.css gives it a flat-grey
   panel background which fights the consistent section treatment we apply
   inside the booking card. */
.cruise-booking-card .booking-passengers-section {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

/* Drop the divider lines between Adults / Children / Infants rows so the
   passenger counters group as one block. */
.cruise-booking-card .passenger-counter {
    border-bottom: 0;
    padding: 0.5rem 0;
}

/* Flatten .add-ons-section the same way (site.css gives it a green-gradient
   panel that fights the consistent section treatment). */
.cruise-booking-card .add-ons-section {
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
    margin: 0;
}

/* Tighter, more scannable add-on cards inside the booking aside.
   Title + price share the top row; description sits below as a single
   tight line so each option doesn't dominate the booking card. */
.cruise-booking-card .add-ons-grid {
    gap: 0.6rem;
}

.cruise-booking-card .add-on-label {
    padding: 0.85rem 1rem;
    border-radius: 8px;
}

.cruise-booking-card .add-on-details {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    width: 100%;
    align-items: baseline;
}

.cruise-booking-card .add-on-title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cruise-booking-card .add-on-price,
.cruise-booking-card .add-on-price-free {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 0.9rem;
    align-self: baseline;
    /* Override the rounded pill on the FREE badge — match the regular price
       so the two add-ons sit at consistent visual weight. */
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
}

.cruise-booking-card .add-on-description {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
}

/* The default checked-state checkmark sits at top-right (where our price now
   lives) — hide it inside the booking card. The teal background tint on
   :checked already signals selection clearly. */
.cruise-booking-card .add-on-checkbox:checked + .add-on-label::before {
    display: none;
}

/* Variant radio focus: the global `input:focus` rule paints a teal outline
   that reads as a square around the circular radio after a click. The
   surrounding `.variant-option` card already conveys selection state (border
   colour shifts to teal). Suppress the outline on pointer interaction while
   preserving it for keyboard users via :focus-visible. */
.variant-options input[type="radio"]:focus:not(:focus-visible) {
    outline: none;
}

/* On mobile, give the aside a bit of breathing room above */
@media (max-width: 959.98px) {
    .cruise-booking-aside {
        margin-top: 2.5rem;
        scroll-margin-top: 80px; /* anchor scroll lands below the floating header */
    }

    .cruise-booking-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ---------- Sold-out notice ---------- */
.cruise-soldout-section {
    padding: 1rem 0 3rem;
}

.cruise-soldout-section .sold-out-notice {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.cruise-soldout-section .sold-out-notice h2 {
    color: var(--primary-wave-blue, #006BA0);
    margin: 0 0 0.5rem;
}

.cruise-soldout-section .sold-out-notice p {
    color: #666;
    margin: 0;
}

/* ---------- Anchor scroll offset for in-page links ---------- */
#book-this-experience {
    scroll-margin-top: 100px;
}

/* ---------- Why This Stands Out (standout list) ---------- */
.cruise-standout-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

@media (min-width: 600px) {
    .cruise-standout-list {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
    }
}

.cruise-standout-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.5;
    color: #1f2937;
}

.cruise-standout-list strong {
    color: var(--primary-wave-blue, #006BA0);
    margin-right: 0.25rem;
}

/* ---------- Testimonials ---------- */
.cruise-testimonials-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 720px) {
    .cruise-testimonials-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.cruise-testimonial {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cruise-testimonial-quote {
    margin: 0;
    font-style: italic;
    color: #1f2937;
    line-height: 1.55;
    font-size: 0.98rem;
}

.cruise-testimonial-attribution {
    font-style: normal;
    font-size: 0.85rem;
    color: #64748b;
    letter-spacing: 0.01em;
}

/* ---------- Final CTA block ---------- */
.cruise-final-cta {
    margin-top: 0.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 107, 160, 0.06), rgba(0, 152, 145, 0.06));
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
}

.cruise-final-cta-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-wave-blue, #006BA0);
    letter-spacing: 0.02em;
    text-transform: none;
}

.cruise-final-cta-heading {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    line-height: 1.3;
    color: #0f172a;
    font-weight: 600;
}

.cruise-final-cta-body {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #334155;
    line-height: 1.55;
}

.cruise-final-cta-button {
    display: inline-block;
    min-width: 220px;
}
