@import url('https://fonts.googleapis.com/css2?family=Courgette&family=Montserrat:wght@500&family=Poppins&display=swap');

/*--------------------------------------------------------------
# CSS Variables - Tema Malam (Night Theme)
--------------------------------------------------------------*/
:root {
  /* Header/Navbar Colors */
  --color-header-bg: #0B1020;
  --color-header-text: #FFFFFF;
  
  /* Page Background & Body Text */
  --color-page-bg: #121826;
  --color-body-text: #E8EAF0;
  
  /* Accent Colors (Buttons, Links, Titles) */
  --color-accent: #F4B860;
  
  /* Secondary Text (Captions, Descriptions) */
  --color-text-secondary: #B8BFD0;
  
  /* Additional Colors */
  --color-white: #FFFFFF;
  --color-overlay: rgba(11, 16, 32, 0.7);
  --color-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    background-color: var(--color-page-bg);
    color: var(--color-body-text);
}

::-webkit-scrollbar {
    width: 12px;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: var(--color-header-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 10px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 70px;
    z-index: 1000;
    position: fixed;
    background-color: var(--color-header-bg);
    box-shadow: 0px 2px 10px var(--color-shadow);
}

.nav .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-header-text);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.nav a {
    text-decoration: none;
    color: var(--color-header-text);
    font-size: 15px;
    padding: 5px 20px;
    margin: 0px 10px;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

#btn-nav {
    width: 25px;
    height: 25px;
    display: none;
    filter: brightness(0) invert(1);
    cursor: pointer;
}

.btn-menu {
    width: 80%;
    text-align: right;
}

#btn-menu {
    width: 25px;
    height: 25px;
    text-align: right;
    cursor: pointer;
}

.nav-menu {
    width: 80vh;
    height: 80vh;
    position: fixed;
    z-index: 10;
    background-color: var(--color-header-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: translateX(-1000px);
    transition: 1s ease-in;
}

.nav-menu.active {
    transform: translateX(0px);
    transition: 1s ease-in;
}

.nav-menu a {
    font-size: 1rem;
    color: var(--color-header-text);
    transition: color 0.3s ease;
}

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

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 70px 0px 40px;
}

/*--------------------------------------------------------------
# Beranda (Hero Section)
--------------------------------------------------------------*/
.beranda {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(var(--color-overlay), var(--color-overlay)), url(/assets/img/photos/gunung_gede.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.beranda span {
    color: var(--color-white);
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    display: inline;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    max-width: 90%;
    text-shadow: 2px 2px 4px var(--color-shadow);
}

/* Typed.js cursor - ensure it stays inline */
.typed-cursor {
    display: inline;
    margin-left: 2px;
}

#typed {
    display: inline;
}

/*--------------------------------------------------------------
# Tentang
--------------------------------------------------------------*/
.tentang {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 20px;
}

.tentang img {
    width: 500px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    animation-name: tentang;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.area-tentang {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.judul {
    font-size: 35px;
    font-family: 'Courgette', cursive;
    text-align: center;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin: 10px 0px 15px;
}

.area-tentang p {
    text-align: center;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    font-size: 15px;
}

@keyframes tentang {
    0% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(0px, -20px);
    }

    100% {
        transform: translate(0px, 0px);
    }
}

/*--------------------------------------------------------------
# visi
--------------------------------------------------------------*/
.area-visi {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap-reverse;
}

.area-visi img {
    width: 400px;
    height: 550px;
}

.area-visi .main-carousel {
    width: 400px;
    height: 600px;
}

.visi-kiri {
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin: 20px 0px;
}

.box-visi {
    width: 280px;
    padding: 10px;
    text-align: center;
    margin: 10px;
}

.box-visi img {
    width: 60px;
    height: 60px;
}

.box-visi h1 {
    color: var(--color-accent);
    font-size: 20px;
    margin-bottom: 10px;
}

.box-visi p {
    color: var(--color-text-secondary);
    font-size: 13px;
}

/*--------------------------------------------------------------
# Koleksi (Collections)
--------------------------------------------------------------*/
.koleksi {
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.box-collection {
    width: 500px;
    margin: 0px 70px 0px 0px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.box-collection img {
    width: 260px;
    height: 260px;
    border-radius: 10px;
    object-fit: cover;
}

/* Adjust Pantai photo position to show boat properly */
.box-collection img[src*="pantai"] {
    object-position: center 40%; /* Adjust to show boat better */
}

.area-collection {
    width: 200px;
    margin: 0px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}

.area-collection .judul {
    text-align: start;
}

.area-collection p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/*--------------------------------------------------------------
# Menu
--------------------------------------------------------------*/
.menu {
    justify-content: center;
    align-items: center;
}

.carousel,
.main-carousel {
    width: 90%;
    min-height: 100%;
    padding: 20px 0px;
}

.box-menu {
    width: 500px;
    margin: 0px 70px 0px 0px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.box-menu img {
    width: 260px;
    height: 260px;
    border-radius: 10px;
}

.area-menu {
    width: 200px;
    margin: 0px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.harga {
    font-size: 20px;
    letter-spacing: 2px;
    margin: 10px 0px;
    color: var(--color-accent);
}

.area-menu .judul {
    text-align: start;
}

.area-menu p {
    font-size: 13px;
    color: var(--color-text-secondary);
}

/*--------------------------------------------------------------
# Review
--------------------------------------------------------------*/
.area-review {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.box-review {
    width: 280px;
    height: 100%;
    padding: 0px 20px 20px;
    margin: 30px 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-header-bg);
    box-shadow: 0px 0px 10px var(--color-shadow);
    text-align: center;
}

.box-review img {
    width: 70px;
    height: 70px;
    transform: translateY(-25px);
    position: absolute;
}

.box-review h1 {
    font-size: 18px;
    margin: 50px 0px 10px;
    color: var(--color-accent);
}

.box-review p {
    font-family: 'Courgette', cursive;
    letter-spacing: 1px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/*--------------------------------------------------------------
# Partner
--------------------------------------------------------------*/
.partner {
    align-items: center;
    background-color: var(--color-header-bg);
}

.partner .carousel-cell img {
    width: 140px;
    height: 50px;
    margin: 10px 30px;
}

/*--------------------------------------------------------------
# Lokasi
--------------------------------------------------------------*/
.lokasi {
    padding: 90px 0px 20px;
    align-items: center;
}

#map {
    width: 80%;
    height: 350px;
    margin: 20px 0px;
}

.area-kontak {
    width: 500px;
}

/*--------------------------------------------------------------
# Gallery Filter Buttons
--------------------------------------------------------------*/
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0px;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    min-height: 36px;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) {
    .filter-btn:hover {
        background-color: var(--color-accent);
        color: var(--color-header-bg);
        border-color: var(--color-accent);
    }
}

.filter-btn.active {
    background-color: var(--color-accent);
    color: var(--color-header-bg);
    border-color: var(--color-accent);
}

.filter-btn:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/*--------------------------------------------------------------
# Galery
--------------------------------------------------------------*/
.gallery {
    padding: 40px 20px;
}

.area-gallery {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.area-gallery img {
    width: 280px;
    height: 280px;
    margin: 20px 30px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: 0.5s ease-in-out;
    cursor: pointer;
}

.area-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(244, 184, 96, 0.3);
    transition: 0.5s ease-in-out;
}

/*--------------------------------------------------------------
# Lightbox
--------------------------------------------------------------*/
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background-color: var(--color-header-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--color-header-text);
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--color-accent);
}

.lightbox-close:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

#lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-info {
    margin-top: 20px;
    text-align: center;
    color: var(--color-body-text);
}

.lightbox-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-accent);
    font-family: 'Courgette', cursive;
}

.lightbox-info p {
    font-size: 14px;
    margin: 5px 0;
    color: var(--color-text-secondary);
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    width: 100%;
    height: 100%;
    padding: 50px 20px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    background-color: var(--color-header-bg);
    color: var(--color-body-text);
    font-family: 'Montserrat', sans-serif;
}

.footer-1 .footer-logo {
    display: flex;
    align-items: center;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-header-text);
    font-family: 'Montserrat', sans-serif;
}

.footer-1 p {
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

.sosial-media img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.sosial-media img:hover {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(10deg);
}

.footer-1,
.footer-2,
.footer-3,
.footer-4 {
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.footer-2 h1,
.footer-3 h1,
.footer-4 h1 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-accent);
}

.footer-2 a,
.footer-4 a {
    color: var(--color-text-secondary);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.footer-4 a:hover {
    color: var(--color-accent);
}

.footer-3 p {
    font-size: 15px;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

footer {
    width: 100%;
    height: 100%;
    background-color: var(--color-header-bg);
}

footer h1 {
    text-align: center;
    line-height: 1.6;
    color: #B8BFD0;
    font-size: 13px;
    font-weight: normal;
    padding-bottom: 25px;
}

footer h1 a {
    color: #B8BFD0;
    display: inline-block;
}

@media (hover: hover) {
    footer h1 a:hover {
        color: var(--color-accent);
    }
}

/*--------------------------------------------------------------
# Responsive Design
--------------------------------------------------------------*/
@media screen and (max-width:768px) {
    .nav {
        justify-content: space-between;
        padding: 0px 30px;
    }

    .nav a {
        display: none;
    }

    #btn-nav {
        display: block;
    }

    /* Hero section - mobile text sizing */
    .beranda {
        padding: 0 24px; /* Add horizontal padding to prevent text from touching edges */
    }

    .beranda span {
        font-size: clamp(20px, 5.8vw, 26px); /* Responsive font size */
        letter-spacing: 1.5px;
        line-height: 1.3;
        text-align: center;
    }

    /* Typed cursor - ensure it scales with text and stays inline */
    .typed-cursor {
        font-size: clamp(20px, 5.8vw, 26px); /* Match text size */
        display: inline;
        margin-left: 2px;
    }

    .box-menu {
        flex-direction: column;
        margin: 10px;
        width: 280px;
    }

    /* Collections section responsive styles */
    .box-collection {
        flex-direction: column;
        margin: 10px;
        width: 280px;
    }

    .area-menu {
        width: 260px;
        height: 220px;
    }

    .area-collection {
        width: 260px;
        height: 220px;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}

    .area-collection .judul {
        font-size: 28px;
        text-align: center;
    }

    /* Lightbox responsive behavior */
    .lightbox-content {
        max-width: 95%;
        padding: 15px;
    }

    .lightbox-info {
        margin-top: 15px;
    }

    .lightbox-info h2 {
        font-size: 18px;
    }

    .lightbox-info p {
        font-size: 12px;
    }

    #lightbox-img {
        max-height: 60vh;
    }

    .lightbox-close {
        font-size: 25px;
        top: 5px;
        right: 5px;
    }

    /* Gallery grid responsive */
    .area-gallery img {
        width: 240px;
        height: 240px;
        margin: 15px 20px;
    }

    .footer {
        flex-direction: column;
    }

    .area-visi .main-carousel {
        width: 300px;
    }

    .area-visi img {
        width: 300px;
    }

    .visi-kiri {
        width: 300px;
    }

    .box-visi img {
        width: 60px;
        height: 60px;
    }

    footer h1 {
        font-size: 12px;
        padding: 20px 15px 35px;
        line-height: 1.6;
    }
}

@media screen and (max-width:600px) {
    .nav-menu {
        width: 100%;
    }

    .beranda span {
        font-size: 24px;
        line-height: 1.4;
    }

    .tentang img {
        width: 300px;
        height: 260px;
    }

    .area-tentang {
        width: 300px;
    }

    .main-carousel {
        width: 95%;
    }

    .main-carousel .carousel-cell img {
        margin: 10px;
    }

    /* Filter button extra small mobile */
    .filter-btn {
        font-size: 12px;
        padding: 6px 10px;
        min-width: auto;
        min-height: 36px;
    }

    .filter-buttons {
        gap: 6px;
        margin: 15px 0px;
    }
    

    /* Collections section additional mobile styles */
    .box-collection {
        width: 260px;
        margin: 10px 5px;
    }

    .box-collection img {
        width: 240px;
        height: 240px;
    }

    .area-collection {
        width: 240px;
        padding: 10px 0px;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}

    .area-collection .judul {
        font-size: 24px;
    }

    .area-collection p {
        font-size: 12px;
    }

    /* Gallery grid for small mobile */
    .area-gallery img {
        width: 260px;
        height: 260px;
        margin: 10px 15px;
    }

    footer h1 {
        font-size: 12px;
        padding: 15px 10px 40px;
        line-height: 1.6;
    }
}

/*--------------------------------------------------------------
# Flickity Carousel Arrows
--------------------------------------------------------------*/
.flickity-prev-next-button {
    background: rgba(244, 184, 96, 0.8) !important;
    border-radius: 50%;
}

.flickity-prev-next-button:hover {
    background: var(--color-accent) !important;
}

.flickity-prev-next-button .flickity-button-icon {
    fill: var(--color-header-bg);
}

/* Move arrows outside on desktop */
@media screen and (min-width: 769px) {
    .flickity-prev-next-button.previous {
        left: -60px;
    }
    
    .flickity-prev-next-button.next {
        right: -60px;
    }
}

/* Better positioning on mobile */
@media screen and (max-width: 768px) {
    .flickity-prev-next-button {
        width: 30px;
        height: 30px;
    }
    
    .flickity-prev-next-button.previous {
        left: 10px;
    }
    
    .flickity-prev-next-button.next {
        right: 10px;
    }
}

/*--------------------------------------------------------------
# Collection Cards Spacing (Mobile Fix)
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    .box-collection {
        margin-bottom: 30px;
    }
    
    .area-collection {
        margin-top: 15px;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
    
    .area-collection .judul {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    footer h1 {
        font-size: 12px;
        padding: 20px 15px 35px;
        line-height: 1.6;
    }
}

@media screen and (max-width: 600px) {
    .box-collection {
        margin-bottom: 25px;
    }
    
    .area-collection {
        margin-top: 12px;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
    
    footer h1 {
        padding: 15px 10px 40px;
    }
}



/*--------------------------------------------------------------
# Collection Carousel - Desktop & Mobile
--------------------------------------------------------------*/
#collection-carousel {
    width: 90%;
    margin: 0 auto;
    position: relative;
}

#collection-carousel .box-collection {
    width: 500px;
    margin-right: 70px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#collection-carousel .box-collection img {
    width: 260px;
    height: 260px;
    border-radius: 10px;
    object-fit: cover;
}

#collection-carousel .area-collection {
    width: 200px;
    margin: 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}

#collection-carousel .area-collection .judul {
    text-align: start;
    font-size: 28px;
    margin-bottom: 10px;
}

#collection-carousel .area-collection p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Flickity viewport */
#collection-carousel.flickity-enabled {
    display: block;
}

#collection-carousel .flickity-viewport {
    overflow: hidden;
    position: relative;
    height: 100%;
}

#collection-carousel .flickity-slider {
    display: flex;
    align-items: center;
}

/* Desktop arrows (outside carousel) */
@media screen and (min-width: 1024px) {
    #collection-carousel {
        width: 80%;
    }
    
    #collection-carousel .flickity-prev-next-button {
        width: 44px;
        height: 44px;
        background: rgba(244, 184, 96, 0.9);
        border-radius: 50%;
    }
    
    #collection-carousel .flickity-prev-next-button:hover {
        background: var(--color-accent);
    }
    
    #collection-carousel .flickity-prev-next-button .flickity-button-icon {
        fill: var(--color-header-bg);
    }
    
    #collection-carousel .flickity-prev-next-button.previous {
        left: -50px;
    }
    
    #collection-carousel .flickity-prev-next-button.next {
        right: -50px;
    }
}

/* Tablet arrows */
@media screen and (min-width: 769px) and (max-width: 1023px) {
    #collection-carousel .flickity-prev-next-button {
        width: 40px;
        height: 40px;
        background: rgba(11, 16, 32, 0.7);
        border-radius: 50%;
    }
    
    #collection-carousel .flickity-prev-next-button .flickity-button-icon {
        fill: #F4B860;
    }
    
    #collection-carousel .flickity-prev-next-button.previous {
        left: 10px;
    }
    
    #collection-carousel .flickity-prev-next-button.next {
        right: 10px;
    }
}

/* Mobile carousel - Detailed specs as requested */
@media screen and (max-width: 768px) {
    #collection-carousel {
        width: 95%;
        margin-bottom: 24px; /* 24px spacing below carousel */
    }
    
    /* Card layout - vertical stacking */
    #collection-carousel .box-collection {
        width: 280px;
        margin-right: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    #collection-carousel .box-collection img {
        width: 280px;
        height: 280px;
        position: relative;
    }
    
    /* Title and description centered below image */
    #collection-carousel .area-collection {
        width: 100%;
        margin: 0;
        padding: 0 10px;
        text-align: center;
        margin-top: 0; /* 12px gap from image to title */
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
    
    #collection-carousel .area-collection .judul {
        text-align: center;
        font-size: 24px;
        margin-bottom: 6px; /* 6px gap from title to description */
        margin-top: 0;
    }
    
    #collection-carousel .area-collection p {
        font-size: 13px;
        text-align: center;
        max-width: 260px; /* Limit width to prevent text overflow */
        margin: 0 auto;
        line-height: 1.6;
    }
    
    /* Mobile arrows - vertically centered on image */
    #collection-carousel .flickity-prev-next-button {
        width: 36px;
        height: 36px;
        background: rgba(11, 16, 32, 0.7); /* Dark semi-transparent */
        border-radius: 50%;
        
        /* Position on image, vertically centered */
        top: 140px; /* Half of 280px image height */
        transform: translateY(-50%);
        
        /* Touch area minimum 44x44px */
        padding: 4px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #collection-carousel .flickity-prev-next-button .flickity-button-icon {
        fill: #F4B860; /* Amber color */
    }
    
    #collection-carousel .flickity-prev-next-button.previous {
        left: 8px; /* 8px from left edge of image */
    }
    
    #collection-carousel .flickity-prev-next-button.next {
        right: 8px; /* 8px from right edge of image */
    }
    
    /* Ensure arrows don't appear over text */
    #collection-carousel .flickity-prev-next-button {
        z-index: 2;
    }
    
    #collection-carousel .box-collection img {
        z-index: 1;
    }
    
    #collection-carousel .area-collection {
        z-index: 0;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
}

/* Extra small mobile */
@media screen and (max-width: 600px) {
    #collection-carousel .box-collection {
        width: 260px;
    }
    
    #collection-carousel .box-collection img {
        width: 260px;
        height: 260px;
    }
    
    #collection-carousel .area-collection p {
        max-width: 240px;
        font-size: 12px;
    }
    
    /* Adjust arrow position for smaller image */
    #collection-carousel .flickity-prev-next-button {
        top: 130px; /* Half of 260px */
    }
}

/* Mobile carousel - Swipe only, full-width cards */
@media screen and (max-width: 768px) {
    #collection-carousel {
        width: 100%;
        margin-bottom: 48px; /* Space for page dots + gap to Galeri title */
        padding: 0 20px; /* Equal padding left and right */
    }
    
    /* Full-width card, single card per screen */
    #collection-carousel .box-collection {
        width: 100%;
        margin-right: 0;
        flex-direction: column;
        align-items: center;
        padding: 0;
    }
    
    /* Square image with rounded corners, no cropping */
    #collection-carousel .box-collection img {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 12px;
    }
    
    /* Adjust Pantai photo in mobile carousel */
    #collection-carousel .box-collection img[src*="pantai"] {
        object-position: center 40%;
    }
    
    /* Title and description centered below image */
    #collection-carousel .area-collection {
        width: 100%;
        max-width: 320px;
        margin: 0;
        padding: 0;
        text-align: center;
        margin-top: 0; /* Foto ke judul */
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
    
    #collection-carousel .area-collection .judul {
        text-align: center;
        font-size: 24px;
        margin-bottom: 6px; /* Judul ke deskripsi */
        margin-top: 0;
    }
    
    #collection-carousel .area-collection p {
        font-size: 14px;
        text-align: center;
        line-height: 1.6;
        padding: 0; /* Deskripsi ke titik indikator */
    }
    
    /* Hide prev/next arrows on mobile */
    #collection-carousel .flickity-prev-next-button {
        display: none !important;
    }
    
    /* Page dots styling */
    #collection-carousel .flickity-page-dots {
        bottom: -16px;
        text-align: center;
    }
    
    #collection-carousel .flickity-page-dots .dot {
        width: 10px;
        height: 10px;
        margin: 0 6px;
        background: rgba(184, 191, 208, 0.3);
        border-radius: 50%;
        transition: background 0.3s ease;
    }
    
    #collection-carousel .flickity-page-dots .dot.is-selected {
        background: #F4B860; /* Amber for active dot */
    }
    
    /* Ensure full viewport for carousel */
    #collection-carousel .flickity-viewport {
        overflow: hidden;
    }
    
    /* Carousel slider - center alignment */
    #collection-carousel .flickity-slider {
        display: flex;
        align-items: center;
    }
}

/* Extra small mobile adjustments */
@media screen and (max-width: 600px) {
    #collection-carousel {
        padding: 0 15px;
    }
    
    #collection-carousel .box-collection img {
        max-width: 280px;
    }
    
    #collection-carousel .area-collection {
        max-width: 280px;
    }

/* Hide collection title and description for simplified view */
.area-collection .judul,
.area-collection p {
    display: none;
}
    
    #collection-carousel .area-collection .judul {
        font-size: 22px;
    }
    
    #collection-carousel .area-collection p {
        font-size: 13px;
    }
}

/*--------------------------------------------------------------
# Mobile Gallery Grid (2 columns) & Filters
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
    /* Gallery container */
    .gallery {
        padding: 40px 16px;
    }
    
    /* Filter buttons - centered, wrap if needed */
    .filter-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 10px 0;
        margin: 20px 0 30px;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
        min-width: auto;
        min-height: 36px;
    }
       
    
    /* Gallery grid - 2 columns */
    .area-gallery {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    /* Gallery thumbnails - square */
    .area-gallery img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 8px;
        margin: 0;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .area-gallery img:hover {
        transform: scale(1.05);
    }
    
    /* Load more button */
    .load-more-container {
        text-align: center;
        margin: 30px 0 20px;
        padding: 0 16px;
    }
    
    .load-more-btn {
        background: var(--color-accent);
        color: var(--color-header-bg);
        border: none;
        padding: 12px 32px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Poppins', sans-serif;
    }
    
    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(244, 184, 96, 0.4);
    }
    
    .load-more-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .load-more-btn.hidden {
        display: none;
    }
}

/* Extra small mobile adjustments */
@media screen and (max-width: 600px) {
    .gallery {
        padding: 30px 12px;
    }
    
    .filter-btn {
        font-size: 13px;
        padding: 7px 14px;
    }
    
    .load-more-btn {
        font-size: 14px;
        padding: 10px 28px;
    }
}

/* Mobile-specific: Hide all carousel dots */
@media screen and (max-width: 768px) {
    .flickity-page-dots {
        display: none !important;
    }
}
/* Mobile: Tight spacing between sections */
@media screen and (max-width: 768px) {
    .koleksi {
        padding: 40px 20px 8px 20px; /* Minimal bottom padding */
    }
    
    .gallery {
        padding: 8px 20px 40px 20px; /* Minimal top padding */
    }
}
/* Custom sliding window dots (max 5, single row) */
/* Desktop: Hidden */
#collection-dots {
    display: none !important;
}

/* Mobile: Visible with adjusted spacing */
@media (max-width: 768px) {
    #collection-dots {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
        margin-bottom: 56px;
        flex-wrap: nowrap;
    }

    #collection-dots .custom-dot {
        width: 6px;
        height: 6px;
        background: rgba(184, 191, 208, 0.35);
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
        flex-shrink: 0;
    }

    #collection-dots .custom-dot.active {
        background: #F4B860;
    }

    #collection-dots .custom-dot.edge {
        width: 4px;
        height: 4px;
    }
}

/* Hide Flickity default dots */
#collection-carousel .flickity-page-dots {
    display: none !important;
}