/* ============================================
   MAIN STYLES - SITE 2
   Final Revision - Dengan Booking Info Panel
============================================ */

body {
    box-sizing: border-box;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* ===== HEADER STYLES ===== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000 !important;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: #030000 !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #000000 !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #000000;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ===== BOOKING INFO PANEL STYLES ===== */
.booking-info-panel {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 0rem;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.booking-info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000, #ffffff, #000000);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.booking-info-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.booking-info-title::after {
    content: '✨';
    margin-left: 10px;
    font-size: 1.2rem;
}

.booking-info-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.main-content {
    min-height: auto;
    padding: 2rem 0;
}

/* ===== DESKTOP VIEW (768px ke atas) ===== */
@media (min-width: 768px) {
    /* Booking info panel di atas main row */
    .booking-info-desktop {
        margin-bottom: 2rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .booking-info-mobile {
        display: none;
    }
    
    /* Container row untuk height matching */
    .main-content .container-fluid > .row {
        display: flex;
        align-items: stretch;
        min-height: 750px;
    }

    .main-content .container-fluid2 > .row {
        display: flex;
        align-items: stretch;
        min-height: 100px;
    }
    
    /* Both columns */
    .col-lg-6 {
        display: flex;
        flex-direction: column;
    }
    
    /* LEFT PANEL - Carousel */
    .left-panel {
        /*padding: 2rem;*/
        height: 750px; /* Match dengan right panel */
        max-height: 750px;
    }
    
    .left-panel .carousel-container {
        height: 100%;
        flex: 1;
    }
    
    /* RIGHT PANEL - Outlets */
    .right-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        height: 750px; /* Sama dengan left panel */
        max-height: 750px;
        display: flex;
        flex-direction: column;
        overflow: hidden; /* Hide overflow untuk container utama */
    }
    
    /* Outlets Container - Scrollable di dalam fixed height */
    .outlets-container {
        flex: 1;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
        padding-right: 15px; /* Space untuk scrollbar */
        margin-top: 0;
        max-height: 100%;
    }
    
    /* WebKit Scrollbar Styling */
    .outlets-container::-webkit-scrollbar {
        width: 8px;
    }
    
    .outlets-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        margin: 5px 0;
    }
    
    .outlets-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        border: 2px solid transparent;
        background-clip: padding-box;
        transition: all 0.3s ease;
    }
    
    .outlets-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    /* Firefox Scrollbar */
    .outlets-container {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.06);
    }
    
    /* Footer adjustment untuk height matching */
    .footer {
        margin-top: 1rem;
    }
}

/* ===== MOBILE VIEW (767px ke bawah) ===== */
@media (max-width: 767.98px) {
    /* Hide desktop booking info, show mobile version */
    .booking-info-desktop {
        display: none;
    }
    
    .booking-info-mobile {
        display: block;
        margin: 1.5rem 0.5rem;
    }
    
    /* Main content - no vertical padding on mobile */
    .main-content {
        padding: 5px 0 0 0 !important; /* Top 5px saja */
        min-height: calc(100vh - 120px);
    }
    
    /* Reset flex layout untuk mobile */
    .main-content .container-fluid > .row {
        display: block;
    }
    
    .col-lg-6 {
        display: block;
    }
    
    /* Left panel - NO PADDING, carousel menyatu dengan tepi */
    .left-panel {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: auto !important;
        max-height: none !important;
    }
    
    /* Carousel container full width tanpa padding */
    .left-panel .carousel-container {
        border-radius: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: 700px; /* Fixed height untuk mobile */
    }
    
    /* Right panel - adjust untuk mobile */
    .right-panel {
        height: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
        border-left: none !important;
        padding: 1rem 0.5rem !important; /* Sedikit padding kanan kiri */
        margin-top: 0 !important;
        display: block;
    }
    
    /* Outlets container - full display di mobile */
    .outlets-container {
        height: auto !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
        margin: 0 0.5rem;
    }
    
    /* Hide scroll-indicator on mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Mobile responsive untuk booking info panel */
    .booking-info-panel {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .booking-info-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .booking-info-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Optional: styling scrollbar halaman (body) di mobile */
    body::-webkit-scrollbar {
        width: 6px;
    }
    
    body::-webkit-scrollbar-track {
        background: transparent;
    }
    
    body::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.25);
        border-radius: 8px;
    }
    
    body {
        scrollbar-width: thin;
        scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 0.5rem 1rem;
    margin: 0 0 1rem 0; /* Revisi margin untuk desktop */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #cccccc;
    text-align: center;
    z-index: 10;
    width: 100%;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* ===== PANEL TITLE ===== */
.panel-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ===== OUTLET CARD STYLES ===== */
.outlet-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
}

.outlet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

.card-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.outlet-card:hover .card-img {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
    color: #000000;
}

.outlet-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
}

.outlet-address {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Mobile view untuk outlet card */
@media (max-width: 767.98px) {
    .outlet-card {
        margin-bottom: 1.5rem;
        border-radius: 10px;
    }
    
    .card-img-container {
        height: 180px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .outlet-name {
        font-size: 1.1rem;
    }
    
    .outlet-address {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

.booking-btn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    width: 100%;
}

.booking-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 1rem; /* Dikurangi karena height matching */
}

.footer h5 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p, .footer a {
    color: #252525;
    text-decoration: none;
    line-height: 1.6;
}

.footer a:hover {
    color: #000000;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #ffffff;
}

/* Mobile view untuk footer */
@media (max-width: 767.98px) {
    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
    }
    
    .footer p, .footer a {
        font-size: 0.9rem;
    }
    
    .social-links a {
        font-size: 1.3rem;
        margin-right: 0.75rem;
    }
}