/**
 * Asia Cycling Tours — fullscreen hero and floating tour finder.
 * Loaded after the homepage and sitewide styles so it can safely refine them.
 */

body.page-template-page-global-cycling-home .gct-hero {
    min-height: 100vh;
    min-height: 100svh;
    background: #182044;
}

body.page-template-page-global-cycling-home .gct-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 78% 38%, rgba(214, 155, 34, .18), transparent 34%),
        linear-gradient(180deg, rgba(5, 18, 10, .08) 45%, rgba(5, 18, 10, .72) 100%);
    content: "";
    pointer-events: none;
}

body.page-template-page-global-cycling-home .gct-hero__background {
    transform: scale(1.015);
    filter: saturate(1.08) contrast(1.03);
}

body.page-template-page-global-cycling-home .gct-hero__overlay {
    background:
        linear-gradient(90deg, rgba(5, 20, 11, .88) 0%, rgba(8, 31, 17, .67) 43%, rgba(8, 25, 14, .16) 78%),
        linear-gradient(0deg, rgba(4, 15, 8, .58) 0%, transparent 47%);
}

body.page-template-page-global-cycling-home .gct-hero__copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-bottom: 52px;
}

body.page-template-page-global-cycling-home .gct-hero__copy h1 {
    max-width: 760px;
    text-wrap: balance;
    text-shadow: 0 5px 28px rgba(0, 0, 0, .32);
}

body.page-template-page-global-cycling-home .gct-hero__lead {
    max-width: 640px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .28);
}

/* Floating tour finder */
body.page-template-page-global-cycling-home .gct-search-wrap {
    position: relative;
    z-index: 40;
    margin-top: -104px;
    padding: 0 0 12px;
    overflow: visible;
}

body.page-template-page-global-cycling-home .gct-search-wrap .gct-shell {
    width: min(1320px, calc(100% - 48px));
}

body.page-template-page-global-cycling-home .gct-tour-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(150px, .78fr) minmax(180px, .92fr) minmax(160px, .84fr) minmax(190px, auto);
    gap: 8px;
    align-items: stretch;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow:
        0 28px 70px rgba(5, 31, 16, .24),
        0 8px 22px rgba(5, 31, 16, .12),
        inset 0 1px 0 rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
}

body.page-template-page-global-cycling-home .gct-tour-search::before {
    position: absolute;
    top: -1px;
    right: 34px;
    left: 34px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, transparent, #E3A72F 25%, #E3A72F 72%, transparent);
    content: "";
    pointer-events: none;
}

body.page-template-page-global-cycling-home .gct-tour-search label {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 12px 16px 11px;
    border: 1px solid transparent;
    border-right: 0;
    border-radius: 15px;
    background: rgba(246, 244, 239, .72);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.page-template-page-global-cycling-home .gct-tour-search label:hover {
    background: #fff;
    border-color: rgba(23, 61, 40, .12);
}

body.page-template-page-global-cycling-home .gct-tour-search label:focus-within {
    z-index: 2;
    background: #fff;
    border-color: rgba(106, 166, 51, .7);
    box-shadow: 0 0 0 4px rgba(106, 166, 51, .12);
    transform: translateY(-1px);
}

body.page-template-page-global-cycling-home .gct-tour-search label > span {
    display: block;
    margin: 0 0 3px;
    color: #647087;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.page-template-page-global-cycling-home .gct-tour-search select {
    width: 100%;
    min-width: 0;
    height: 34px;
    margin: 0;
    padding: 0 30px 0 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #172319;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23173d28' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 3px center;
    background-repeat: no-repeat;
    background-size: 15px;
    box-shadow: none;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.page-template-page-global-cycling-home .gct-tour-search select:focus {
    outline: 0;
    box-shadow: none;
}

body.page-template-page-global-cycling-home .gct-search-submit {
    position: relative;
    align-self: stretch;
    min-width: 184px;
    min-height: 66px;
    margin: 0;
    padding: 14px 24px 14px 52px;
    border: 1px solid rgba(9, 44, 25, .18);
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #1c5335 0%, #182044 100%);
    box-shadow: 0 13px 28px rgba(14, 44, 28, .28);
    font-size: .84rem;
    letter-spacing: .045em;
    overflow: hidden;
}

body.page-template-page-global-cycling-home .gct-search-submit::before {
    position: absolute;
    top: 50%;
    left: 23px;
    width: 19px;
    height: 19px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.7-3.7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    transform: translateY(-50%);
}

body.page-template-page-global-cycling-home .gct-search-submit::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 24%, rgba(255, 255, 255, .18) 48%, transparent 72%);
    content: "";
    transform: translateX(-130%);
    transition: transform .55s ease;
    pointer-events: none;
}

body.page-template-page-global-cycling-home .gct-search-submit:hover,
body.page-template-page-global-cycling-home .gct-search-submit:focus-visible {
    color: #273469;
    border-color: #e4b33f;
    background: linear-gradient(135deg, #f2c85d 0%, #E3A72F 100%);
    box-shadow: 0 16px 34px rgba(165, 110, 12, .32);
    transform: translateY(-2px);
}

body.page-template-page-global-cycling-home .gct-search-submit:hover::before,
body.page-template-page-global-cycling-home .gct-search-submit:focus-visible::before {
    filter: brightness(0) saturate(100%) invert(18%) sepia(18%) saturate(1252%) hue-rotate(94deg) brightness(88%) contrast(92%);
}

body.page-template-page-global-cycling-home .gct-search-submit:hover::after,
body.page-template-page-global-cycling-home .gct-search-submit:focus-visible::after {
    transform: translateX(130%);
}

body.page-template-page-global-cycling-home .gct-search-submit:focus-visible {
    outline: 3px solid rgba(214, 155, 34, .35);
    outline-offset: 3px;
}

body.page-template-page-global-cycling-home .gct-search-reset {
    grid-column: 1 / -1;
    justify-self: end;
    margin: -2px 8px 1px 0;
    padding: 5px 8px;
    border-radius: 999px;
    color: #273469;
    font-size: .73rem;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.page-template-page-global-cycling-home .gct-search-reset:hover,
body.page-template-page-global-cycling-home .gct-search-reset:focus-visible {
    color: #8a5b09;
    background: #fff6dc;
}

/* Large tablets and smaller laptops */
@media (max-width: 1120px) {
    body.page-template-page-global-cycling-home .gct-search-wrap {
        margin-top: -88px;
    }

    body.page-template-page-global-cycling-home .gct-tour-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 12px;
    }

    body.page-template-page-global-cycling-home .gct-search-submit {
        grid-column: 1 / -1;
        min-height: 58px;
    }
}

/* Mobile tour finder */
@media (max-width: 768px) {
    body.page-template-page-global-cycling-home .gct-hero__copy {
        padding-bottom: 86px;
    }

    body.page-template-page-global-cycling-home .gct-search-wrap {
        margin-top: -76px;
        padding-bottom: 8px;
    }

    body.page-template-page-global-cycling-home .gct-search-wrap .gct-shell {
        width: min(100% - 24px, 620px);
    }

    body.page-template-page-global-cycling-home .gct-tour-search {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 22px 48px rgba(5, 31, 16, .24);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    body.page-template-page-global-cycling-home .gct-tour-search::before {
        right: 24px;
        left: 24px;
    }

    body.page-template-page-global-cycling-home .gct-tour-search label {
        min-height: 61px;
        padding: 9px 13px 8px;
        border: 1px solid rgba(23, 61, 40, .08);
        border-radius: 13px;
    }

    body.page-template-page-global-cycling-home .gct-tour-search label > span {
        font-size: .64rem;
    }

    body.page-template-page-global-cycling-home .gct-tour-search select {
        height: 31px;
        font-size: .92rem;
    }

    body.page-template-page-global-cycling-home .gct-search-submit {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        min-height: 58px;
        margin-top: 2px;
        border-radius: 14px;
    }

    body.page-template-page-global-cycling-home .gct-search-reset {
        grid-column: auto;
        justify-self: center;
        margin: 2px 0 0;
    }
}

@media (max-width: 420px) {
    body.page-template-page-global-cycling-home .gct-search-wrap {
        margin-top: -64px;
    }

    body.page-template-page-global-cycling-home .gct-search-wrap .gct-shell {
        width: calc(100% - 18px);
    }

    body.page-template-page-global-cycling-home .gct-tour-search {
        padding: 8px;
        border-radius: 18px;
    }

    body.page-template-page-global-cycling-home .gct-tour-search label {
        min-height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-template-page-global-cycling-home .gct-hero__background,
    body.page-template-page-global-cycling-home .gct-tour-search label,
    body.page-template-page-global-cycling-home .gct-search-submit,
    body.page-template-page-global-cycling-home .gct-search-submit::after {
        transition: none;
        transform: none;
    }
}
