/* ============================================================================
   WiseCruise — site components
   Header, hero, search, cards, footer. Ported from the OceanVista prototype's
   style.css / pages.css, converted from vw-only sizing to fluid clamps.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(11, 35, 61, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 40px);
    min-height: var(--header-h);
}

.site-logo {
    flex-shrink: 0;
    display: block;
}

.site-logo img,
.site-logo svg {
    height: clamp(30px, 2.4vw, 40px);
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 30px);
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a {
    position: relative;
    padding-block: 6px;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--gold-dark);
    transition: right var(--transition);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after {
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 16px);
    margin-left: auto;
    font-size: var(--fs-sm);
    white-space: nowrap;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--navy);
}

.header-phone:hover {
    color: var(--gold-deep);
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.lang-switch a {
    padding: 6px 12px;
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}

.lang-switch a[aria-current='true'] {
    background: var(--navy);
    color: var(--white);
}

.lang-switch a:not([aria-current='true']):hover {
    background: var(--off-white);
    color: var(--navy);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--off-white);
    place-items: center;
    font-size: 22px;
    margin-left: auto;
}

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */
.hero {
    position: relative;
    isolation: isolate;
    color: var(--white);
    min-height: clamp(460px, 58vh, 640px);
    display: flex;
    flex-direction: column;
    background: var(--navy-deep);
}

.hero-media,
.hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media {
    background-size: cover;
    background-position: center 56%;
}

.hero-shade {
    z-index: -1;
    background: linear-gradient(
        100deg,
        rgba(4, 24, 43, 0.82) 0%,
        rgba(4, 24, 43, 0.55) 45%,
        rgba(4, 24, 43, 0.22) 100%
    );
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding-block: clamp(60px, 8vw, 110px);
}

.hero-copy {
    max-width: 46ch;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-4);
}

.hero-description {
    font-size: var(--fs-lg);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-6);
    max-width: 52ch;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-signature {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(16px, 3vw, 46px);
    font-family: var(--font-script);
    font-size: clamp(18px, 1.9vw, 32px);
    line-height: 1.1;
    transform: rotate(-9deg);
    text-align: center;
    color: var(--gold-light);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Compact hero for inner pages */
.page-hero {
    position: relative;
    isolation: isolate;
    color: var(--white);
    background: var(--navy);
    padding-block: clamp(40px, 5vw, 76px);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.42;
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: var(--fs-md);
    max-width: 60ch;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--space-4);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumbs span[aria-current] {
    color: var(--gold);
}

/* Light-background breadcrumbs */
.breadcrumbs.on-light {
    color: var(--muted);
}

.breadcrumbs.on-light span[aria-current] {
    color: var(--navy);
}

/* ---------------------------------------------------------------------------
   Search bar
   ------------------------------------------------------------------------ */
.search-zone {
    background: var(--off-white);
    position: relative;
    padding-bottom: clamp(20px, 2.5vw, 34px);
}

.search-bar {
    position: relative;
    z-index: 2;
    margin-top: clamp(-56px, -3.4vw, -30px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(16px, 1.4vw, 22px);
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.9fr 0.85fr auto;
    align-items: center;
    gap: clamp(12px, 1.4vw, 24px);
}

.search-bar label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    padding-right: clamp(10px, 1vw, 20px);
    border-right: 1px solid var(--line);
}

.search-bar label:last-of-type {
    border-right: 0;
}

.search-bar label > i {
    font-size: 1.7em;
    color: var(--gold-deep);
    flex-shrink: 0;
}

.search-bar label > span {
    display: block;
    width: 100%;
    min-width: 0;
}

.search-bar strong {
    display: block;
    font-size: var(--fs-xs);
    margin-bottom: 2px;
}

.search-bar select,
.search-bar input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.search-bar select:focus,
.search-bar input:focus {
    outline: none;
    color: var(--navy);
}

/* Benefits strip */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--space-4);
    margin-top: clamp(18px, 2vw, 30px);
}

.benefits > div {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-right: var(--space-4);
    border-right: 1px solid var(--line-strong);
}

.benefits > div:last-child {
    border-right: 0;
}

.benefits i {
    font-size: 1.9em;
    color: var(--navy-soft);
    flex-shrink: 0;
}

.benefits strong,
.benefits span {
    display: block;
    font-size: var(--fs-sm);
}

.benefits small {
    display: block;
    color: var(--muted);
    font-size: var(--fs-xs);
    margin-top: 2px;
}

/* ---------------------------------------------------------------------------
   Cruise cards
   ------------------------------------------------------------------------ */
.cruise-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow var(--transition), transform var(--transition);
}

.cruise-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.cruise-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--navy-soft);
    overflow: hidden;
}

.cruise-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cruise-card:hover .cruise-media img {
    transform: scale(1.04);
}

.cruise-media .badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.cruise-media .badge.promo {
    left: auto;
    right: var(--space-3);
}

.favourite-btn {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(6, 38, 56, 0.55);
    color: var(--white);
    font-size: 19px;
    backdrop-filter: blur(4px);
    transition: background var(--transition), color var(--transition);
}

.favourite-btn:hover {
    background: rgba(6, 38, 56, 0.8);
}

.favourite-btn[aria-pressed='true'] {
    background: rgba(239, 200, 120, 0.92);
    color: var(--navy);
}

.cruise-body {
    padding: var(--space-4) var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-2);
}

.cruise-body h3 {
    font-size: var(--fs-lg);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.3;
}

.cruise-body h3 a:hover {
    color: var(--gold-deep);
}

.route-text {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: var(--muted);
    font-size: var(--fs-sm);
    line-height: 1.45;
}

.cruise-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    font-size: var(--fs-xs);
    color: var(--muted);
    margin-top: var(--space-1);
}

.cruise-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cruise-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.price-tag small {
    display: block;
    color: var(--muted);
    font-size: var(--fs-xs);
}

.price-tag strong {
    font-family: var(--font-serif);
    font-size: var(--fs-xl);
    color: var(--navy);
    line-height: 1.15;
}

.price-tag span {
    font-size: var(--fs-xs);
    color: var(--muted);
}

.price-strike {
    text-decoration: line-through;
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-right: 6px;
}

/* ---------------------------------------------------------------------------
   Destination / experience tiles
   ------------------------------------------------------------------------ */
.tile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--navy-soft);
    color: var(--white);
    text-align: left;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tile:hover img {
    transform: scale(1.05);
}

.tile::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgba(5, 43, 67, 0.9), transparent);
}

.tile-caption {
    position: absolute;
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: 1;
}

.tile-caption strong {
    display: block;
    font-size: var(--fs-lg);
    font-family: var(--font-serif);
}

.tile-caption small {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------------------------
   Promo band
   ------------------------------------------------------------------------ */
.promo-band {
    position: relative;
    isolation: isolate;
    color: var(--white);
    background: var(--navy) center/cover;
    padding-block: clamp(34px, 4vw, 64px);
}

.promo-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 23, 40, 0.55);
}

.promo-band-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 64px);
    flex-wrap: wrap;
}

.promo-band h2 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.promo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--space-4);
}

.promo-benefits > div {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.promo-benefits i {
    font-size: 1.9em;
    color: var(--gold);
    flex-shrink: 0;
}

.promo-benefits strong {
    display: block;
    font-size: var(--fs-sm);
}

.promo-benefits span {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.85);
}

/* ---------------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------------ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
}

.testimonial {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.testimonial .quote-icon {
    font-size: 26px;
    color: var(--gold);
    transform: rotate(180deg);
}

.testimonial p {
    color: #4c5867;
    font-size: var(--fs-md);
    line-height: 1.6;
    flex: 1;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-person img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-person strong {
    display: block;
    font-size: var(--fs-sm);
}

.testimonial-person small {
    display: block;
    font-size: var(--fs-xs);
    color: var(--muted);
}

.stars {
    display: flex;
    gap: 2px;
    color: var(--gold-dark);
    margin-left: auto;
    font-size: 14px;
}

/* ---------------------------------------------------------------------------
   Newsletter
   ------------------------------------------------------------------------ */
.newsletter {
    background: var(--navy) center/cover;
    background-blend-mode: multiply;
    color: var(--white);
    padding-block: clamp(34px, 4vw, 60px);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 3vw, 56px);
    flex-wrap: wrap;
}

.newsletter h2 {
    color: var(--white);
    font-size: var(--fs-2xl);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: var(--space-2);
    max-width: 52ch;
}

.newsletter-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-pill);
    padding: 5px 5px 5px 20px;
    color: var(--navy);
    min-width: min(420px, 100%);
    flex: 1 1 320px;
    max-width: 520px;
}

.newsletter-form i {
    font-size: 1.4em;
    color: var(--muted);
}

.newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 14px 12px;
    background: transparent;
    font-size: var(--fs-sm);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form .button {
    border-radius: var(--radius-pill);
    min-height: 44px;
}

/* ---------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------ */
.site-footer {
    background: var(--off-white);
    border-top: 1px solid var(--line);
    padding-top: clamp(36px, 4vw, 64px);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(20px, 2.4vw, 44px);
    padding-bottom: clamp(28px, 3vw, 48px);
}

.footer-grid strong {
    display: block;
    font-size: var(--fs-sm);
    margin-bottom: var(--space-3);
    color: var(--navy);
}

.footer-grid a {
    display: block;
    font-size: var(--fs-sm);
    color: var(--muted);
    line-height: 1.9;
}

.footer-grid a:hover {
    color: var(--gold-deep);
}

.footer-brand p {
    color: var(--muted);
    font-size: var(--fs-sm);
    margin-top: var(--space-3);
    max-width: 34ch;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    font-size: 18px;
    color: var(--navy);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-block: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--fs-xs);
    color: var(--muted);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-bottom a:hover {
    color: var(--gold-deep);
}

/* ---------------------------------------------------------------------------
   CTA band
   ------------------------------------------------------------------------ */
.cta-band {
    background: var(--navy);
    color: var(--white);
    padding-block: clamp(36px, 4vw, 64px);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: var(--space-3);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 56ch;
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 1080px) {
    .search-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-bar label {
        border-right: 0;
        padding-right: 0;
    }

    .search-bar .button {
        grid-column: 1 / -1;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--navy);
        color: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--space-4) var(--gutter);
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding-block: 13px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: var(--fs-md);
    }

    .nav-toggle {
        display: grid;
    }

    .header-phone,
    .header-actions .button {
        display: none;
    }
}

@media (max-width: 720px) {
    .search-bar {
        grid-template-columns: 1fr;
        margin-top: -30px;
    }

    .hero-signature {
        display: none;
    }

    .hero-copy {
        max-width: none;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .newsletter-form {
        padding-left: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------------
   Toast notifications
   ------------------------------------------------------------------------ */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 16px);
    z-index: 300;
    max-width: min(560px, calc(100vw - 32px));
    padding: 14px 24px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------------------
   Details / accordion
   ------------------------------------------------------------------------ */
details.card > summary {
    list-style: none;
}

details.card > summary::-webkit-details-marker {
    display: none;
}

details.card[open] > summary i {
    transform: rotate(180deg);
}

details.card > summary i {
    transition: transform var(--transition);
    color: var(--gold-dark);
}

/* ---------------------------------------------------------------------------
   Stacked layouts on narrow screens
   ------------------------------------------------------------------------ */
@media (max-width: 900px) {
    /* Page layouts that use an inline two-column grid collapse to one. */
    main > .container > div[style*="grid-template-columns"],
    main > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    aside[style*="position:sticky"],
    #filters-panel {
        position: static !important;
    }
}
