/* ====================================================== */
/* VARIABLES & RESET (GABUNGAN)        */
/* ====================================================== */
:root {
    /* Warna Brand (Konsisten di kedua file) */
    --brand-green: #2F4F4F;
    --brand-dark: #333333;
    --brand-accent: #D2B48C;
    --red-200: #FED7D7;

    /* Variabel Abu-abu (Digabungkan & dipilih yang paling konsisten) */
    --gray-100: #F8F9FA; /* Sedikit berbeda, diambil dari CSS 1 */
    --gray-200: #E9ECEF; /* Sedikit berbeda, diambil dari CSS 1 */
    --gray-500: #A0AEC0;
    --gray-600: #718096; /* Dari CSS 2 */
    --gray-800: #2D3748;
    --gray-900: #1A202C; /* Dari CSS 2 (lebih baik daripada hitam murni) */
    --black: #000000;
}

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

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--brand-dark); 
    background-color: #FFFFFF; /* Latar belakang default dari CSS 1 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CATATAN: Jika Anda ingin menggunakan latar belakang gambar dari CSS 2, gunakan class ini pada body */
body.bg-image {
    background-image: url('../img/imagebg.webp'); /* Path mungkin perlu disesuaikan */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
body.bg-image::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Inter', sans-serif; 
}

/* ====================================================== */
/* UTILITIES & HELPERS (GABUNGAN)      */
/* ====================================================== */
.hidden { display: none !important; }

.container {
    width: 100%;
    max-width: 1100px; /* Diambil dari CSS 1, bisa diubah ke 1280px jika perlu */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }

/* Box Shadows dari kedua file */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }


/* ====================================================== */
/* NAVBAR (Dari CSS 1)                 */
/* ====================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 40;
    border-radius: 0.75rem;
}
.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand-green);
    text-decoration: none;
}
.navbar .nav-logo img {
    height: 25px; 
    width: auto; 
    display: block;
}
.nav-links {
    display: none;
    gap: 3rem;
}
.nav-links a {
    text-decoration: none;
    color: var(--brand-dark);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand-green); }
.nav-button {
    display: none;
    background-color: var(--brand-green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
.nav-button:hover { background-color: #253f3f; }
.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background-color: white;
    padding: 4rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-menu a {
    font-size: 1.125rem;
    color: var(--brand-dark);
    text-decoration: none;
}

/* ====================================================== */
/* HERO SECTION (Dari CSS 1)           */
/* ====================================================== */
.hero-section {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.0)), url('../img/imagebg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1.5rem;
}
.hero-text h1 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    max-width: 750px;
}
.hero-text p {
    font-size: 16px;
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-button {
    display: inline-block;
    margin-top: 2rem;
    background-color: white;
    color: var(--brand-dark);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.2s;
}
.hero-button:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}

/* ====================================================== */
/* HEADER & BIOLINKS (Dari CSS 2)      */
/* ====================================================== */
.header {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 1rem 6rem 1rem;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/imagebg.webp') ;
}
.header-content {
    width: 100%;
    max-width: 28rem; /* 448px */
    margin: 0 auto;
}
.logo {
    width: 6rem; /* 96px */
    height: 6rem;
    margin: 0 auto 1rem;
    border-radius: 9999px;
    border: 1px solid white;
    background-color: white;
}
.header h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
}
.header h1 span {
    font-size: 18px;
    font-weight: 700;
}
.header p {
    font-size: 14px;
    color: #ffffff;
}
.biolink-container {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.biolink-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: white;
    color: var(--gray-800);
    font-weight: 600;
    padding: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.2s, background-color 0.2s;
}
.biolink-button:hover {
    background-color: var(--gray-200);
    transform: scale(1.05);
}
.biolink-button svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

/* ====================================================== */
/* BOOKING WIDGET & CALENDAR (GABUNGAN)*/
/* ====================================================== */
.booking-section, .booking-widget-section {
    padding: 4rem 0;
    background-color: var(--gray-100);
}
.booking-widget {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 56rem; /* Diambil dari CSS 2 (lebih besar) */
    margin: 0 auto;
    color: var(--brand-dark);
}
.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.calendar-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.calendar-header button {
    background: none; border: none; padding: 0.5rem; border-radius: 9999px; cursor: pointer; transition: background-color 0.2s;
}
.calendar-header button:hover { background-color: var(--gray-200); }
.calendar-header h3 { font-size: 1.125rem; font-weight: 600; width: 10rem; text-align: center; }
.calendar-days-grid, .calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; text-align: center;
}
.calendar-days-grid div { font-size: 0.875rem; font-weight: 500; color: var(--gray-500); }
.calendar-day {
    cursor: pointer; padding: 0.5rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; transition: all 0.2s ease-in-out;
}
.calendar-day:not(.disabled):not(.booked):hover {
    background-color: var(--brand-accent); color: white; transform: scale(1.05);
}
.calendar-day.selected { background-color: var(--brand-green) !important; color: white !important; }
.calendar-day.in-range { background-color: var(--gray-200); border-radius: 0; }
.calendar-day.disabled, .calendar-day.booked {
    color: var(--gray-500); text-decoration: line-through; cursor: not-allowed;
}
.calendar-day.booked { background-color: var(--red-200); }
.booking-details { display: flex; flex-direction: column; justify-content: center; }
.details-box { background-color: #F9FAFB; padding: 1rem; border-radius: 0.5rem; border: 1px solid #E5E7EB; }
.details-box h4 { font-weight: 600; }
.details-box hr { margin: 1rem 0; border-color: #E5E7EB; }
.details-box p { color: var(--gray-600); margin-top: 0.5rem; } /* Menggunakan gray-600 dari CSS 2 */
.details-box span { font-weight: 500; color: var(--gray-800); }
.btn-primary {
    width: 100%; margin-top: 1.5rem; font-weight: 700; padding: 0.75rem 1rem; border-radius: 0.5rem; border: none; cursor: pointer; background-color: var(--brand-green); color: white; transition: background-color 0.3s;
}
.btn-primary:hover { background-color: #253f3f; }
.btn-primary:disabled { background-color: var(--gray-500); cursor: not-allowed; }
#booking-error { color: #E53E3E; font-size: 0.875rem; margin-top: 0.5rem; height: 1rem; }

/* ====================================================== */
/* STYLE UNTUK INFORMASI KETERSEDIAAN (BARU) */
/* ====================================================== */
#availability-info {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 0.375rem; /* 6px */
    transition: all 0.2s ease-in-out;
}

#availability-info .count {
    font-weight: 700;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    color: rgb(0, 0, 0);
}


#availability-info .full {
    color: #EF4444; /* Merah */
    font-weight: 700;
}

/* ====================================================== */
/* GENERAL SECTIONS (Dari CSS 1)       */
/* ====================================================== */
.section {
    padding: 4rem 0;
}
.section-header {
    text-align: center; margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 1.8rem; font-weight: 600; color: var(--brand-dark);margin-bottom: 20px;
}
.section-header p {
    font-size: 1rem; color: var(--black); margin-top: 0.5rem; margin-left: auto; margin-right: auto;
}
.grid-3 {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem;
}
.feature-card { text-align: center; }
.feature-card .icon {
    width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; background-color: var(--gray-100); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--brand-green);
}
.feature-card h3 {
    font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.8rem; color: var(--gray-900); margin-top: 0.5rem; max-width: 250px; margin-left: auto; margin-right: auto;
}
.gallery-grid {
    columns: 1; gap: 1rem;
}
.gallery-grid img {
    width: 100%; height: auto; border-radius: 0.75rem; margin-bottom: 1rem; break-inside: avoid;
}

/* ====================================================== */
/* CAROUSEL (Dari CSS 2)               */
/* ====================================================== */
.carousel {
    position: relative;
    width: 100%;
    margin: 2rem auto;
    border-radius: 0.5rem;
    overflow: hidden;
}
.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
}
.carousel-item.active {
    display: block;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 100%;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}
.carousel-button.prev { left: 0.5rem; }
.carousel-button.next { right: 0.5rem; }

/* ====================================================== */
/* FAQ SECTION (Dari CSS 1)            */
/* ====================================================== */
.faq-container {
    max-width: 768px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000000;
}
.faq-question .icon {
    transition: transform 0.3s ease-out;
    font-size: 1.5rem;
    font-weight: 400;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1rem;
    color: var(--black);
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
    padding: 0 1rem 1.5rem;
    color: #000000;
}
.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

/* ====================================================== */
/* CHECKOUT & CONFIRMATION (Dari CSS 2)*/
/* ====================================================== */
.page-container {
    min-height: 100vh;
    background-color: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.form-container {
    max-width: 28rem;
    width: 100%;
    background-color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
}
.form-container h2 { font-size: 1.875rem; font-weight: 800; color: var(--gray-900); }
.form-container p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-600); }
.summary-box {
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
}
.summary-box h3 { font-size: 1.125rem; font-weight: 500; color: var(--gray-900); }
.summary-details { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.summary-row { display: flex; justify-content: space-between; }
.summary-row span:first-child { color: var(--gray-600); }
.summary-row span:last-child { font-weight: 600; color: var(--gray-900); }
.form-group { display: flex; flex-direction: column; }
.form-group input {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D1D5DB;
    color: var(--gray-900);
    font-size: 0.875rem;
}
.form-group input:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 2px var(--brand-accent);
}
.form-group input:first-child { border-top-left-radius: 0.375rem; border-top-right-radius: 0.375rem; }
.form-group input { border-top: none; }
.form-group input:last-child { border-bottom-left-radius: 0.375rem; border-bottom-right-radius: 0.375rem; border-top: none; }
.btn-back {
    margin-top: 1rem;
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-600);
    background: none;
    border: none;
    cursor: pointer;
}
.btn-back:hover { color: var(--gray-900); }
.confirmation-icon {
    margin: 0 auto 1.5rem;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: #D1FAE5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirmation-icon svg { width: 2.5rem; height: 2.5rem; color: #10B981; }

/* ====================================================== */
/* FOOTER (Dari CSS 1)                 */
/* ====================================================== */
.footer {
    background-color: var(--brand-dark);
    color: white;
    padding: 4rem 1rem 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}
.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}
.footer-col p, .footer-col a {
    color: var(--gray-200);
    text-decoration: none;
    line-height: 1.6;
}
.footer-col a:hover {
    color: white;
    text-decoration: underline;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-socials { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-socials svg { width: 1.5rem; height: 1.5rem; }
.footer-copy {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--black);
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ====================================================== */
/* LOADER & RESPONSIVE (GABUNGAN)      */
/* ====================================================== */
.loader-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(255,255,255,0.75); z-index: 50; display: flex; align-items: center; justify-content: center;
}
.loader {
    border: 4px solid #f3f3f3; border-top: 4px solid var(--brand-green); border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (min-width: 768px) {
    /* Dari CSS 1 */
    .nav-links { display: flex; }
    .nav-button { display: block; }
    .mobile-menu-button { display: none; }
    .hero-text h1 { font-size: 3rem; }
    .gallery-grid { columns: 2; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

    /* Dari CSS 2 */
    .header h1 { font-size: 1rem; line-height: 1; }
    .header h1 span { font-size: 1rem; }
    .header p { font-size: 12px; }
    .booking-widget { padding: 2rem; }

    /* Aturan gabungan */
    .booking-grid { grid-template-columns: 2fr 1fr; } /* CSS 1 lebih spesifik, kita gunakan ini */
}

@media (min-width: 1024px) {
    /* Dari CSS 1 */
    .gallery-grid { columns: 3; }
}