

:root {
    /* COLOUR */
    --light: #f3f3f3;
    --bg-foggy: radial-gradient(circle at left,rgba(196,0,163,0) 80%, rgba(196,0,163,0.2) 100% ), linear-gradient(180deg, rgba(0,28,51,0) 50%, rgba(0,28,51,0.9) 100% ), radial-gradient(circle at right,rgba(0,28,51,0) 50%, rgba(0,28,51,0.7) 100% ), radial-gradient(circle at bottom,rgba(0,28,51,0) 50%, rgba(0,28,51,0.5) 100% );
}

.bg-breadcrumbs {
    background: linear-gradient(to right, rgb(74, 4, 78), rgb(23, 37, 84));
}

/* Climb Page Overrides*/
.banner {
    /* Display stuff */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    /* Positioning */
    position: relative;
    padding: 0 0.2rem 0 0.2rem;
    padding-bottom: 2.5rem;
    /* box-model stuff */
    width: 100%;
    min-height: 690px;
    height: 100vh;
    /* Typography */
    color: var(--light);
    text-align: center;
    /* Manipulation */
    /* Animations */
    /* Misc */
    /* ...then, alphabetical order within each */
}


/*Roadbook and Map Modal */
/* This relates to the popout mappy */

.banner {
    /* Display stuff */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    /* Positioning */
    padding: 0 0.2rem 0 0.2rem;
    padding-bottom: 2.5rem;
    /* box-model stuff */
    width: 100%;
    min-height: 690px;
    height: 100vh;
    /* Typography */
    color: var(--light);
    text-align: center;
    /* Manipulation */
    /* Animations */
    /* Misc */
    /* ...then, alphabetical order within each */
}

#banner {
    padding: 0;
    width: 100%;
    min-height: 50vh;
    height: 100vh;
    color: var(--light);
}

.banner_map {
    position: absolute;
    display: flex;
    flex-direction:column;
    gap: 10px;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 50vh;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -100;
    text-align: center;
    background-color: var(--light);
}

.launch-map-modal {
    position: relative;
    width: 100%;
    height: 100vh;
    opacity: 0;
    cursor: pointer;
}

.bg-foggy {
    position: relative;
    top: -64px;
    background: rgba(0,28,51,0.8);
    background: var(--bg-foggy);
    width: 100%;
    height: 100%;
}

.route-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.route-card {
    transition: all 0.3s ease;
}

#modal, #modal_accommodation {
    position: absolute;
}

#htmx_modal {
    position: fixed;
}

.wrap {
    padding: 1em;
}

@media (min-width: 43.75em) {
    .wrap {
        padding: 2em;
    }
}

.modal {
    display: block;
    padding: 0 1em;
    text-align: center;
    width: 100%;
}

@media (min-width: 43.75em) {

    .modal {
        padding: 1em 2em;
        text-align: right;
    }
}

.modal > label {
    background: #000;
    border-radius: .2em;
    color: #FFDE16;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin: 0.5em 1em;
    padding: 0.75em 1.5em;
    -webkit-transition: all 0.55s;
    transition: all 0.55s;
}

    .modal > label:hover {
        -webkit-transform: scale(0.97);
        -ms-transform: scale(0.97);
        transform: scale(0.97);
    }

.modal input {
    position: fixed;
    right: 100px;
    top: 30px;
    z-index: -10;
}

.modal__overlay {
    background: black;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
    z-index: -800;
}

.modal__box {
    position: relative;
    width: 100%;
    height: 100vh;
}

@media (min-height: 37.5em) {
    .modal__box {
        left: 50%;
        position: absolute;
        top: 80vh;
        -webkit-transform: translate(-50%, -80%);
        -ms-transform: translate(-50%, -80%);
        transform: translate(-50%, -80%);
    }
}

@media (min-width: 5em) {
    .modal__box label {
        background: var(--light);
        border-radius: 50%;
        cursor: pointer;
        display: inline-block;
        height: 2rem;
        width: 2rem;
        line-height: 1.95em;
        position: absolute;
        right: 1.5rem;
        top: 1.5rem;
    }

    .modal__box h2 {
        color: #FFDE16;
        margin-bottom: 1em;
        text-transform: uppercase;
    }

    .modal__box p {
        color: #FFDE16;
        text-align: left;
    }

    .modal__overlay {
        opacity: 0;
        overflow: hidden;
        -webkit-transform: scale(0.5);
        -ms-transform: scale(0.5);
        transform: scale(0.5);
        -webkit-transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
        transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
    }

    input:checked ~ .modal__overlay {
        opacity: 1;
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        transform: scale(1);
        -webkit-transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
        transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 800;
    }

    input:focus + label {
        -webkit-transform: scale(0.97);
        -ms-transform: scale(0.97);
        transform: scale(0.97);
    }
}

.custom-radio:checked + .radio-label {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

#distance::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

#distance::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}

/* Improved semantic heading hierarchy */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

    .mobile-menu.open {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

/* Print styles */
@media print {
    nav, footer, .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/*Climb Page*/

.hero-container {
    display: flex;
    justify-content:center;
    text-align: center;
    height: 100vh;
    z-index: 10;
}


.hero-image {
    position: absolute;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    animation: fadeToLowOpacity 5s forwards;
    z-index: 1;
}

@keyframes fadeToLowOpacity {
    from {
        opacity: 8;
    }

    to {
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .hero-container {
        height: 350px;
    }
}




.gradient-bg {
    background: linear-gradient(270deg, #1e40af, #3b82f6, #93c5fd, #3b82f6, #1e40af);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

.elevation-chart {
    height: 200px;
    width: 100%;
    position: relative;
}

.route-map {
    height: 400px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.climb-difficulty {
    width: 24px;
    height: 24px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 4px;
}

/* Policy Page Formating (Legacy) */

#policies, #site-map {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 0 0 3rem;
    margin-bottom: 5rem;
}

    #policies div h1, #site-map div h1 {
        color: var(--primary);
        font-size: 3rem;
        margin-bottom: 2rem;
    }

    #policies div h2 {
        font-weight: 700;
        font-size: 1rem;
        margin-top: 3rem;
        margin-bottom: 1rem;
    }

    #policies div, #site-map div {
        max-width: 800px;
    }

    #policies ul li, #site-map ul li {
        margin-left: 2rem;
        margin-top: 1rem;
        list-style: circle inside;
    }
