/**
 * Last Spots page redesign — "Final Boarding" (page 52825 only).
 *
 * Markup: wp:html sections inside an alignfull .tsa-ls group in the page
 * content, plus [tsa_ls_hero_img]/[tsa_ls_ticker]/[tsa_ls_board] from
 * inc/last-spots-page.php. No JS — blink/ticker/glow are pure CSS.
 */

.tsa-ls {
    --ls-cream: #F2EDE2;
    --ls-paper: #F7F3EA;
    --ls-sand: #E8E0CF;
    --ls-pine: #123C3B;
    --ls-board: #0C2624;
    --ls-ochre: #C77E22;
    --ls-amber: #E39A3B;
    --ls-gold: #E9B96A;
    --ls-ink: #20302D;
    --ls-body-color: rgba(32, 48, 45, 0.75);
    --ls-head-font: var(--tsa-font-display);
    --ls-body-font: var(--tsa-font-body);
    --ls-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --ls-pad-x: clamp(20px, 4vw, 48px);
    background: var(--ls-cream);
    color: var(--ls-ink);
    font-family: var(--ls-body-font);
    overflow: hidden;
}

.tsa-ls ::selection {
    background: var(--ls-pine);
    color: var(--ls-cream);
}

.tsa-ls a {
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tsa-ls h1,
.tsa-ls h2,
.tsa-ls h3 {
    font-family: var(--ls-head-font);
    font-weight: var(--tsa-font-display-weight, 800);
    padding: 0;
    color: var(--ls-pine);
}

.tsa-ls .tsa-ls-section {
    padding: clamp(72px, 9vw, 110px) var(--ls-pad-x);
}

.tsa-ls .tsa-ls-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.tsa-ls .tsa-ls-h2 {
    font-size: clamp(30px, 3.4vw, 48px);
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
}

.tsa-ls .tsa-ls-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.tsa-ls .tsa-ls-btn--amber {
    background: var(--ls-amber);
    color: var(--ls-pine);
}

.tsa-ls .tsa-ls-btn--amber:hover {
    background: var(--ls-cream);
    color: var(--ls-pine);
}

.tsa-ls .tsa-ls-btn--ghost {
    border: 1.5px solid rgba(242, 237, 226, 0.6);
    color: var(--ls-cream);
}

.tsa-ls .tsa-ls-btn--ghost:hover {
    background: rgba(242, 237, 226, 0.15);
    color: var(--ls-cream);
}

@keyframes tsaLsBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.25; }
}

@keyframes tsaLsGlow {
    0%, 100% { text-shadow: 0 0 12px rgba(233, 185, 106, 0.7); }
    50% { text-shadow: 0 0 26px rgba(233, 185, 106, 1); }
}

@keyframes tsaLsTicker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ------------------------------------------------------------------ Hero */

.tsa-ls .tsa-ls-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
}

.tsa-ls .tsa-ls-hero__content {
    position: relative;
    padding: calc(var(--wp--custom--header-height, 83px) + 48px) var(--ls-pad-x) 64px;
    max-width: 1100px;
}

.tsa-ls .tsa-ls-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(9, 26, 25, 0.7);
    border: 1.5px solid rgba(233, 185, 106, 0.6);
    border-radius: 999px;
    padding: 9px 20px;
    margin-bottom: 24px;
}

.tsa-ls .tsa-ls-hero__chip i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ls-amber);
    animation: tsaLsBlink 1.4s steps(1) infinite;
}

.tsa-ls .tsa-ls-hero__chip span {
    font-family: var(--ls-mono-font);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.22em;
    color: var(--ls-gold);
}

.tsa-ls .tsa-ls-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.6rem);
    line-height: 1;
    letter-spacing: -0.01em;
    color: var(--ls-cream);
    margin: 0 0 22px;
    max-width: 16ch;
    text-wrap: balance;
}

.tsa-ls .tsa-ls-hero h1 em {
    font-style: italic;
    color: var(--ls-gold);
}

.tsa-ls .tsa-ls-hero__lede {
    font-size: 19px;
    line-height: 1.6;
    color: rgba(242, 237, 226, 0.9);
    max-width: 52ch;
    margin: 0 0 34px;
    font-weight: 500;
}

.tsa-ls .tsa-ls-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------------------- Ticker */

.tsa-ls .tsa-ls-ticker {
    background: var(--ls-pine);
    overflow: hidden;
    padding: 13px 0;
    border-bottom: 2px solid rgba(233, 185, 106, 0.4);
}

.tsa-ls .tsa-ls-ticker__track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: tsaLsTicker 32s linear infinite;
    font-family: var(--ls-mono-font);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--ls-gold);
    white-space: nowrap;
}

.tsa-ls .tsa-ls-ticker__sep {
    color: rgba(242, 237, 226, 0.4);
}

/* ------------------------------------------------------------- How cards */

.tsa-ls .tsa-ls-intro h2 {
    max-width: 24ch;
    margin-bottom: 18px;
}

.tsa-ls .tsa-ls-intro p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ls-body-color);
    max-width: 70ch;
    margin: 0 0 52px;
}

.tsa-ls .tsa-ls-how {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tsa-ls .tsa-ls-how__card {
    background: var(--ls-paper);
    border: 1.5px solid rgba(18, 60, 59, 0.18);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tsa-ls .tsa-ls-how__card img {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.tsa-ls .tsa-ls-how__card h3 {
    font-size: 20px;
    margin: 0 0 8px;
}

.tsa-ls .tsa-ls-how__card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(32, 48, 45, 0.72);
}

/* -------------------------------------------------------- Departure board */

.tsa-ls .tsa-ls-board-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tsa-ls .tsa-ls-board-head small {
    font-family: var(--ls-mono-font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--ls-ochre);
}

.tsa-ls .tsa-ls-board {
    background: var(--ls-board);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(18, 60, 59, 0.3);
}

.tsa-ls .tsa-ls-board__head,
.tsa-ls .tsa-ls-row {
    display: grid;
    grid-template-columns: 2fr 1.1fr 1.1fr 1fr 1.1fr 130px;
    gap: 16px;
    align-items: center;
    padding: 18px 32px;
}

.tsa-ls .tsa-ls-board__head {
    border-bottom: 1px solid rgba(233, 185, 106, 0.25);
    font-family: var(--ls-mono-font);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(233, 185, 106, 0.7);
}

.tsa-ls .tsa-ls-row {
    padding: 26px 32px;
    color: var(--ls-cream);
    border-bottom: 1px solid rgba(242, 237, 226, 0.08);
}

.tsa-ls .tsa-ls-row:hover {
    background: rgba(233, 185, 106, 0.08);
    color: var(--ls-cream);
}

.tsa-ls .tsa-ls-row__name {
    font-family: var(--ls-head-font);
  font-weight: var(--tsa-font-display-weight, 800);
    font-size: 24px;
    line-height: 1.1;
    color: var(--ls-cream);
}

.tsa-ls .tsa-ls-row__meta {
    font-family: var(--ls-mono-font);
    font-size: 12px;
    letter-spacing: 0.12em;
    color: rgba(242, 237, 226, 0.55);
    margin-top: 5px;
}

.tsa-ls .tsa-ls-row__departs {
    font-family: var(--ls-mono-font);
    font-weight: 700;
    font-size: 16px;
    color: var(--ls-gold);
    animation: tsaLsGlow 3s ease-in-out infinite;
}

.tsa-ls .tsa-ls-row__returns {
    font-family: var(--ls-mono-font);
    font-weight: 600;
    font-size: 16px;
    color: rgba(242, 237, 226, 0.8);
}

.tsa-ls .tsa-ls-row__price {
    font-family: var(--ls-head-font);
  font-weight: var(--tsa-font-display-weight, 800);
    font-size: 19px;
    color: var(--ls-cream);
}

.tsa-ls .tsa-ls-row__avail {
    display: flex;
    align-items: center;
    gap: 9px;
}

.tsa-ls .tsa-ls-row__avail i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ls-amber);
    animation: tsaLsBlink 1.4s steps(1) infinite;
    flex-shrink: 0;
}

.tsa-ls .tsa-ls-row__avail span {
    font-family: var(--ls-mono-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--ls-gold);
}

.tsa-ls .tsa-ls-row__cta {
    background: var(--ls-amber);
    color: var(--ls-pine);
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.tsa-ls .tsa-ls-row:hover .tsa-ls-row__cta {
    background: var(--ls-cream);
}

.tsa-ls .tsa-ls-board__foot {
    padding: 16px 32px;
    font-family: var(--ls-mono-font);
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(242, 237, 226, 0.4);
}

.tsa-ls .tsa-ls-board__foot a {
    color: var(--ls-gold);
}

.tsa-ls .tsa-ls-empty {
    font-size: 17px;
    color: var(--ls-body-color);
}

/* Admin picker (reuses last-calls IDs/classes) */

.tsa-ls .asp-admin-search-wrapper input {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    border: 1.5px solid rgba(18, 60, 59, 0.3);
    border-radius: 12px;
    background: var(--ls-paper);
    font-family: var(--ls-body-font);
}

/* ------------------------------------------------------------ Plan ahead */

.tsa-ls .tsa-ls-plan {
    background: var(--ls-sand);
}

.tsa-ls .tsa-ls-plan h2 {
    margin-bottom: 16px;
}

.tsa-ls .tsa-ls-plan__lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ls-body-color);
    max-width: 70ch;
    margin: 0 0 48px;
}

.tsa-ls .tsa-ls-plan__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 44px;
}

.tsa-ls .tsa-ls-plan__card {
    background: var(--ls-paper);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ls-ink);
    border-top: 4px solid #4E8A47;
}

.tsa-ls .tsa-ls-plan__card:nth-child(2) { border-top-color: var(--ls-ochre); }
.tsa-ls .tsa-ls-plan__card:nth-child(3) { border-top-color: #5F8A76; }
.tsa-ls .tsa-ls-plan__card:nth-child(4) { border-top-color: var(--ls-amber); }

.tsa-ls .tsa-ls-plan__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(18, 60, 59, 0.15);
    color: var(--ls-ink);
}

.tsa-ls .tsa-ls-plan__card h3 {
    font-size: 21px;
    margin: 0;
}

.tsa-ls .tsa-ls-plan__card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(32, 48, 45, 0.72);
    flex: 1;
}

.tsa-ls .tsa-ls-plan__card strong {
    font-weight: 700;
    font-size: 14px;
    color: var(--ls-ochre);
}

.tsa-ls .tsa-ls-plan__tag {
    font-family: var(--ls-head-font);
  font-weight: var(--tsa-font-display-weight, 800);
    font-size: 20px;
    color: var(--ls-pine);
    margin: 0;
    text-align: center;
    font-style: italic;
    text-wrap: balance;
}

/* -------------------------------------------------------------- CTA band */

.tsa-ls .tsa-ls-cta {
    background: var(--ls-pine);
    text-align: center;
}

.tsa-ls .tsa-ls-cta h2 {
    font-size: clamp(30px, 3.6vw, 50px);
    color: var(--ls-cream);
    margin: 0 0 16px;
    line-height: 1.06;
}

.tsa-ls .tsa-ls-cta p {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(242, 237, 226, 0.8);
    margin: 0 0 34px;
}

.tsa-ls .tsa-ls-cta__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------- Responsive */

@media (prefers-reduced-motion: reduce) {
    .tsa-ls .tsa-ls-ticker__track,
    .tsa-ls .tsa-ls-hero__chip i,
    .tsa-ls .tsa-ls-row__avail i,
    .tsa-ls .tsa-ls-row__departs {
        animation: none !important;
    }
}

@media (max-width: 1024px) {
    .tsa-ls .tsa-ls-how {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .tsa-ls .tsa-ls-plan__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* board collapses to stacked cards */
    .tsa-ls .tsa-ls-board__head {
        display: none;
    }

    .tsa-ls .tsa-ls-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
        padding: 24px;
    }

    .tsa-ls .tsa-ls-row__walk {
        grid-column: 1 / 3;
    }

    .tsa-ls .tsa-ls-row__departs::before,
    .tsa-ls .tsa-ls-row__returns::before,
    .tsa-ls .tsa-ls-row__price::before,
    .tsa-ls .tsa-ls-row__avail::before {
        content: attr(data-label);
        display: block;
        font-family: var(--ls-mono-font);
        font-size: 10.5px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: rgba(233, 185, 106, 0.7);
        margin-bottom: 4px;
    }

    .tsa-ls .tsa-ls-row__avail {
        display: block;
    }

    .tsa-ls .tsa-ls-row__avail i {
        display: none;
    }

    .tsa-ls .tsa-ls-row__cta {
        grid-column: 1 / 3;
    }
}

@media (max-width: 640px) {
    .tsa-ls .tsa-ls-plan__grid {
        grid-template-columns: 1fr;
    }

    .tsa-ls .tsa-ls-hero {
        min-height: 88vh;
    }
}

/* ==================================================================
   Footer template part recolour — Final Boarding palette.
   This stylesheet only loads on the Last Spots page.
   ================================================================== */

body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color {
    background-color: #E39A3B !important;
}

body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color .has-white-color,
body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color h3,
body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color p,
body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color label,
body.page-id-52825 footer.wp-block-template-part .has-darktext-background-color .gfield_required_text {
    color: #123C3B !important;
}

body.page-id-52825 footer.wp-block-template-part .gform_wrapper input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="file"]):not([type="hidden"]),
body.page-id-52825 footer.wp-block-template-part .gform_wrapper select,
body.page-id-52825 footer.wp-block-template-part .gform_wrapper textarea {
    background-color: #F2EDE2 !important;
    color: #123C3B !important;
    border-color: rgba(18, 60, 59, 0.35) !important;
}

body.page-id-52825 footer.wp-block-template-part .gform_wrapper input::placeholder,
body.page-id-52825 footer.wp-block-template-part .gform_wrapper textarea::placeholder {
    color: rgba(18, 60, 59, 0.6) !important;
    opacity: 1 !important;
}

body.page-id-52825 footer.wp-block-template-part .gform_wrapper .gfield_label,
body.page-id-52825 footer.wp-block-template-part .gform_wrapper legend,
body.page-id-52825 footer.wp-block-template-part .gform_wrapper .gfield_description {
    color: #123C3B !important;
}

body.page-id-52825 footer.wp-block-template-part .gform_wrapper .gform_button {
    background-color: #123C3B !important;
    color: #F2EDE2 !important;
}

body.page-id-52825 footer.wp-block-template-part .gform_wrapper .gform_button:hover {
    background-color: #F2EDE2 !important;
    color: #123C3B !important;
    opacity: 1 !important;
}

body.page-id-52825 footer.wp-block-template-part .footer-container.has-background-dark-background-color {
    background-color: #0C2624 !important;
}

body.page-id-52825 footer.wp-block-template-part .footer-container a:hover {
    color: #E9B96A;
}

body.page-id-52825 footer.wp-block-template-part .wp-block-cover.is-light .wp-block-cover__image-background {
    display: none !important;
}

body.page-id-52825 footer.wp-block-template-part .wp-block-cover.is-light {
    background: #F2EDE2;
}

body.page-id-52825 footer.wp-block-template-part .wp-block-cover.is-light .wp-block-cover__background {
    background-color: #F2EDE2 !important;
}
