/* $$$$$ Fleet refresh page styles. Shared tokens, components and slider controls come from home-figma-test.css. */
.gl-fleet-icon {
    display: inline-flex;
    align-items: center;
    color: var(--gl-brand);
}

/* $$$$$ Hero: approved 1455x650 inner banner with the refreshed transparent header. */
.gl-fleet-hero {
    min-height: 560px;
}

/* $$$$$ Size the hero media image locally so the page never depends on airport-refresh-test.css. */
.gl-fleet-hero .gl-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.05);
}

.gl-fleet-hero .gl-hero__content {
    min-height: 560px;
    padding: 150px 0 64px;
}

.gl-fleet-hero .gl-hero__copy {
    max-width: 820px;
}

.gl-fleet-hero .gl-hero__copy h1 {
    margin: 14px 0 0;
    font-size: 58px;
    line-height: 1.06;
}

.gl-fleet-hero .gl-hero__copy > p:last-child {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.gl-fleet-hero .gl-hero__overlay {
    background:
        linear-gradient(180deg, rgba(7, 24, 36, 0.55) 0%, rgba(7, 24, 36, 0.2) 45%, rgba(7, 24, 36, 0.62) 100%),
        linear-gradient(90deg, rgba(5, 22, 34, 0.7), rgba(5, 22, 34, 0.12) 78%);
}

/* $$$$$ Fleet slider section reuses the shared slider header, controls and counter. */
.grandlane-page #fleet.gl-fleet-detail {
    padding: 92px 0;
    background: rgba(231, 248, 255, 0.45);
}

.grandlane-page #fleet.gl-fleet-detail .gl-slider__viewport {
    border-radius: 24px;
}

.grandlane-page .gl-slider--fleet-detail .gl-slider__track {
    gap: 24px;
}

.grandlane-page .gl-slider--fleet-detail [data-gl-slider-slide] {
    flex: 0 0 100%; /* $$$$$ One full reference card per slide at every breakpoint. */
}

.gl-fleet-detail__card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    border: 1px solid var(--gl-border);
    border-radius: 24px;
    background: var(--gl-card);
    box-shadow: var(--gl-shadow-soft);
}

.gl-fleet-detail__media {
    position: relative;
    display: grid;
    min-height: 340px;
    place-items: center;
    padding: 28px;
    background: #ffffff;
}

.gl-fleet-detail__media img {
    width: 100%;
    height: 100%;
    max-height: 440px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease;
}

.gl-fleet-detail__card:hover .gl-fleet-detail__media img {
    transform: scale(1.03);
}

.gl-fleet-detail__badge {
    position: absolute;
    top: 22px;
    left: 22px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 12px;
    background: var(--gl-brand);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.gl-fleet-detail__badge .gl-fleet-icon {
    color: currentColor;
}

.gl-fleet-detail__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 48px 44px;
}

.gl-fleet-detail__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.gl-fleet-detail__class {
    margin: 0;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
}

.gl-fleet-detail__price {
    margin: 0;
    color: var(--gl-brand);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.gl-fleet-detail__vehicle {
    margin: 8px 0 0;
    color: var(--gl-muted);
    font-size: 14px;
}

.gl-fleet-detail__text {
    margin: 20px 0 0;
    color: var(--gl-ink-soft);
    font-size: 16px;
}

.gl-fleet-detail__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin: 22px 0 0;
}

.gl-fleet-detail__specs span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gl-ink);
    font-size: 14px;
}

/* $$$$$ Passenger and luggage icons stay brand blue over the darker specification label. */
.gl-fleet-detail__specs .gl-fleet-icon {
    color: var(--gl-brand);
}

.gl-fleet-detail__specs .gl-fleet-icon svg {
    stroke: var(--gl-brand);
}

.gl-fleet-detail__rule {
    height: 1px;
    margin: 24px 0 0;
    background: linear-gradient(to right, transparent, var(--gl-border), transparent);
}

.gl-fleet-detail__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.gl-fleet-detail__features li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gl-ink-soft);
    font-size: 14px;
}

.gl-fleet-detail__features .gl-fleet-icon {
    flex: 0 0 auto;
}

.gl-fleet-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 0;
}

/* $$$$$ Button geometry mirrors the Lovable reference btn-brand / btn-ghost-brand contract. */
.gl-fleet-detail__book,
.gl-fleet-detail__prices {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* $$$$$ Anchor colours must outrank the shared .grandlane-page a { color: inherit } rule. */
.grandlane-page a.gl-fleet-detail__book { color: #ffffff; }
.grandlane-page a.gl-fleet-detail__prices { color: var(--gl-ink); }

.gl-fleet-detail__book {
    border: 1px solid var(--gl-brand);
    padding: 0.85rem 1.75rem;
    background: var(--gl-brand);
    color: #ffffff;
    box-shadow: 0 10px 30px -12px rgba(8, 127, 173, 0.5);
}

.gl-fleet-detail__book .gl-fleet-icon {
    color: currentColor; /* $$$$$ Keep the arrow white on the brand button. */
}

.grandlane-page a.gl-fleet-detail__book:hover,
.grandlane-page a.gl-fleet-detail__book:focus-visible {
    border-color: var(--gl-brand-dark, #087fad);
    background: var(--gl-brand-dark, #087fad);
    color: #ffffff;
    box-shadow: 0 14px 34px -14px rgba(8, 127, 173, 0.6);
    transform: translateY(-1px);
}

.gl-fleet-detail__prices {
    border: 1px solid var(--gl-border);
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--gl-ink);
}

.gl-fleet-detail__prices:hover {
    border-color: var(--gl-brand);
    color: var(--gl-brand);
}

.grandlane-page a.gl-fleet-detail__prices:hover {
    color: var(--gl-brand);
}

.gl-fleet-detail__empty {
    padding: 48px;
    border: 1px solid var(--gl-border);
    border-radius: 24px;
    background: var(--gl-card);
    text-align: center;
}

.gl-fleet-detail__empty h3 {
    margin: 0;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 30px;
}

.gl-fleet-detail__empty p {
    max-width: 520px;
    margin: 12px auto 0;
    color: var(--gl-ink-soft);
}

.gl-fleet-detail__empty .gl-fleet-detail__book {
    margin-top: 24px;
}

/* $$$$$ Experience zigzag rows mirroring the approved reference order and rhythm. */
.gl-fleet-experience {
    padding: 92px 0;
    background: var(--gl-bg);
}

.gl-fleet-experience__rows {
    display: grid;
    gap: 80px;
}

.gl-fleet-experience__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.gl-fleet-experience__row--reverse .gl-fleet-experience__media {
    order: 2;
}

.gl-fleet-experience__media {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--gl-shadow);
}

.gl-fleet-experience__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gl-fleet-experience__media:hover img {
    transform: scale(1.05);
}

.gl-fleet-experience__kicker {
    margin: 0;
    color: var(--gl-brand);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.gl-fleet-experience__copy h3 {
    margin: 12px 0 0;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
}

.gl-fleet-experience__text {
    margin: 16px 0 0;
    color: var(--gl-ink-soft);
}

.gl-fleet-experience__bullets {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.gl-fleet-experience__bullets li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gl-ink);
    font-size: 14px;
}

.gl-fleet-experience__bullets .gl-fleet-icon {
    flex: 0 0 auto;
}

/* $$$$$ Four assurance cards on the soft brand surface. */
.gl-fleet-assurance {
    padding: 76px 0;
    background: rgba(231, 248, 255, 0.45);
}

.gl-fleet-assurance__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gl-fleet-assurance__card {
    padding: 28px;
    border: 1px solid var(--gl-border);
    border-radius: 24px;
    background: var(--gl-card);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gl-fleet-assurance__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0; /* $$$$$ No boxed frame around the assurance glyphs. */
    background: transparent; /* $$$$$ Bare blue icon on the card surface. */
}

.gl-fleet-assurance__icon .gl-fleet-icon {
    color: var(--gl-brand);
}

/* $$$$$ Let the 22px helper size reach the glyph now that the frame is gone:
   .grandlane-page .gl-icon svg (0,2,1) pins shared icons to 16px. */
.grandlane-page .gl-fleet-assurance__icon .gl-fleet-icon svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.gl-fleet-assurance__card h3 {
    margin: 18px 0 8px;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.gl-fleet-assurance__card p {
    margin: 0;
    color: var(--gl-ink-soft);
    font-size: 14px;
}

/* $$$$$ Closing call to action as a rounded brand-gradient card, matching the Lovable reference. */
.gl-fleet-cta {
    padding: 96px 0;
    background: var(--gl-bg);
}

.gl-fleet-cta__card {
    position: relative;
    overflow: hidden;
    padding: 72px 48px;
    border-radius: 24px;
    background: linear-gradient(120deg, #0a9cd1 0%, #075f88 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 24px 70px rgba(28, 74, 98, 0.18);
}

.gl-fleet-cta h2 {
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff !important;
    font-family: "Cormorant Garamond", "Playfair Display", serif;
    font-size: 46px;
    font-weight: 600;
    line-height: 1.1;
}

.gl-fleet-cta p {
    max-width: 620px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.88);
}

.gl-fleet-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 0;
}

/* $$$$$ Closing-card primary action follows the reference: white pill with a black label.
   The anchor sits inside .gl-fleet-cta__card, so the selector must target
   .grandlane-page .gl-fleet-cta__card a.gl-fleet-detail__book (0,3,1) to outrank
   .grandlane-page a.gl-fleet-detail__book { color: #ffffff } (0,2,1). */
.grandlane-page .gl-fleet-cta__card a.gl-fleet-detail__book {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000; /* $$$$$ Black label on the white pill. */
    box-shadow: 0 14px 34px -14px rgba(4, 30, 46, 0.45);
}

.grandlane-page .gl-fleet-cta__card a.gl-fleet-detail__book .gl-fleet-icon {
    color: currentColor; /* $$$$$ Black arrow follows the black label. */
}

.grandlane-page .gl-fleet-cta__card a.gl-fleet-detail__book:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #000000;
    box-shadow: 0 18px 38px -16px rgba(4, 30, 46, 0.55);
    transform: translateY(-1px);
}

.grandlane-page a.gl-fleet-cta__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 9999px;
    padding: 0.8rem 1.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    /* $$$$$ The primary pill inherits line-height 1.2 from the shared button contract, but this
       anchor would otherwise inherit the body line-height (1.65), making its line box ~25.1px
       against the primary's ~18.2px and its pill ~5px taller. Pin the same contract. */
    line-height: 1.2;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.gl-fleet-cta__phone .gl-fleet-icon {
    color: currentColor;
}

.grandlane-page a.gl-fleet-cta__phone:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* $$$$$ Alignment parity with the rest of the page. The shared /ourfleet/ stylesheet widens
   #fleet's container to min(1380px, calc(100% - 64px)) from 1500px up, which pushed the slider
   copy and card ~96px further left (and 192px wider) than the hero, zigzag, assurance and CTA
   sections, all of which use min(1188px, calc(100% - 48px)). Re-pin the fleet container so every
   section on this page shares one left edge. Scoped to .gl-fleet-refresh-page so the legacy
   /ourfleet/ slider keeps its own metrics. */
@media (min-width: 1500px) {
    .grandlane-page.gl-fleet-refresh-page #fleet .gl-container {
        width: min(1188px, calc(100% - 48px));
    }
}

/* $$$$$ Responsive parity with the reference breakpoints. */
@media (max-width: 1024px) {
    .gl-fleet-hero,
    .gl-fleet-hero .gl-hero__content {
        min-height: 500px;
    }

    .gl-fleet-hero .gl-hero__content {
        padding: 130px 0 56px;
    }

    .gl-fleet-hero .gl-hero__copy h1 {
        font-size: 44px;
    }

    .gl-fleet-detail__card {
        grid-template-columns: 1fr;
    }

    .gl-fleet-detail__media {
        min-height: 260px;
        padding: 20px;
    }

    .gl-fleet-detail__body {
        padding: 36px 32px;
    }

    .gl-fleet-experience__row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gl-fleet-experience__row--reverse .gl-fleet-experience__media {
        order: 0;
    }

    .gl-fleet-assurance__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .grandlane-page #fleet.gl-fleet-detail {
        padding: 64px 0;
    }

    .gl-fleet-hero .gl-hero__copy h1 {
        font-size: 34px;
    }

    .gl-fleet-hero .gl-hero__copy > p:last-child {
        font-size: 16px;
    }

    .gl-fleet-detail__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gl-fleet-detail__features {
        grid-template-columns: 1fr;
    }

    .gl-fleet-detail__actions {
        gap: 10px;
    }

    .gl-fleet-detail__book,
    .gl-fleet-detail__prices {
        flex: 1 1 auto;
        justify-content: center;
    }

    .gl-fleet-experience {
        padding: 64px 0;
    }

    .gl-fleet-experience__rows {
        gap: 56px;
    }

    .gl-fleet-experience__copy h3 {
        font-size: 28px;
    }

    .gl-fleet-assurance {
        padding: 56px 0;
    }

    .gl-fleet-assurance__grid {
        grid-template-columns: 1fr;
    }

    .gl-fleet-cta {
        padding: 64px 0;
    }

    .gl-fleet-cta__card {
        padding: 48px 24px;
    }

    .gl-fleet-cta h2 {
        font-size: 32px;
    }

    /* $$$$$ Mobile parity for the closing-card actions. The two pills ship different geometry
       (primary .gl-fleet-detail__book padding 0.85rem 1.75rem, ghost .gl-fleet-cta__phone
       padding 0.8rem 1.5rem), so once they wrap onto separate lines on a phone the pair reads
       as two mismatched controls. Stack them and pin both to one width and one height; only the
       paint (white pill vs. outlined pill) stays different. */
    .gl-fleet-cta__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        /* $$$$$ Phones still fill the card; wider phones/tablets keep a sane pill length instead
           of stretching the pair into banners. Both pills stay identical either way. */
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .grandlane-page .gl-fleet-cta__card a.gl-fleet-detail__book,
    .grandlane-page .gl-fleet-cta__card a.gl-fleet-cta__phone {
        width: 100%;
        min-height: 52px;
        padding: 0.85rem 1.25rem;
        justify-content: center;
    }
}
