/* ============================================
   HOME.CSS
   Styling khusus halaman index (landing).
   ============================================ */

/* ===== MAIN LAYOUT ===== */
.main-content {
    padding: 2rem 0;
    min-height: auto;
}

/* ===== LEFT PANEL (containing block untuk overlay animasi) ===== */
.left-panel {
    position: relative;
}

/* ===== BOOKING INFO PANEL ===== */
.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: 2rem;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    position: relative;
    /* overflow:hidden dihapus → animasi SVG bisa keluar dari panel */
}

.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;
    border-radius: 15px 15px 0 0;
}

@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;
    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;
}

.booking-info-mobile { display: none; }

/* ===== MAIN ROW (height matching) ===== */
@media (min-width: 768px) {
    .main-row {
        display: flex;
        align-items: stretch;
        min-height: 600px;
    }
    .left-panel,
    .right-panel {
        height: 600px;
        max-height: 600px;
    }
    .left-panel { display: flex; flex-direction: column; }
    .left-panel .carousel-container { height: 100%; flex: 1; }
    .right-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* ===== OUTLETS SCROLL ===== */
.outlets-container {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-right: 15px;
    max-height: 100%;
}

.outlets-container::-webkit-scrollbar { width: 10px; }
.outlets-container::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}
.outlets-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.outlets-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FFE44D 0%, #FFB733 100%);
}

.scroll-indicator {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 0.5rem 1rem;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #cccccc;
    text-align: center;
    z-index: 10;
}

.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); }
}

/* ===== OUTLET CARD ===== */
.outlet-card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}
.outlet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}
.outlet-card .card-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 320px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    cursor: pointer;
}
.outlet-card .card-body { padding: 1.5rem; }

.outlet-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}
.outlet-address {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.booking-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000000;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}
.booking-btn:hover {
    background: linear-gradient(135deg, #FFE44D, #FFB733);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ===== OUTLET CAROUSEL (mini slideshow di card) ===== */
.outlet-carousel {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}
.outlet-carousel-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}
.outlet-carousel-item.active {
    opacity: 1;
    z-index: 2;
    animation: carouselFadeIn 0.5s ease;
}
@keyframes carouselFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.outlet-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-select: none;
}
.outlet-carousel:hover .outlet-carousel-img {
    transform: scale(1.05);
}

/* Navigasi desktop */
.outlet-carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.outlet-card:hover .outlet-carousel-controls { opacity: 1; }
.outlet-carousel-controls .outlet-carousel-btn { pointer-events: all; }

.outlet-carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.outlet-carousel-btn:hover { background: rgba(255, 255, 255, 1); transform: scale(1.15); }
.outlet-carousel-btn:active { transform: scale(0.95); }

/* Navigasi mobile */
.outlet-mobile-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: none;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}
.outlet-mobile-controls .outlet-mobile-btn { pointer-events: all; }
.outlet-mobile-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.outlet-mobile-btn:hover { background: rgba(0, 0, 0, 0.9); transform: scale(1.1); }

/* Indicators */
.outlet-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.outlet-card:hover .outlet-carousel-indicators { opacity: 1; }
.outlet-carousel-indicators .outlet-carousel-indicator { pointer-events: all; }

.outlet-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.outlet-carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Skeleton loading */
.outlet-carousel-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}
@keyframes loadingSkeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.outlet-carousel:not(.loading) .outlet-carousel-skeleton { display: none; }

/* ===== IKLAN BANNER ===== */
.website-ad.desktop-ad {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 12px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #FFD700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}
.website-ad.mobile-ad {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: white;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 10px;
    display: none;
}
.ad-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
}
.ad-icon {
    font-size: 1.5rem;
    color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
    border-radius: 50%;
}
.ad-text { flex: 1; text-align: center; }
.ad-text strong {
    font-size: 1.1rem;
    display: block;
    color: #FFD700;
    font-weight: 700;
}
.ad-text span { font-size: 0.95rem; color: #e0e0e0; }
.ad-button {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}
.ad-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFE44D, #FFCA28);
}
.ad-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFD700;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.ad-close:hover { background: rgba(255, 215, 0, 0.2); transform: translateY(-50%) scale(1.1); }

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Feature item modal iklan */
.ad-features-list .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    font-size: 0.85rem;
    color: #e0e0e0;
}
.ad-features-list .feature-item i { color: #4CAF50; }

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 767.98px) {
    .website-ad.desktop-ad { display: none !important; }
    .website-ad.mobile-ad  { display: block !important; }

    .booking-info-desktop { display: none; }
    .booking-info-mobile  { display: block; margin: 1.5rem 0.5rem; }

    .main-content { padding: 5px 0 0 0; }

    .main-row { display: block; }

    .left-panel {
        padding: 0 !important;
        margin: 0 !important;
        width: 100%;
        height: auto !important;
        position: relative;
    }
    .left-panel .carousel-container {
        border-radius: 0 !important;
        margin: 0 !important;
        height: 450px;
    }

    .right-panel {
        height: auto !important;
        border-left: none !important;
        padding: 1rem 0.5rem !important;
        margin-top: 0 !important;
    }
    .outlets-container {
        height: auto !important;
        overflow-y: visible !important;
        padding-right: 0 !important;
    }
    .scroll-indicator { display: none; }

    .outlet-card .card-img-container { height: 200px; }
    .outlet-carousel-controls { display: none !important; }
    .outlet-mobile-controls { display: flex !important; }
    .outlet-carousel-indicators { display: none !important; }
}

/* Very small devices */
@media (max-width: 375px) {
    .carousel-container { height: 420px; }
}