
/* "What we offer" tiles: big picture on top, name + short description below. */
#home_products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1500px;
    margin: 20px auto 0 auto;
}
#home_products > a {
    width: 420px;
    margin: 18px 20px;
    border: 1px solid #dfdfdf;
    text-decoration: none;
    transition: transform .5s ease;
}
#home_products > a:hover {
    transform: scale(1.04);
}
#home_products .home_products_img img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}
#home_products .home_products_text {
    background: #fff;
    padding: 16px 20px 20px 20px;
    text-align: left;
}
#home_products .home_products_name {
    font-size: 22px;
    font-weight: bold;
    color: #313131;
}
#home_products .home_products_desc {
    margin-top: 6px;
    font-size: 16px;
    color: #3c4b78;
}
@media screen and (max-width: 500px)
{
    #home_products > a {
        width: 100%;
        max-width: 420px;
    }
}


/* "Which season?" — immersive full-image cards in a horizontal scroller. */
#home_seasons_wrap {
    position: relative;
    max-width: 2100px;
    margin: 20px auto 0 auto;
}
#home_seasons {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    padding: 0 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;             /* Firefox: hide native bar, use arrows */
}
#home_seasons::-webkit-scrollbar {     /* Chrome/Safari */
    display: none;
}
#home_seasons .home_season_tile {
    position: relative;
    /* grow to fill when they fit, never shrink below the basis -> overflow + scroll */
    flex: 1 0 320px;
    height: 360px;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
}

/* Scroll arrows: hidden by default, shown by JS only when the track overflows. */
.home_seasons_arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    color: #26408c;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.3s ease, background 0.2s ease;
}
.home_seasons_arrow:hover {
    background: #fff;
}
.home_seasons_prev { left: 10px; }
.home_seasons_next { right: 10px; }
#home_seasons_wrap.scrollable .home_seasons_arrow {
    display: flex;
}
.home_seasons_arrow.disabled {
    opacity: 0;
    pointer-events: none;
}
#home_seasons .home_season_tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}
#home_seasons .home_season_tile:hover img {
    transform: scale(1.08);
}
#home_seasons .home_season_shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 27, 49, 0.82) 0%, rgba(19, 27, 49, 0.25) 42%, rgba(19, 27, 49, 0) 70%);
    transition: background 0.4s ease;
}
#home_seasons .home_season_tile:hover .home_season_shade {
    background: linear-gradient(to top, rgba(38, 64, 140, 0.85) 0%, rgba(19, 27, 49, 0.35) 55%, rgba(19, 27, 49, 0.05) 100%);
}
#home_seasons .home_season_label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    padding: 0 24px;
    text-align: center;
    color: #fff;
}
#home_seasons .home_season_name {
    display: block;
    font-family: "Roboto", "Helvetica", sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
/* accent underline grows in on hover */
#home_seasons .home_season_name::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    margin: 10px auto 0 auto;
    background: #fff;
    transition: width 0.4s ease;
}
#home_seasons .home_season_tile:hover .home_season_name::after {
    width: 46px;
}
/* month range slides up + fades in on hover */
#home_seasons .home_season_months {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
#home_seasons .home_season_tile:hover .home_season_months {
    opacity: 1;
    transform: translateY(0);
}
@media screen and (max-width: 600px)
{
    /* Stay a horizontal scroller (swipe), just slimmer tiles. */
    #home_seasons .home_season_tile {
        flex: 0 0 78%;
        height: 300px;
    }
    /* on touch screens there is no hover — keep the month range visible */
    #home_seasons .home_season_months {
        opacity: 1;
        transform: none;
    }
}


/* Wilderness camp highlight band. */
#home_camp {
    background: #f4f7fb;
    border-top: 1px solid #e6ecf5;
    border-bottom: 1px solid #e6ecf5;
    padding: 50px 0;
    margin-top: 50px;
}
#home_camp .picture_big img {
    border-radius: 4px;
}
/* Camp photo crossfade slideshow. */
#home_camp_slider {
    position: relative;
    overflow: hidden;
}
#home_camp_slider .home_camp_slide {
    display: block;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}
#home_camp_slider .home_camp_slide.active {
    opacity: 1;
}
/* first image stays in flow to set the height; the rest overlay it */
#home_camp_slider .home_camp_slide:not(:first-child) {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
}


/* "Our activities" — immersive picture tiles (grid) on the left, the selected
   activity's description on the right. */
#home_activities {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1500px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

/* Left: a grid of 2–3 immersive tiles (same style as the season tiles). */
#home_activities_list {
    flex: 1 1 58%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
    align-content: start;
}
#home_activities_list .home_activity_tile {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}
#home_activities_list .home_activity_tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s ease;
}
#home_activities_list .home_activity_tile:hover img {
    transform: scale(1.08);
}
#home_activities_list .home_activity_shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(19, 27, 49, 0.82) 0%, rgba(19, 27, 49, 0.2) 55%, rgba(19, 27, 49, 0) 100%);
    transition: background 0.4s ease;
}
#home_activities_list .home_activity_tile:hover .home_activity_shade {
    background: linear-gradient(to top, rgba(38, 64, 140, 0.85) 0%, rgba(19, 27, 49, 0.25) 60%, rgba(19, 27, 49, 0.05) 100%);
}
#home_activities_list .home_activity_name {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    padding: 0 16px;
    text-align: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
/* Active (selected) tile: brand-blue ring + accent gradient. */
#home_activities_list .home_activity_tile.active {
    box-shadow: 0 0 0 3px #26408c;
}
#home_activities_list .home_activity_tile.active .home_activity_shade {
    background: linear-gradient(to top, rgba(38, 64, 140, 0.9) 0%, rgba(38, 64, 140, 0.2) 70%, rgba(38, 64, 140, 0) 100%);
}

/* Right: the description of the selected activity. */
#home_activities_detail {
    flex: 1 1 42%;
    min-width: 0;
    position: sticky;
    top: 20px;
}
#home_activities_detail .activity_detail {
    display: none;
}
#home_activities_detail .activity_detail.active {
    display: block;
}
#home_activities_detail h2 {
    text-align: left;
    padding-left: 0;
    margin-left: 0;
    padding-bottom: 4px;
}
#home_activities_detail .activity_detail_timeframe {
    color: #8a8a8a;
    font-size: 15px;
    margin: 0 0 14px 10px;
}
#home_activities_detail .activity_detail_timeframe i {
    margin-right: 6px;
}
#home_activities_detail .activity_detail_text {
    line-height: 1.6;
}

@media screen and (max-width: 800px)
{
    /* Stack: tile grid on top, description below. */
    #home_activities {
        flex-direction: column;
    }
    #home_activities_list,
    #home_activities_detail {
        width: 100%;
        flex: 1 1 auto;
    }
    #home_activities_detail {
        position: static;
    }
}


#home_icons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 50px;
}
#home_icons > div {
    margin: 10px;
}
#home_icons > div > div {
    text-align: center;
}
#home_icons > div > div:last-child {
    color: #000000bf;
}
#home_icons i {
    font-size: 40px;
    margin: 25px;
    color: #111111bd;
}
@media screen and (max-width: 1200px)
{
    #home_icons {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 800px;
    }
    #home_icons > div {
        margin: 10px 30px;
    }
}
@media screen and (max-width: 630px)
{
    #home_icons {
        flex-wrap: wrap;
        margin: 20px auto;
    }
    #home_icons > div {
        width: 250px;
        margin: 10px auto;
    }
    #home_icons i {
        margin: 10px;
    }
}


#home_book_advertisement p {
    color: white;
    font-size: 50px;
    text-align: center;
    font-weight: bold;
    max-width: 1000px;
    margin: 0 auto;
    text-shadow: 0 2px 10px #8a8a8a75, 0 2px 2px #aaaaaa4f;
}

#home_book_advertisement h2 {
    text-align: center;
}

@media screen and (min-width: 1001px)
{
    #home_book_advertisement {
        width: 100%;
        height: 500px;
        /*background: url("https://spitzbergen-reisen.no/img/chrisi_buch.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/sailboat-meander-under-sail.jpg") no-repeat center bottom; /* Meander Tour */
        /*background: url("https://spitzbergen-reisen.no/img/mv-meander-svalbard.jpg") no-repeat center bottom;*/
        background: url("https://cdn2.spitzbergen-reisen.no/img/nordlichter-schneemobil.jpg") no-repeat center;
        /*background: url("https://spitzbergen-reisen.no/img/snowmobiling-svalbard-c-piet-van-den-bemd.png") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/longyearbyen-herbst-cover.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/2025-kalender-werbung-lang.jpg") no-repeat center top;*/
        background-size: cover;
    }
}

@media screen and (max-width: 1000px) and (min-width: 801px)
{
    #home_book_advertisement {
        width: 100%;
        height: 400px;
        /*background: url("https://spitzbergen-reisen.no/img/chrisi_buch_middle.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/sailboat-meander-under-sail.jpg") no-repeat center bottom;*/
        /*background: url("https://spitzbergen-reisen.no/img/mv-meander-svalbard.jpg") no-repeat center bottom; /* Meander Tour */
        /*background: url("https://spitzbergen-reisen.no/img/calender-cover-advertisement.jpg") no-repeat center bottom;*/
        background: url("https://cdn2.spitzbergen-reisen.no/img/nordlichter-schneemobil.jpg") no-repeat center bottom;
        /*background: url("https://spitzbergen-reisen.no/img/snowmobiling-svalbard-c-piet-van-den-bemd.png") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/longyearbyen-herbst-cover.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/2025-kalender-werbung-lang.jpg") no-repeat center top;*/
        background-size: cover;
    }
}

@media screen and (max-width: 800px) and (min-width: 501px)
{
    #home_book_advertisement {
        width: 100%;
        height: 400px;
        /*background: url("https://spitzbergen-reisen.no/img/chrisi_buch_small.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/sailboat-meander-under-sail.jpg") no-repeat center bottom;*/
        /*background: url("https://spitzbergen-reisen.no/img/mv-meander-svalbard.jpg") no-repeat center bottom; /* Meander Tour */
        /*background: url("https://spitzbergen-reisen.no/img/calender-cover-advertisement.jpg") no-repeat center bottom;*/
        background: url("https://cdn2.spitzbergen-reisen.no/img/nordlichter-schneemobil.jpg") no-repeat center bottom;
        /*background: url("https://spitzbergen-reisen.no/img/snowmobiling-svalbard-c-piet-van-den-bemd.png") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/longyearbyen-herbst-cover.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/2025-kalender-werbung-lang.jpg") no-repeat center top;*/
        background-size: cover;
        align-self: center;
    }
    #home_book_advertisement > div > div {
        justify-self: end;
        margin: 60px;
    }
    #home_book_advertisement h2 {
        font-size: 30px;
    }

    #home_book_advertisement p {
        font-size: 40px;
    }
}

@media screen and (max-width: 500px)
{
    #home_book_advertisement {
        width: 100%;
        height: 600px;
        /*background: url("https://spitzbergen-reisen.no/img/chrisi_buch_smallest.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/sailboat-meander-under-sail.jpg") no-repeat center bottom; /* Meander Tour */
        background: url("https://cdn2.spitzbergen-reisen.no/img/nordlichter-schneemobil.jpg") no-repeat center bottom;
        /*background: url("https://spitzbergen-reisen.no/img/snowmobiling-svalbard-c-piet-van-den-bemd.png") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/longyearbyen-herbst-cover.jpg") no-repeat center;*/
        /*background: url("https://spitzbergen-reisen.no/img/2025-kalender-werbung-lang.jpg") no-repeat center top;*/
        background-size: cover;
    }
    #home_book_advertisement > div {
        align-content: unset !important;
    }
    #home_book_advertisement > div > div {
        margin-top: 30px;
    }
    #home_book_advertisement h2 {
        font-size: 30px;
    }

    #home_book_advertisement p {
        font-size: 40px;
    }
}

.team_overlay_pic {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-evenly;
    align-items: center;
}
.team_overlay_pic img {
    width: 30%;
    margin: 10px;
}


/* ============================================================
   Home page — small / mobile screens.
   Desktop layout (everything above) is intentionally left as-is;
   these rules only kick in on narrower viewports.
   ============================================================ */

/* Tablet / small: the two-column home bands stack into one column.
   Uses .flex2.home_flex (two classes) to outrank the global .flex2. */
@media screen and (max-width: 800px)
{
    .flex2.home_flex {
        flex-wrap: wrap;
    }
    .flex2.home_flex > div {
        width: 100%;
    }
    /* Pictures span the full width once stacked (drop the 25px side margins). */
    .flex2.home_flex .picture_big {
        margin: 16px 0;
    }
    /* Side padding so the hero text + stacked content never touch the edges. */
    .home_intro {
        padding: 0 18px;
    }
    #home_camp .maxwidth1500 {
        padding: 0 18px;
    }
}

/* Phones: tighten spacing + scale down the oversized hero/section type. */
@media screen and (max-width: 600px)
{
    .home_intro {
        padding: 0 14px;
    }
    .subheader {
        font-size: 21px;
        margin-top: 30px;
    }
    .flex2.home_flex {
        margin-top: 30px !important;
    }
    /* The private/open advantage columns: trim the inner side margins. */
    .flex2.home_flex .icon_item {
        margin: 10px 0;
    }
}


/* ============================================================
   Tour listing (/<lang>/tour) — small / mobile screens.
   Desktop layout is unchanged; the product tiles (#home_products)
   are already responsive. Keep the intro text off the edges.
   ============================================================ */
@media screen and (max-width: 600px)
{
    .tour_list > p,
    .tour_list > .subheader {
        padding-left: 16px;
        padding-right: 16px;
    }
}


/* ============================================================
   Private-tour page (/<lang>/tour/private) — small / mobile screens.
   Desktop layout unchanged; the activity tiles (#home_activities)
   are already responsive. Keep the intro + advantages off the edges.
   ============================================================ */
@media screen and (max-width: 600px)
{
    .tour_private > p,
    .tour_private > div {
        padding-left: 16px;
        padding-right: 16px;
    }
}