/* CSS INDEX PHP */
body { font-family: Arial, sans-serif; margin: 0; padding: 0; }

        /* NAVBAR */
        nav {
            background: #222;
            padding: 10px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        nav .logo {
            color: #fff;
            font-size: 20px;
            font-weight: bold;
        }

        nav ul {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            margin: 0;
            padding: 0;
        }

        nav ul li {
            margin: 5px 10px;
        }

        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-size: 14px;
            padding: 5px 10px;
            border-radius: 5px;
        }

        nav ul li a:hover {
            background: #00bcd4;
            color: #fff;
        }

        header{
            position:relative;
            height:450px;
            overflow:hidden;

            display:flex;
            justify-content:center;
            align-items:center;
            text-align:center;
            color:#fff;
            font-style: oblique;
            font-display: auto;
        }

        .header-content{
            display:flex;
            flex-direction:column;
            align-items:center;
            justify-content:center;
            gap:20px;
        }

        .header-logo{
            width:300px;
            max-width:80%;
            height:auto;
            filter: drop-shadow(0 0 20px rgba(0,188,212,.6));
        }

        .bg-video{
            position:absolute;
            inset:0;
            width:100%;
            height:100%;
            object-fit:cover;
            z-index:1;
        }

        .header-overlay{
            position:absolute;
            inset:0;
            background:rgba(0,0,0,.55);
            z-index:2;
        }

        .header-content{
            position:relative;
            z-index:3;
            padding:20px;
        }

        .menu-toggle{
            display:none;
            font-size:30px;
            color:white;
            cursor:pointer;
        }

        #searchGame:focus, select:focus {
            outline: none;
            border: 1px solid #00bcd4;
        }

        /* whatsapp di header */
        .btn-wa-header {
            background: #25D366;
            color: white !important;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 14px;
            transition: 0.3s;
            text-decoration: none; /* 🔥 ini yang hilangkan garis bawah */
        }

        .btn-wa-header:hover {
            background: #1ebe5d;
        }

        /* CARD */
        .container {
            display: flex;
            flex-wrap: nowrap;          /* penting: jangan wrap */
            overflow-x: auto;           /* bisa scroll kanan kiri */
            gap: 15px;                  /* jarak antar card */
            padding: 20px;
            scroll-snap-type: x mandatory; /* biar scroll lebih halus (opsional) */
        }

        .container::-webkit-scrollbar {
            height: 6px;
        }

        .container::-webkit-scrollbar-thumb {
            background: #00bcd4;
            border-radius: 20px;
        }

        .container::-webkit-scrollbar-track {
            background: transparent;
        }

        .card {
            flex: 0 0 auto;             /* penting: biar tidak mengecil */
            width: 200px;
            border: 1px solid #ccc;
            padding: 15px;
            padding-bottom: 20px;
            border-radius: 8px;
            box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
            transition: 0.3s;
        }

        .card:hover {
            transform: translateY(-5px);
        }

        .card img {
            border-radius: 4px;
            display: block;
            margin: 0 auto;
        }

        .btn-trailer {
            display: inline-block;
            margin-top: 10px;
            padding: 8px 12px;
            background: #fff;
            color: #000;
            border-radius: 20px;
            text-decoration: none;
            font-size: 13px;
            transition: 0.3s;
        }

        .btn-trailer:hover {
            background: #00bcd4;
            color: #fff;
        }

        /* ===== HARGA SEWA ===== */
        .harga-container {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .harga-card {
            width: 250px;
            background: linear-gradient(135deg, #00bcd4, #0097a7);
            color: white;
            border-radius: 12px;
            padding: 15px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
            transition: 0.3s;
        }

        .harga-card:hover {
            transform: translateY(-5px);
        }

        .harga-card h3 {
            text-align: center;
            margin-bottom: 15px;
        }

        .harga-card ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .harga-card li {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255,255,255,0.2);
            color: white;
        }

        .harga-card li:last-child {
            border-bottom: none;
        }

        .harga {
            font-weight: bold;
        }

        /* MAP */
        .map-container {
            padding: 20px;
        }

        .map-container h2 {
            text-align: center;
        }

        .maps {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
        }

        iframe {
            width: 100%;
            max-width: 300px;
            height: 200px;
            border: 0;
            border-radius: 8px;
        }

        /* NOT FOUND */
        #notFoundMsg {
            text-align: center;
            display: none;
            color: red;
            font-weight: bold;
        }

        footer {
            background: #f4f4f4;
            padding: 1rem;
            text-align: center;
            margin-top: 20px;
        }

        .filter-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }

        .filter-wrapper input,
        .filter-wrapper select {
            min-height: 40px;
            padding: 8px 10px;
            border-radius: 5px;
            border: 1px solid #ccc;
            font-size: 14px;
            box-sizing: border-box;
            width: 100%;
            max-width: 250px;
        }

        /* MOBILE tampilan HP */
        @media (max-width: 768px) {

            nav{
                display:flex;
                justify-content:space-between;
                align-items:center;
                padding:15px 20px;
            }

            .menu-toggle{
                display:block;
            }

            nav ul{
                display:none;
                flex-direction:column;
                position:absolute;
                top:60px;
                left:0;
                width:100%;
                background:#222;
                padding:10px 0;
            }

            nav ul.active{
                display:flex;
            }

            nav ul li{
                margin:10px 0;
                text-align:center;
            }

            .filter-wrapper {
                flex-direction: column;
            }

            .filter-wrapper input,
            .filter-wrapper select {
                width: 90%;
            }

            .container {
                padding: 10px;
                gap: 10px;
            }

            .card {
                width: 160px; /* lebih kecil di HP */
                padding: 10px;
            }

            .card img {
                width: 100%;
                height: 120px;
                object-fit: cover;
            }

            .card h3 {
                font-size: 18px;
                margin: 10px 0;
            }

            .card p {
                font-size: 13px;
            }

            .btn-trailer {
                font-size: 12px;
                padding: 6px 10px;
            }

        }

.booking-section{
    max-width:650px;
    margin:50px auto;
    background:linear-gradient(135deg, #00bcd4, #0097a7);
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.booking-section h2{
    text-align:center;
    margin-bottom:20px;
    color:#222;
}

.booking-section label{
    display:block;
    margin-top:15px;
    margin-bottom:5px;
    font-weight:bold;
    color:#222;
}

.booking-section input,
.booking-section select,
.booking-section textarea{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
    box-sizing:border-box;
    font-size:15px;
    box-sizing:border-box;
    font-size:15px;
}

.booking-section textarea{
    resize:vertical;
}

.btn-booking{
    width:100%;
    margin-top:20px;
    padding:12px;
    border:none;
    background:#25D366;
    color:#fff;
    border-radius:5px;
    font-size:16px;
    cursor:pointer;
}

.btn-booking:hover{
    background:#1da851;
}
        

/* ===== STOK KONSOL ===== */
.stok-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stok-card {
    width: 250px;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stok-card h3 {
    margin-bottom: 10px;
}

.stok-card li {
    color: green;
}

/* DARK MODE OTOMATIS SESUAI SISTEM */
@media (prefers-color-scheme: dark) {

    body {
        background: #121212;
        color: #ffffff;
    }

    nav {
        background: #1e1e1e;
    }

    header {
        background: #1e1e1e;
    }

    .card {
        background: #222;
        border-color: #444;
        color: #fff;
    }

    .stok-card {
        background: #222;
        color: #fff;
    }

    footer {
        background: #1e1e1e;
        color: #fff;
    }

    .filter-wrapper input,
    .filter-wrapper select {
        background: #333;
        color: #fff;
        border-color: #555;
    }

    .btn-trailer {
        background: #333;
        color: #fff;
    }

    .btn-trailer:hover {
        background: #00bcd4;
    }

    #notFoundMsg {
        color: #ff6b6b;
    }
    .booking-section{
    background:linear-gradient(135deg, #00bcd4, #0097a7);
    color:#fff;
    }

    .booking-section h2,
    .booking-section label{
        color:#fff;
    }

    .booking-section input,
    .booking-section select,
    .booking-section textarea{
        background:#333;
        color:#fff;
        border:1px solid #555;
    }

    .booking-section input::placeholder,
    .booking-section textarea::placeholder{
        color:#aaa;
    }
}