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

/* slide-in-fwd-center */
@-webkit-keyframes slide-in-fwd-center {
    0% {
        -webkit-transform: translateZ(-1400px);
        transform: translateZ(-1400px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        opacity: 1;
    }
}
@keyframes slide-in-fwd-center {
    0% {
        -webkit-transform: translateZ(-1400px);
        transform: translateZ(-1400px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateZ(0);
        transform: translateZ(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: 65px;
    display: flex;
    flex-direction: column;
    height: auto;
}

.detail {
    position: relative;
    width: 100%;
    height: auto;
}

.detail-header {
    display: none;
}

.detail-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.detail-img-container {
    width: 100%;
    height: 300px; /* Atur tinggi slider sesuai kebutuhan lu */
    min-height: 470px;
    position: relative;
    overflow: hidden;
}

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

.swiper-main .swiper-button-next,
.swiper-main .swiper-button-prev {
    display: none;
}

/* Kustomisasi warna titik (dots) kalau mau disesuaikan tema website */
.swiper-pagination-bullet-active {
    background-color: var(
        --secondary-color
    ) !important; /* Warna emas/kuning tema lu */
}

.swiper.swiper-thumbs {
    display: none;
}

.detail-main {
    padding: 0 0 45px 0;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-content-second {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.about,
.fasilitas,
.rules {
    -webkit-animation: slide-in-fwd-center 0.8s
        cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
    animation: slide-in-fwd-center 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s
        both;
}

/* About */
.about {
    position: relative;
    width: 100%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.about::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 90%;
    background-color: var(--text-color);
    bottom: 0;
}

.about h1 {
    font-family: "Cormorant Garamond", sans-serif;
    color: var(--text-color);
    font-size: 32px;
}

.about h2 {
    font-family: "Montserrat", sans-serif;
    color: var(--accent-color);
    font-size: 24px;
}

.about span {
    font-size: 16px;
    color: rgb(82, 82, 82);
    font-weight: 550;
}

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

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

.about .status.ready::before {
    background: #1e9e5a;
}

.about .status.booked::before {
    background: #d32f2f;
}

.about .status.maintenance::before {
    background: #c98a00;
}

.about-capacity {
    color: var(--text-color);
    display: flex;
    gap: 25px;
    font-size: 16px;
    font-weight: 550;
}

.about-capacity .guest,
.bed {
    font-family: "Poppis", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.about-capacity p {
    padding: 3px 0 0 0;
}

.about p {
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    line-height: 25px;
}

.description {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
}

.description::before {
    content: "";
    position: absolute;
    height: 1px;
    width: 90%;
    background-color: var(--text-color);
    bottom: 0;
}

.description h3 {
    text-transform: uppercase;
    font-family: "Cormorant Garamond", sans-serif;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.description p {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
    text-align: left;
}

.fasilitas {
    position: relative;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

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

.fasilitas::before {
    content: "";
    position: absolute;
    height: 1px;
    width: 90%;
    background-color: var(--text-color);
    bottom: 0;
}

.fasilitas h3 {
    text-transform: uppercase;
    font-family: "Cormorant Garamond", sans-serif;
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.fasilitas-list {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fasilitas-list p {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
}

/*  */
.rules {
    position: relative;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
}

.rules h4 {
    font-size: 24px;
    text-transform: uppercase;
    font-family: "Cormorant Garamond", sans-serif;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.rules-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules p {
    position: relative;
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    height: max-content;
    gap: 10px;
}

/* .rules p::before {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
    height: 10px;
    width: 10px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    flex-shrink: 0 ;
    top: 10%;
    left: -5%;
} */

.detail-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.detail-button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    width: max-content;
    padding: 8px 10px;
    border-radius: 5px;
    transition: all 0.3s linear;
}

.about-button {
    display: none;
}

.detail-button:hover {
    cursor: pointer;
    transform: scale(110%);
    transition: all 0.3s linear;
}

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

/* 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: "Cormorant Garamond", 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) {
    .about h1 {
        font-size: 40px;
    }

    .about h2 {
        font-size: 28px;
    }

    .description h3 {
        font-size: 28px;
    }

    .fasilitas h3 {
        font-size: 28px;
    }

    .rules h4 {
        font-size: 28px;
    }

    .footer-header-text h1 {
        font-size: 28px;
    }
}

@media only screen and (max-width: 350px) {
    .detail-img-container {
        min-height: 300px;
    }
}

/* ukuran tablet */
@media only screen and (min-width: 769px) and (max-width: 1023px) {
    .about h1 {
        font-size: 42px;
    }

    .about h2 {
        font-size: 32px;
    }

    .description h3 {
        font-size: 32px;
    }

    .fasilitas h3 {
        font-size: 32px;
    }

    .rules h4 {
        font-size: 32px;
    }

    .footer-header-text h1 {
        font-size: 32px;
    }
}

@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);
    }

    /* Main */
    .about h1 {
        font-size: 42px;
    }

    .about h2 {
        font-size: 32px;
    }

    .description h3 {
        font-size: 32px;
    }

    .fasilitas h3 {
        font-size: 32px;
    }

    .rules h4 {
        font-size: 32px;
    }

    .footer-header-text h1 {
        font-size: 32px;
    }
    /* Layout Utama Detail Content */
    .detail {
        padding: 45px 30px;
    }

    .detail-main {
        gap: 50px;
        align-items: start;
    }

    .detail-content {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 35px;
        width: 100%;
        align-items: stretch;
    }

    .detail-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;
    }

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

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

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

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

    /* Kolom Kiri (Galeri Gambar) */
    .detail-content-img {
        flex: 0 0 65%;
        width: 60%;
        min-width: 0; /* Mencegah Swiper meluap (overflow) */
        display: flex;
        flex-direction: column;
    }

    /* Styling Swiper */
    .swiper-main {
        width: 100%;
        height: 380px;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
    }

    .swiper-main .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper.swiper-thumbs {
        display: block;
    }

    .swiper-thumbs {
        margin-top: 12px;
        width: 100%;
    }

    .swiper-thumbs .swiper-slide {
        height: 75px;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        opacity: 0.5;
        transition:
            opacity 0.3s,
            border-color 0.3s;
    }

    .swiper-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border: 2px solid var(--accent-color, #bf914e);
    }

    .swiper-thumbs .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .swiper-main {
        --swiper-navigation-color: #ffffff;
    }

    /* 1. Kustomisasi Lingkaran Pembungkus Tombol */
    .swiper-main .swiper-button-next,
    .swiper-main .swiper-button-prev {
        background-color: rgba(0, 0, 0, 0.6);
        width: 30px;
        height: 30px;
        border-radius: 50%;

        /* Memastikan konten di dalam tombol terpusat sempurna */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible; /* Biar gak kepotong kalau panah kebesaran */
    }

    /* 2. Kustomisasi Ikon Panah (Pseudo-element) */
    .swiper-main .swiper-button-next::after,
    .swiper-main .swiper-button-prev::after {
        font-size: 10px !important; /* Coba 20px - 24px dulu biar pas di dalam lingkaran 50px */
        font-weight: bold;
        line-height: 1 !important; /* KUNCI: Menghapus line-height bawaan Swiper yang membatasi ukuran */
    }

    /* Kolom Kanan (Informasi Kamar) */
    .about {
        flex: 1;
        width: 20%;
        display: flex;
        flex-direction: column;
        box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        -ms-border-radius: 8px;
        -o-border-radius: 8px;
        gap: 15px;
        height: 30%;
    }

    .about-capacity {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

    .about::after {
        display: none;
    }

    .about-button {
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
        background-color: var(--accent-color);
        width: max-content;
        padding: 8px 10px;
        border-radius: 5px;
        transition: all 0.3s linear;
        -webkit-transition: all 0.3s linear;
        -moz-transition: all 0.3s linear;
        -ms-transition: all 0.3s linear;
        -o-transition: all 0.3s linear;
    }

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

    .about-button:hover {
        cursor: pointer;
        transform: scale(110%);
        transition: all 0.3s linear;
    }

    .detail-button {
        display: none;
    }

    .detail-content-second {
        position: relative;
        display: flex;
        flex-direction: row;
        gap: 30px;
        width: 100%;
        align-items: stretch;
        justify-content: space-between;
        box-shadow: 1px 1px 12px rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        height: 50%;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        -ms-border-radius: 8px;
        -o-border-radius: 8px;
    }

    .fasilitas,
    .description {
        flex: 1;
        width: 50%;
    }

    .rules {
        flex: 0 0 35%;
        gap: 10px;
        justify-content: start;
    }

    .rules-content {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .rules-content img {
        width: 16px;
        height: 16px;
    }

    .fasilitas-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .fasilitas::before {
        content: "";
        position: absolute;
        width: 2px;
        height: 100%;
        background-color: var(--text-color);
        left: 100%;
    }

    .description::before {
        content: "";
        position: absolute;
        width: 2px;
        height: 100%;
        background-color: var(--text-color);
        left: 100%;
        top: 0;
    }

    .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;
    }
}
