/* Menggunakan font Poppins sebagai default */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8fafc; /* gray-50 */
    color: #1a202c; /* gray-900 */
    scroll-behavior: smooth;
}
/* Padding bawah untuk Mobile agar tidak tertutup oleh sticky bar */
@media (max-width: 1023px) {
    body {
        padding-bottom: 100px; /* Keep this for footer clearance */
    }
}
/* Mengunci scroll saat modal aktif */
body.modal-open {
    overflow: hidden;
}
/* Transisi halus untuk elemen */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styling untuk daftar di dalam konten detail (prose) */
.prose ul {
    list-style-type: none;
    padding: 0;
}
.prose ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.6rem; /* Reduced from 0.75rem */
}
.prose ul li svg {
    flex-shrink: 0;
    margin-right: 0.6rem; /* Reduced from 0.75rem */
    margin-top: 0.2rem; /* Reduced from 0.25rem */
}

/* Styling untuk Booking Modal - Container Overlay */
#booking-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default via display property */
    justify-content: center;
    align-items: center;
    z-index: 50;
    padding: 0.8rem; /* Reduced from 1rem */
    opacity: 0; /* For fade in/out transition */
    transition: opacity 0.3s ease-in-out;
}
#booking-modal.active {
    opacity: 1;
    display: flex; /* Display flex when active */
}

/* Styling untuk Booking Modal - Konten Modal */
#booking-modal-content {
    background-color: white;
    /* Removed max-width: 768px; as it's now handled by Tailwind's sm:max-w-4xl */
    padding: 1.25rem 1.5rem; /* Reduced from 1.5rem 2rem */
    max-height: 85vh; /* Limit height and allow scroll */
    overflow-y: auto;
    transform: scale(0.95); /* Initial state for content animation */
    opacity: 0; /* Initial state for content animation */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    position: relative; /* Make it a positioning context for the date picker */
}

/* When modal container is active, make content visible and scale up */
#booking-modal.active #booking-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Mobile specific styles for the modal (full screen, slide from right) */
@media (max-width: 1023px) { /* Applies to screens smaller than lg breakpoint */
    #booking-modal.active {
        align-items: stretch; /* Stretch content vertically */
        justify-content: flex-end; /* Push content to right on mobile */
        padding: 0; /* Remove padding for full screen */
    }

    #booking-modal-content {
        border-radius: 0; /* No border radius for full screen */
        transform: translateX(100%); /* Start off-screen at right */
        opacity: 0; /* Hidden initially */
        width: 100%; /* Full width */
        max-width: 100%; /* Full width */
        height: 100vh; /* Full viewport height */
        max-height: 100vh; /* Full viewport height */
        padding: 1.25rem 1.5rem; /* Keep internal padding */
    }

    #booking-modal.active #booking-modal-content {
        transform: translateX(0); /* Slide in from right */
        opacity: 1; /* Fade in */
    }
}


/* Styling untuk Mobile Bottom Sheet Modal Umum (mobile-detail-modal) */
#mobile-detail-modal {
    transition: opacity 0.3s ease-in-out;
}
.mobile-modal-sheet {
    transition: transform 0.3s ease-in-out;
}
#mobile-detail-modal.active .mobile-modal-sheet {
    transform: translateY(0);
}
/* Styling untuk FAQ Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.faq-question svg {
    transition: transform 0.3s ease-in-out;
}
.faq-item.active .faq-question svg {
    transform: rotate(45deg);
}

/* NEW: Styling untuk Daily Itinerary Accordion */
.daily-itinerary-accordion-item {
    /* Removed border, border-radius, background-color, box-shadow for a simpler look */
    overflow: hidden; /* Keep for max-height transition */
    margin-bottom: 0.8rem; /* Reduced from 1rem, provides spacing between items */
    border-bottom: 1px solid #e5e7eb; /* Re-added for visual separation */
}

/* Remove border from the last item to avoid an extra line at the very bottom */
.daily-itinerary-accordion-item {
    border-bottom: 1px solid #e5e7eb; /* Optional: pemisah antar item */
}
.daily-itinerary-accordion-item:last-child {
    border-bottom: none;
}

.daily-itinerary-accordion-item .faq-question {
    padding: 1.25rem; /* DIUBAH: Menyamakan dengan padding p-5 pada kontainer utama */
    font-weight: 600;
    color: #1f2937;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.2s ease-in-out;
}
.daily-itinerary-accordion-item .faq-question:hover {
    background-color: #f9fafb;
}
.daily-itinerary-accordion-item .faq-question .flex.items-center {
     display: flex;
    align-items: center;
    gap: 0.75rem; /* atau sesuai keinginan */
    flex-grow: 1;
}
.daily-itinerary-accordion-item .faq-question .flex-shrink-0 {
    flex-shrink: 0;
    display: flex;
    align-items: center; /* Pastikan "+" juga di tengah */
}
.daily-itinerary-accordion-item .faq-question svg.feather-icon-blue {
    color: #2563eb;
    width: 1.25rem;
    height: 1.25rem;
}
.daily-itinerary-accordion-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    background-color: #ffffff;
}
.daily-itinerary-accordion-item.active .faq-answer {
    /* max-height akan diatur via JS */
}
.daily-itinerary-accordion-item.active .faq-question svg.faq-icon {
    transform: rotate(45deg);
}
.daily-itinerary-accordion-item .faq-answer .p-5 {
    padding: 1rem;
    padding-top: 0;
    color: #4b5563;
}

/* NEW: Make daily itinerary accordion text smaller on mobile/tablet */
@media (max-width: 1023px) { /* Applies to screens smaller than lg breakpoint */
    .daily-itinerary-accordion-item .faq-answer .p-5 {
        font-size: 0.875rem; /* text-sm equivalent */
    }
}
/* END NEW: Styling for Daily Itinerary Accordion */


/* Efek teks terjepit dengan pudar */
.clamped-text {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Batasi 2 baris */
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    line-height: 1.5em;
    max-height: 3em; /* 2 baris x 1.5em */
}
.clamped-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    height: 1.5em;
    background: linear-gradient(to right, rgba(243, 244, 246, 0), #f3f4f6 50%);
}

/* Styling untuk Sliding Slideshow (Hero) */
.hero-slideshow-container {
    position: relative;
    overflow: hidden;
}
.hero-slideshow-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    /* Lebar akan diatur oleh JS */
}
.hero-slideshow-track img {
    /* Lebar dan tinggi akan diatur oleh JS */
    object-fit: cover;
    flex-shrink: 0; /* Mencegah gambar menyusut */
}
/* Media queries untuk tinggi gambar tetap di CSS */
/* Tinggi hero image sekarang diatur langsung di HTML (450px) */
/* Hapus atau sesuaikan aturan ini jika tidak lagi diperlukan */
/*
@media (max-width: 640px) {
    .hero-slideshow-track img {
        height: 400px;
    }
}
@media (min-width: 641px) and (max-width: 768px) {
    .hero-slideshow-track img {
        height: 480px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slideshow-track img {
        height: 550px;
    }
}
@media (min-width: 1025px) {
    .hero-slideshow-track img {
        height: 600px;
    }
}
*/

/* Overlay for title and location on Hero image */
.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.6rem; /* Reduced from 2rem */
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    background-color: rgba(0,0,0,0.5); /* Fallback solid dark background */
    color: white;
    z-index: 10; /* Pastikan di atas gambar dan sama dengan tombol */
}
.hero-overlay h1 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-overlay span {
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* Styling for arrow buttons on Hero slideshow */
#hero-prev-slide, #hero-next-slide {
    opacity: 0.7;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #1a202c;
    padding: 0.6rem; /* Reduced from 0.75rem */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
}
#hero-prev-slide { left: 0.8rem; } /* Reduced from 1rem */
#hero-next-slide { right: 0.8rem; } /* Reduced from 1rem */
#hero-prev-slide:hover, #hero-next-slide:hover {
    opacity: 1;
    background: #ffffff;
}
@media (max-width: 640px) {
    #hero-prev-slide, #hero-next-slide { padding: 0.4rem; } /* Reduced from 0.5rem */
    #hero-prev-slide i, #hero-next-slide i { width: 1.2rem; height: 1.2rem; } /* Reduced from 1.5rem */
}

/* Styling for the Floating Continue Booking button (mobile) */
#floating-continue-booking-mobile {
    position: fixed;
    bottom: 80px; /* Reduced from 90px */
    left: 0.8rem; /* Reduced from 1rem */
    right: 0.8rem; /* Reduced from 1rem */
    z-index: 45; /* IMPORTANT: Higher than sticky footer (z-index 40) */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* No interaction when hidden */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    transform: translateY(100%); /* Start below screen */
    
    /* Hidden on desktop */
    display: flex; /* Default for the bar structure */
    justify-content: center; /* Center content horizontally if needed */
}
@media (min-width: 1024px) { /* Hide this specific element on desktop */
    #floating-continue-booking-mobile {
        display: none !important; 
    }
}

#floating-continue-booking-mobile.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0); /* Slide up to centered position */
}
#floating-continue-mobile-content {
    height: 80px; /* Reduced from 100px */
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    border-radius: 0.4rem; /* Reduced from 0.5rem */
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1), 0 3px 5px -1px rgba(0, 0, 0, 0.05); /* shadow-lg slightly reduced */
    padding: 0.6rem 0.8rem; /* Reduced from 0.75rem 1rem */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: flex-start; /* Align text to the left */
    justify-content: space-between; /* Space content vertically */
    width: 100%; /* Take full width of its parent */
    box-sizing: border-box; /* Include padding in height calculation */
    cursor: pointer;
}
#floating-continue-mobile-content .floating-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
#floating-continue-mobile-content .floating-summary-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align price to bottom */
    width: 100%;
    margin-top: 0.2rem; /* Reduced from 0.25rem */
}
#floating-continue-mobile-content button {
    margin-top: 0.4rem; /* Reduced from 0.5rem */
    width: 100%; /* Make button full width */
    justify-content: center; /* Center content of button */
    background-color: #1d4ed8; /* bg-blue-700 */
    border-radius: 0.3rem; /* Reduced from 0.375rem */
    padding: 0.3rem 0.6rem; /* Reduced from 0.375rem 0.75rem */
    font-weight: 600; /* font-semibold */
    transition: background-color 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
#floating-continue-mobile-content button:hover {
    background-color: #1e40af; /* hover:bg-blue-800 */
}

/* NEW: Custom Dropdown UI Styling */
#custom-hotel-dropdown {
    position: relative;
    padding: 0.5rem !important; /* Reduced from 0.625rem (p-2.5) to p-2 */
}

#custom-hotel-dropdown.open #selected-hotel-display svg {
    transform: rotate(180deg); /* Rotate arrow when open */
}

#hotel-options-container {
    max-height: 200px; /* Reduced from 250px */
    overflow-x: hidden; /* Prevent horizontal scroll for the dropdown content */
    overflow-y: auto;    /* Keep vertical scrolling */
    z-index: 9999 !important; /* Ditingkatkan untuk memastikan muncul di atas elemen lain */
    /* Atur tampilan berdasarkan kelas 'open' pada #custom-hotel-dropdown */
    display: none; /* Default hidden */
}

/* Tampilkan #hotel-options-container ketika #custom-hotel-dropdown memiliki kelas 'open' */
#custom-hotel-dropdown.open #hotel-options-container {
    display: block; /* Tampilkan sebagai blok */
}


#hotel-type-list li {
    padding: 0.5rem !important; /* Disesuaikan agar lebih besar */
    cursor: pointer;
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: flex-start; /* Align text to the left */
    position: relative; /* For absolute positioning of arrow */
    background-color: white; /* Default background */
    font-size: 0.9rem !important; /* Menyamakan dengan ukuran font label form lainnya (text-sm) */
}

#hotel-type-list li:hover,
#hotel-type-list li.selected-type { /* Added class for persistent selection highlight */
    background-color: #f0f8ff; /* Light blue on hover/selected */
    color: #2563eb; /* Blue text */
}

#hotel-type-list li span {
    font-weight: 500; /* Medium font-weight for type */
    display: flex; /* Allow span to take up space for flex alignment with arrow */
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Take full width for arrow alignment */
    padding-right: 1.6rem; /* Reduced from 2rem */
}

#hotel-type-list li .submenu-arrow {
    color: #9ca3af; /* gray-400 */
    transition: transform 0.2s ease-in-out;
    position: absolute; /* Position arrow to the right of the LI */
    right: 0.8rem; /* Reduced from 1rem */
    top: 0.8rem; /* Reduced from 1rem */
    width: 0.875rem; /* Reduced from 1rem (w-4 h-4) */
    height: 0.875rem; /* Reduced from 1rem (w-4 h-4) */
    transform: rotate(0deg); /* Default: pointing down (accordion-like) */
}

/* Submenu styling - MODIFIED FOR ACCORDION EFFECT WITHIN MAIN DROPDOWN */
.hotel-submenu {
    position: static; /* Make it flow naturally within the parent li */
    width: 100%; /* Take full width of its parent li */
    margin-top: 0.4rem; /* Reduced from 0.5rem */
    border: none; /* Remove border when stacked */
    box-shadow: none; /* Remove shadow when stacked */
    border-top: 1px solid #e5e7eb; /* Add a subtle separator */
    border-radius: 0; /* No border radius when stacked */
    background-color: white;
    z-index: 1; /* Less important when static */
    
    /* These control the expand/collapse animation */
    max-height: 0; /* Starts collapsed */
    overflow: hidden; /* Hide content when collapsed */
    opacity: 0; /* Start hidden for fade */
    pointer-events: none; /* Disable interaction when hidden */
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Removed transform */
}

/* Class to expand the submenu (toggled by JS) */
.hotel-submenu.active-submenu {
    /* max-height will be set dynamically by JS based on scrollHeight */
    opacity: 1;
    pointer-events: auto; /* Enable interaction when active */
}

.hotel-submenu li {
    padding: 0.5rem !important; /* Disesuaikan agar lebih besar */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.875rem !important; /* Menyamakan dengan ukuran font label form lainnya (text-sm) */
}

#hotel-type-list li:last-child .hotel-submenu {
    border-bottom: none; /* Remove border from the last submenu */
}


.hotel-submenu li:hover,
.hotel-submenu li.selected-name { /* Added class for persistent selection highlight */
    background-color: #f0f8ff; /* Light blue on hover/selected */
    color: #2563eb; /* Blue text */
}

/* Hapus ikon centang hijau */
.hotel-submenu li.selected-name::before {
    /* content: '\2713'; */ /* Checkmark Unicode - DIHAPUS */
    margin-right: 0 !important; /* Hapus margin yang terkait dengan ikon */
    /* color: #22c55e; */ /* Green color - DIHAPUS */
    /* font-weight: bold; */ /* DIHAPUS */
}

/* Unified arrow rotation for both mobile and desktop (accordion style) */
#hotel-type-list li.type-open .submenu-arrow {
    transform: rotate(180deg); /* Point up when open */
}

/* Responsive Date Selection */
.date-selection-container {
    display: flex;
    align-items: center;
    gap: 0.4rem; /* Reduced from 0.5rem */
    padding: 0.6rem; /* Reduced from 0.75rem */
    padding-bottom: 7px; /* Reduced from 9px */
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 0.6rem; /* Reduced from 0.75rem */
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04); /* Subtle inset shadow reduced */
    overflow-x: hidden; /* Prevent horizontal scroll on this container */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.date-selection-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

#date-boxes-container {
    display: flex;
    flex-wrap: nowrap; /* Keep items in one line */
    gap: 0.4rem; /* Reduced from 0.5rem */
}

.date-box {
    flex-shrink: 0; /* Prevent boxes from shrinking */
    padding: 0.6rem 0.4rem; /* Reduced from 0.75rem 0.5rem */
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem; /* Reduced from 0.5rem */
    background-color: white;
    color: #4b5563;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.date-box span { /* Style inner spans for stacking day/date */
    display: block;
    line-height: 1.2;
}
.date-box span:first-child { /* Day of week */
    font-size: 0.75rem; /* Reduced from 0.875rem (text-sm) */
    color: #6b7280; /* gray-500 */
}
.date-box span:last-child { /* Date and Month */
    font-size: 0.875rem; /* Reduced from 1rem (base) */
    font-weight: 600; /* font-semibold */
}

.date-box:hover {
    background-color: #f0f8ff;
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Reduced shadow */
}

.date-box.selected {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.08); /* Reduced shadow */
}
.date-box.selected span:first-child { /* Day of week in selected state */
    color: #e0e7ff; /* light blue for contrast */
}


/* Style for calendar button to match date boxes visually */
#open-date-picker-btn {
    flex-shrink: 0; /* Prevent from shrinking */
    padding: 0.6rem 0.4rem; /* Match date-box padding */
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem; /* Reduced from 0.5rem */
    background-color: white;
    color: #4b5563;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}
#open-date-picker-btn i {
    width: 1.25rem; /* Reduced from 1.5rem (w-6 h-6) */
    height: 1.25rem; /* Reduced from 1.5rem (w-6 h-6) */
}
#open-date-picker-btn:hover {
    background-color: #f0f8ff;
    border-color: #3b82f6;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Reduced shadow */
}


/* Desktop styles */
@media (min-width: 1024px) { /* lg breakpoint */
    .date-selection-container {
        justify-content: space-between; /* Distribute items evenly */
        padding-bottom: 0.6rem; /* Match top padding */
    }
    #date-boxes-container {
        flex-grow: 1; /* Allow date boxes to fill available space */
        /* No specific width needed, flex items will distribute */
    }
    .date-box {
        /* 6 date boxes, 5 gaps. Each date box takes (100% of container_for_dates - 5 gaps) / 6 */
        flex: 1 1 calc((100% - (5 * 0.4rem)) / 6); /* Adjusted gap */
        padding: 0.6rem 0.8rem; /* Reduced from 0.75rem 1rem */
        font-size: 0.875rem; /* Reduced from 1rem (base size) */
    }
    .date-box span:first-child {
        font-size: 0.75rem; /* Reduced from 0.875rem (default text-sm) */
    }
    .date-box span:last-child {
        font-size: 0.875rem; /* Reduced from 1rem (default base size) */
    }
    #open-date-picker-btn {
        width: auto; /* Let content dictate width */
        padding: 0.6rem 0.8rem; /* Match date-box padding for desktop */
        margin-left: 0.4rem; /* Reduced from 0.5rem */
    }
}

/* Mobile styles (max-width: 1023px) */
@media (max-width: 1023px) {
    .date-selection-container {
        justify-content: space-between; /* Distribute 4 items evenly */
        padding-left: 0.8rem; /* Reduced from 1rem */
        padding-right: 0.8rem; /* Reduced from 1rem */
        margin-left: -0.8rem; /* Compensate for modal-content's padding */
        margin-right: -0.8rem; /* Compensate for modal-content's padding */
    }

    #date-boxes-container {
        /* This container holds 3 date boxes. It takes 3/4 of the total width minus its share of gaps. */
        flex-basis: calc(75% - (0.4rem * 1/3)); /* Adjusted gap */
        flex-grow: 1;
        flex-shrink: 0;
        display: flex; /* Ensure its children also flex correctly */
        gap: 0.4rem; /* Apply gap to its children */
    }

    .date-box {
        /* Each of the 3 date boxes should take 1/3 of the #date-boxes-container's width,
           minus its share of internal gaps (2 gaps for 3 items). */
        width: calc(100% / 3 - (0.4rem * 2 / 3)); /* Adjusted gap */
        min-width: calc(100% / 3 - (0.4rem * 2 / 3)); /* Ensure fixed width */
        box-sizing: border-box; /* Include padding/border in width calculation */
        font-size: 0.65rem; /* Reduced from 0.75rem (text-xs) */
    }
    .date-box span:first-child {
        font-size: 0.6rem; /* Reduced from 0.7rem */
    }
    .date-box span:last-child {
        font-size: 0.75rem; /* Reduced from 0.85rem */
    }

    #open-date-picker-btn {
        /* This button takes the remaining 1/4 of the date-selection-container's width,
           minus its share of gaps. */
        flex-basis: calc(25% - (0.4rem * 2/3)); /* Adjusted gap */
        width: auto; /* Let flex-basis determine width */
        margin-left: 0.4rem; /* Reduced from 0.5rem */
        min-width: unset; /* Remove fixed min-width to allow calc() to work */
    }
}

/* Custom Date Picker Modal (NEW) */
#custom-date-picker-modal {
    position: absolute; /* Position relative to booking-modal-content */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center horizontally and vertically */
    background-color: white;
    border-radius: 0.6rem; /* Reduced from 0.75rem */
    box-shadow: 0 8px 12px -2px rgba(0, 0, 0, 0.1), 0 3px 5px -1px rgba(0, 0, 0, 0.05); /* Reduced shadow */
    padding: 1.2rem; /* Reduced from 1.5rem */
    z-index: 60; /* Higher than booking modal content */
    max-width: 300px; /* Reduced from 350px */
    width: 90%; /* Responsive width */
    transition: all 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none; /* No interaction when hidden */
    display: block; /* Use display: none; for initial hiding, then toggle visibility with active class */
}

#custom-date-picker-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#custom-date-picker-modal .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    padding-bottom: 0.4rem; /* Reduced from 0.5rem */
    border-bottom: 1px solid #e5e7eb;
}

#custom-date-picker-modal .header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem; /* Reduced from 0.5rem */
    border-radius: 0.3rem; /* Reduced from 0.375rem */
    transition: background-color 0.2s;
    color: #4b5563;
}
#custom-date-picker-modal .header button i {
    width: 1rem; /* Reduced from 1.25rem (w-5 h-5) */
    height: 1rem; /* Reduced from 1.25rem (w-5 h-5) */
}

#custom-date-picker-modal .header button:hover {
    background-color: #f3f4f6;
}

#custom-date-picker-modal .header h4 {
    font-weight: 600;
    color: #1f2937;
}

#custom-date-picker-modal .weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.75rem; /* Reduced from 0.875rem */
    color: #6b7280;
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
}

#custom-date-picker-modal .days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem; /* Reduced from 0.25rem */
}

#custom-date-picker-modal .day {
    background-color: #f9fafb;
    border-radius: 0.3rem; /* Reduced from 0.375rem */
    padding: 0.4rem; /* Reduced from 0.5rem */
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem; /* Reduced from 0.875rem */
    color: #374151;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px; /* Reduced from 36px */
}

#custom-date-picker-modal .day:hover {
    background-color: #e0e7ff;
    color: #2563eb;
}

#custom-date-picker-modal .day.selected {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Reduced shadow */
}

#custom-date-picker-modal .day.disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

#custom-date-picker-modal .close-picker-btn {
    background-color: #ef4444; /* Red color */
    color: white;
    padding: 0.6rem 0.8rem; /* Reduced from 0.75rem 1rem */
    border-radius: 0.4rem; /* Reduced from 0.5rem */
    font-weight: 600;
    margin-top: 1.2rem; /* Reduced from 1.5rem */
    width: 100%;
    text-align: center;
    transition: background-color 0.2s;
}

#custom-date-picker-modal .close-picker-btn:hover {
    background-color: #dc2626; /* Darker red on hover */
}

/* Form inputs and textareas within the modal */
#booking-modal-content label {
    font-size: 0.875rem !important; /* Changed to 0.875rem (text-sm) */
    margin-bottom: 0.375rem !important; /* Reduced from 0.625rem (mb-1.5) */
}

#booking-modal-content input[type="text"],
#booking-modal-content input[type="email"],
#booking-modal-content input[type="tel"],
#booking-modal-content input[type="password"],
#booking-modal-content textarea {
    padding: 0.5rem !important; /* Reduced from 0.625rem (p-2.5) to p-2 */
    font-size: 0.75rem !important; /* Reduced from 0.875rem (text-sm) to text-xs */
}

/* Quantity buttons */
#booking-modal-content #modal-kurang-peserta,
#booking-modal-content #modal-tambah-peserta {
    padding: 0.5rem !important; /* Reduced from 0.625rem (p-2.5) to p-2 */
}

/* Quantity input */
#booking-modal-content #modal-jumlah-peserta {
    padding: 0.5rem !important; /* Reduced from 0.625rem (p-2.5) to p-2 */
    font-size: 0.75rem !important; /* Reduced from 0.875rem (text-sm) to text-xs */
}

/* Registration error message */
#registration-error-message {
    padding: 0.5rem 0.75rem !important; /* Reduced from 0.875rem 1rem (px-3.5 py-2.5) to px-3 py-2 */
    font-size: 0.75rem !important; /* Reduced from 0.75rem (text-xs) to text-xs (no change, just explicit) */
}

/* Info message for logged-in users */
#user-info-message {
    padding: 0.5rem 0.75rem !important; /* Reduced from 0.875rem 1rem (px-3.5 py-2.5) to px-3 py-2 */
    font-size: 0.75rem !important; /* Reduced from 0.75rem (text-xs) to text-xs (no change, just explicit) */
}

/* Menyamakan ukuran font untuk h4 "Pilih Opsi Hotel" dengan label form lainnya */
#hotel-selection-options h4 {
    font-size: 0.875rem !important; /* Menyamakan dengan ukuran font label form lainnya */
    margin-bottom: 0.375rem !important; /* Menyamakan dengan margin-bottom label form lainnya */
}

/* Menyamakan ukuran font untuk h4 "Jumlah Peserta" */
#booking-modal-content #modal-peserta-h4 { /* ID baru yang akan kita tambahkan di HTML */
    font-size: 0.875rem !important; /* Menyamakan dengan ukuran font label form lainnya */
    margin-bottom: 0.375rem !important; /* Menyamakan dengan margin-bottom label form lainnya */
}

/* Styling untuk wadah galeri gambar utama (mengatur tata letak grid) */
.main-image-single {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Gambar utama mengambil 2/3, kolom samping 1/3 */
    /* Mengatur tinggi baris secara eksplisit untuk mencapai tinggi total 400px */
    grid-template-rows: calc((400px - 0.25rem) / 2) calc((400px - 0.25rem) / 2); /* Dua baris untuk gambar samping, masing-masing setengah dari (400px - celah) */
    gap: 0.25rem; /* Celah antar gambar diperkecil */
    max-width: 1200px; /* Lebar maksimal untuk galeri */
    padding: 0.1rem; /* Padding di sekitar galeri */
    overflow: hidden; /* Memastikan konten di dalamnya tidak meluber */
    height: 400px; /* Tinggi keseluruhan galeri ditetapkan menjadi 400px */
    position: relative; /* PENTING: Menjadikan elemen ini sebagai konteks posisi untuk anak-anak absolutnya */
}

/* Styling untuk setiap wrapper gambar (menerapkan gaya 'hero single' visual) */
.hero-single-main-image-wrapper, .hero-single-side-image-wrapper {
    position: relative;
    overflow: hidden; /* Memastikan konten di dalamnya dipotong */
    height: 100%; /* Mengambil tinggi penuh dari area grid-nya */
    border-radius: 0; /* Sudut membulat agar sesuai dengan Capture.JPG */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Bayangan halus agar sesuai dengan Capture.JPG */
    background-color: #cbd5e1; /* Latar belakang abu-abu terang agar sesuai dengan kotak di Capture.JPG */
}

.hero-single-main-image-wrapper {
    grid-column: 1 / 2; /* Mencakup kolom pertama */
    grid-row: 1 / 3; /* Mencakup kedua baris */
}

.main-image, .side-image {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem; /* DITAMBAHKAN: Sudut membulat langsung pada gambar */
    object-fit: cover; /* Memastikan gambar mengisi area tanpa terdistorsi */
}

/* Penyesuaian responsif */
@media (max-width: 768px) {
    .main-image-single {
        grid-template-columns: 1fr; /* Tata letak satu kolom pada layar kecil */
        grid-template-rows: auto; /* Baris otomatis */
        height: auto; /* Menghapus tinggi tetap pada seluler */
    }
    .hero-single-main-image-wrapper {
        grid-column: 1 / 2;
        grid-row: auto;
        height: 250px; /* Menetapkan tinggi tetap untuk gambar utama pada seluler */
    }
    .hero-single-side-image-wrapper {
        height: 150px; /* Menetapkan tinggi tetap untuk gambar samping pada seluler */
    }
}
