/* =========================================================
   ROUTE ISLAND - TOUR PAGE
   Modern layout inspired by Tripadvisor / GetYourGuide
   ========================================================= */

/* ---------- GLOBAL CONTAINER ---------- */

.guten-container {
    width: min(1400px, 94%);
    margin-inline: auto;
    padding-block: 40px 80px;
}

/* Hero gallery full width */
.guten-container>.wp-block-columns:first-child {
    width: 100%;
    max-width: none;
    margin-bottom: 60px;
}

.sticky-on-mobile {
    display: none;
}

.is-layout-flex>div {
    margin: 5px !important;
}



/* ---------- MAIN LAYOUT ---------- */

.tour-layout>div {
    gap: 72px;
    align-items: center;
    justify-content: center;
}

.tour-content {
    min-width: 0;
}

.tour-content>* {
    margin-bottom: 48px;
}

.ameliabooking-container {
    position: sticky !important;
    top: 110px;
    align-self: start;
}

/* ---------- TYPOGRAPHY ---------- */

h2.has-gv-color-text-secondary-color {
    color: #ffffff !important;
}

.wp-block-post-content p {
    margin: 0 0 1.6rem;
}

.wp-block-post-content h2 {
    font-size: 2.35rem;
    line-height: 1.2;
    font-weight: 800;
    color: #0f172a;
    margin: 80px 0 28px;
}

.wp-block-post-content h3 {
    font-size: 1.55rem;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin: 56px 0 20px;
}

.wp-block-cover__background.has-background-dim {
    background: #000;
    opacity: 0.2 !important;
}

.wp-block-post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #0ea5a4;
    margin: 36px 0 16px;
}

/* ---------- IMAGES ---------- */

.wp-block-post-content img,
.wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

figure {
    margin: 40px 0;
}

/* ---------- CARDS ---------- */

.tour-card,
.tour-section,
.wp-block-group.is-style-card {

    background: #fff;

    border: 1px solid #e8eef2;

    border-radius: 18px;

    padding: 36px;

    box-shadow:
        0 2px 4px rgba(15, 23, 42, .03),
        0 14px 40px rgba(15, 23, 42, .05);

    transition: .25s;
}

.tour-card:hover,
.tour-section:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(15, 23, 42, .08),
        0 24px 60px rgba(15, 23, 42, .08);
}

/* ---------- LISTS ---------- */

.wp-block-post-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-post-content li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.wp-block-post-content li::before {
    content: "✓";
    color: #14b8a6;
    font-weight: 700;
    flex: 0 0 auto;
}

/* ---------- TABLE ---------- */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #e8eef2;
    overflow: hidden;
}

th {
    background: #f8fafc;
    color: #0f172a;
    text-align: left;
}

th,
td {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
}

/* ---------- BLOCKQUOTE ---------- */

blockquote {
    margin: 40px 0;
    padding: 28px 32px;
    background: #f8fafc;
    border-left: 4px solid #14b8a6;
    color: #334155;
}

/* ---------- BUTTON ---------- */

.wp-element-button,
.wp-block-button__link {
    border-radius: 12px;
    transition: .25s;
}

/* ---------- AMELIA ---------- */

.tour-booking>* {
    background: #fff;
    border: 1px solid #e8eef2;
    border-radius: 18px;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, .03),
        0 18px 40px rgba(15, 23, 42, .06);
}

/* Weglot */
aside.country-selector.weglot-default {
    position: absolute;
    bottom: unset !important;
    top: 160px !important;
}

.wp-block-cover>div>h1,
.wp-block-cover>div>h2 {
    color: rgb(250, 251, 252) !important;
}


/* ---------- MOBILE ---------- */

@media (max-height:800px) {

    #amelia-container.am-fs__wrapper {
        margin: 0px auto !important;
    }

    .ameliabooking-container {
        top: 0px !important;
    }
}

@media (max-width:1100px) {

    .tour-layout {
        grid-template-columns: 1fr;
    }

    .tour-booking {
        position: static;
        order: -1;
        margin-bottom: 40px;
    }

    .wp-block-post-content {
        max-width: 100%;
    }

}

@media (max-width:991px) {

    .sticky-on-mobile {
        left: 0;
        padding: 12px;
        background: #fff;
        width: 100%;
        height: 100px;
        display: block;
        transition: right 0.3s;
        position: fixed;
        bottom: 0px;
        right: -186px;
        box-shadow: gray 0px 0px 5px;
        border-radius: 2px;
        overflow: hidden;
        z-index: 999999999;
    }

    .booking-mobile-btn .wp-block-button__link {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        font-weight: 700;
    }

}

@media (max-width:768px) {

    .wp-block-cover__background.has-background-dim {
        padding-top: 15px;
    }

    .wp-block-cover__background.has-background-dim>div.wp-block-cover {
        padding-top: 15px !important;
    }


    .wp-block-cover {
        padding-top: 0px;
    }

    .wp-block-cover>div>h1,
    .wp-block-cover>div>h2 {
        font-size: 4rem !important;
    }

    .wp-block-group.is-layout-constrained.wp-container-core-group-is-layout-2550bcb2.wp-block-group-is-layout-constrained {
        margin-top: 0px;
        margin-bottom: 0px;
        top: 0;
        color: var(--wp--preset--color--gv-color-accent);
        background-color: #fff !important;
        background: #fff !important;
    }

    .wp-block-group.is-layout-constrained.wp-container-core-group-is-layout-2550bcb2.wp-block-group-is-layout-constrained h1 {
        font-size: 0.5rem;
    }

    .guten-container {
        width: min(100%, 94%);
    }

    .wp-block-post-content {
        font-size: 17px;
    }

    .wp-block-post-content h2 {
        font-size: 2rem;
    }

    .wp-block-post-content h3 {
        font-size: 1.35rem;
    }

    .sticky-on-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        padding: 16px;
        background: #fff;
        border-top: 1px solid #e8eef2;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, .05);
    }

    aside.country-selector.weglot-default {
        top: 200px !important;
    }
}