/* ==================================================
   GUIDE PAGE TEMPLATE

   Shared by:
   - know-before-you-go.html
   - hotels.html
   - dining.html
   - cool-bars.html
   - things-to-do.html
   - worth-finding.html
   - marfatecture.html
================================================== */


/* ==================================================
   SHARED GUIDE PAGE ELEMENTS
================================================== */

html {
    scroll-behavior: smooth;
}

.guide-page-inner {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
}

.guide-page-copy,
.countdown-copy,
.guide-page-media {
    min-width: 0;
}

.guide-page-media {
    width: 100%;
}

.guide-page-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: clamp(540px, 52vw, 820px);
    object-fit: cover;
    object-position: center;
}


/* ==================================================
   INTRO
================================================== */

.guide-page-intro {
    padding:
        clamp(40px, 5vw, 70px)
        var(--page-padding)
        clamp(105px, 10vw, 170px);

    background-color: var(--color-grey);
}

.guide-page-intro-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.08fr);

    gap: clamp(65px, 8vw, 145px);
    align-items: start;
}

.guide-kicker {
    margin-bottom: 28px;

    font-size: 1rem;
    letter-spacing: 0.02em;
}

.guide-page-intro h1 {
    max-width: 900px;
    margin-bottom: 45px;
}

.guide-lead {
    max-width: 720px;
    margin-bottom: 45px;
}


/* ==================================================
   UNRAVEL TIP
================================================== */

.unravel-tip {
    max-width: 720px;
    margin: 42px 0 50px;
}

.unravel-tip h2,
.unravel-tip h3 {
    margin-bottom: 22px;
    font-size: clamp(1.8rem, 2.6vw, 3rem);
}

.unravel-tip p {
    margin-bottom: 0;
}


/* ==================================================
   BUTTONS
================================================== */

.guide-page-button,
.guide-advertisement-button {
    display: inline-flex;
    min-width: 265px;
    min-height: 82px;
    padding: 20px 32px;

    align-items: center;
    justify-content: center;

    border: 2px solid currentColor;
    background-color: transparent;
    color: inherit;

    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.guide-page-button:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-3px);
}


/* ==================================================
   COUNTDOWN SECTIONS
================================================== */

.countdown-section {
    --section-color: var(--color-white);

    position: relative;
    padding: 165px var(--page-padding) 190px;
    overflow: visible;

    background-color: var(--section-color);
    color: var(--color-black);

    scroll-margin-top: 70px;
}

.countdown-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.2fr);

    gap: clamp(70px, 8vw, 145px);
    align-items: start;
}

.countdown-layout-reversed {
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.95fr);
}

.countdown-copy {
    padding-top: 15px;
}

.countdown-copy h2 {
    max-width: 820px;
    margin-bottom: 38px;
}

.countdown-copy > p {
    max-width: 720px;
}


/* ==================================================
   STANDARD SECTION WAVES
================================================== */

.top-wave {
    position: absolute;
    top: calc(var(--wave-height) * -1);
    left: 0;

    width: 100%;
    height: var(--wave-height);

    pointer-events: none;
}

.top-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.top-wave path {
    fill: var(--section-color);
}




/* ==================================================
   ADVERTISEMENT
================================================== */

.guide-advertisement {
    position: relative;
    min-height: 670px;
    overflow: hidden;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.4),
            rgba(0, 0, 0, 0.4)
        ),
        var(--guide-ad-image)
        center / cover no-repeat;
}


.guide-advertisement-overlay {
    position: relative;
    z-index: 3;

    display: flex;
    min-height: 670px;
    padding: 85px var(--page-padding) 90px;

    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.guide-advertisement-title {
    max-width: 900px;
    margin-bottom: 38px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: clamp(2.3rem, 3.6vw, 4.25rem);
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
}

.guide-advertisement-button {
    width: auto;
    max-width: 420px;
    min-width: 260px;
    min-height: 72px;
    padding: 18px 34px;

    border-color: var(--color-yellow);
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.guide-advertisement-button:hover {
    border-color: var(--color-pink);
    background-color: var(--color-pink);
    color: var(--color-black);
    transform: translateY(-3px);
}


/* ==================================================
   NEXT GUIDE
================================================== */

.guide-next {
    --section-color: var(--color-grey);

    position: relative;
    padding: 155px var(--page-padding) 170px;
    overflow: visible;

    background-color: var(--color-grey);
    color: var(--color-black);
}

.guide-next-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(320px, 0.65fr);

    gap: clamp(70px, 10vw, 190px);
    align-items: center;
}

.guide-next-copy {
    min-width: 0;
}

.guide-next-title {
    max-width: 1000px;
    margin-bottom: 28px;

    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4.1vw, 5.2rem);
    font-weight: 900;
    line-height: 0.96;
    text-transform: uppercase;
}

.guide-next-text {
    max-width: 620px;
    margin-bottom: 0;
}

.guide-next-button {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 88px;
    padding: 22px 34px;

    align-items: center;
    justify-content: center;

    border: 2px solid currentColor;

    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.guide-next-button:hover {
    background-color: var(--color-black);
    color: var(--color-white);
    transform: translateY(-3px);
}


/* ==================================================
   TABLETS
================================================== */

@media (max-width: 1000px) {

    .guide-page-intro {
        padding-top: calc(var(--header-height) + 70px);
        padding-bottom: 140px;
    }

    .guide-page-intro-layout,
    .countdown-layout,
    .countdown-layout-reversed {
        grid-template-columns: 1fr 1fr;
        gap: 55px;
    }

    .countdown-section {
        padding-top: 135px;
        padding-bottom: 150px;
    }

    .guide-page-media img {
        height: 600px;
    }

    .guide-advertisement {
        --advertisement-wave-height: 105px;
        min-height: 590px;
    }

    .guide-advertisement-overlay {
        min-height: 590px;
        padding-top: 120px;
        padding-bottom: 95px;
    }

    .guide-advertisement-title {
        max-width: 780px;
        font-size: clamp(2.3rem, 5.8vw, 3.8rem);
    }

    .guide-advertisement-button {
        width: auto;
        max-width: 360px;
        min-height: 68px;
    }

    .guide-next {
        padding-top: 130px;
        padding-bottom: 145px;
    }

    .guide-next-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.7fr);

        gap: 60px;
    }

}


/* ==================================================
   PHONES
================================================== */

@media (max-width: 760px) {

    .guide-page-intro {
        padding-top: calc(var(--header-height) + 45px);
        padding-bottom: 120px;
    }

    .guide-page-intro-layout,
    .countdown-layout,
    .countdown-layout-reversed {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 55px;
    }

    .guide-page-intro .guide-page-copy {
        order: 1;
    }

    .guide-page-intro .guide-page-media {
        order: 2;
    }

    .countdown-section {
        padding-top: 110px;
        padding-bottom: 130px;
    }

    .countdown-layout-reversed .countdown-copy {
        order: 1;
    }

    .countdown-layout-reversed .guide-page-media {
        order: 2;
    }

    /*
       Fill the available width while preserving
       each image's original aspect ratio.
    */
    .guide-page-media img {
        width: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .guide-page-button {
        width: 100%;
        min-width: 0;
        min-height: 72px;
    }

    .guide-advertisement {
        --advertisement-wave-height: 75px;
        min-height: 500px;
    }

    .guide-advertisement-overlay {
        min-height: 500px;
        padding-top: 95px;
        padding-bottom: 75px;
    }

.guide-advertisement-title {
    max-width: 100%;
    margin-bottom: 24px;

    font-size: clamp(1.5rem, 7vw, 2.4rem);
    line-height: 0.95;
}

    .guide-advertisement-button {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 64px;
        padding: 16px 24px;
    }

    .guide-next {
        padding-top: 100px;
        padding-bottom: 115px;
    }

    .guide-next-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .guide-next-button {
        width: 100%;
        min-height: 76px;
    }

}


/* ==================================================
   SMALL PHONES
================================================== */

@media (max-width: 480px) {

    .guide-page-intro {
        padding-bottom: 105px;
    }

    .countdown-section {
        padding-top: 95px;
        padding-bottom: 115px;
    }

    .guide-page-media img {
        height: auto;
    }

    .guide-advertisement {
        --advertisement-wave-height: 60px;
        min-height: 460px;
    }

    .guide-advertisement-overlay {
        min-height: 460px;
        padding-top: 80px;
        padding-bottom: 65px;
    }

    .guide-advertisement-title {
        font-size: clamp(1.9rem, 10.5vw, 2.7rem);
    }

    .guide-next {
        padding-top: 85px;
        padding-bottom: 95px;
    }

}