:root {
    --text-content-color: black;

    --color-100: #E0E7D6;
    --color-400: #D0C6A5;
    --color-500: #D1BD92;
    --color-600: #8C5B2A;
    --color-900: #48321B;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    color: var(--color-900);
}

body {
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

h1, h2, h3, h4, p {
    margin: 0;
}

p,
li,
figcaption {
    text-wrap: pretty;
    max-width: 65ch;
}

input::placeholder {
    color: var(--color-900);
}

.flow-content > * + * {
    margin-top: 1rem;
}

.flow-content p a {
    text-decoration: underline;
    text-decoration-style: wavy;
}

@font-face {
    font-family: 'KawitFree-Italic';
    src: url('fonts/KawitFree-Italic.otf') format('opentype');
}

@font-face {
    font-family: 'KantumruyPro-VariableFont_wght';
    src: url('fonts/KantumruyPro-VariableFont_wght.ttf') format('truetype');
}

iframe {
    p {
        font-family: KantumruyPro-VariableFont_wght, -apple-system, sans-serif !important;
    }
}

body {
    font-family: KantumruyPro-VariableFont_wght, -apple-system, sans-serif;
    background-image: url('images/asfalt-dark.png');
    background-position: 0 0;
    background-size: 12.5rem;
    background-repeat: repeat;
    background-attachment: fixed;
    padding: 1rem;
    line-height: 1.5rem;
}

.container {
    border-radius: 1rem;
    overflow: hidden;
    border: 2px solid var(--color-900);
    box-shadow: 0.5rem 0.5rem var(--color-900);
    color: var(--text-content-color);
}

/* Tab system */
.tab-content {
    display: none;
}

/* Show the About tab by default */
.tab-content:first-of-type {
    display: grid;
}

.tab-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
                "left-top"
                "right"
                "left-bottom";
}

h1 {
    font-size: clamp(6.3rem, -6.241rem + 27.586vw, 15rem);
    font-weight: 600;
    line-height: 0.6;
    margin-top: 1rem;
}

h2 {
    text-align: center;
}


a {
    text-decoration: none;
    color: var(--color-900);
}

header {
    font-family: KawitFree-Italic, sans-serif;
    display: grid;
    min-height: 7.5rem;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
            "titles"
            "nav";

    .titles {
        grid-area: titles;
        text-align: center;
    }

    nav {
        font-family: KantumruyPro-VariableFont_wght, -apple-system, sans-serif;
        grid-area: nav;
        display: flex;
        font-weight: 600;
        justify-content: space-evenly;
        padding: 1rem;

        a {
            &.active,
            &:hover {
                text-decoration: underline;
                text-decoration-style: wavy;
            }
        }
    }
}

.left-top {
    grid-area: left-top;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35rem;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid var(--color-900);

    img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

#accommodations .content {
    color: var(--color-900);
}

#about .left-bottom {
    img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.left-bottom {
    grid-area: left-bottom;
    min-height: 35rem;
    position: relative;
    overflow: hidden;
}

/* Blaze Slider Custom Styling */
.blaze-slider {
    height: 100%;
    width: 100%;
}

.blaze-container,
.blaze-track-container,
.blaze-track {
    height: 100%;
}

.blaze-track img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.blaze-nav {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    position: absolute;
    bottom: 4rem;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem .75rem;

    &.headline:before {
        opacity: 70%;
    }

    .blaze-next,
    .blaze-prev {
        align-items: center;
        display: flex;
        justify-content: center;
        transition: opacity .3s;
        background: none;
        border: none;
        cursor: pointer;
        outline: 0;
        padding: 0;
        color: var(--color-900);

        path:nth-child(2) {
            fill: var(--color-900);
        }
    }

    .blaze-prev {
        transform: rotate(180deg);
    }

    .blaze-pagination {
        display: flex;
        gap: 0.5rem;
        justify-content: center;

        button {
            background: var(--color-900);
            border: none currentcolor;
            border-radius: 50%;
            color: #0000;
            cursor: pointer;
            outline: 0;
            transition: transform .2s, background .3s;
            width: 1rem;
            height: 1rem;
            padding: 0;

            &.active {
                background-color: var(--color-500);
                box-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
                transform: scale(1.2);
            }
        }
    }
}


.star {
    height: 1rem;
}

.wavy-underline {
    text-decoration: underline;
    text-decoration-style: wavy;
}

.light-bold {
    font-weight: 500;
}

#home .right,
#about .right {
    &::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-400);
        opacity: 40%;
        z-index: -1;
    }
}

#about .right {
    .content {
        justify-content: space-around;
        gap: 2rem;
    }
}

.right {
    position: relative;
    grid-area: right;
    display: flex;
    align-items: start;
    justify-content: center;
    min-height: 50rem;
    padding: 2rem;
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
    border-bottom: 2px solid var(--color-900);

    .content {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;

        video {
            width: 80%;
            max-width: 30rem;
            height: auto;
            border-radius: 99999px;
            overflow: hidden;
            margin: 2rem 0 1rem;
            border: 2px solid var(--color-900);
        }
    }
}

.headline {
    position: relative;
    z-index: 0;

    &::before {
        content: '';
        pointer-events: auto;
        position: absolute;
        top: 0;
        left: 0;
        background: var(--headline-bg-color, var(--color-100));
        right: 0;
        bottom: 0;
        opacity: .3;
        border-radius: 1rem;
        z-index: -1;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
        border: 1px solid var(--headline-border-color, white);
    }

    &.accent {
        --headline-bg-color: var(--color-900);
        --headline-border-color: var(--color-600);

        color: var(--color-400);
        width: fit-content;
        margin-inline: auto;
        padding: 1rem;

        &.grow {
            animation: subtle-pulse 3s ease-in-out infinite;
        }

        &::before {
            opacity: 90%;
        }
    }
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

h2,
h3 {
    text-wrap: balance;
    max-width: fit-content;
    margin-inline: auto;
    position: relative;

    &.headline {
        padding: 1rem;
    }
}

.content {
    text-align: center;

    p {
        font-size: 1.1rem;
    }
}

.signup-container {
    margin-top: 2rem;
    width: 100%;
}

.about-grouping,
.room {
    display: flex;
    flex-direction: column;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--color-400);
        opacity: 40%;
        z-index: -1;
    }

    .room-details {
        padding: 1rem;
        min-height: 20rem;
        position: relative;

        .accent.headline {
            margin-top: 4rem;
        }

        p {
            margin-inline: auto;
        }
    }

    & + * {
        border-top: 2px solid var(--color-900);
    }

    > *:first-of-type {
        height: 20rem;
    }

    .headline {
        margin-bottom: 2rem;
    }

    img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center;
        min-height: 20rem;
    }

    &.whats-included {
        flex-direction: column-reverse;

        > *:first-of-type {
            height: initial;
            border-bottom: none;
        }

        hr {
            border-color: var(--color-900);
        }

        ul {
            margin-inline: auto;
            margin-bottom: 2rem;
            padding: 0;

            &:first-of-type {
                padding-left: 1rem;
            }

            li {
                list-style: none;

                & + li {
                    margin-top: 1rem;
                }
            }
        }

        .flex-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            gap: 1rem;
            padding-inline: 2rem;

            > * {
                width: 100%;
            }
        }
    }
}

.about-bio {
    text-align: center;
    padding: 1rem 2rem;
}

.about-image {
    overflow: hidden;
    min-height: 40rem;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Desktop layout - 2 columns, 2 rows */
@media (min-width: 48rem) {
    .container {
        margin-top: 1rem;
    }

    header {
        grid-template-columns: 8fr 1fr;
        grid-template-rows: auto;
        grid-template-areas: "titles nav";
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        font-size: 1.5rem;
    }

    .tab-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 50% 50%;
        grid-template-areas:
                    "left-top right"
                    "left-bottom right";
    }

    h1 {
        font-weight: 600;
        line-height: 0.7;
        margin-top: 1rem;
    }

    .right {
        border-left: 2px solid var(--color-900);
        border-bottom: none;
    }

    .about-grouping,
    .room {
        flex-direction: row;

        > * {
            flex-basis: 100%;
        }

        > *:first-of-type {
            height: 30rem;
            border-right: 2px solid var(--color-900);
        }

        .room-details {
            .accent.headline {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                bottom: 0;
                white-space: nowrap;
            }
        }

        &.whats-included {
            flex-direction: row;

            .room-details {
                margin-left: -1.5rem;
                padding-right: 0;
            }
        }
    }
}