/* Mengimpor font premium Cinzel untuk gaya Nordik */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

/* Reset basic */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Biar nggak ada scroll horizontal */
}

.map-wrapper {
    width: 100vw; /* Pakai viewport width biar full layar */
    min-height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-container {
    position: relative;
    width: 100%;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Memastikan gambar nge-fill area */
}

/* === Base style untuk titik interaktif (hotspot) === */
.hotspot {
    position: absolute;
    width: 30px; /* Ukuran titik lebih kecil biar rapi */
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

/* Tanda Bulatan Denyut (Pulse Effect) - Secara default Putih */
.hotspot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
    transition: background 0.3s ease, border-color 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Titik tengah solid - Secara default Putih */
.hotspot::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transition: background 0.3s ease;
}

/* ========================================= */
/* === JURUS MEWARNAI TITIK (HOTSPOT) ====== */
/* ========================================= */

/* --- 1. Titik IJO (Website Building - Urutan 1) --- */
.desktop-map .hotspot:nth-of-type(1)::before,
.mobile-map .hotspot:nth-of-type(1)::before {
    background: rgba(76, 175, 80, 0.6);
    border-color: #4CAF50;
}
.desktop-map .hotspot:nth-of-type(1)::after,
.mobile-map .hotspot:nth-of-type(1)::after {
    background: #4CAF50;
}

/* --- 2. Titik BIRU CYAN (LP Farming - Urutan 2 BARU) --- */
.desktop-map .hotspot:nth-of-type(2)::before,
.mobile-map .hotspot:nth-of-type(2)::before {
    background: rgba(76, 175, 80, 0.6);
    border-color: #4CAF50; 
}
.desktop-map .hotspot:nth-of-type(2)::after,
.mobile-map .hotspot:nth-of-type(2)::after {
    background: #4CAF50;
}

/* --- 3. Titik KUNING EMAS (NFT Collection - Geser ke Urutan 3) --- */
.desktop-map .hotspot:nth-of-type(3)::before,
.mobile-map .hotspot:nth-of-type(3)::before {
    background: rgba(255, 193, 7, 0.6);
    border-color: #FFC107;
}
.desktop-map .hotspot:nth-of-type(3)::after,
.mobile-map .hotspot:nth-of-type(3)::after {
    background: #FFC107;
}

/* --- 4. Titik MERAH (Hidden Phase - Geser ke Urutan 4) --- */
.desktop-map .hotspot:nth-of-type(4)::before,
.mobile-map .hotspot:nth-of-type(4)::before {
    background: rgba(244, 67, 54, 0.6);
    border-color: #F44336;
}
.desktop-map .hotspot:nth-of-type(4)::after,
.mobile-map .hotspot:nth-of-type(4)::after {
    background: #F44336;
}

/* ========================================= */
/* === SETTINGAN LAYAR HP (MOBILE) ========= */
/* ========================================= */
@media (max-width: 768px) {
    .desktop-map { display: none; }
    .mobile-map { display: block; }
    
    /* --- PERBAIKAN WARNA TERTUKAR DI MOBILE --- */
    /* Target urutan ke-2 (NFT di mobile), paksa jadi KUNING EMAS */
.mobile-map .hotspot:nth-of-type(2)::before {
   
 background: rgba(76, 175, 80, 0.6);
        border-color: #4CAF50;

    
}
.mobile-map .hotspot:nth-of-type(2)::after {
   
      background: #4CAF50;
}

    /* Target urutan ke-3 (Farmer Pool di mobile), paksa jadi HIJAU */
    .mobile-map .hotspot:nth-of-type(3)::before {
       background: rgba(255, 193, 7, 0.6) !important;
    border-color: #FFC107 !important;
    }
    .mobile-map .hotspot:nth-of-type(3)::after {
         background: #FFC107 !important;
    }
    /* ------------------------------------------- */

    /* === JURUS MOBILE: LANGSUNG TAMPILIN CARD TEXT === */
    /* (Sisa kode tooltip Anda tidak berubah) */
    .mobile-map .card-tooltip {
        /* Paksa muncul tanpa hover */
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Hilangkan animasi munculnya biar statis */
        transform: translateX(-50%) translateY(0) !important;
        transition: none !important;
        
        /* Biar ga ganggu ketukan pada peta */
        pointer-events: none !important;

        /* Penyesuaian ukuran teks di HP */
        font-size: 11px;
        padding: 8px 12px;
        max-width: 140px;
        line-height: 1.3;
    }

    /* Penyesuaian jarak tooltip ke titik di HP */
    .mobile-map .card-tooltip {
        bottom: 140%;
    }
}


/* === Style untuk Card / Tooltip === */
.card-tooltip {
    position: absolute;
    bottom: 150%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: max-content;
    max-width: 220px;
    background-color: #F8F3E6;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid #D4B982;
    
    /* Default Hidden untuk Desktop */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* Panah bawah tooltip */
.card-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #D4B982 transparent transparent transparent;
}

/* Hover effect khusus Desktop */
.desktop-map .hotspot:hover .card-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* MEDIA QUERIES UNTUK VISIBILITAS MAP */
.desktop-map { display: block; }
.mobile-map { display: none; }

/* ========================================= */
/* === SETTINGAN LAYAR HP (MOBILE) ========= */
/* ========================================= */
@media (max-width: 768px) {
    .desktop-map { display: none; }
    .mobile-map { display: block; }
    
    /* === JURUS MOBILE: LANGSUNG TAMPILIN CARD TEXT === */
    .mobile-map .card-tooltip {
        /* Paksa muncul tanpa hover */
        opacity: 1 !important;
        visibility: visible !important;
        
        /* Hilangkan animasi munculnya biar statis */
        transform: translateX(-50%) translateY(0) !important;
        transition: none !important;
        
        /* Biar ga ganggu ketukan pada peta */
        pointer-events: none !important;

        /* Penyesuaian ukuran teks di HP */
        font-size: 11px;
        padding: 8px 12px;
        max-width: 140px;
        line-height: 1.3;
    }

    /* Penyesuaian jarak tooltip ke titik di HP */
    .mobile-map .card-tooltip {
        bottom: 140%;
    }
}

/* ========================================= */
/* --- NORDIC STYLE BACK BUTTON tetap dipakai --- */
/* ========================================= */
.btn-back {
    position: fixed; /* Biar melayang anteng */
    top: 30px;
    left: 30px;
    z-index: 100;

    display: inline-flex;
    align-items: center;
    gap: 10px; /* Jarak panah dan tulisan */
    padding: 12px 25px; 
    
    font-family: 'Cinzel', serif; /* Font gagah */
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #e0d0b0; 
    text-decoration: none;
    text-transform: uppercase;
    
    border-radius: 4px; 
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border: 3px solid #333;
    
    box-shadow: 
        0 8px 15px rgba(0,0,0,0.6), 
        inset 0 2px 3px rgba(255,255,255,0.1), 
        inset 0 -2px 5px rgba(0,0,0,0.8);
        
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Efek Hover Back Button */
.btn-back:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: #d4af37; /* Emas menyala */
    background: linear-gradient(135deg, #3a2e21, #2a221a);
    color: #fff;
    box-shadow: 
        0 10px 25px rgba(212, 175, 55, 0.4), 
        inset 0 0 10px rgba(212, 175, 55, 0.3); 
}

/* Animasi Ikon Panah Geser Kiri */
.btn-back svg {
    transition: transform 0.4s ease;
    color: currentColor; 
}

.btn-back:hover svg {
    transform: translateX(-6px) scale(1.1);
}

/* Responsif tombol Back untuk Mobile */
@media (max-width: 768px) {
    .btn-back {
        top: 15px;
        left: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
        gap: 6px;
    }
}