:root {
    --primary-color: #2e0500;
    --accent-color: #bf914e;
    --secondary-color: #f9f6f2;
    --text-color: #222222;
}

/* slide in blured left */
@-webkit-keyframes slide-in-blurred-left {
    0% {
        -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
        -webkit-filter: blur(40px);
        filter: blur(40px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0) scaleY(1) scaleX(1);
        transform: translateX(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}
@keyframes slide-in-blurred-left {
    0% {
        -webkit-transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        transform: translateX(-1000px) scaleX(2.5) scaleY(0.2);
        -webkit-transform-origin: 100% 50%;
        transform-origin: 100% 50%;
        -webkit-filter: blur(40px);
        filter: blur(40px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateX(0) scaleY(1) scaleX(1);
        transform: translateX(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

/* Loading animation */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    65%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes smoothRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: var(--secondary-color);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

#loading-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.container {
    --uib-size: 40px;
    --uib-color: #2e0500;
    --uib-speed: 1.5s;
    --dot-size: calc(var(--uib-size) * 0.17);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--uib-size);
    width: var(--uib-size);
    animation: smoothRotate calc(var(--uib-speed) * 1.8) linear infinite;
}

.dot {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    width: 100%;
    animation: rotate var(--uib-speed) ease-in-out infinite;
}

.dot::before {
    content: "";
    height: var(--dot-size);
    width: var(--dot-size);
    border-radius: 50%;
    background-color: var(--uib-color);
    transition: background-color 0.3s ease;
}

.dot:nth-child(2),
.dot:nth-child(2)::before {
    animation-delay: calc(var(--uib-speed) * -0.835 * 0.5);
}

.dot:nth-child(3),
.dot:nth-child(3)::before {
    animation-delay: calc(var(--uib-speed) * -0.668 * 0.5);
}

.dot:nth-child(4),
.dot:nth-child(4)::before {
    animation-delay: calc(var(--uib-speed) * -0.501 * 0.5);
}

.dot:nth-child(5),
.dot:nth-child(5)::before {
    animation-delay: calc(var(--uib-speed) * -0.334 * 0.5);
}

.dot:nth-child(6),
.dot:nth-child(6)::before {
    animation-delay: calc(var(--uib-speed) * -0.167 * 0.5);
}

/* Header Section */
header {
    background-color: var(--primary-color);
    padding: 15px 25px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-logo img {
    width: 50px;
    height: 35px;
}

.navbar-menu {
    position: absolute;
    font-family: "Cinzel", sans-serif;
    display: flex;
    flex-direction: column;
    padding: 15px 15px 15px 35px;
    gap: 35px 0;
    background-color: var(--primary-color);
    height: 100dvh;
    top: 50px;
    width: 250px;
    right: 0;
    transform: translateX(110%);
    transition: all 0.5s ease-in-out;
}

.navbar-menu a {
    position: relative;
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
}

.navbar-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    top: 25px;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.navbar-menu a:hover::after {
    width: 100%;
}

.navbar-menu a:hover {
    color: var(--accent-color);
}

.navbar-menu.pop-up {
    transform: translateX(10%);
    transition: all 0.5s ease-in-out;
}

.reservasi-button {
    display: none;
}

main {
    margin-top: 100px;
}

.kamar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 25px 30px 75px 30px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.kamar-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    -webkit-animation: slide-in-blurred-left 2s cubic-bezier(0.23, 1, 0.32, 1)
        both;
    animation: slide-in-blurred-left 2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.kamar-header h1 {
    font-family: "Cormorant Garamond", sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 600;
}

.lokasi-halaman {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    display: flex;
    gap: 8px;
    font-weight: 500;
}

.lokasi-halaman a {
    text-decoration: none;
    color: var(--accent-color);
}

#lokasi-halaman {
    color: var(--text-color);
}

.list-kamar {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.kamar-produk {
    position: relative;
    display: flex;
    gap: 15px;
    /*align-items: center;
    */
    align-items: stretch;
    flex-direction: row;
    width: 100%;
    height: 400px;
    min-height: 220px;
    border-radius: 8px;
    box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.kamar-produk-img {
    flex: 0 0 40%;
}

.kamar-produk-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kamar-produk-deskripsi {
    flex: 1;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.kamar-produk-deskripsi h2 {
    font-family: "Cormorant Garamond", sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.kamar-produk-deskripsi p {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

#description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kamar-produk-detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kapasitas-tamu,
.jumlah-kasur {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kamar-produk-deskripsi h3 {
    font-family: "Poppins", sans-serif;
    color: var(--accent-color);
    font-size: 16px;
}

.kamar-produk .status {
    color: var(--text-color);
    font-family: "Poppins";
    position: relative;
    font-weight: 500;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kamar-produk .status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 0;
    flex-shrink: 0;
}

.kamar-produk .status.ready::before {
    background: #1e9e5a;
}

.kamar-produk .status.booked::before {
    background: #d32f2f;
}

.kamar-produk .status.maintenance::before {
    background: #c98a00;
}

.kamar-produk-deskripsi a {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
}

/* Footer Section */
.footer {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    height: auto;
}

.footer-container {
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 25px;
}

.footer-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-header img {
    width: 75px;
    height: 70px;
}

.footer-header-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-header-text h1 {
    text-transform: uppercase;
    font-family: "Cormoarant", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.footer-header-text h2 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.1px;
    line-height: 20px;
}

.footer-container p {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 550;
    letter-spacing: 1.3px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact,
.footer-location {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-social-media {
    display: flex;
    gap: 20px;
}

@media only screen and (min-width: 577px) and (max-width: 768px) {
    .kamar-header h1 {
        font-size: 40px;
    }

    .kamar-produk {
        min-height: 120px;
    }

    .kamar-produk-deskripsi {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .kamar-produk-deskripsi h2 {
        font-size: 28px;
    }

    .kamar-produk-deskripsi p {
        font-size: 16px;
    }

    .kamar-produk-detail {
        justify-content: space-between;
    }

    .kamar-produk-img {
        flex: 0 0 40%;
    }
}

/* ukuran tablet */
@media only screen and (min-width: 769px) and (max-width: 1023px) {

    .kamar-header h1 {
        font-size: 42px;
    }

    .kamar-produk {
        min-height: 120px;
    }

    .kamar-produk-deskripsi {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .kamar-produk-deskripsi h2 {
        font-size: 32px;
    }

    .kamar-produk-deskripsi p {
        font-size: 16px;
    }

    .kamar-produk-deskripsi a {
        width: 80%;
        padding: 5px 5px;
    }

    .kamar-produk-detail {
        gap: 15px;
    }

    .kamar-produk-detail h3 {
        font-size: 20px;
    }

    .kamar-produk-img {
        flex: 0 0 45%;
    }
}

@media only screen and (min-width: 1024px) {
    .navbar {
        display: flex;
    }

    .navbar-menu {
        position: static;
        transform: translateX(0);
        height: auto;
        width: max-content;
        display: flex;
        flex-direction: row;
        background-color: transparent;
        gap: 20px;
        -webkit-transform: translateX(0);
        -moz-transform: translateX(0);
        -ms-transform: translateX(0);
        -o-transform: translateX(0);
    }

    .navbar-menu.pop-up {
        display: none;
    }

    .hamburger-menu {
        display: none;
    }

    .reservasi-button {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: auto;
        background-color: var(--accent-color);
        padding: 8px 15px;
        border-radius: 10px;
        transition: all 0.2s ease-in;
        -webkit-transition: all 0.2s ease-in;
        -moz-transition: all 0.2s ease-in;
        -ms-transition: all 0.2s ease-in;
        -o-transition: all 0.2s ease-in;
    }

    .reservasi-button:hover {
        transform: scale(110%);
        -webkit-transform: scale(110%);
        -moz-transform: scale(110%);
        -ms-transform: scale(110%);
        -o-transform: scale(110%);
        transition: all 0.2s ease-in;
        -webkit-transition: all 0.2s ease-in;
        -moz-transition: all 0.2s ease-in;
        -ms-transition: all 0.2s ease-in;
        -o-transition: all 0.2s ease-in;
        cursor: pointer;
    }

    .reservasi-button a {
        font-family: "Poppins", sans-serif;
        font-size: 16px;
        text-decoration: none;
        color: var(--secondary-color);
    }

    .kamar-header{
        padding: 0 70px;
    }
    .kamar {
        padding: 25px 30px 75px 30px;
    }

    .list-kamar {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 35px 110px;
    }

    .kamar-header h1 {
        font-size: 48px;
    }

    .kamar-produk {
        min-height: 120px;
        height: 500px;
        width: 40%;
    }

    .kamar-produk-deskripsi {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .kamar-produk-deskripsi h2 {
        font-size: 36px;
    }

    .kamar-produk-deskripsi p {
        font-size: 16px;
    }

    .kamar-produk-deskripsi a {
        width: 80%;
        padding: 5px 5px;
    }

    .kamar-produk-detail {
        gap: 15px;
    }

    .kamar-produk-detail h3 {
        font-size: 20px;
    }

    .kamar-produk-img {
        flex: 0 0 50%;
    }

    .footer-container {
        position: relative;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 35px 80px;
    }

    .footer-content {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 50px;
    }

    .footer-contact,
    .footer-location {
        gap: 10px;
        font-size: 16px;
    }
    .footer-social-media {
        display: flex;
        flex-direction: row;
        width: max-content;
    }

    .footer-social-media img {
        height: 32px;
        width: 32px;
    }
}
