/* ══════════════════════════════════════════
   booking.css — Stylesheet untuk booking.blade.php
   Play N Chill Madiun
   ══════════════════════════════════════════ */

/* ────────────────────────
   PAGE
──────────────────────── */
.booking-page {
    position: relative;
    z-index: 5; /* KUNCI FIX: Mengangkat seluruh konten ke atas background segitiga */
    min-height: 100vh;
    background-color: transparent;
    padding: 48px 20px 64px;
}

/* ────────────────────────
   JUDUL
──────────────────────── */
.booking-title {
    font-family: 'Fredoka One', cursive;
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    text-align: center;
    margin-bottom: 32px;
}

/* ────────────────────────
   FILTER TAB (Reguler / VIP / VVIP)
──────────────────────── */
.booking-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 48px;
}

.tab-link {
    font-family: 'Fredoka One', cursive;
    color: var(--yellow);
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.3s;
    padding: 5px 15px;
    border-radius: 12px;
}

.tab-link:hover {
    background: rgba(45, 27, 107, .6);
    color: var(--yellow);
}

.tab-link.active {
    background: #2D1B6B;
    color: var(--yellow);
}

/* ────────────────────────
   ROOM CONTAINER (kotak border kuning)
──────────────────────── */
.room-container {
    border: 2px solid var(--yellow);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 960px;
    margin: 0 auto;
}

.room-container-title {
    font-family: 'Fredoka One', cursive;
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 32px;
}

/* ────────────────────────
   ROOM GRID
──────────────────────── */
.room-grid-booking {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ────────────────────────
   ROOM CARD
──────────────────────── */
.room-card-booking {
    background: rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 20px 16px 16px;
    position: relative;
    text-align: center;
    transition: transform .25s, background .25s;
}

.room-card-booking:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, .18);
}

/* Status badge (Tersedia / Penuh) */
.room-status {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: .72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 50px;
    color: #fff;
}

.room-status.tersedia { background: #22c55e; }
.room-status.penuh    { background: #ef4444; }

/* Sofa icon */
.room-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 14px;
}

.room-icon svg {
    width: 44px;
    height: 44px;
    fill: #fff;
}

/* Room name & device */
.room-name {
    font-family: 'Fredoka One', cursive;
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.room-device {
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
    margin-bottom: 16px;
}

/* Booking button */
.btn-booking {
    display: block;
    width: 100%;
    background: var(--orange);
    color: #fff;
    font-family: 'Fredoka One', cursive;
    font-size: 1.05rem;
    padding: 10px;
    border-radius: 10px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.btn-booking:hover {
    opacity: .88;
    transform: translateY(-2px);
    color: #fff;
}

.btn-booking:disabled,
.btn-booking.disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* ────────────────────────
   RESPONSIVE
──────────────────────── */
@media (max-width: 768px) {
    .room-grid-booking { grid-template-columns: repeat(2, 1fr); }
    .room-container    { padding: 28px 16px; }
    .booking-tabs      { gap: 14px; }
    .tab-link          { font-size: 1.1rem; padding: 6px 18px; }
}

@media (max-width: 480px) {
    /* 🌟 1. FIX Z-INDEX AGAR KONTEN TIDAK TERTUTUP SEGITIGA 🌟 */
    .booking-page {
        position: relative !important;
        z-index: 10 !important; /* Memaksa seluruh teks dan card maju di atas background */
    }

    /* 🌟 2. PAKSA CARD BERJEJER 2 KE SAMPING (KOTAK KECIL) 🌟 */
    .room-grid-booking { 
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Kunci jadi 2 kolom */
        gap: 10px !important; /* Jarak antar card diperkecil agar muat */
        max-width: 100% !important; 
        margin: 0 !important; 
    }
    
    .room-container {
        padding: 20px 10px !important; /* Kurangi padding border kuning di HP */
    }

    /* 🌟 3. KECILKAN ISI CARD AGAR PROPORSIONAL 🌟 */
    .room-card-booking {
        padding: 10px !important; /* Kurangi ruang kosong di dalam card */
        border-radius: 12px !important;
    }

    .room-foto {
        height: 90px !important; /* Pendekkan gambar agar rasio kotak rapi */
        margin-bottom: 8px !important;
        border-radius: 8px !important;
    }

    .room-status {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        top: 6px !important;
        right: 6px !important;
    }
    
    .room-name {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
        /* Potong teks jika nama ruangan terlalu panjang agar tidak merusak layout */
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .room-device {
        font-size: 0.65rem !important;
        margin-bottom: 8px !important;
    }
    
    .btn-booking {
        font-size: 0.75rem !important;
        padding: 6px !important;
        border-radius: 6px !important;
    }

    /* 🌟 4. PENYESUAIAN TEKS JUDUL 🌟 */
    .booking-title { 
        font-size: 1.8rem !important; 
    }
    
    .room-container-title {
        font-size: 1.1rem !important;
        text-align: center;
        margin-bottom: 20px !important;
    }
    
    .booking-tabs {
        gap: 8px !important;
    }
    .tab-link {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
}

.room-foto {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.room-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.room-card-booking:hover .room-foto img {
    transform: scale(1.05);
}